Variable Counting System Bug

Started by SpideyBren2000 on Mon, 04/04/2016 - 22:58

Topic category: Help with MCreator modding

Last seen on 23:39, 23. Apr 2017
Joined Nov 2015
User points:


  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Variable Counting System Bug
Mon, 04/04/2016 - 22:58

I am currently working on a mod where I want to store Items as variables.

So I have made a GUI and there is a button in the GUI that does this;

New Event

If PlayerHas "Item" in inventory

Then {New event}

Variable set "ItemCount" I + 1

Consume "Item"

When I try this the button does consume the item just fine.  But then... It adds hundreds of extra variables. Does anyone know how to fix this?