mojira.dev
MCPE-172050

Trying to set or fill a block with a certain property with the "run_command" feature inside of events, completely breaks the mob

So basically, when trying to run the command "execute as @s at @s run setblock ~~~1 planks["wood_type": "dark_oak"]" doesn't work inside of an entity, or inside of server animations. No matter what I do, this method doesn't seem to be working whatsoever, it just completely breaks. However, whenever I remove the option to set the block with a certain property, it seems to work just fine.

 

And I do have a suggestion, for a fix, instead of just doing setblock ~~~ planks["wood_type": "dark_oak"] maybe you could add the option to do setblock ~~~ planks['wood_type': 'dark_oak'] instead.

Attachments

Comments 2

The screenshot with the json syntax error shows that you need to "escape" the quotes inside the string. Does it work if you put backslashes \ ahead of the quotes?

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

ItzJeremicer1584

(Unassigned)

Unconfirmed

Multiple

64-bit operating system, x64-based processor

1.20.0

Retrieved