Salut,
C'est simple, tu dois créer un scoreboard
Code:
/scoreboard objectives add WardenKill minecraft.killed:minecraft.warden
Ensuite, dans un repeat command block always active tu test si un joueur à au moins 1 de score + le give
Code:
/execute as @a[scores={WardenKill=1..}] run give @s minecraft:netherite_ingot
Puis dans un chain command block conditional always active en sortie du command block bleu, un reset du score
Code:
/scoreboard players set @a WardenKill 0