Removing items after the player uses it.

Started by ItzYaBoiMyth on

Topic category: Help with MCreator software

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removing items after the player uses it.

I have code running to make an Iron Golem Spawn egg, the code for the item will spawn the iron golem, but wont remove the item after it has been used. How would I do this?

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
At the end of the procedure,…
Wed, 04/01/2020 - 11:43

At the end of the procedure, after iron golem spawning, add a procedure block that removes 1 Iron golem egg from the player's inventory.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you! Only issue im…
Wed, 04/01/2020 - 11:52

Thank you!

Only issue im having now, is that the code has dependencies, and im not quite sure how those work.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What i said make 0 sense,…
Wed, 04/01/2020 - 12:01

What i said make 0 sense, what I mean to say is how would I add the dependencies it needs to function?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you don't have to worry…
Wed, 04/01/2020 - 13:07

you don't have to worry about it. MCreator works that for you. just choose your procedure in the trigger you want(which in this case is "on right click on block") in the item creation page

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea I found that out, when I…
Wed, 04/01/2020 - 13:43

Yea I found that out, when I made a whole new procedure. Turns out using templates can actually break that feature.

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry can I make condition…
Tue, 07/25/2023 - 21:24

sorry

can I make condition about block? For example, I want to open a GUI if block on right click is an enderchest?