Code:
#--- TELEPORT LOCATIONS ---#
options:
dungeon1: 0, 45, 0
dungeon2: 0, 100, 0
dungeon3: 0, 90, 0
dungeon4: 0, 30, 0
dungeon5: 0, 200, 0
on load:
add "{@dungeon1}" to {dungeonlist::*}
add "{@dungeon2}" to {dungeonlist::*}
add "{@dungeon3}" to {dungeonlist::*}
add "{@dungeon4}" to {dungeonlist::*}
add "{@dungeon5}" to {dungeonlist::*}
on rightclick on black concrete:
set {_dungeontp} to a random element out of {dungeonlist::*}
teleport player to location {_dungeontp} in world "dungeons"
I cannot seem to make this work, it says on teleport line that "Variables cannot be used here" but if I use teleport player to {_dungeontp} no errors pop, but teleportation doesn't happen.