Help with player taking damage while wearing armor

Started by GhostBee on Sun, 07/24/2022 - 10:26

Topic category: Help with modding (Java Edition)

Last seen on 07:16, 9. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with player taking damage while wearing armor
Sun, 07/24/2022 - 10:26

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 21:02, 30. Sep 2022
Joined Sep 2020
Points:

User statistics:

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