Add more settings
This commit is contained in:
parent
952f4b5f79
commit
57b9a7d1cb
|
@ -13,7 +13,7 @@ local peaceful_only = minetest.settings:get_bool("only_peaceful_mobs") or false
|
||||||
local enable_blood = minetest.settings:get_bool("mobs_enable_blood") or false
|
local enable_blood = minetest.settings:get_bool("mobs_enable_blood") or false
|
||||||
|
|
||||||
mobs.protected = tonumber(minetest.settings:get("mobs_spawn_protected")) or 0
|
mobs.protected = tonumber(minetest.settings:get("mobs_spawn_protected")) or 0
|
||||||
mobs.remove = minetest.settings:get_bool("remove_far_mobs") or false
|
mobs.remove = false
|
||||||
|
|
||||||
local function is_too_near_spawn(pos)
|
local function is_too_near_spawn(pos)
|
||||||
if minetest.is_singleplayer() or not minetest.settings:get_bool("mobs_safe_spawn") then
|
if minetest.is_singleplayer() or not minetest.settings:get_bool("mobs_safe_spawn") then
|
||||||
|
|
|
@ -38,6 +38,10 @@ only_peaceful_mobs (Only peaceful mobs) bool false
|
||||||
# The safety radius is set in static_spawn_radius.
|
# The safety radius is set in static_spawn_radius.
|
||||||
mobs_safe_spawn (Safe spawn from mobs) bool true
|
mobs_safe_spawn (Safe spawn from mobs) bool true
|
||||||
|
|
||||||
|
# Enables blood particles when attacking mobs.
|
||||||
|
# If disabled, there will be other, less “gruesome” particle effects.
|
||||||
|
mobs_enable_blood (Enable blood) bool false
|
||||||
|
|
||||||
## Spawning
|
## Spawning
|
||||||
|
|
||||||
# Radius around the player spawn point in which mobs don't attack.
|
# Radius around the player spawn point in which mobs don't attack.
|
||||||
|
@ -47,6 +51,9 @@ mobs_safe_spawn (Safe spawn from mobs) bool true
|
||||||
# spawn in which villages don't generate.
|
# spawn in which villages don't generate.
|
||||||
static_spawn_radius (Spawnpoint safety radius) int 256 0
|
static_spawn_radius (Spawnpoint safety radius) int 256 0
|
||||||
|
|
||||||
|
# If enabled, villages will no longer be generated.
|
||||||
|
mapgen_disable_villages (Disable villages) bool false
|
||||||
|
|
||||||
## Beds
|
## Beds
|
||||||
|
|
||||||
# If enabled, players can sleep in beds. If the majority of all players game sleep in the bed at night, the night will be skipped.
|
# If enabled, players can sleep in beds. If the majority of all players game sleep in the bed at night, the night will be skipped.
|
||||||
|
@ -69,6 +76,9 @@ weather_enable (Enable dynamic weather) bool true
|
||||||
# Enables ambient sounds, such as birds, crickets, etc.
|
# Enables ambient sounds, such as birds, crickets, etc.
|
||||||
ambiance_enable (Enable ambient sounds) bool true
|
ambiance_enable (Enable ambient sounds) bool true
|
||||||
|
|
||||||
|
# This will add an graphical effect that slightly darkens the edges of the screen.
|
||||||
|
vignette_enable (Enable vignette) bool true
|
||||||
|
|
||||||
## Player skins
|
## Player skins
|
||||||
|
|
||||||
# Here you can add your custom player skins. List each skin by name here, separated by commas.
|
# Here you can add your custom player skins. List each skin by name here, separated by commas.
|
||||||
|
|
Loading…
Reference in New Issue