A difficult thing to detect with commands is which block a player is looking at. It requires a raycast, which is lengthy to write and fairly inefficient.
I suggest adding an alternative to this: `target`. This can be used anywhere instead of coordinates and simply targets the block that the player is looking at.
For example: `setblock target stone`
This should not be tricky to implement, since the target block is already calculated every frame (for example to show in the F3 menu)
Alternatively, a syntax more similar to current coordinate syntax could be used, to allow specifying an offset, for example.
Please sign in to leave a comment.
3 Comments