i have this code right now
add gold to {freeitems::*}
add diamond to {freeitems::*}
add diamond sword of sharpness 10 to {freeitems::*}
add iron axe of efficiency 4 and fortune 2 to {freeitems::*}
add iron picaxe of efficiency 20 and unbreaking 10 named "OP Pic" to {freeitems::*}
add diamond sword of sharpness 12 and smite 5 and mending 100 and looting 20 and fire aspect 10 and unbreaking 100 and bane of arthropods 5 named "Extra OP Sword" to {freeitems::*}
on mine:
if block is coal ore:
drop a random element of {freeitems::*} at event-block
but it says i have to put all code in triggers
add gold to {freeitems::*}
add diamond to {freeitems::*}
add diamond sword of sharpness 10 to {freeitems::*}
add iron axe of efficiency 4 and fortune 2 to {freeitems::*}
add iron picaxe of efficiency 20 and unbreaking 10 named "OP Pic" to {freeitems::*}
add diamond sword of sharpness 12 and smite 5 and mending 100 and looting 20 and fire aspect 10 and unbreaking 100 and bane of arthropods 5 named "Extra OP Sword" to {freeitems::*}
on mine:
if block is coal ore:
drop a random element of {freeitems::*} at event-block
but it says i have to put all code in triggers