Replace item in inventory

Started by myxical on

Topic category: Feature requests and ideas for MCreator

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replace item in inventory
Fri, 05/21/2021 - 16:29 (edited)

You can set item in mainhand/offhand, you can add and remove item in inventory, but you cannot replace item in inventory. It would be like set item in mainhand to something, but instead of mainhand it's the whole inventory. Also, you can't keep NBT. It would look like this:

Replace every [item] to [same amount of OR any number] [item] in [entity] inventory keep NBT: [true/false]

You might think to yourself: "Can't you just remove and add an item?" - The answer is yes, but it will appear in the first slot it sees, not the slot it was in. That's kind of annoying, if you ask me. Thiw would be useful for items that decay over time in your inventory, or you have limited time to craft something before it disappears.

I would be glad if this was added in MCreator... unless it's already implemented and I'm blind. Also add "Get slot number of [Item] in inventory"

Edited by myxical on Fri, 05/21/2021 - 16:29
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is my exact issue right…
Sat, 07/20/2024 - 07:40

This is my exact issue right now

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's possible!I can add it…
Tue, 07/30/2024 - 16:43

It's possible!

I can add it to my Plugin "Forge Plus" I develop.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you make it compatible…
Sat, 08/03/2024 - 23:06

Could you make it compatible with MCreator 2022.3?

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sadly the Plugin Forge Plus…
Mon, 08/05/2024 - 17:15

Sadly the Plugin Forge Plus is currently only for 2024.1.

 

Can I know which Minecraft Version are you using?