Paste #73873: Dimensional Gate

Date: 2020/08/04 19:34:18 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


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