Hi,
I just don't know why, but when I add an item to the player with "Add item to provided player inventory" procedure block, the game clear every items when the player quit the game (the world) and return in this world. The game clear also the vanilla item.
I record what is happen with an armor of my mod.
So if you can fix this bug for the next update it will be very very nice for my new mod. :)
Issue comments
Yeah, so what's happening is I have a procedure for a set bonus and what im trying to do is that when you have the whole set of armor on, it sends an item to your inventory, but im guessing that it sends infinite amounts of that item to my inventory because I still have the armor on so the code repeats itself, do you know any way to do what im trying to do though or is it not possible?
You can use entity NBT tag to have a "flag" that indicated if item has already been added to the inventory or not. Set the logic flag to say true after you add item to inventory and only add item if the flag is not true yet.
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
Hey Klemen, Is there a way to set an NBT tag for a potion effect, i want when i put on a set of armor i get a health boost, everything works fine except when i load into the game every time i heal it instantly destroys the heart that got healed. the extra hearts show up but are empty because every time they get full it empty's them again
You are using buttons to give items to the player, but buttons have this bug: https://mcreator.net/tracker/issue/50752
We do plan to fix this.