Started by
Cosmic_Mango33
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a squid drop a custom item when it is on fire and I have no clue where to start. I have created a loot table to make it drop both ink sacs and raw calamari, but I don't know how to make it drop cooked calamari if it is on fire when killed. I have already created the raw and cooked calamari items.
if entity dies and if entity is on fire drop cooked meat
I figured it out by myself. If anyone wants to know how I did it, I entered this code:
If you want to change it for your specific mob, change where it says "name": "more_meat:raw_calamari" to "name": "[name of mod or minecraft if it is a minecraft item]:[raw food name]" and then change the min and max to the minimum and maximum amount of the item you want it to drop. You would also have to change the ink sac part to whatever other item you wanted, or delete it if you only want it to drop the one item