Jump to content

Skript Not Working


Earthworm1

Recommended Posts

So I have this skript but when I  type the command, it says it doesn't exist. Please help me fix it.

 

command /rank [<text>]:
 trigger:
  if arg-1 is "diamond":
   send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
   wait 1 second
   send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
   wait 1 second
   send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
   wait 1 second
   send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
   wait 1 second
   send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
   wait 1 second
   send "&x&2&1&d&8&2&4Teleporting..." to player
   teleport player to location -72, 69, 171 in world "flat"
   set {rankmine1} to location(-72, 69, 171, world "flat")
   set yaw of {rankmine1} to -89.7
   set pitch of {rankmine1} to -0.1
   teleport player to {rankmine1}
   else:
    if arg-1 is "emerald":
    send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
    wait 1 second
    send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
    wait 1 second
    send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
    wait 1 second
    send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
    wait 1 second
    send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
    wait 1 second
    send "&x&2&1&d&8&2&4Teleporting..." to player
    teleport player to location -72, 69, 156 in world "flat"
    set {rankmine2} to location(-72, 69, 156, world "flat")
    set yaw of {rankmine2} to -89.7
    set pitch of {rankmine2} to -0.1
    teleport player to {rankmine2}

 

Should I try updating skript? The script has no error message but it just doesn't say the command exists.

 

Edited by Earthworm1
Link to comment
Share on other sites

On 8/30/2022 at 7:47 PM, Earthworm1 said:

So I have this skript but when I  type the command, it says it doesn't exist. Please help me fix it.

 

command /rank [<text>]:
 trigger:
  if arg-1 is "diamond":
   send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
   wait 1 second
   send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
   wait 1 second
   send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
   wait 1 second
   send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
   wait 1 second
   send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
   wait 1 second
   send "&x&2&1&d&8&2&4Teleporting..." to player
   teleport player to location -72, 69, 171 in world "flat"
   set {rankmine1} to location(-72, 69, 171, world "flat")
   set yaw of {rankmine1} to -89.7
   set pitch of {rankmine1} to -0.1
   teleport player to {rankmine1}
   else:
    if arg-1 is "emerald":
    send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
    wait 1 second
    send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
    wait 1 second
    send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
    wait 1 second
    send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
    wait 1 second
    send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
    wait 1 second
    send "&x&2&1&d&8&2&4Teleporting..." to player
    teleport player to location -72, 69, 156 in world "flat"
    set {rankmine2} to location(-72, 69, 156, world "flat")
    set yaw of {rankmine2} to -89.7
    set pitch of {rankmine2} to -0.1
    teleport player to {rankmine2}

 

Should I try updating skript? The script has no error message but it just doesn't say the command exists.

 

Solved with this script... No thanks to anyone

command /rankmine [<text>]:
 trigger:
  if arg-1 is "diamond":
   send "&x&0&e&c&4&d&1Teleporting in &x&1&f&d&1&0&e5 &x&0&e&c&4&d&1seconds!" to player
   wait 1 second
   send "&x&0&e&c&4&d&1Teleporting in &x&8&3&f&2&3&b4 &x&0&e&c&4&d&1seconds!" to player
   wait 1 second
   send "&x&0&e&c&4&d&1Teleporting in &x&d&c&d&c&0&a3 &x&0&e&c&4&d&1seconds!" to player
   wait 1 second
   send "&x&0&e&c&4&d&1Teleporting in &x&d&b&7&f&1&82 &x&0&e&c&4&d&1seconds!" to player
   wait 1 second
   send "&x&0&e&c&4&d&1Teleporting in &x&e&3&1&2&1&21 &x&0&e&c&4&d&1seconds!" to player
   wait 1 second
   send "&x&1&f&d&1&0&eTeleporting." to player
   wait 1 second
   send "&x&1&f&d&1&0&eTeleporting.." to player
   wait 1 second
   send "&x&1&f&d&1&0&eTeleporting..." to player
   wait 1 second
   set {rankmine1} to location(-72, 69, 171, world "flat", 270, 1)
   teleport player to {rankmine1}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...