Hey,
I'm creating a warzone mining skript for my server and I'm struggling a little bit with it. The bit I'm struggling with is when it comes to mining the stuff in the war zone, I'll show you my current skript and it is the on mine section of it. The event-block turns to bedrock, however, after the time period it doesn't turn into a block from the list.
Thanks, Jack
I'm creating a warzone mining skript for my server and I'm struggling a little bit with it. The bit I'm struggling with is when it comes to mining the stuff in the war zone, I'll show you my current skript and it is the on mine section of it. The event-block turns to bedrock, however, after the time period it doesn't turn into a block from the list.
code_language.skript:
on right click on purple wool:
cancel event
add location of event-block to {warzoneores::*}
send " &8(&6&l!&8) &7&oAdded &f%location of event-block% &7&oto the list &8(&6&l!&8) "
add coal ore named "&6&lCOAL ORE" to {_warzoneores::*}
add iron ore named "&6&lIRON ORE" to {_warzoneores::*}
add lapis ore named "&6&lLAPIS ORE" to {_warzoneores::*}
add redstone ore named "&6&lREDSTONE ORE" to {_warzoneores::*}
add gold ore named "&6&lGOLD ORE" to {_warzoneores::*}
add diamond ore named "&6&lDIAMOND ORE" to {_warzoneores::*}
add emerald ore named "&6&lEMERALD ORE" to {_warzoneores::*}
set {_warzone} to random element of {_warzoneores::*}
wait 5 tick
set event-block to {_warzone}
on mine:
if "%{warzoneores::*}%" contains "%location of event-block%":
cancel event
set event-block to bedrock
wait 5 seconds
set {_warzone} to random element of {_warzoneores::*}
set event-block to {_warzone}
Thanks, Jack