I solved the fixed damage method in the thread below.
https://forums.skunity.com/threads/how-to-apply-fixed-damage.15305/
However, I cannot display the kill log. Specifically, the player who fired will be none.
This is Source.
The player who fired cannot be used in On Death, what should I do?
P.S: Skript 2.6.1 and Minecraft JE 1.17.
https://forums.skunity.com/threads/how-to-apply-fixed-damage.15305/
However, I cannot display the kill log. Specifically, the player who fired will be none.
This is Source.
Code:
on Death:
if victim is player:
broadcast "[&4KILL&f] %shooter% &c>&4>&f %victim%"
on projectile hit:
projectile is arrow
cancel event
damage victim by 1 heart
if victim is player:
broadcast "[&eHIT&f] %shooter% &c>&4>&f %victim%"
play "BLOCK_NOTE_BLOCK_BELL" to all players at volume 1
on Damage:
if damage cause is entity:
cancel event
P.S: Skript 2.6.1 and Minecraft JE 1.17.