I have now adapted the script to try and add a way to change fortune but again have seemed to run into indentation errors could someone please help
on mine:
cancel event
set event-block to air
if event-block is iron ore:
if player's held item is enchanted with fortune
give player (2 * (level of fortune of player's tool)) of iron ingot
else:
give player iron ingot
else if event-block is gold ore:
if player's held item is enchanted with fortune
give player (2 * (level of fortune of player's tool)) of gold ingot
else:
give player iron ingot
else:
if player's held item is enchanted with fortune
give player (2 * (level of fortune of player's tool)) of event-block
else:
give player event-block
thank you for fixing my initial script it worked very well