Date: 2020/08/04 19:34:18 UTC-07:00
Type: Denizen Script
dimensional_gate:
type: item
material: magma_cream
display_name: Dimensional Gate
warpextract:
type: world
events:
on player swaps items offhand:dimensional_gate:
- if <player.world> == w@new_nether: teleport <player> <player.location.with_x[<player.location.x.mul[8]>].with_z[<player.location.z.mul[8]>].with_world[w@new]>
else if <player.world> == w@new: teleport <player> <player.location.with_x[<player.location.x.div[8]>].with_z[<player.location.z.div[8]>].with_world[w@new_nether]>
- determine cancelled