From 5d5743939f4abfc99150e3b4835dbf3497d565c4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 9 Jun 2017 14:05:58 +0200 Subject: [PATCH] Add tile drops setting --- mods/ENTITIES/mcl_item_entity/init.lua | 2 +- settingtypes.txt | 9 ++++++++- texture_conversions.odt.ods | Bin 0 -> 10515 bytes 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 texture_conversions.odt.ods diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index e2bf05f6f..ac631ca0c 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -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 diff --git a/settingtypes.txt b/settingtypes.txt index 319b1e367..4118b2ad8 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -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 diff --git a/texture_conversions.odt.ods b/texture_conversions.odt.ods new file mode 100644 index 0000000000000000000000000000000000000000..f0494b0229dfa55a9d1d581695ac2a423ae13d8e GIT binary patch literal 10515 zcmeHtbx>Sc_ibarH6b{S1lIt;-8DGD-5Q$4-Gc>pf)hMIu;3noySoJ^xCEDe#r!HS zllf-m{l5R-s=igXs(Y<_&pCb8zI)%TBnJoo3;;j^0C>t8WP`vwVaxyk;PF5L001^1 z8#5<&J2N9YJ21$^$O&W%VR3<>RzCf*hG`?aUyiwkFOtW)LT4M>_{IBU499GczZp z-!xbKhs#hf0D#8>9{>QTSvuPoLySORM;51_r_6Q`i%_N4Qs^jzC;$KeT}E151poj* z0RX^vBsc&7u&9OY0{{TDmE_eVC@3fx7#KJ>I0OU)#Kgp8Wo1=WRdscBO-xLzt*sp$ z9X&lg0|EjfA|m4A;?mO6a&vP_N=mA#s+yXbIyyQA1_mZ3CKeVJ*4Nkf_V&)s&K@2f z9xn!kHX11C0|4mOGU6g?Zu1AJp-F^NI1&Po4-PArcTi~hdo2!8Cpn0_6Tjmy{H)bS zl;X9m3;ic|FQIKf-@BEwaDIl7^Yg&k?{zDK3p}<=i!11KrkpDX_^VKRALc?q<0Nfo zy0pah5(=~CS-HCrbo13(rEsH(wdDxUs^GV-P<~$={rcX*7;=l3C3MPED>bg4hx76Y~MDS^BF;O2J0i4`D-ee&IKIT@|0h&=SXE)vT->SOc>(2*i_Te?Wu$b z9bO~t2yB$^1y&c~Cnk>MLzQV}`e}Id`m(z?O-PL;R*UmH+02x<-+{I?&xonIrfA!P$GnNSm*J|-Om#U6Q)C~a3@+sa^iuix>b z2x|EWuG$YtIdq@x7xy|0Q=;_58D5XKg=N9YQw67u3py3>&Aje@xmjNzXU_Yv_Q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