How can I make the helmet drop out of the player's slot and another one appear in its place?

Started by Herobibes on

Topic category: Help with MCreator software

Last seen on 01:33, 22. Apr 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make the helmet drop out of the player's slot and another one appear in its place?

The title is self-explanatory

Last seen on 10:38, 22. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure that does…
Wed, 11/22/2023 - 20:16

Make a procedure that does the following:

  • Sets a local itemstack variable to the item in armor slot 0 of the player. (Using the 'get item in armor slot' function)
  • Set the item in armor slot 0 of the player to the new helmet item.
  • Use the 'spawn item/gem' function to spawn an item, using the item stack variable for the type.