Started by
FLAMINGFIRE
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.