Bonjour, j'ai un skript de feast, mais j'ai un bug enfaite quand je met pas de permission pour utiliser la commande le skript marche mais quand je rajoute la permission le skript bug, sa me met des erreurs de TAB, j'ai même refait les tab et cela marche pas :cc Voila le code.
command /feast:
permission: feast.use
permission message: &fCette commande n'existe pas.
trigger:
set {_x} to random number between -20 and -46 # La coordonnée "x" est entre -1000 et 1000 # Coordonée x situé entre -20 et -46
set {_y} to random number between 4 and 4 # La coordonnée Y est entre 200 et 256 # Coordonée z situé entre 4 et 4
set {_z} to random number between 68 and 35 # La coordonnée Z est entre -1000 1000 # Coordonée x situé entre 68 et 35
set {_feast.loc} to location at {_x}, {_y}, {_z}
set {_nbr} to {@chrono}
loop {@chrono} times: # Chrono de spawn du feast (10 seconds)
broadcast "&7[&6&l!&7] &eLe feast spawn dans &c%{_nbr}% &esecondes"
add -1 to {_nbr}
wait 0.9 second
paste schematic "{@feast}" at {_feast.loc} # Nom de la schematic
loop blocks in radius 5 around {_feast.loc}: # On chercher les coffres autour du feast
if loop-block is a chest:
set {_nbr} to 1
loop 21 times:
add {_nbr} to {_randomchiffre::*}
add 1 to {_nbr}
chance of 85%: # 85 % de chance d'avoir de l'or
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5 # Chance d'avoir entre 1 et 5 l'ingot d'or
loop {_ra} times:
add 1 stick of knockback 2 to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 75%:
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5
loop {_ra} times:
add 3 lapis lazuli to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 65%:
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5
loop {_ra} times:
add 3 bottle o' enchanting to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 splash potion of healing to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 wooden sword of knockback 1 to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather cap to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather boots to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 10%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather pants to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
command /feast:
permission: feast.use
permission message: &fCette commande n'existe pas.
trigger:
set {_x} to random number between -20 and -46 # La coordonnée "x" est entre -1000 et 1000 # Coordonée x situé entre -20 et -46
set {_y} to random number between 4 and 4 # La coordonnée Y est entre 200 et 256 # Coordonée z situé entre 4 et 4
set {_z} to random number between 68 and 35 # La coordonnée Z est entre -1000 1000 # Coordonée x situé entre 68 et 35
set {_feast.loc} to location at {_x}, {_y}, {_z}
set {_nbr} to {@chrono}
loop {@chrono} times: # Chrono de spawn du feast (10 seconds)
broadcast "&7[&6&l!&7] &eLe feast spawn dans &c%{_nbr}% &esecondes"
add -1 to {_nbr}
wait 0.9 second
paste schematic "{@feast}" at {_feast.loc} # Nom de la schematic
loop blocks in radius 5 around {_feast.loc}: # On chercher les coffres autour du feast
if loop-block is a chest:
set {_nbr} to 1
loop 21 times:
add {_nbr} to {_randomchiffre::*}
add 1 to {_nbr}
chance of 85%: # 85 % de chance d'avoir de l'or
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5 # Chance d'avoir entre 1 et 5 l'ingot d'or
loop {_ra} times:
add 1 stick of knockback 2 to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 75%:
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5
loop {_ra} times:
add 3 lapis lazuli to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 65%:
set {_random} to a random element out of {_randomchiffre::*}
set {_ra} to a random integer between 1 and 5
loop {_ra} times:
add 3 bottle o' enchanting to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 splash potion of healing to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 wooden sword of knockback 1 to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather cap to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 20%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather boots to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
chance of 10%:
set {_random} to a random element out of {_randomchiffre::*}
add 1 leather pants to slot {_random} of block at loop-block
remove {_random} from {_randomchiffre::*}
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.
Question
Venoz
Bonjour, j'ai un skript de feast, mais j'ai un bug enfaite quand je met pas de permission pour utiliser la commande le skript marche mais quand je rajoute la permission le skript bug, sa me met des erreurs de TAB, j'ai même refait les tab et cela marche pas :cc Voila le code.
5 réponses à cette question
Messages recommandés