command /coffre <text>:
trigger:
if arg 1 is "place":
set {_x} to random number between -3000 and 3000
set {_y} to random number between 100 and 200
set {_z} to random number between -3000 and 3000
set {coffre} to location at {_x}, {_y}, {_z}
set block at {coffre} to chest
broadcast "&8&l[&b&lChestRanDom&8&l] &bUn coffre est disponible dans le monde Survie en: &c%{_x}%&b, &c%{_y}%&b, &c%{_z}%&b."
chance of 100%:
set {_item.1} to 18 bottle o' enchanting
chance of 100%:
set {_item.2} to 12 diamond
chance of 30%:
set {_item.3} to 1 enchanted golden apple
chance of 100%:
set {_item.4} to 3 melon seeds
chance of 100%:
set {_item.5} to 8 slimeball
chance of 100%:
set {_item.6} to 1 villager spawn egg
launch ball firework colored red at {item} timed 1
add {_item.1} to inventory of block at {coffre}
add {_item.2} to inventory of block at {coffre}
add {_item.3} to inventory of block at {coffre}
add {_item.4} to inventory of block at {coffre}
add {_item.5} to inventory of block at {coffre}
add {_item.6} to inventory of block at {coffre}
clear {_item.1}
clear {_item.2}
clear {_item.3}
clear {_item.4}
clear {_item.5}
clear {_item.6}
wait 10 seconds
broadcast "&8&l[&b&lChestRanDom&8&l] &bRappel des coordonnées: &c%{_x}%&b, &c%{_y}%&b, &c%{_z}%&b."
wait 10 seconds
set block at {coffre} to air
on right click on chest:
if chest is {coffre}:
broadcast "&8&l[&b&lChestRanDom&8&l] &bFélicitation à &c%player%&b pour avoir trouvé le coffre !"
[code]
Mais j'aimerais que quand on clique droit sur le coffre un broadcast s'effectue voir le code.
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
Invité
J'ai modifier ce code pour qu'il soit en auto.
command /coffre <text>: trigger: if arg 1 is "place": set {_x} to random number between -3000 and 3000 set {_y} to random number between 100 and 200 set {_z} to random number between -3000 and 3000 set {coffre} to location at {_x}, {_y}, {_z} set block at {coffre} to chest broadcast "&8&l[&b&lChestRanDom&8&l] &bUn coffre est disponible dans le monde Survie en: &c%{_x}%&b, &c%{_y}%&b, &c%{_z}%&b." chance of 100%: set {_item.1} to 18 bottle o' enchanting chance of 100%: set {_item.2} to 12 diamond chance of 30%: set {_item.3} to 1 enchanted golden apple chance of 100%: set {_item.4} to 3 melon seeds chance of 100%: set {_item.5} to 8 slimeball chance of 100%: set {_item.6} to 1 villager spawn egg launch ball firework colored red at {item} timed 1 add {_item.1} to inventory of block at {coffre} add {_item.2} to inventory of block at {coffre} add {_item.3} to inventory of block at {coffre} add {_item.4} to inventory of block at {coffre} add {_item.5} to inventory of block at {coffre} add {_item.6} to inventory of block at {coffre} clear {_item.1} clear {_item.2} clear {_item.3} clear {_item.4} clear {_item.5} clear {_item.6} wait 10 seconds broadcast "&8&l[&b&lChestRanDom&8&l] &bRappel des coordonnées: &c%{_x}%&b, &c%{_y}%&b, &c%{_z}%&b." wait 10 seconds set block at {coffre} to air on right click on chest: if chest is {coffre}: broadcast "&8&l[&b&lChestRanDom&8&l] &bFélicitation à &c%player%&b pour avoir trouvé le coffre !" [code] Mais j'aimerais que quand on clique droit sur le coffre un broadcast s'effectue voir le code.3 réponses à cette question
Messages recommandés