Variable not changing?

Started by SuperGamer141 on Tue, 06/08/2021 - 21:36

Topic category: Help with modding (Java Edition)

Last seen on 17:57, 17. Jul 2021
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Variable not changing?
Tue, 06/08/2021 - 21:37 (edited)

So basically, I'm trying to make a counter on a sword that increases whenever you hit a mob and adds the number of digits + 5 of sharpness onto the item, however, the variable never actually changesĀ (when I check using Send Message, it is always 0.0, or whatever I change the default value to).

https://imgur.com/a/9D5eLIj

Edited by SuperGamer141 on Tue, 06/08/2021 - 21:37