Absorption Projectile

Started by KingLasagna on

Topic category: Help with modding (Java Edition)

Last seen on 13:05, 22. Jan 2023
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

Last seen on 10:38, 22. Apr 2024
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.