Started by
cristianzeta
on
Topic category: Troubleshooting, bugs, and solutions
I made a simple function:
When right click using a specific item, that item gets removed from your inventory and another one is added.
Everything works fine in creative mode, but if I switch to survival, the item will just disappear completely and nothing will be added to the inventory. Sometimes, it seems the game actually adds that other item to the inventory for a second, but it gets removed instantly.
I didn't add any condition, it always worked fine and I can't figure out what the problem is. I did the same with other items and they all have this issue.
Mcreator 2023.1
Update: The only way ti fix this is by using "set item in main hand" instead of "remove" and "add". The item will get replaced without further instructions