Removing items after the player uses it.

Started by ItzYaBoiMyth on Wed, 04/01/2020 - 11:36

Topic category: Help with MCreator software

Last seen on 06:07, 14. Jun 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Removing items after the player uses it.
Wed, 04/01/2020 - 11:36

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?

Last seen on 15:00, 17. Jun 2021
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 06:07, 14. Jun 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 06:07, 14. Jun 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?

Last seen on 02:54, 19. Jun 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 06:07, 14. Jun 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.