Add lzr_settings to force settings

master
Wuzzy 2022-01-08 22:40:16 +01:00
parent 1ea7b7ff68
commit e51501d7f8
6 changed files with 3 additions and 28 deletions

View File

@ -5,7 +5,6 @@ Lazarr! is a puzzle game by Wuzzy, using some textures, sounds and code from oth
External mods used:
* `show_wielded_item`
* `no_fall_damage`
* `player_api`, `xpanes`, `stairs`, `screwdriver2`
* `xdecor` (heavily modified, non-free textures removed)

View File

@ -0,0 +1,2 @@
minetest.settings:set("time_speed", "0")
minetest.settings:set_bool("enable_damage", false)

View File

@ -0,0 +1 @@
name = lzr_settings

View File

@ -1,11 +0,0 @@
# Disable Fall Damage [`no_fall_damage`]
Version: 1.0.0
This mod disables fall damage completely.
## Technical notes
This mod only works if no other mod overwrites the
`fall_damage_add_percent` group (unlikely).
## License
This mod is licenced under the MIT License.

View File

@ -1,14 +0,0 @@
-- Removing fall damage is done by overwriting the group
-- fall_damage_add_percent of all nodes. ]]
function remove_fall_damage()
for itemstring, def in pairs(minetest.registered_nodes) do
local groups = def.groups and table.copy(def.groups)
if groups then
groups.fall_damage_add_percent = -100
-- Let's hack the node!
minetest.override_item(itemstring, { groups = groups })
end
end
end
minetest.register_on_mods_loaded(remove_fall_damage)

View File

@ -1,2 +0,0 @@
name = no_fall_damage
description = Disables fall damage.