Bonsoir a tous ! Je travail sur un petit projet de "crates" et pour les random item j'ai utilisé le "set {random_coffre} to 1 and 5" enfin bref je vous laisse regardez , il me dit " can't understand this expression..."
on rightclick:
if name of tool of player is "&3Crates":
loop all items in the player's inventory:
if loop-item is Chest named "&3Crates":
wait 1 tick
remove 1 Chest named "&3Crates" from player's inventory
open chest with 3 rows named "&3Crates" to player
format slot 0 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 1 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 2 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 3 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 4 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 5 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 6 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 7 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 8 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 9 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 17 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 18 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 19 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 20 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 21 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 22 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 23 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 24 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 25 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 26 of player with 1 Red Stained Glass Pane named "" to be unstealable
format slot 13 of player with 1 Diamond Sword of sharpness 1 named "" to be unstealable
play raw sound "note.pling" at player with pitch 10 volume 10
wait 0.5 second
format slot 13 of player with 1 Diamond Pickaxe of efficiency 2 named "" to be unstealable
play raw sound "note.pling" at player with pitch 10 volume 10
wait 0.5 second
format slot 13 of player with 1 Melon Seeds named "Agriculteur" to be unstealable
play raw sound "note.pling" at player with pitch 10 volume 10
wait 0.5 second
format slot 13 of player with 15 Diamond named "" to be unstealable
play raw sound "note.pling" at player with pitch 10 volume 10
wait 0.5 second
format slot 13 of player with 15 Ender Pearl named "" to be unstealable
play raw sound "note.pling" at player with pitch 10 volume 10
wait 0.5 second
set {random_coffre} to random 1 and 5
if {random_coffre} is 1:
format slot 13 of player with 1 Diamond Sword of sharpness 1 named "" to be unstealable
play raw sound "random.levelup" at player with pitch 500 volume 50
wait 3 seconds
close inventory to player
if {random_coffre} is 2:
format slot 13 of player with 1 Diamond Pickaxe of efficiency 2 named "" to be unstealable
play raw sound "random.levelup" at player with pitch 500 volume 50
wait 3 seconds
close inventory to player
if {random_coffre} is 3:
format slot 13 of player with 1 Melon Seeds named "Agriculteur" to be unstealable
play raw sound "random.levelup" at player with pitch 500 volume 50
wait 3 seconds
close inventory to player
if {random_coffre} is 4:
format slot 13 of player with 15 Diamond named "" to be unstealable
play raw sound "random.levelup" at player with pitch 500 volume 50
wait 3 seconds
close inventory to player
if {random_coffre} is 5:
format slot 13 of player with 15 Ender Pearl named "" to be unstealable
play raw sound "random.levelup" at player with pitch 500 volume 50
wait 3 seconds
close inventory to player
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
AntaxFR
Bonsoir a tous ! Je travail sur un petit projet de "crates" et pour les random item j'ai utilisé le "set {random_coffre} to 1 and 5" enfin bref je vous laisse regardez , il me dit " can't understand this expression..."
16 réponses à cette question
Messages recommandés