ronoaldo / mercurio

Mercurio Minetest Server open source repository.
https://github.com/users/ronoaldo/projects/3
Apache License 2.0
7 stars 1 forks source link

Users can place water and lava at any height #3

Open 0siribix opened 2 years ago

0siribix commented 2 years ago

I recommend to disallow place water above Y = 0. It is very easy to grief all of spawn or anyone's property as-is

0siribix commented 2 years ago

Same for lava

ronoaldo commented 2 years ago

Nice catch!!! I'll check it out. If you happen to know if there is a setting for that, or if there is a mod that implements it I'll be grateful.

0siribix commented 2 years ago

I know most servers have a mod installed but I didn't find it with a quick search. You can manually edit the bucket mod on_place function for each type. The way most other servers handle it is if pos.y >= 0 then minetest.chat_send_player(playername, S("Can't place water higher than 0")) When I find the mod I will post the link for you

0siribix commented 2 years ago

https://github.com/MultiCraft/MultiCraft_game/blob/master/files/bucket/init.lua

ronoaldo commented 1 year ago

It took me a LOOONG time but I just now found a mod that does exactly that, with some configurable settings using privs:

https://content.minetest.net/packages/wsor4035/liquid_restriction/

ronoaldo commented 1 year ago

After discussions with admins, I decided to use the APercy mod that prevents lava at any height, and keeps the water placement as is to avoid disrupting farms while still avoiding greaf:

https://github.com/APercy/lava_killer