maptools icon indicating copy to clipboard operation
maptools copied to clipboard

make lightbulbs buildable to

Open wsor4035 opened this issue 4 years ago • 7 comments

what the description says, handy for building with them (good source of hidden light for builds)

wsor4035 avatar Jan 23 '21 18:01 wsor4035

I'm not sure if this is a good idea – I made light bulbs non-buildable-to to prevent griefing. Since Map Tools nodes are only meant to be used by administrators, it's important that regular players can't mess with them.

Of course, this doesn't affect you if you use a protection mod, but this may not always be the case for everyone.

Calinou avatar Jan 23 '21 18:01 Calinou

understandable, but most servers use a protection mod. i modified this because while you can //r air lightbulb with worldedit when your done, but adding light and able to modify it while building is nice

wsor4035 avatar Jan 23 '21 18:01 wsor4035

I think a better solution to this would be to add a minetest.conf setting that makes all non-solid Map Tools nodes buildable to. You can then enable this setting if you use a protection mod on the server. The setting should be disabled by default to keep backwards compatibility – I don't want to see some servers' spawn areas ruined by this change :slightly_smiling_face:

Calinou avatar Jan 23 '21 18:01 Calinou

does it need to be a setting or if(protection_mod) then... ?

wsor4035 avatar Jan 23 '21 19:01 wsor4035

does it need to be a setting or if(protection_mod) then... ?

It needs to be added as a setting and the setting must be used in the Lua code to set the value of buildable_to at registration time. See minetest-mods/moreblocks for an example of this (specifically, settingtypes.txt and nodes.lua).

Calinou avatar Jan 23 '21 20:01 Calinou

I know how to do settings, that was NOT what I asked, to clarify: instead of a setting, should it be auto enabled when areas is detected? or it could be both, setting, thats default depends on if areas is installed or not

wsor4035 avatar Jan 23 '21 20:01 wsor4035

instead of a setting, should it be auto enabled when areas is detected?

I think it should be a setting, as there are many protection mods and not all of them are called areas. Explicit is better than implicit :slightly_smiling_face:

Calinou avatar Jan 23 '21 20:01 Calinou