Started by
Alex Khang
on
Topic category: Help with Minecraft modding (Java Edition)
I want to know how to make a mob that when attacks the player it gives a potion effect. I already tried to search forum topics but it didn't help. Can someone help me?
And by the way, sorry for bad English. :(
I didn't see anything.
I didn't see the picture.
Is the entity a melee (makes contact with the player) or ranged entity?
Melee because it is a spider.
Select trigger "When entity is hurt" and do something like this:
I hope i can help :)
It crash the game when I hit the entity...
Also I want the entity gives you the effect when it attacks the player, not by hurting it. Thanks anyways!
If you want to make the player get an effect, replace source entity with event target entity and make this block:
IF: Is (Source Entity) sub-type of (Custom Mob)
Then:
i have the same problem. i am making a mod that adds a new bee variant, and i want to make it so when IT attacks SOMETHING, it gives THAT TARGET a custom effect