Add to Inventory procedure block only works in creative.

Started by cristianzeta on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 17:56, 26. Feb 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add to Inventory procedure block only works in creative.

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

Last seen on 17:56, 26. Feb 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update: The only way ti fix…
Sat, 02/03/2024 - 12:34

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