Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-275856

/item replace replacing an item that has been used with a usable item makes the item invisible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 24w34a
    • None
    • Unconfirmed
    • (Unassigned)

       

      The command below replaces the player's held item slot with a carrot if it has anything other than a carrot.

      /item replace entity @a[nbt=!{SelectedItem:{id:"minecraft:carrot"}}] weapon.mainhand with minecraft:carrot 

      If this command is put in a repeating command block and you eat a carrot in survival mode it will try replace the item in your hand, but it will appear invisible until you update the slot.

      http://youtu.be/WQz-VN4vXoM

            Unassigned Unassigned
            AsheYo AsheYo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: