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.

2

Item support for "/data" command

1 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    data get item entity @s weapon.mainhand = data get entity @s SelectedItem (for player) data get entity @s HandItems[0] (for mob)

    data merge item block ~ ~-1 ~ container.2 ... = data modify block ~ ~1 ~ Items[{Slot:2b}] merge value ...