options:
item: end stone named "&6Stoniarka"
command /stoniarka:
trigger:
add {@item} to player
on place:
if name of player's tool is name of {@item}:
set block above event-block to stone
add (location of event-block) to {Stoniarki::*}
on break:
if {Stoniarki::*} contain (location of block under event-block):
if block under event-block is end stone:
wait 1 second
chance of 10%:
set block at event-block to any ore
else:
set block at event-block to stone
if event-block is end stone:
if {Stoniarki::*} contain (location of event-block):
cancel event
set event-block to air
drop {@item} at event-block