forked from Mineclonia/Mineclonia
Add tile drops setting
This commit is contained in:
parent
bc04767529
commit
5d5743939f
|
@ -139,7 +139,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
function minetest.handle_node_drops(pos, drops, digger)
|
function minetest.handle_node_drops(pos, drops, digger)
|
||||||
if minetest.setting_getbool("creative_mode") then
|
if minetest.setting_getbool("creative_mode") or minetest.setting_getbool("mcl_do_tile_drops") == false then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
for _,item in ipairs(drops) do
|
for _,item in ipairs(drops) do
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# This file contains settings of MineClone 2that can be changed in
|
# This file contains settings of MineClone 2that can be changed in
|
||||||
# minetest.conf
|
# minetest.conf
|
||||||
|
|
||||||
# In creative mode players are able to dig all kind of blocks
|
# In creative mode, players are able to dig all kind of blocks
|
||||||
# instantly, and have access to unlimited resources.
|
# instantly, and have access to unlimited resources.
|
||||||
|
# Items are not used up, and blocks do not drop.
|
||||||
# Some of the functionality is only available if this setting is present
|
# Some of the functionality is only available if this setting is present
|
||||||
# at startup.
|
# at startup.
|
||||||
creative_mode (Creative mode) bool false
|
creative_mode (Creative mode) bool false
|
||||||
|
@ -16,6 +17,10 @@ enable_fire (Fire) bool true
|
||||||
# Enable flame sound.
|
# Enable flame sound.
|
||||||
flame_sound (Flame sound) bool true
|
flame_sound (Flame sound) bool true
|
||||||
|
|
||||||
|
# If enabled, breaking blocks will cause them to drop as item.
|
||||||
|
# Note that blocks never have drops when in Creative Mode.
|
||||||
|
mcl_do_tile_drops (Blocks have drops) bool true
|
||||||
|
|
||||||
# Normally, players drop all their items when they die. Enable this
|
# Normally, players drop all their items when they die. Enable this
|
||||||
# setting, so players always keep their inventory on death.
|
# setting, so players always keep their inventory on death.
|
||||||
mcl_keep_inventory_on_death (Keep inventory on death) bool false
|
mcl_keep_inventory_on_death (Keep inventory on death) bool false
|
||||||
|
@ -25,6 +30,7 @@ mcl_show_death_messages (Show death messages) bool true
|
||||||
|
|
||||||
# If enabled, only peaceful mobs will appear naturally. This does not
|
# If enabled, only peaceful mobs will appear naturally. This does not
|
||||||
# affect monster spawners.
|
# affect monster spawners.
|
||||||
|
# This setting is only read at startup.
|
||||||
only_peaceful_mobs (Spawn only peaceful mobs) bool false
|
only_peaceful_mobs (Spawn only peaceful mobs) bool false
|
||||||
|
|
||||||
# If enabled, players respawn at the bed they last lay on instead of normal
|
# If enabled, players respawn at the bed they last lay on instead of normal
|
||||||
|
@ -33,5 +39,6 @@ only_peaceful_mobs (Spawn only peaceful mobs) bool false
|
||||||
enable_bed_respawn (Respawn at bed) bool true
|
enable_bed_respawn (Respawn at bed) bool true
|
||||||
|
|
||||||
# If enabled, the night can be skipped if all players are in bed.
|
# If enabled, the night can be skipped if all players are in bed.
|
||||||
|
# This setting is only read at startup.
|
||||||
enable_bed_night_skip (Skip night when sleeping) bool true
|
enable_bed_night_skip (Skip night when sleeping) bool true
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue