Skip to content

GateSpell

MomoPewpew edited this page Jul 28, 2023 · 10 revisions

Source Code

spell-class: ".instant.GateSpell"

Description:

Instant spell. Teleports you to the existing world and defined coordinates; both world and coordinates are case-sensitive. Use SPAWN instead of coordinates for the highest y-value safe location or EXACTSPAWN for the exact spawn coordinates, including y-value, or CURRENT.

Configuration Options:

Option Description Default Value
world Specify which world you would tp to. CURRENT
coordinates Coordinates to teleport to. SPAWN
str-gate-failed What to say when the teleport fails. Unable to teleport.

Examples:

Gate:
  spell-class: ".instant.GateSpell"
  name: Gate
  cast-item: book
  cooldown: 50
  cost:
    - mana 10
  str-cost: "10 mana."
  world: CURRENT
  coordinates: SPAWN
  str-gate-failed: "Unable to teleport."

Another Format for it is this just replace the x,y,z with actual numbers same for yaw and pitch, but they are optional, so you can remove them!.

Gate:
  spell-class: ".instant.GateSpell"
  name: Gate
  cast-item: book
  cooldown: 50
  cost:
    - mana 10
  str-cost: "10 mana."
  world: CURRENT
  coordinates: "x,y,z,yaw,pitch"
  str-gate-failed: "Unable to teleport."
Clone this wiki locally