minetest-mods / areas

A rewrite of the node_ownership Minetest mod with many new features.
GNU Lesser General Public License v2.1
51 stars 52 forks source link

Add the ability to change protection settings #56

Open CLtheman1 opened 2 years ago

CLtheman1 commented 2 years ago

There should be a way to change what kind of protection you get. Currently, if someone puts a light switch in a protected area, nobody else can use the light switch, but if they place a mesecons lever or button, others can use it. Players should be able to change protection settings, like:

This could be done by adding the ability to edit "flags" or settings, perhaps though a command like /area_settings [area ID].

This would be useful in allowing people to choose what kind of protections they want, and should also enhance protection experience.

S-S-X commented 2 years ago

Consider https://github.com/minetest-mods/areas/issues/60#issuecomment-1145419685

Some mods do have configurable nodes to set exact protection behavior.

Technic for example can allow certain inventory slot use but still protect digiline configuration, tube configuration, upgrade inventory slots and such things. This for example cannot be reliably done in areas mod, it is simply impossible to make it consistent across different mods because there's just too many possibilities.

There's many other ways how mods can fairly easily implement this.

Then again common downside if this would be implemented in areas mod: it will cause confusing conflicts with other protection mods.

To some degree I could however see area flags to be used by other mods in protection checks to change behavior based on flags, however it should still be just flags and mod should decide how to implement behavior based on those flags instead of areas mod attempting to guess what should be done.