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.
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 skUnity Downloads for downloads and any other information about Skript!
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.Code:if location of event-block is between %location-1% and %location-2%: cancel event
No, save all blocks between two locations that are set by a variable, and then somehow prevent other players from breaking blocks in that area.create function what return all locations between two locations?
%location% is within %location and %location%
Saving blocks is fine, instead of looping blocks ;dsaving blocks is fine, a block is an itemtype and a location so it's not a big deal, the condition you need isbut it might be better to use skbee bounds or wg regions for that kind of stuffCode:%location% is within %location and %location%