Sign in
Skip to main content

Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

4

Add a `target` coordinate option

3 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    target could be a positioning option in an execute command.
    As the player run: 

    execute positioned target run setblock ~ ~ ~ stone
  • 0
    Registered User commented
    Comment actions Permalink

    U mean on bedrock? Cause i think this feature is already in java.

  • 0
    Registered User commented
    Comment actions Permalink

    It might be tricky to implement unless it's a feature for "/execute" command.
    For example, this command would change the block the player is looking at (or fail if the player is not looking at any of the blocks or the player is gone).

    /execute as @p positioned block target run setblock ~ ~ ~

    On the other hand, this command would change the block that the player would create if they clicked right mouse button (usually the block next to targeted one, dependent from the player position) (or fail in some scenarios):

    /execute as @p positioned block placeable run setblock ~ ~ ~