When player dies with certain armor piece on

Started by plybot on Sun, 08/14/2022 - 02:17

Topic category: Help with modding (Java Edition)

Last seen on 20:27, 17. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When player dies with certain armor piece on
Sun, 08/14/2022 - 02:17

So I'm trying to make a chestplate spawn 1 wither skeleton and 2 vex when you die (with the chestplate equipped), but when worn, the chestplate spawns the mobs every second. How can I fix this?

The procedure is on the chestplate.

code vvv

https://imgur.com/a/KNGCCtX

Last seen on 17:38, 2. Oct 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello! I think I know what…
Sun, 08/14/2022 - 12:55

Hello! I think I know what the issue is. You have put the procedure on armor tick update (or something like that) which makes it execute every second the chestplate is on the player.

 

To fix it, you need to do the following:

2 - Make a new procedure (which isn't correlated with the chestplate)

3 - Make the procedure look like this:

 

procedure

 

Hopefully that gets it fixed!

Last seen on 20:27, 17. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ohhhhh thank you very much :)
Mon, 08/15/2022 - 07:51

ohhhhh
thank you very much :)