Category: Mob behaviour
Suggested name: Breakout
Spigot/Skript Version: 2.6-beta2 / 3238-Spigot-6clclb2-9217b52 (MC: 1.17.1)
What I want:
a way to adjust the script below, so that it can detect when a mob has been spawned via a spawner it will on chance break blocks surrounding it that are not on a blacklist, - example below, that doesn't work, I tried using skellett but I believe I am misunderstanding how to have it recognise how a monster was spawned in.
((It may be written wrong, but I expect what i wrote to apply 10% chance to each block, please let me know if I have done that wrong, I am worried on 10% chance it will just set ALL blocks in 1 radius not iin {blacklist::*} to air. ))
((the reason I want it specifically to detect what spawned the monster in, is that I do not want monsters spawned by normal spawning from the server to break blocks around them))
When I'd like it by: No rush, it might not even be possible =]
Suggested name: Breakout
Spigot/Skript Version: 2.6-beta2 / 3238-Spigot-6clclb2-9217b52 (MC: 1.17.1)
What I want:
a way to adjust the script below, so that it can detect when a mob has been spawned via a spawner it will on chance break blocks surrounding it that are not on a blacklist, - example below, that doesn't work, I tried using skellett but I believe I am misunderstanding how to have it recognise how a monster was spawned in.
((It may be written wrong, but I expect what i wrote to apply 10% chance to each block, please let me know if I have done that wrong, I am worried on 10% chance it will just set ALL blocks in 1 radius not iin {blacklist::*} to air. ))
((the reason I want it specifically to detect what spawned the monster in, is that I do not want monsters spawned by normal spawning from the server to break blocks around them))
Code:
on script load:
add iron bar to {blacklist::*}
add diamond block to {blacklist::*}
if mob is from spawner:
loop every 10 seconds all blocks in radius 1 around loop-mob:
if loop-block is not {blacklist::*}:
chance 10%
set blocks at loop-block to air
broadcast "&aYour monsters are trying to break free!"
else:
stop
When I'd like it by: No rush, it might not even be possible =]
Last edited: