How do I make an item be replaced with another item?

Started by Rattiwrapper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an item be replaced with another item?

I've made a clone of the Nether (which has a different name to the one in vanilla), so that I can add biomes, but I also made a copy of Flint And Steel (it also has a different name), and I'm trying to make a procedure that, when a player gets a vanilla Flint And Steel, it replaces it with the modded Flint And Steel, but it's not working, can someone help me please?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On player tick update If Has…
Mon, 01/04/2021 - 12:19

On player tick update

If Has Event/target entity in inventory (flint and steel)

do Remove 1 (Flint and steel) from Event/target entity main inventory

     Add 1 (your item) to Event/target entity inventory.