Moving items into a block

Started by Cyclonz on

Topic category: Help with Minecraft modding (Java Edition)

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

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

 

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.