#help

1 messages · Page 1 of 1 (latest)

brave talon
#

idk how to fix

sweet lintel
#
  1. code blocks
sweet lintel
brave talon
#
  standalone: true

command /swapsnowball:
  description: Give the player a Swap Snowball.
  permission: swapsnowball.use
  trigger:
    give player a snowball with lore "&7SwapSnowball"
    send "You received the Swap Snowball!"

on projectile hit:
  if projectile is a snowball:
    set {_thrower} to shooter of projectile
    set {_hitEntity} to entity hit by projectile
    if {_thrower} is a player and {_hitEntity} is an entity:
      if lore of projectile is "&7SwapSnowball":
        teleport {_thrower} to {_hitEntity}'s location
        teleport {_hitEntity} to {_thrower}'s location
        send "You swapped positions with another entity using the Swap Snowball!"
``


`
sweet lintel
#
  1. give your post a more descriptive name than "help"
brave talon
#

it swaps a player pos with with the other player

#

pos

sweet lintel