Started by
RunbowFull
on
Topic category: Help with Minecraft modding (Java Edition)
I'd like to have a crafting recipe for my ingot which would require the user to throw two specified items in a source block of water which would result in the ingot being created (and being spawned where the water was) also the source block of water would disappear afterwards. I'm wondering how would I do this?
Edited by RunbowFull on Mon, 07/06/2020 - 09:19
you'll need to write code to do this because when you throw the item it becomes an entity out of mcreator and your control.
not sure how to do it with java but with commands you would do:
execute as @e[type = item, name = "Iron Ingot"] at @s if block ~ ~ ~ water run summon item ~ ~ ~ {Item: {id:"gold_ingot",Count:1b}}
execute as @e[type = item, name = "Iron Ingot"] at @s if block ~ ~ ~ water run kill @s