Add Plot System

pietru 2025-03-01 23:10:47 +01:00
parent bbfd9ff4b7
commit 7e215cce74

38
Plot-System.md Normal file

@ -0,0 +1,38 @@
[Return](./Home)
<hr>
### Cookie Utils plot system
Plot system allows to create areas/regions for protecting the terrain.
Areas can be limited to one zone or made to work in all zones - if zone id is not specified.
[Interactive region setup](./Setup-Command) can be used to make regions on the fly in game.
Zones can have parent, if zone has defined parent zone it will take permissions from that zone and it's own permissions won't be loaded.
Regions priority defines which zone is more important. \
Zones are first sorted based on which area has bigger priority, and after that based on which has smaller size.
Area json file can contain:
- `enabled` - is area enabled, turned on - default true.
- `protect` - is area protected from deletion and etc - default false.
- `zoneId` - ID of zone in which zone exists - defaults to empty string.
- `parent` - ID/file of parent area - defaults to empty string.
- `scriptFile` - ID/file of script that should be used for this zone - defaults to empty string.
<hr>
- `place` - can blocks be placed in area, turned on - default false.
- `break` - can blocks be broken in area, turned on - default false.
- `interact` - can blocks be interacted with in area, turned on - default false.
- `laser` - can entity created lasers interact with blocks in area, turned on - default false.
- `be_laser` - can block entity created lasers interact with blocks in area, turned on - default true.
<hr>
- `explode` - can stuff explode in area, turned on - default false.
- `enter` - can area be entered, turned on - default true.
- `spawn_mob` - can mobs spawn in area, turned on - default true.
<hr>
- `pvp` - can players damage players, turned on - default false.
- `pve` - can players be damaged by enemies, turned on - default true.
- `laser_damage` - can lasers damage players, turned on - default true.