#What is wrong with this??

1 messages · Page 1 of 1 (latest)

hasty trellis
#
  trigger:
    if player is in region "spawn":
      teleport player to {spawn}
    else:
      set {_cooldown} to 5
      set {_loc} to player's location
      while {_cooldown} > 0:
        if distance between {_loc} and player > 1:
          send action bar "&cʙᴄɢᴇɴѕ &8» &cʏᴏᴜ ᴍᴏᴠᴇᴅ!"
          play sound "block.note_block.bass"
          wait 3 tick
          play sound "block.note_block.bass"
          wait 3 tick
          play sound "block.note_block.bass"
          stop
        wait 1 tick
        send action bar "&cʙᴄɢᴇɴѕ &8» &cᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ᴛᴏ ѕᴘᴀᴡɴ ɪɴ %{_cooldown}% ѕᴇᴄᴏɴᴅѕ!"
        remove 1 from {_cooldown}
        play sound "block.note_block.pling"
        wait 1 second
        teleport player to {spawn}
        send action bar "&cʙᴄɢᴇɴѕ &8» &cᴛᴇʟᴇᴘᴏʀᴛᴇᴅ ᴛᴏ ѕᴘᴀᴡɴ!"
        play sound "entity.experience_orb.pickup"
        ```
#

this is all it does

#

moving my head dosent matter

buoyant skiff
#

i'll check the video in the bit

#

(I still didn't check it yes)

buoyant skiff
hasty trellis
#

its supoosed to count down from 5

#

and it dosent

buoyant skiff
#

then report back

buoyant schooner
#

Here's the Skript:

command /spawn:
    trigger:
        set {_loc} to player's location
        send "&aStanding still for 5 seconds..."
        set {_time} to 5
        loop 5 times:
            if distance between {_loc} and player's location > 0.1:
                send "&cTeleport cancelled - you moved!"
                stop
            wait 1 second
            subtract 1 from {_time}
            send "&a%{_time}% seconds remaining..."
        teleport player to spawn point of world("world")
        send "&aTeleported to spawn!"

Requirements:

GitHub

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them. - Skript...

hasty trellis
buoyant schooner
hasty trellis
buoyant skiff
hasty trellis
buoyant skiff
buoyant schooner
#

thats how a proper /spawn works

#

look at wildkits

hasty trellis