Topic category: Help with MCreator software
I'm making a mod based entirely around enchantments, and one enchantment I'm wanting to make involves smelting the block broken as soon as it's destroyed (yeah, so original, right? Smelting Touch has never been thought of before). But the problem is I can't figure out how to make the vanilla blocks check that they've been broken with a tool that has the enchantment, and I can't figure out how to make a certain item from a loot table only appear when a procedure calls for it (just as an example). And I was wanting the same thing to apply to a sword enchantment that has a random chance to drop an emerald when the mob is defeated (similar to how Prospector increases emerald drops in Minecraft Dungeons). If possible, I'd also like these enchantments to be affected by fortune and looting respectively, though it's not a necessity or required in any way, it'd just be great to have.