How do i change an item if its placed in water?

Started by RunbowFull on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i change an item if its placed in water?
Mon, 07/06/2020 - 09:19 (edited)

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
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you'll need to write code to…
Mon, 07/06/2020 - 10:21

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.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not sure how to do it with…
Thu, 07/09/2020 - 10:11

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