Clear inventory on entry of a region and when leaving.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Computerize

Member
Oct 10, 2019
38
0
0
23
Can somebody please make me a Skript where when a player enters or leaves the region 'buildzone' their inventory is instantly cleared (if you could, when they enter give them 64 steak).

If anyone could do this for me it would be amazing. Thanks!
 
Code:
on region enter:
    if region's name is "buildzone":
        clear player's inventory
        give player 64 steak
on region exit:
    if region's name is "buildzone":
        clear player's inventory
Might error, if it does change "region's name" to "event-region's name"