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


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create worldguard region.

Discussion in 'Skript' started by TimCom228, Dec 17, 2020.

Thread Status:
Not open for further replies.
  1. TimCom228

    TimCom228 Member

    Dec 26, 2019
    Likes Received:
    MY script:
    Code (Text):
    2. on place of gold block:
    3.     loop blocksInCube(event-location):
    4.         if loop-block is yellow terracotta:  
    5.             cancel event
    6.             message "&cСлишком близко к другой базе!" to player
    7.             set {_cancel.rg.create} to true
    8.     if {_cancel.rg.create} is not set:
    9.         set event-block to yellow terracotta
    10.         set {_pos1} to event-location
    11.         set {_pos2} to event-location
    12.         add 3 to x coord of {_pos1}
    13.         add 3 to z coord of {_pos1}      
    14.         add 3 to y coord of {_pos1}
    15.         remove 3 from x coord of {_pos2}
    16.         remove 3 from z coord of {_pos2}
    17.         create region "1" between {_pos1} and {_pos2} in world of {_pos1}
    Using SharpSK last version, skript ver 2.5-beta2, serv ver 1.13, . Giving error:

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page