Code:
on block break:
if "%region at event-block%" contains "mine":
set {_power::*} to line 1 of lore of player's tool split at "Explosive "
set {_power::2} to {_power::2} parsed as an integer
if player is holding unbreakable pickaxe with lore "&7Explosive %{_power::2}%":
chance of {_power::2}/100:
create fake explosion at event-location
loop all blocks in radius 1+({_power::2}/10) around event-location:
if "%region at loop-block%" contains "mine":
break loop-value naturally
set loop-block to air
I tried:
* removing the "line 1 of" in line 3 of the code to "to" thus saying: "set {_power::*} to the lore of player's tool split at "Explosive "". Didn't work.
* Trying a number range. Didn't work.
Any help would be appreciated.