Boss Attack Bug

Started by VictoryII on

Topic category: Help with modding (Java Edition)

Last seen on 23:57, 20. Dec 2021
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Boss Attack Bug

So I'm working on a boss and I have a problem my boss attacks are set to when the boss is attacked by the player/an entity it's supposed to roll a table of events striking a lightning bolt, an explosion, or summon minions. However when I attack it it bugs out and runs all three infinitely repeated in game. Idk how to fix this, any advice?

MCreator: file:///C:/Users/tjcro/Pictures/Screenshots/Screenshot%20(50).png

Ingame Footage: file:///C:/Users/tjcro/Videos/Captures/Minecraft_%201.16.5%20-%20Singleplayer%202021-12-20%2004-40-05.mp4

Last seen on 11:43, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you send us a screenshot…
Mon, 12/20/2021 - 20:18

Can you send us a screenshot of your procedure?

Last seen on 09:42, 5. Sep 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You want to use the "Wait"…
Mon, 12/20/2021 - 20:40

You want to use the "Wait" block. Not the "repeat" block. Also, I would not fire this off from the update tick.

 

Example

Wait 20 ticks

Lightning

Wait 100 ticks

spawn

wait 120 ticks

tnt

 

Chew

 

Last seen on 23:06, 9. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this thread is 3…
Thu, 04/04/2024 - 23:28

I know this thread is 3 years old but I'm having the same issue. This code also is triggered when the boss is attacked. It just spams attacks when I hit the boss. 

 

if [random 0,1] > [0 max 0.5]

strike lightning

strike lightning

else if [random 0,1] > [0.5 max 0.8]

spawn entity

else if [random 0,1] > [0.8]

spawn entity

 

I do not know what is happening and I would appreciate the help. Thanks!