make hostile entity that attacks us poisoned

Started by FLAMINGFIRE on

Topic category: Help with modding (Java Edition)

Last seen on 10:48, 2. May 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 18:01, 13. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.