This skript i made is for skyblock/acid server and used for the plugin called
CustomOreGen
I want to make a skript like this, if player break any ore and more than 25 blocks, the 26th block will set to bedrock. If the player trying to break that bedrock, it will send messages "Dont, AFK! Please wait 5 seconds.." then back random ore again.
here's my code
Help me please, thank you!
CustomOreGen
I want to make a skript like this, if player break any ore and more than 25 blocks, the 26th block will set to bedrock. If the player trying to break that bedrock, it will send messages "Dont, AFK! Please wait 5 seconds.." then back random ore again.
here's my code
Code:
options:
oreCounter : 0
on mine any ore:
add 1 to {oreCounter}
send "%player% Mine ore for %{ore Counter}%" to player
if player is in "world":
if {oreCounter} > 25:
cancel event
set block to bedrock
wait 1 second
on block damaging is bedrock:
# I am stuck here, I can't make the event condition
send "&cDon't AFK! &fplease stay for 5 second before you continue to mining"
wait 5 second
set block to coal ore
set {coalCounter} to 0
send "&aOk thanks for not AFK"
wait 1 tick
#drop 1 coal
add 2 to the spawned experience
Help me please, thank you!