• Es freut uns dass du in unser Minecraft Forum gefunden hast. Hier kannst du mit über 130.000 Minecraft Fans über Minecraft diskutieren, Fragen stellen und anderen helfen. In diesem Minecraft Forum kannst du auch nach Teammitgliedern, Administratoren, Moderatoren , Supporter oder Sponsoren suchen. Gerne kannst du im Offtopic Bereich unseres Minecraft Forums auch über nicht Minecraft spezifische Themen reden. Wir hoffen dir gefällt es in unserem Minecraft Forum!

Random Teleportation

Status
Für weitere Antworten geschlossen.

HeadiPlays

Redstoneengineer
Registriert
8 Februar 2014
Beiträge
45
Diamanten
0
Minecraft
HeadShotNoob
HeyHo,

ich mal wieder :D

Wie kann ich alle Spieler zu verschiedenen Locations teleportieren? (Die Locations sind in einer Config festgeleget!)

So ist meine Config aufgebaut:
Code:
location:
  spawn:
    '1':
      world: wasteland
      x: 5.52826882940651
      y: 20.0
      z: -1134.493281844022
      yaw: -85.34915161132812
      pitch: 4.950007915496826
    '2':
      world: wasteland
      x: 32.76718623052592
      y: 13.0
      z: -1160.2900107212106
      yaw: -42.89923095703125
      pitch: -2.5500481128692627
    '3':
      world: wasteland
      x: 62.35631748548271
      y: 18.0
      z: -1149.699999988079
      yaw: -9.749197006225586
      pitch: 24.899906158447266
    '4':
      world: wasteland
      x: 79.30809430472416
      y: 13.0
      z: -1131.701203481405
      yaw: 32.550811767578125
      pitch: 14.249859809875488
    '5':
      world: wasteland
      x: 59.558197493173225
      y: 15.0
      z: -1109.4514447864392
      yaw: 40.9507942199707
      pitch: 26.24983787536621
    '6':
      world: wasteland
      x: 39.30000001192094
      y: 21.0
      z: -1118.2875776921262
      yaw: 159.60092163085938
      pitch: 12.449831008911133
    '7':
      world: wasteland
      x: 18.699999988079057
      y: 20.0
      z: -1135.300000011921
      yaw: 119.25086212158203
      pitch: 43.34981918334961
    '8':
      world: wasteland
      x: -8.69999998807906
      y: 23.0
      z: -1126.300000011921
      yaw: -127.6490707397461
      pitch: 8.549798011779785
    '9':
      world: wasteland
      x: 7.520140218333077
      y: 21.0
      z: -1087.3710384180602
      yaw: -85.049072265625
      pitch: 12.89976692199707
    '10':
      world: wasteland
      x: 52.42646562939855
      y: 17.0
      z: -1085.482800519843
      yaw: -109.3492431640625
      pitch: 44.24970245361328
    '11':
      world: wasteland
      x: 70.67242794412839
      y: 12.0
      z: -1089.345227790902
      yaw: -99.14920806884766
      pitch: 11.24970817565918
    '12':
      world: wasteland
      x: 78.30000001192094
      y: 12.0
      z: -1105.699999988079
      yaw: -262.0491027832031
      pitch: 11.699707984924316

Ich freue mich schon auf hilfe :D
 

Paulomart

Schafhirte
Registriert
3 November 2013
Beiträge
147
Diamanten
0
Minecraft
Paulomart

Nein, weil:

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. The general contract of nextInt is that one int value in the specified range is pseudorandomly generated and returned. All n possible int values are produced with (approximately) equal probability.

Es ist exklusive, nextInt macht schon -1.
 
Status
Für weitere Antworten geschlossen.
Oben