Any of yall know how to make this skript better? I fear it will cause lag
if block is iron ore:
cancel drops of items
give player 1 iron ingot
on mine:
if block is gold ore:
cancel drops of items
give player 1 golden ingot
on mine:
if block is coal ore:
cancel drops of items
give player 1 coal
on mine:
if block is diamond ore:
cancel drops of items
give player 1 diamond
on mine:
if block is hay:
cancel drops of items
give player 1 hay
on mine:
if block is stone:
cancel drops of items
give player 1 cobblestone
on mine:
if block is snow block:
cancel drops of items
give player 1 snow block```