Moving items into a block

Started by Cyclonz on

Topic category: Help with modding (Java Edition)

Last seen on 07:52, 24. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Moving items into a block

i am new to modding and have just created a kind of death bed so when the player dies the items in their inventory get moved to a block that spawns when they are dead, i have created the block and successfully been able to move the armor and off-hand item to the block but nothing from the inventory will move. Does anyone know how to fix this? also quickly is the slots in the inventory (including the hotbar) numbered

Last seen on 07:52, 24. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry cut off  are they…
Wed, 02/24/2021 - 06:52

sorry cut off 

are they numberd 1-36 or 0-35 or anything weird because i have tried to copy specific item slots to the block and i might have the slot numbers wrong

 

Last seen on 02:07, 29. Mar 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could probably use the…
Wed, 02/24/2021 - 08:28

You could probably use the function "get a copy of item from slot "0" of "Provided itemstack" if it has inventory" Located in Item procedures.