Bonjour j'ai fait une script qui permet de se tp aléatoirement, mais le seul problème est que le tp est trop aléatoire, se qui fait que l'on peut se tp dans des block. Je voudrait que le tp ne sois pas sous terre que en surface.
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
MrBn100ful
Bonjour j'ai fait une script qui permet de se tp aléatoirement, mais le seul problème est que le tp est trop aléatoire, se qui fait que l'on peut se tp dans des block. Je voudrait que le tp ne sois pas sous terre que en surface.
voici mon script:
[spoiler=script]command /94rtp450 [<player=%player%>]:
trigger:
set {_currentlocation} to location of arg-player
wait 1 tick
set {_relative.x} to rounded down the x coord of {_currentlocation}
wait 1 tick
set {_random.x} to a random integer between -20 and 20
wait 1 tick
set {_relative.y} to rounded down the y coord of {_currentlocation}
wait 1 tick
set {_random.y} to 300
wait 1 tick
set {_relative.z} to rounded down the z coord of {_currentlocation}
wait 1 tick
set {_random.z} to a random integer between -20 and 20
wait 1 tick
set {_destinationx} to the block {_random.x} west of the block at {_currentlocation}
wait 1 tick
set {_destinationy} to the block {_random.z} north of the block at {_destinationx}
wait 1 tick
set {_destination} to the block 100 below the block at {_destinationy}
wait 1 tick
set {god.enabled.%player%} to 1
loop blocks above {_destination}:
loop-block is air:
set {_num} to loop-block
teleport player above {_num}
set {_num} to loop-block
apply Nausea 2 to the entity for 3 seconds
set {_destination} to {_currentlocation}
wait 1 seconds
set {god.enabled.%player%} to 0
stop
merci :)
3 réponses à cette question
Messages recommandés