In the GUIs of chests, furnaces, anvils, etc., or just your own inventory, you click on an item to pick it up, and click again to put it into a slot of your inventory or the container block.

What is the NBT tag that returns a copy of the data of the item currently selected and moving with the cursor, and how would we modify it?

I am curious because several maps involve clicking on items to navigate an interface, and I am curious because the items that the player clicks on don't end up "grabbed."

  • Probably none. Those items are handled a bit strangely. BTW, are you in 1.15.2 or in the snapshots? There were a few bug fixes and changes related to this recently. Jun 2, 2020 at 4:17
  • I think you can remove them with /clear (in newer versions), but /clear 0 might not include them in the count. But it might also do it, I'm not sure. I'll try stuff tomorrow. Jun 2, 2020 at 4:20

1 Answer 1


Not an exact answer but just an idea. You could save the containers nbt with the data command and then check if its different in the next tick using functions or repeating command blocks.

  • 1
    What commands could you use to do such a thing?
    – One 2 Many
    Oct 18, 2020 at 5:19
  • @ExpertCoder14 This video will help for comparing data here and this video will help for storing data here if you need any other help pleas ask. I also suggest watching cloud wolf on youtube for command and datapack tutorials. The videos I linked are his. Anything from 1.13 and later is generally up to date. Oct 19, 2020 at 20:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .