Aller au contenu
  • 0

Remplissage de coffre


Question

Posté(e)

Skript 2.2

Spigot 1.8.8

 

Alors je ne comprend pas pourquoi cela ne marche pas sa devrais marcher pourtant sa marche chez vous ?

 

on mine of gold ore or emerald ore or diamond ore or coal ore or iron ore or stone:
   chance of 0%:
       stop
   chance of 100%:
       add 1 diamond to {random.item.list::*}
       add 5 tnt to {random.item.list::*}
       add 10 apple to {random.item.list::*}
       add 1 iron sword to {random.item.list::*}
       add 64 wood to {random.item.list::*}
       set event-block to chest
       set {_randomitem} to random element out of {random.item.list::*}
       add {_randomitem} to target block's inventory

2 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Tester et ça marche :

on load:
   add 1 diamond, 5 tnt, 10 apple, 1 iron sword and 64 wood to {random.item.list::*}

on mine of gold ore or emerald ore or diamond ore or coal ore or iron ore or stone:
   chance of 100%:
       set {_randomitem} to random element out of {random.item.list::*}
       set event-block to chest
       wait 1 tick
       add {_randomitem} to inventory of block at event-block

 

Je t'ai gardé la variable liste mais en vrai tu n'en a pas besoin :

random element out of 1, 2 and 3

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