Essentially, in a function or command block, execute store does not visually update the entity. This seems to be a server side issue, as if you update the rotation it seems to rotate for a split second and then it changes back.
Example:
execute store success entity @e[type=armor_stand,limit=1] Rotation[0] float 87 if entity @s
Note this command works when the player runs it but not when a function or command block does
Execute store block doesn’t work no matter what
Comments 6
no, I am executing at and as the entity I want this to happen to. And when I execute it as and at the entity in game it works fine.
Your command is still executed from original point, because it contain as @[selector]
part, which makes if @s
check original player/command block/function. You should add as @e[type=armor_stand,limit=1]
between execute
and store
; this would also allow changing the second selector to @s
I am so confused by what you mean. can you be more specific? I am executing this as the armorstand itself. This command works perfectly fine when done in chat but not by command blocks.
also with command blocks storing data to skulls doesn't work at all.
You should use this command:
/execute as @e[type=armor_stand,limit=1] store success entity @s Rotation[0] float 90 if entity @s
Most likely your another command also contains an error, which makes it not a subject of this bug tracker
You can ask either on the forums or the /r/MinecraftCommands subreddit for help with your commands.
I’ve put in the command that way and it achieves the same result. Also did you not the part a
Where I said it visually updates for just a second, and then it glitches back? I also should have mentioned this part, the data tag actually does update. If you data get it’s data, you’ll get what you expect. But it doesn’t actually look like that in game unless you ran the command yourself. Also I didn’t even have to use that selector because I was executing the function as and at the entity.
I believe this is because you are using
@s
, which only works when an entity runs the command.