Jump to content

On region enter.


mateiop4

Recommended Posts

55 minutes ago, mateiop4 said:

Soo it is almost done, but i have one slight problem. It says that the "else" needs to be put after an if. I don't know how to fix that. Almost doneee...

Captură de ecran din 2021-05-15 la 19.45.12.png


 

#Fixed version of your skript

on right click with prismarine shard:
    name of player's item is "Key 1"
    add player's uuid to {checkArea1::*}

on region enter:
    if "%region at player%" contains "Area1":
        if {checkArea1::*} contains player's uuid:
            send "yes"

        else:
            cancel event
            send "no"


There!
 

Sorry working on my discord (In my sig) I sell skripts and give out a lot of free skripts (You can see some)

  • Like 1

Invislol 

• 4-5 years of skript experience
• 6 Months of active java experience
• 2 Years of javascript and python experience


unknown.png
[PATRON] RANK

Helpful Stuff:
Appeals and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

17 hours ago, Invislol said:


 



#Fixed version of your skript

on right click with prismarine shard:
    name of player's item is "Key 1"
    add player's uuid to {checkArea1::*}

on region enter:
    if "%region at player%" contains "Area1":
        if {checkArea1::*} contains player's uuid:
            send "yes"

        else:
            cancel event
            send "no"


There!
 

Sorry working on my discord (In my sig) I sell skripts and give out a lot of free skripts (You can see some)

Would this work?

on right click with paper:
    name of player's item is "Emerad mine"
    delete player's item from hotbar
    add player's uuid to {checkEmerald::*}

on region enter:
    if "%region at player%" contains "Emerald":
        if {checkEmerald::*} contains player's uuid:
            cancel event

        else:
            teleport %player% to 100 50 100
            send "You don't have permission to enter the emerald mine."

 

Edited by Skray
Edit
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...