How to create a WG region from player's location?

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

Funtime

Active Member
Apr 24, 2017
54
0
0
22
I want to make a Skript that creates a region, in a 50 block radius from the player's location.
 
With PirateSk you have this:

code_language.skript:
create wg region "Region" between {_loc1}  and {_loc2} in world of playe

Now, if you can think how to set {_loc1} and {_loc2} to the corner of a cube 50x50.
 
With PirateSk you have this:

code_language.skript:
create wg region "Region" between {_loc1}  and {_loc2} in world of playe

Now, if you can think how to set {_loc1} and {_loc2} to the corner of a cube 50x50.
Hey, are you able to give me an example? None of my methods work :emoji_frowning:
 
Hey, are you able to give me an example? None of my methods work :emoji_frowning:
code_language.skript:
command /iwantaweregionof50blocks <text>:
    trigger:
        set {_loc1} to location of block at player
        set {_loc2} to {_loc1}
        
        add 25 to the x-coordinate of {_loc1}
        add 25 to the y-coordinate of {_loc1}
        add 25 to the z-coordinate of {_loc1}
        
        add -25 to the x-coordinate of {_loc2}
        add -25 to the y-coordinate of {_loc2}
        add -25 to the z-coordinate of {_loc2}
        
        create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player
 
code_language.skript:
command /iwantaweregionof50blocks <text>:
    trigger:
        set {_loc1} to location of block at player
        set {_loc2} to {_loc1}
       
        add 25 to the x-coordinate of {_loc1}
        add 25 to the y-coordinate of {_loc1}
        add 25 to the z-coordinate of {_loc1}
       
        add -25 to the x-coordinate of {_loc2}
        add -25 to the y-coordinate of {_loc2}
        add -25 to the z-coordinate of {_loc2}
       
        create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player
ERROR]: 'player' is not an item stack (50.sk, line 14: create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player')
 
ERROR]: 'player' is not an item stack (50.sk, line 14: create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player')

it would require PirateSk but that addon is realy outdatad as far as i know

give me a sec might be that sharpsk has it to
[doublepost=1498301951,1498301761][/doublepost]
it would require PirateSk but that addon is realy outdatad as far as i know

give me a sec might be that sharpsk has it to

Well somebody continued with the addon piratesk but you can't relay on it. so it might be that it will not be updated to newer versions of the game so use it on your own risk.

https://www.spigotmc.org/resources/piratesk-addon.39535/
 
it would require PirateSk but that addon is realy outdatad as far as i know

give me a sec might be that sharpsk has it to
[doublepost=1498301951,1498301761][/doublepost]

Well somebody continued with the addon piratesk but you can't relay on it. so it might be that it will not be updated to newer versions of the game so use it on your own risk.

https://www.spigotmc.org/resources/piratesk-addon.39535/
That's the one I'm already using
 
PirateSK has been merged to SharpSK a while ago, you don't need these forks.
Thanks for that! The creation of the region now works, but the coordinators are both the same:
[doublepost=1498380943,1498321823][/doublepost]Anyone know how to change the coords inside the Skript?
 
Status
Not open for further replies.