Changing block loot tables
I'm trying to change the block that is dropped when special enchantments are on a tool. One example would be a "smelter" enchantment and then when you mine stone it would drop Smooth Stone instead. I found the original code for a stone block (left code) and tried to use the Fire Aspect enchantment on a pickaxe as a substitue for the special "smelter" enchantment. The code in the middle is my changed code where I tried to change the dropped block to Smooth_stone. The code on the right is an older version of a smelter enchantment I found online. Can anyone help me or point me in the right direction how to change the loot tables for different blocks?
Continue to help post