why isnt this script work 2

Started by coolguy11110101338 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why isnt this script work 2

https://imgur.com/a/a1MM2LD

For a boss entity, I'm trying to make unique dialogue for the first 3 times the boss is hurt. This procedure triggers when the entity is hurt. It seems to be only triggering the first check each time, saying only the first line of dialogue. My thought is that the "hittime" variable could be getting reset, but I don't see how.

Local variable is reset on…
Fri, 06/27/2025 - 16:41

Local variable is reset on every call. It only persists during procedure execution

Please see https://mcreator.net/wiki/variables

Since variables are fundamental, I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei