code_language.skript:
if {_rev} is 72:
set block at {lnbp::%player%} to diamond block
set {bstate::%block at %{lnbp::%player%}%%} to true
on break:
if {bstate::%event-block%} is true:
strike lightning at {lnbp::%player%}
wait 3 ticks
kill the player
strike lightning at {lnbp::%player%}
wait 3 ticks
strike lightning at {lnbp::%player%}
wait 1 second
strike lightning at {lnbp::%player%}
wait 2 seconds
loop 10 times:
strike lightning at {lnbp::%player%}
wait 1 ticks
wait 2 second
create an explosion of force 12 at {lnbp::%player%}
This code should create a diamond block with an special paramter, if you break it you will die with all those lightnings and explosions, this might only ocurr when breaking a diamond block spawned by a random probability when breaking a noteblock. The problem is that the diamond block that the noteblock creates don't do those effects, please help!