Jump to content

How do you make a skript detect if you have a netherstar and send you to a specific location?


catsorios

Recommended Posts

Tell me if this is what you wanted:

on join:
    if {joins::*} does not contain player's uuid:
        add player's uuid to {joins::*}
        set {NetherStar::%player%} to false
every 1 second:
    if {NetherStar::%player%} is false:
       if player has nether star:
           teleport player to 0,0,0 in world "world"

Its not the best way, but works. Btw change the cords and the worlds

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

15 hours ago, Lapzzo said:

Tell me if this is what you wanted:

on join:
    if {joins::*} does not contain player's uuid:
        add player's uuid to {joins::*}
        set {NetherStar::%player%} to false
every 1 second:
    if {NetherStar::%player%} is false:
       if player has nether star:
           teleport player to 0,0,0 in world "world"

Its not the best way, but works. Btw change the cords and the worlds

I put into the server but when I reload the skript it says:

image.png.4afe31ddc334dcad26478263d296dc83.png

I fixed the indentation errors but the last error ("There's no world in a periodic event if no world is given in the (etc))" I dont know how to fix. Also sry for the late response

Link to comment
Share on other sites

every 1 second in "world"

just replace the 'world' with the name of the world you want to check if the player is in

Edited by Gam3rBoi

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

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...