Aller au contenu

Scénario : Bookception


Messages recommandés

Posté(e)

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 :)

Posté(e)

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é.

  • J'aime 1
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.