Can someone explain this?

Started by buddy3315 on

Topic category: Help with MCreator software

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can someone explain this?

image

Why does a custom Variable 'Power" adds 3 instead of incrementing by 1?

The procedure is called by a Mob getting hurt call.

Anyone?

I can't see this being called 3 times every time a mob is hurt.

Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It might be because of the…
Sun, 05/20/2018 - 13:11

It might be because of the time the mob is hurting.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@ BrickMaster 5k. You could…
Sun, 05/20/2018 - 16:05

@ BrickMaster 5k.

You could be right, as I can't see it be anything else. I tried to look at the code but I could not see anything. I barely understand it.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm going to add a print…
Mon, 05/21/2018 - 19:47

I'm going to add a print function to see if this routine is being called more than once. As a test

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes the procedure is…
Mon, 05/21/2018 - 21:12

Yes the procedure is actually called 3 consecutive times. Is this normal? or a Bug?

Here we see I added a print function that puts to the console the Global variable 'Power'

Image 2

 

Here we see that print command executed 3X.

Image 1