forked from MineClone5/MineClone5
Add tile drops setting
This commit is contained in:
parent
bc04767529
commit
5d5743939f
|
@ -139,7 +139,7 @@ minetest.register_globalstep(function(dtime)
|
|||
end)
|
||||
|
||||
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
|
||||
end
|
||||
for _,item in ipairs(drops) do
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
# This file contains settings of MineClone 2that can be changed in
|
||||
# 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.
|
||||
# Items are not used up, and blocks do not drop.
|
||||
# Some of the functionality is only available if this setting is present
|
||||
# at startup.
|
||||
creative_mode (Creative mode) bool false
|
||||
|
@ -16,6 +17,10 @@ enable_fire (Fire) bool true
|
|||
# Enable flame sound.
|
||||
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
|
||||
# setting, so players always keep their inventory on death.
|
||||
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
|
||||
# affect monster spawners.
|
||||
# This setting is only read at startup.
|
||||
only_peaceful_mobs (Spawn only peaceful mobs) bool false
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue