TELEPORTER
Posted: Sun Jul 29, 2012 5:36 pm
How do you make a random tele porter?
https://www.minerealm.com/community/
https://www.minerealm.com/community/viewtopic.php?f=9&t=9548
Joelove wrote:Nor will you be able to copy such coding on your own server if that is also what you meant...Why not? It isn't like Intelli has the random teleporter copyrighted or anything. I don't see why he couldn't use it on his own server if he wanted.
If PlayerCoordinates = *the tper coordinates* then
randomnumber (a)
randomnumber (b)
PlayerCoordinates=a, *highest y*, b
If PlayerCoordinates = *the tper coordinates* then
randomnumber (a)
randomnumber (b)
while (biome(a,b) == ocean) {
randomnumber(a)
randomnumber(b)
}
PlayerCoordinates=a, *highest y*, b
shaddowdemon wrote:Too bad it doesn't look more like this:IKR. Sigh. Of course, all the most awesome caves are under the ocean, so...
Code: Select allIf PlayerCoordinates = *the tper coordinates* then randomnumber (a) randomnumber (b) while (biome(a,b) == ocean) { randomnumber(a) randomnumber(b) } PlayerCoordinates=a, *highest y*, b