Aller au contenu
  • 0

Paste des schematics aléatoirement


Question

Posté(e)

Bonjour,je réalise actuellement un plugin UHCrun en skript et j'ai écrit un code pour faire spawn le nether aléatoirement.

J'aimerais que vois y jetiez un coup d'oeil afin de voir comment je pourrais l'améliorer et si je ne me suis pas trompé

 

Set {_x} to random number between -1000 and 1000

Set {_y} to random number between 0 and 75

Set {_z} to random number between -1000 and 1000

Set {nether} to location at {_x}, {_y}, {_z}

Paste schematic %nether1% at %nether%

 

Je vous remercie d'avance de l'attention que vous porterez à mon problème,et espère que vous pourrez m'aider.

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il me semble que
Paste schematic %nether1% at %nether%

n'est pas bon il faut mettre

Paste schematic "nom de ta schematic" at {nether}

sinon le reste me semble correct

Merci je n'avais pas vu ça, sinon comment je peux faire pour que plisieurs nethers spawnent aléatoirement comme ceci au lancement du plugin?

  • 0
Posté(e)
function location(x: number, y: number, z: number, w: text) :: location
   set {_w} to "%{_w}%" parsed as world
   set {_loc} to position {_x}, {_y}, {_z} of the world {_w}
   return {_loc}

# Pour ta schématique :

paste schematic "TaSchematic" at location(random number between -1000 and 1000, random number between 0 and 75, random number between -1000 and 1000, "TonMonde") 

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