I need some assistance with adding blocks to a variable when you break them. After you break them the command should set them back to the original ore but I can't figure it out and there is no threads on it.
Code:
on break:
if gamemode of player is survival:
if event-block is diamond ore:
add location of event-block to {diamondOre::%location of event-block%}
set event-block to bedrock
command /resetores:
permission: admin.reset.ores
trigger:
loop {diamondOre::*}:
set block at location at {diamondOre::%loop-index%} to diamond ore
send "{@prefix} Successfully reset all mines!"
Last edited: