Started by
KingLasagna
on
Topic category: Help with Minecraft modding (Java Edition)
Hey y'all, new here kinda....
I made this account to actually ask this question,
i wanna make a projectile that when it hits a entity, it deals for example 3 hearts of damage and the player gets 3 hearts of health
Make a procedure for before an entity is hurt. Check if the entity is a player, and if the immedieate source entity is the custom projectile. Then, wait the desired amount of ticks, and either give the player absorbtion 0, or set the player's health to their current health, + the desired amount of hearts.