Started by
VictoryII
on
Topic category: Help with Minecraft modding (Java Edition)
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
Fixed Links
MCreator: https://cdn.discordapp.com/attachments/917149542569349120/922440057581883412/Screenshot_50.png
Ingame Footage: https://www.youtube.com/watch?v=-cItusqkV2w&ab_channel=Pluto
Can you send us a screenshot of your procedure?
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
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!