Started by
Ocey
on
Topic category: Help with Minecraft modding (Java Edition)
So the concept is to smelt an iron ingot to get a hot iron ingot and craft that into a pickaxe which would make the hot iron pickaxe but im trying to make it so that when you mine gold or iron ore that instead of dropping the ore it drops the gold or iron ingot but i cant figure out how to make it do that. Anyone know how?
I have similar problem called burning carbon tools, which act like a furnace, so wood drops coal, animals drop cooked meat instead of raw etc. I know that it's just another question, but I think it's better to add it here instead of making own topic.
Just do this but just before, don't forget to check if the block at x y z is iron/gold ore and if the tool in player's hand is the pickaxe
OK, thank you very much! Is there any way to do it with mob drops?
I don't think so, I never tried, and I don't see how to do it so.... good luck!
It is possible with mobs as well. You can change their vanilla loot table, or write a procedure that detects which entity the player hits using the "IsEntity(Sub)Type of:" block, and then spawning a gem at entity x y z.
Alternatively, you could make a modded loot table and make the loot table run when you kill the mob.
Thank you!