Jump to content

hi i need help with a skript code


eladtzuman

Recommended Posts

 

 

on walk on Pink Stained Glass:
    wait 1 tick
    if block under player is Pink Stained Glass:
        if {wait} is true:
            location of event-block is location(-315.5,81.5,-0.5) or location(-313.5,81.5,-1.5)
            set {_loc} to location(-89, 40, -116, world "world_nether")
            #set {_pl} to player's location
            loop 10 times:
                if block under player is Pink Stained Glass:
                    add 1 to {_}
                    send "&ateleport in %loop-value% seconds"
                    wait 1 seconds
                    if {_} = 10:
                        teleport player to {_loc}
                        send "&ayou have been teleported to pigboss raid, you have 20 min to defeat the boss"
                else:
                    stop loop
                    send "&cYou moved teleport canceled!"
        else:
            send "&cYou cant teleport right now!"

this script tp you after 10 sec to a boss arena but i want to change things and i dont know how

first: make it a 2 players boss which means make it so another player can join if he stands on another pink stained glass and then it tp both of the players to the boss and other players cant join until they leave the boss

second: the line with else: stop loop send you moved tp canceled doesnt work why? (it doesnt say any errors just doesnt work)

 

Edited by eladtzuman
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...