#Spawn/Area protection script [1.20.40+]
1 messages · Page 1 of 1 (latest)
it has a simple admin and area whitelist system
note: is for preview version 1.20.40+
@split warren
because of Dynamic Property?
yes and playerInteractWithBlock
still in preview
aha
great work
thx
np
@edgy flame att nchof had l3alam
@amber cave Does it support the protection of many areas?
preview (beta)
Sat hadchy m9wde 3leya mafhmoch wala 3rft kifach nkhdmo flcod dyale soo cancel
English pls?
I am trying to create a Land claim addon so that when the player hits a specific entity, an area is selected where only the owner of the area can break or place blocks. I thought your script would be useful to me, but I did not understand it : )
i created a documentation but is a html wait
I have a question how the player select his area ? @amber cave
O tnx i will take a look at it
its only a simple script, the areas can be defined using setArea() method
import { ProtectedAreas } from "./ProtectedAreaHandler";
const protectedAreas = new ProtectedAreas();
protectedAreas.setArea({
name: "Test3",
from: new Vector(0, -64, 0),
to: new Vector(30, -50, 30),
});
Ehaaaaa thank you bro ❤️🩹🫶
Spawn/Area protection script [1.20.40+]
hm
In your script, does it prevent a player from uniting his area if it is inside another player's area?
hm, it just prevent players to place/brake blocks if a area is defined and the player is not in the area whitelist
areas have no owner, just players in whitelist
: ) then the players can take the area of another Players
basically, just use the areaWhitelistAdd/Remove to add or remove players from the area whitelist
I think you don't understand me
The player made an area what well happen if another player come to the same area and try to make another area
oh i understand now, the player will take the area too, as long as he don't use the same id
CHANGES:
- Explosions inside or near protected area borders now is cancelled.
