Bunked Posté(e) le 10 juillet 2016 Posté(e) le 10 juillet 2016 Bonjour à tous ! J'aurais besoin d'un scénario UHC du nom de Bookception. Le principe est que quand un joueur en tue un autre, il recevra un livre enchanté aléatoire. Exemple : X1 tue X2. X1 reçoit un livre Sharpness III. Merci d'avance ! Bye :)
Random Posté(e) le 10 juillet 2016 Posté(e) le 10 juillet 2016 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é. 1
Pheirnoz Posté(e) le 11 juillet 2016 Posté(e) le 11 juillet 2016 Et si je veux que ça drop un livre au sol enchanté ? Je fais comment ?
Random Posté(e) le 11 juillet 2016 Posté(e) le 11 juillet 2016 Tu mets l'action "drop ... at victim's location", mais faut que tu trouves comment mettre le nom/ID des enchantements spéciaux sur les livres
Pheirnoz Posté(e) le 11 juillet 2016 Posté(e) le 11 juillet 2016 C'est justement ça que je demande.. Si tu pouvais m'aider stp
Random Posté(e) le 11 juillet 2016 Posté(e) le 11 juillet 2016 Erf, je trouve rien... à part cette commande plus simpliste de give: /give <pseudo> enchantedbook 1 sharpness:3
Messages recommandés