Create worldguard region.

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TimCom228

Member
Dec 26, 2019
31
0
6
24
MY script:
Code:
on place of gold block:
    loop blocksInCube(event-location):
        if loop-block is yellow terracotta:  
            cancel event
            message "&cСлишком близко к другой базе!" to player
            set {_cancel.rg.create} to true
    if {_cancel.rg.create} is not set:
        set event-block to yellow terracotta
        set {_pos1} to event-location
        set {_pos2} to event-location
        add 3 to x coord of {_pos1}
        add 3 to z coord of {_pos1}      
        add 3 to y coord of {_pos1}
        remove 3 from x coord of {_pos2}
        remove 3 from z coord of {_pos2}
        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:
 

Attachments

  • upload_2020-12-17_19-44-18.png
    upload_2020-12-17_19-44-18.png
    108.5 KB · Views: 208
Status
Not open for further replies.