Skip to main content
2 of 3
deleted 5 characters in body
plumbe0
  • 31
  • 1
  • 1
  • 3

Is there a Minecraft command to retrieve a player inventory?

I'd like to create a Minecraft data pack to let a player see what he dropped/lost upon death (whatever he had in inventory+hotbar+offhand+armor+etc). I got the GUI part but i'm missing how to read a user inventory with a command so i can fill the new GUI with those items. I don't think /testfor is viable since i'd have to test for every single block present in the game and also i'd lose all the tags attached to an item. I tried to look at the documentation of /replaceitem but it doesn't seem useful either. Thanks in advance.

plumbe0
  • 31
  • 1
  • 1
  • 3