2024-06-19 02:35:03 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local S = minetest.get_translator(modname)
|
2024-06-12 01:20:24 +02:00
|
|
|
local mod = vl_tuning
|
|
|
|
|
2024-11-17 14:06:03 +01:00
|
|
|
mod.keep_inventory = {}
|
|
|
|
vl_tuning.setting("gamerule:keepInventory", "bool", {
|
2024-06-12 01:20:24 +02:00
|
|
|
default = minetest.settings:get_bool("mcl_keepInventory", false),
|
2024-11-17 14:06:03 +01:00
|
|
|
set = function(val) mod.keep_inventory[1] = val end,
|
|
|
|
get = function() return mod.keep_inventory[1] end,
|
2024-06-12 01:20:24 +02:00
|
|
|
})
|
2024-11-17 14:06:03 +01:00
|
|
|
mod.respawn_blocks_explode = {}
|
|
|
|
vl_tuning.setting("gamerule:respawnBlocksExplode", "bool", {
|
2024-06-19 02:35:03 +02:00
|
|
|
description = S("Prevents beds/respawn anchors from exploding in other dimensions."),
|
|
|
|
default = true,
|
2024-11-17 14:06:03 +01:00
|
|
|
set = function(val) mod.respawn_blocks_explode[1] = val end,
|
|
|
|
get = function() return mod.respawn_blocks_explode[1] end,
|
2024-06-19 02:35:03 +02:00
|
|
|
})
|
2024-06-12 01:20:24 +02:00
|
|
|
|