[Mod] Simple protection [simple_protection]

User avatar
Krock
Developer
Posts: 4736
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Simple protection [simple_protection]

by Krock » Post

Linuxdirk wrote:Wow, that's a new one in protection mods. Nice job!
Thank you. After adding this feature two years ago (duh, longer than I thought!) I learned from Minecraft players that protection mods there already offer ASCII overview maps. Not surprising considering they have a much larger community.
Well now here you go - a Minetest alternative, so to say ;)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Linuxdirk
Member
Posts: 3416
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Simple protection [simple_protection]

by Linuxdirk » Post

Never really ran a server so far, just checking things out currently.

raymondkn
Member
Posts: 11
Joined: Wed Jul 22, 2020 16:30
GitHub: RaymondKn
IRC: RaymondKn
In-game: RaymondKn
Location: Northern Arizona

Re: [Mod] Simple protection [simple_protection]

by raymondkn » Post

Not sure if anyone will see this or if someone can help.
Is there a way to allow users to fly only within their claimed areas? with possibly a second option to fly above them as well.
I don't want my players flying all over the map, but I want to allow them to fly while they build and create on their claims.

Or possibly if they get stuck, claim the area, fly out, then take back their claim.

Hoping someone is interested in this as well and maybe it isn't to difficult to add.

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [Mod] Simple protection [simple_protection]

by jas » Post

In Lua you can check whether the player is in protected space, and then grant/revoke the privilege accordingly.

User avatar
Krock
Developer
Posts: 4736
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Simple protection [simple_protection]

by Krock » Post

@raymondkn Per-area special effects are best implemented in a custom mod which depends on "simple_protection". The mod API to access from other mods can be found here: (Markdown-compatible)
https://github.com/SmallJoker/simple_pr ... od_api.txt

And here's the function to set the player's privileges: (privilege getter function exists too)
https://github.com/minetest/minetest/bl ... 4754-L4755
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests