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.
Is there a Minecraft command to retrieve a player inventory?
plumbe0
- 31
- 1
- 1
- 3