Started by
sagakan912
on
Topic category: Help with Minecraft modding (Java Edition)
I'va been working on a mod, where when players enters specific dimension, it's inventory is cleared, and I put new items in there. But once player gets out of this dimension all items are returned to player's inventory
I am new to mcreator so I don't know how to create code that would do this, and I would appreciate any help!
It's possible with a global variable that register each item of the inventory.
I have not used MCreator for a long time so I don't remember if you can create a list of variable or something like that, but if it's possible you can manage with a loop that check each slot of the inventory and add the item in a list.