Variable Addition Doubling?

Started by ThePixelUnknown on

Topic category: Troubleshooting, bugs, and solutions

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Variable Addition Doubling?
Sun, 02/09/2020 - 02:42 (edited)

I have it in my mod where when a player collects item 1 (example name), a global variable increases by one, and when item 2 (another example name) is picked up, that same variable is increased by five. That SHOULD be happening. However, MCreator doubles the added values for some reason (item 1 adds two to the variable, and item 2 adds ten to the variable). I have to half the added amount so that it gets doubled into the correct value, but every now and then it still adds by the halved amount.

Edited by ThePixelUnknown on Sun, 02/09/2020 - 02:42
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Literally having the exact…
Thu, 04/23/2020 - 03:58

Literally having the exact same problem with a custom furnace. It smelts two at a time, and grants you two at a time. I have it set to one... but setting it to one half (0.5) does not seem to work either.