Moving items into a block

Started by Cyclonz on Wed, 02/24/2021 - 06:50

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Moving items into a block
Wed, 02/24/2021 - 06:50

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:
  • Tracker tickets:
  • 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 17:07, 20. May 2022
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.