Hello this mod is basically glomie's protector mod, but with more protect's with bigger ranges. Also it doesn't depend on moreores. There is also multiple owners and sharing land by left-clicking on block and typing names in the space! I will add lava prevention in next version!
Features:
-Protect(5 block range) crafted with steel ingots surrounding a locked chest.
-Bigger Protect(10 block range) crafted with a protect on top of another protect.
-Biggest Protect(20 block range) crafted with 4 bigger protects in a 2x2 square.
1.0 (Doesn't Work) 2.0 (Works! And now with multiple owners aka sharing land!)
License: WTFPL
Screenshots:
Biggest Protector In Action.
Last edited by Aqua on Mon Dec 10, 2012 10:19, edited 1 time in total.
Or even better, a master lava protector, available only for admins, that convert lava in air for 1000 blocks in every direction, except the bottom, so caves will still have lava, but there won't be lava from the ground to the upper limit (some server limits the upper to 1000, so no one could put lava over) and an inversed master lava protector that gives protection to the bottom instead of the upper.
Aw. You beat me to releasing a protection plugin that doesn't depend on moreores. I finished building it, I've just been to busy to release it. Meh. Mine still protects against bucket-based attacks, so I'll still release it when I have time. My main feature though is the lack of dependency.
I like the varied ranges on yours. Sometimes you just what to protect a bigger area, but don't want to see protect blocks everywhere. These would go great in a twinkly cave on my server. SOmeone found a large cave half filled with water, covered the top in glass, and placed underwater torches. The effect is mesmerizing, but the current short-range protect blocks detract from the beauty.
What impact does the larger protector have on server performance? 5x5x5=125 but 20x20x20=8000. Even if we take into account that on average only halve that many blocks have to be searched it's still ~63 vs 4000....on every dig/place. For larger areas, the node/area protection approach seems more sensible to me. Maybe there is a useful way of mixing both?
Sokomine wrote:What impact does the larger protector have on server performance? 5x5x5=125 but 20x20x20=8000. Even if we take into account that on average only halve that many blocks have to be searched it's still ~63 vs 4000....on every dig/place. For larger areas, the node/area protection approach seems more sensible to me. Maybe there is a useful way of mixing both?
I sort of understand you. Are you saying that this larger area of protection might effect the server performance? What do you mean in your last two sentences?
The protector mod and derived mods protect the land by plugging into the place/dig routines of Minetest. If a player places or digs a node, a function in the protector mod is called and checks if the operation is allowed or not. In order to find out what to reply, the function searches for possible protector nodes in the environment. With a normal protector that protects within a radius of 5 blocks, the mod has to search 5 blocks into each direction (they could all be the protector we're looking for). Thus it's even worse than what I stated above...the normal protector already needs to search 10x10x10=1000 nodes. A protector that has a radius of 20 covers 40x40x40=64000 blocks. And players dig up and place a lot of blocks. Computers are fast nowerdays and the data is most likely already in memory so it might work. But it is not efficient.
For larger areas (especially if the total amount of areas that are to be protected is rather small) the other approach seems better: Store who owns which area and check against that list on every place/dig. That is the approach node_ownership takes. The disadvantage of that is that you have to know the coordinates, take care of overlapping regions etc. - plus someone with privs has to do the actual protection whereas protector-mod allows players to protect their areas with a simple block.
Basicly I'd take the node_ownership approach (because it's much more efficient) and add protector-like blocks for easier handling of the areas.
This protect if placed by a player will not allow other players to build or destroy in the protects range. It is used on servers for protection from griefers.
nice idea with this someone can make a server and to be someone admin and admin to give to players protector blocks to protect they'r area nice mode Aqua
Okay, I have fixed the crafting and the biggest protect which now works with a range of 20 blocks in all directions. The other two still don't work. I'm ripping my hair out here!!!