Bonsoir, j'ai actuellement besoin de votre aide pour un skript mini-jeu que je suis entrain de développé actuellement. J'aimerai crée des plateforme aligné de couleur random
Voici une image d'exemple:
En carré de 4x4
J'ai actuellement réussi à faire sa
Grace à ce code:
command /spawncage:
trigger:
set {_X} to random integer between -300 to -153
set {_Y} to random integer between -300 to -153
loop all players:
set {_II} to the position at {_X}, 30, and {_Y} in the world "Developpement"
set {_III} to the position at {_X}, 30, and {_Y} in the world "Developpement"
loop 100 times:
set block at {_II} to red wool
if {_II}'s z-coordinate >= {_III}'s z-coordinate + 4:
if {_II}'s x-coordinate >= {_III}'s x-coordinate + 4:
if {_II}'s y-coordinate >= {_III}'s y-coordinate + 4:
exit loop
else:
add 1 to {_II}'s x-coordinate
set {_II}'s z-coordinate to {_III}'s z-coordinate
else:
add 1 to {_II}'s z-coordinate
set block at {_II} to red wool
set {_II} to the position at {_III}'s x-coordinate + 1, {_III}'s y-coordinate + 1, and {_III}'s z-coordinate + 1 in the world "Developpement"
set {_III} to the position at {_III}'s x-coordinate + 1, {_III}'s y-coordinate + 1, and {_III}'s z-coordinate + 1 in the world "Developpement"
loop 200 times:
set block at {_II} to air
if {_II}'s z-coordinate >= {_III}'s z-coordinate + 2:
if {_II}'s x-coordinate >= {_III}'s x-coordinate + 2:
if {_II}'s y-coordinate >= {_III}'s y-coordinate + 2:
exit loop
else:
set {_II}'s z-coordinate to {_III}'s z-coordinate
set {_II}'s x-coordinate to {_III}'s x-coordinate
add 1 to {_II}'s y-coordinate
else:
add 1 to {_II}'s x-coordinate
set {_II}'s z-coordinate to {_III}'s z-coordinate
else:
add 1 to {_II}'s z-coordinate
set block at {_II} to air
wait 5 tick
set {_II} to the position at {_III}'s x-coordinate + 1 , {_III}'s y-coordinate + 3, and {_III}'s z-coordinate + 1 in the world "Developpement"
Un grand merci à celui qui pourra m'aider !