Absorption Projectile

Started by KingLasagna on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Absorption Projectile

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

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure for beforeā€¦
Mon, 11/21/2022 - 00:16

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.