Salut, si j'ai bien compris, voilà le code que tu souhaitais :
on death:
victim is a player:
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:20,lvl:2}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:3}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:0,lvl:2}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:2,lvl:2}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:3}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:49,lvl:2}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:50,lvl:2}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:21,lvl:3}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:32,lvl:4}]}"
chance of 10%:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:2}]}"
#Remplacer le id:xx par l'ID de l'enchantement souhaité, et remplacer lvl:x par le niveau de l'enchantement souhaité.