[Mod] basic_protect [basic_protect]

User avatar
rnd
Member
 
Posts: 207
Joined: Sun Dec 28, 2014 12:24
IRC: ac_minetest
In-game: rnd

[Mod] basic_protect [basic_protect]

by rnd » Sat Nov 26, 2016 18:29

basic_protect divides the space into rectangle areas players can protect. Whenever player places protector area is claimed and protector is placed at "special position".

License: LGPL
Dependence: default
Download: https://github.com/ac-minetest/basic_protect/

------------------------------------------------------------------------------------

features:
- protected areas dont overlap, default area size is 20x20 horizontally and 40 vertically
- can add shared players, display protected area after punching the protector block
- can "effectively" keep out every trespasser digger (if they dont noclip cheat) by teleporting them to player selected nearby area
- very fast protection checks with caching (once position inside block is check it remembers protection status) independent of area size/number of areas
- very simple code without using complicated data structures

Image

Image
Attachments
protector2.jpg
(123.8 KiB) Not downloaded yet
protector1.jpg
(38.86 KiB) Not downloaded yet
Last edited by rnd on Sun Nov 27, 2016 07:23, edited 1 time in total.
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [Mod] basic_protect [basic_protect]

by ExeterDad » Sat Nov 26, 2016 19:58

I will be checking this out. Thanks for releasing :)

Edit: Question. The teleport feature sends the "trespasser" away when attempting to dig protected nodes? Or literally for trespassing in a protected area?
 

User avatar
rnd
Member
 
Posts: 207
Joined: Sun Dec 28, 2014 12:24
IRC: ac_minetest
In-game: rnd
 

User avatar
ManElevation
Member
 
Posts: 895
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [Mod] basic_protect [basic_protect]

by ManElevation » Tue Dec 20, 2016 01:18

Thank you for this mod, looks great. im testing this now ;)
My Public Mods! Discord: Rottweiler Games#3368
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 6 guests