mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-02 20:10:04 -04:00
Add settingtypes.txt
Rename disable_fire to enable_fire
This commit is contained in:
parent
ef8b7e230d
commit
6c23dadfd4
3 changed files with 35 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
|||
# 0 to disable
|
||||
#share_bones_time = 1200
|
||||
|
||||
# Whether fire should be disabled (all fire nodes will instantly disappear)
|
||||
#disable_fire = false
|
||||
# Whether fire should be enabled (if disabled, all fire nodes will instantly disappear)
|
||||
#enable_fire = false
|
||||
|
||||
# Whether steel tools, torches and cobblestone should be given to new players
|
||||
#give_initial_stuff = false
|
||||
|
|
|
@ -129,9 +129,16 @@ function fire.flame_should_extinguish(pos)
|
|||
end
|
||||
|
||||
|
||||
-- Enable ABMs according to 'disable fire' setting
|
||||
-- Enable ABMs according to 'enable fire' setting
|
||||
|
||||
if minetest.setting_getbool("disable_fire") then
|
||||
local fire_enabled = minetest.setting_getbool("enable_fire")
|
||||
if fire_enabled == nil then
|
||||
-- Check disable_fire for legacy reasons
|
||||
-- Check for false explicitly, so fire is enabled by default
|
||||
fire_enabled = minetest.setting_getbool("disable_fire") == false
|
||||
end
|
||||
|
||||
if fire_enabled then
|
||||
|
||||
-- Extinguish flames quickly with dedicated ABM
|
||||
|
||||
|
|
24
settingtypes.txt
Normal file
24
settingtypes.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
# This file contains settings of minetest_game that can be changed in
|
||||
# minetest.conf
|
||||
|
||||
# In creative mode players are able to dig all kind of blocks nearly instantly,
|
||||
# and have access to unlimited resources.
|
||||
creative_mode (Creative mode) bool false
|
||||
|
||||
# Flammable nodes will be ignited by nearby igniters. Spreading fire may cause sever harm.
|
||||
# All fire nodes with instantly disappear when fire is disabled.
|
||||
enable_fire (Fire) bool true
|
||||
|
||||
# If enabled, steel tools, torches and cobblestone will be given to new players.
|
||||
give_initial_stuff (Give initial items) bool false
|
||||
|
||||
# When TNT explodes it destroys nearby nodes, possibl causing a lot of harm on servers.
|
||||
# This setting is disabled by default on servers.
|
||||
enable_tnt (TNT) bool true
|
||||
|
||||
# The radius in which nodes will be destroyed by a TNT explosion.
|
||||
tnt_radius (TNT radius) int 3 0
|
||||
|
||||
# The time in seconds after which the bones of a dead player can be looted by everyone.
|
||||
# Setting this to 0 will disable sharing of bones completly.
|
||||
share_bones_time (Bone share time) int 1200 0
|
Loading…
Add table
Reference in a new issue