Solved Land claiming

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

RedZeppelin

Member
Jan 27, 2017
4
0
0
22
Right so I am currently making a skript for a server I am working on. The command will set a position 1 and a position 2 which you can then continue to do a command to buy the land and it will remove some money from your balance. The only thing I am struggling with is finding out how many blocks are in the claim and also actually claiming the land. Any help would be greatly appreciated.
 
You could use the blocks within %location% to %location% expression of skQuery then use the amount of %objects% expression for get how much blocks are there, example:
code_language.skript:
set {_first corner of the claim} to location(x, y, z, world("world here"))
set {_second corner of the claim} to location(x, y, z, world("world here"))
set {_amount of blocks in the claim} to amount of blocks within {_first corner of the claim} to {_second corner of the claim}
 
Status
Not open for further replies.