Variables not working well with math blocks?

Started by The Windows Ex… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Variables not working well with math blocks?

One of the biggest road blocks for my latest mod, "Windows's The Quintessence", has been with the reputation system. For this system I need it so that based on what mob has been attacked by the player the "reputation" changes. For example, if the player attacks a zombie the reputation should go up by 1. I have tried many ways of adding 1 to the variable when the player attacks said mob. However nothing seems to work. In the image you can see things I have tried. The if that comes before the first elseif is my latest attempt. 

 

Incase image doesn't load