Give the initial items several times to the same player 1.15.2
BigShadow155 opened this issue ยท 3 comments
Forge version 31.1.37
The mod works and gives us the item when a new player enters but from time to time it gives the initial items back to a player who has already given them. What can I do to prevent this from happening?
This is the syntax I have in the .zs file:
#mods.initialinventory.InvHandler.addStartingItem(String key, IItemStack item, Optional int index);
mods.initialinventory.InvHandler.addStartingItem("pan", item:minecraft:bread * 5);
mods.initialinventory.InvHandler.addStartingItem("espada", item:minecraft:iron_sword);
mods.initialinventory.InvHandler.addStartingItem("pico", item:minecraft:iron_pickaxe);
mods.initialinventory.InvHandler.addStartingItem("casco hierro", item:minecraft:iron_helmet);
mods.initialinventory.InvHandler.addStartingItem("pechera hierro", item:minecraft:iron_chestplate);
mods.initialinventory.InvHandler.addStartingItem("grebas hierro", item:minecraft:iron_leggings);
mods.initialinventory.InvHandler.addStartingItem("botas hierro", item:minecraft:iron_boots);
mods.initialinventory.InvHandler.addStartingItem("moneda", item:simplecoins:coin * 5);
What do you mean by "from time to time"
It should only give items multiple times if the key had changed, or if the payers nbt is reset
I mean, sometimes it gives the items back to the players and other times he doesn't. And i dont know why.
I have a server shutdown system for scheduled maintenance every day. Is it possible that's why?
What do you mean by " players nbt is reset".