maptools
maptools copied to clipboard
make lightbulbs buildable to
what the description says, handy for building with them (good source of hidden light for builds)
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.
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
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:
does it need to be a setting or if(protection_mod) then... ?
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
).
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
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: