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

2

Item support for "/data" command

1 Comments

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 ...