Help with player taking damage while wearing armor

Started by GhostBee on

Topic category: Help with modding (Java Edition)

Last seen on 05:28, 4. Apr 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with player taking damage while wearing armor

I have a set of armor that I've made that I want to spawn a bee at the players location when the player is attacked. Using the procedure attached, the player constantly spawns a swarm of bees every tick. While it's funny, it's not what I want done and I'm hoping to find some help.Attempted Procedure

Last seen on 14:03, 18. Apr 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no need to link…
Sun, 07/24/2022 - 17:19

There is no need to link global trigger procedure to the armor. Check if the player as the armor and use the random generator to spawn the bee with probability. For example there is a 50% the armor spawns the bee when the player has been attacked