This commit is contained in:
PilzAdam 2015-10-27 09:09:50 +00:00
commit 1119ca2d72
3 changed files with 46 additions and 4 deletions

View file

@ -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

View file

@ -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

35
settingtypes.txt Normal file
View file

@ -0,0 +1,35 @@
# 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.
# Some of the functionality is only available if this setting is present at startup.
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
# If enabled, players respawn at the bed they last slept at instead of normal spawn.
# This setting is only read at startup.
enable_bed_respawn (Respawn at bed) bool true
# If enabled, the night can be skipped if more than half of the players are in beds.
enable_bed_night_skip (Skip night when sleeping) bool true
# 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
# Replaces old stairs with new ones. Only required for older worlds.
enable_stairs_replace_abm (Replace old stairs) bool false