J'espère que sa marchera je ne suis pas sur
on damage:
if damage cause is attack:
if attacker is a player:
set {attacker.fight} to true
set {name.attacker} to attacker's name
wait 3 minutes #Le temps la c'est toi qui voit
set {attacker.fight} to false
delete {name.attacker}
on death of player:
if {attacker.fight} is true:
set death message to "&c%victim% &ba été tuer par &c%{name.attacker}%"
give 1 golden apple named "&6Golden Head" to {name.attacker}
send "&6Vous avez tué %victim%, pour vous récompenser, vous obtennez une Golden Head et des effets !" to attacker
on load:
register new shapeless recipe for Golden Apple named "&6Golden Head" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
on consume a golden apple:
if item is golden apple named "&6Golden Head":
add 3 to food bar of player
apply regeneration 2 to the player for 10 seconds
apply absorption 1 to the player for 90 seconds