Started by Ping Pong on Mon, 06/29/2020 - 14:04 Topic category: Help with Minecraft modding (Java Edition) How can I make mob give me potion effect when attack? Jump to top when the mob attacks you or when you attack the mob? Jump to top Permalink Log in or register to post comments when the mob attacks you. Jump to top Permalink Log in or register to post comments create a new procedure and use global trigger "Entity attacked". check the source entity if it is of subtype {your mob}, then add potion effect to target entity Jump to top Permalink Log in or register to post comments But I need to lock my code. Jump to top Permalink Log in or register to post comments no you don't Jump to top Permalink Log in or register to post comments But I cannot choose the mob. Jump to top Permalink Log in or register to post comments what do you mean you cant Change the mob ? If: Is Entity (Sub)type of: [Special: [Your Entity]] Do: Give target Entity potion effect Level: [x] Durability: [x] Jump to top Permalink Log in or register to post comments I said do I need to go in the code or I just open something Jump to top Permalink Log in or register to post comments Jump to top Permalink Log in or register to post comments Thank Jump to top Permalink Log in or register to post comments Wow thanks @ahznb hopefully this other way dose not crash my game lol Jump to top Permalink Log in or register to post comments
when the mob attacks you or when you attack the mob? Jump to top Permalink Log in or register to post comments
create a new procedure and use global trigger "Entity attacked". check the source entity if it is of subtype {your mob}, then add potion effect to target entity Jump to top Permalink Log in or register to post comments
what do you mean you cant Change the mob ? If: Is Entity (Sub)type of: [Special: [Your Entity]] Do: Give target Entity potion effect Level: [x] Durability: [x] Jump to top Permalink Log in or register to post comments
I said do I need to go in the code or I just open something Jump to top Permalink Log in or register to post comments
Wow thanks @ahznb hopefully this other way dose not crash my game lol Jump to top Permalink Log in or register to post comments
when the mob attacks you or when you attack the mob?
when the mob attacks you.
create a new procedure and use global trigger "Entity attacked". check the source entity if it is of subtype {your mob}, then add potion effect to target entity
But I need to lock my code.
no you don't
But I cannot choose the mob.
what do you mean you cant Change the mob ?
If:
Is Entity (Sub)type of: [Special: [Your Entity]]
Do:
Give target Entity potion effect Level: [x] Durability: [x]
I said do I need to go in the code or I just open something
Thank
Wow thanks @ahznb hopefully this other way dose not crash my game lol