Trying to make a simple skript that replaces blocks that are broken after a given amount of time. Yah, that's it, but you won't believe how much pain it has caused me. When a player breaks a block, I can't cancel the event after 24 hours, so "cancel event" wont work. The only other way is to set a variable to the block type and location, and then have it refer to those variables after 24 hours to put blocks there. But ive tried TONS of ways of doing this, and can't get anything that works. The following Skript doesnt have any errors, but doesn't work. The block does not get replaced. Any help appreciated!!
Code:
on break:
wait 3 seconds
set {_location} to location of event-block
set {_block} to type of event-block
set block at location at {_location} to {_block}