Started by
coolguy11110101338
on
Topic category: Help with Minecraft modding (Java Edition)
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 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
thanks!