[TUTORIAL] How to make custom entity/mob give potion effect when hitting the player (you)

Started by Bajgen on

Topic category: Help with modding (Java Edition)

Last seen on 19:58, 26. Aug 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to make custom entity/mob give potion effect when hitting the player (you)
Wed, 08/07/2024 - 21:14 (edited)

Put Event Trigger to Entity Attacked

if - is "Source Entity" (sub)type of "PUT YOUR CUSTOM ENTITY HERE"
do = Add potion "Effect" with level "your level of potion effect level" for "Tick(s)" ticks ambient "false" particles "false" to Event/target entity


(example) https://kappa.lol/IfKu3 if you want to see the picture of how i made it, will be easier to look at :)

if you have any question i might be able to help you 


Also make sure any trigger in your Living Entity to all be default, no extra procedures.

https://kappa.lol/1gorQ (pictures here of your living entity properties, you can add or remove stuff here if you want but keep it all blank if you just want standard Entity/Mob give "Effect(s)" when hitting Player or Entity vice versa.


I made this because there is currently almost no tutorial for it.

Edited by Bajgen on Wed, 08/07/2024 - 21:14