1

Command Help

DarkEclipse •3/2/23 10:41 am history
•
203
•
3/4/2023 6:46 am
so
im working to a datapack when i found a problem,
i have no special abilities with mc commands and i dont know if is possible or if its simple to do
i was working to a command that copies the player inventory (without hotbar) and paste it into a chest
someone can help me pls?
thanks to whoever replies
Posted by
DarkEclipse
Level 35 : Artisan Mage
23

  Have something to say?

Join • Sign in

4

Spuduking
• 03/02/2023 1:37 pm
• Level 34 : Artisan Procrastinator
I'm not sure exactly how to do it, but try looking into the /data command. It's complicated but it should let you do exactly what you want.
1
DarkEclipse
• 03/02/2023 1:57 pm
• Level 35 : Artisan Mage
i have done some research and i think the command is /item but i dont know how to proceed
1
Spuduking
• 03/03/2023 3:16 pm
• Level 34 : Artisan Procrastinator
history
Try this:

item replace block ~ ~ ~ container.0 from entity @s hotbar.0
item replace block ~ ~ ~ container.1 from entity @s hotbar.1
item replace block ~ ~ ~ container.2 from entity @s hotbar.2
...
and so on
1
DarkEclipse
• 03/04/2023 6:46 am
• Level 35 : Artisan Mage
i'll try, thanks a lot
2

Welcome