Bon au final en continuant mes recherches de mes côtés j'ai réussi à faire ça :
on death:
victim is a player:
set {_random} to a random integer from 0 to 100
if {_random} is between 0 and 9:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:20,lvl:2}]}"
if {_random} is between 10 and 20:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:3}]}"
if {_random} is between 21 and 30:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:0,lvl:2}]}"
if {_random} is between 31 and 40:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:2,lvl:2}]}"
if {_random} is between 41 and 50:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:3}]}"
if {_random} is between 51 and 60:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:49,lvl:2}]}"
if {_random} is between 61 and 70:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:21,lvl:3}]}"
if {_random} is between 71 and 80:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:32,lvl:4}]}"
if {_random} is between 81 and 90:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:2}]}"
if {_random} is between 91 and 100:
execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:50,lvl:1}]}"
Ca fonctionne parfaitement, je tenais à vous le mettre si jamais ça vous intéressait. :)