Started by
its_spree2
on
Topic category: Help with Minecraft modding (Java Edition)
Hey I was wondering if there is a way to make a procedure where when my custom potion effect is applied that the certain player/entity is unable to deal any kind of damage for a certain period of time.
Any help would be appreciated.
In the advanced section, there is a block called "cancel event that triggered global trigger". then set the global trigger to "before entity is hurt" After that, type in "sub" in the search bar (next to procedure templates) and click on the first one you see. replace the event/target entity component from that procedure block with the source entity component (located in the Minecraft components section). that should do the trick.