I'm trying to have a cooldown set through server restarts.
It should replace the block with the cracked stone bricks, then after the cooldown set it back to a stone block.
I set it to 3 seconds for testing, I want this to be about a 3 hour cooldown when it's working.
This is my code
Today is literally my first day to ever try skript and I have no coding knowledge prior to this.
I don't know why this doesn't work.
It sets it to cracked stone bricks, but doesn't change the block back to stone.
[doublepost=1545098831,1545020224][/doublepost]anyone?
It should replace the block with the cracked stone bricks, then after the cooldown set it back to a stone block.
I set it to 3 seconds for testing, I want this to be about a 3 hour cooldown when it's working.
This is my code
code_language.skript:
on mine:
if event-block is stone:
cancel event
set the block to CRACKED STONE BRICKS
set {cooldown::%event-location%} to now
if difference between {cooldown::%event-location%} and now is greater than 3 seconds:
set the block to STONE
cancel event
send "You cannot break this block"
Today is literally my first day to ever try skript and I have no coding knowledge prior to this.
I don't know why this doesn't work.
It sets it to cracked stone bricks, but doesn't change the block back to stone.
[doublepost=1545098831,1545020224][/doublepost]anyone?