1
Command Help
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
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
4
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.
i have done some research and i think the command is /item but i dont know how to proceed
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
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
i'll try, thanks a lot
