Apologies if there's a duplicate post. I did look and couldn't find anything.
/execute on was a brilliant addition to the /execute command and really gives datapack designers a lot of creative freedom. I feel like there could be some other useful additions to the command to explore a whole new avenue of datapack creation and map making.
A perfect example is "/execute on facing [distance]" that would target any entity that the current target faces within the set distance. Currently, the closest type of functionality we have to this is "ray-tracing", which is summoning an object and having it move forward in increments before reaching an object, however this would simplify that process immensely. This would also have a multitude of uses, including:
/execute as @p[scores={hit=1}] on facing 5 if entity @s[nbt={HurtTime:10s}] run effect give @s minecraft:poison 4 1 #This would allow players to give potion effects on hit more accurately.
/execute as @p[scores={used_carrot_stick=1}] on facing 5 if entity @s[type=horse] run function ... #This would allow players to use a specific item on a specific mob and run a specific command as that mob.
/execute as @p on facing 50 if entity @s[type=block_display] run function ... #For map makers, this would allow them to make a "look at this" style of objective, which would help with immersion.
I believe the possibilities with this command are near-endless, and would love to see some form of addition like this to Minecraft.
Please sign in to leave a comment.
0 Comments