function drop(drop: item, player: player, block: block):
chance of 2 / (level of fortune of {_player}'s tool + 2):
drop {_drop} at {_block}
else:
set {_count} to random integer between 2 and 1 + level of fortune of {_player}'s tool
drop {_count} of {_drop} at {_block}
on mine of stone:
chance of 5%:
drop(emerald, player, event-block)
chance of 3%:
drop(diamond, player, event-block)
chance of 1%:
drop(beacon, player, event-block)