make hostile entity that attacks us poisoned

Started by FLAMINGFIRE on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Apr 2024
Points:
107

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
make hostile entity that attacks us poisoned

i wanted to make an armor. when you wear the full set, any enemy that attacks us will be inflicted with a potion effect. please include the code' s image if possible.

Active 1 day ago
Joined May 2022
Points:
1254

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
Make a new procedure with…
Sat, 04/06/2024 - 13:25

Make a new procedure with the global trigger 'entity attacked.' Then, add an if bracket. IF the event/target entity has your custom armor in any of their armor slots, add a potion effect to the source entity.

This can be done using the 'item in armor slot,' and 'add potion effect' functions.