Saving a location in a variable

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

Tom1222322

Member
Feb 5, 2021
19
0
1
22
Hello, I'm having trouble saving a location in a variable which theoretically should prevent other players from breaking blocks in that area except for the player who created that variable.
 
Code:
if location of event-block is between %location-1% and %location-2%:
  cancel event
I phrased it badly, what I meant is how can i add all blocks between locations that have their own variables into a variable and prevent another player from breaking blocks in a location which is in a variable.
 
saving blocks is fine, a block is an itemtype and a location so it's not a big deal, the condition you need is
Code:
%location% is within %location and %location%
but it might be better to use skbee bounds or wg regions for that kind of stuff
 
saving blocks is fine, a block is an itemtype and a location so it's not a big deal, the condition you need is
Code:
%location% is within %location and %location%
but it might be better to use skbee bounds or wg regions for that kind of stuff
Saving blocks is fine, instead of looping blocks ;d
 
Status
Not open for further replies.