I'm trying to make it so the higher the fortune, the higher the the number, I have this setup but only works with fortune 1, no errors.
Code:
on break of coal block:
if player's tool is enchanted with fortune 1:
cancel event
set block to air
give player 64 coal
else if player's tool is enchanted with fortune 2:
cancel event
set block to air
give player 96 coal