We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

9

A entity locate command

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    I definitely support the concept, although I feel it would fit better as a scoreboard criteria like minecraft.custom:minecraft.x_position, minecraft.custom:minecraft.y_position, and minecraft.custom:minecraft.z_position since then you could set those to scoreboard objectives and have an execute/tellraw combo like:
    /execute as @e[type=whatevermob] run tellraw @p ["",{"text":"I'm at "},{"score":{"name":"@s","objective":"x_position"}},{"text":" "},{"score":{"name":"@s","objective":"y_position"}},{"text":" "},{"score":{"name":"@s","objective":"z_position"}}]

  • 0
    Registered User commented
    Comment actions Permalink

    The above command (using tellraw) doesn't work for me (Java 1.19.2), but this does:

    execute as @e[type=whatevermob] run data get entity @s Pos