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 e2bf05f6..ac631ca0 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 319b1e36..4118b2ad 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 zcmWIWW@Zs#VBlb2uw1v(t2M{6OOJtp0fadi7#MOhb5lzy3sMsc3UV@&6H7Al^YqK| zQuOi@i!+P$@(WV)Qu32ab5rw5^ok3LQWH~(Gg4DaP|bYUcy1jR9|HpjOE54ngk+TF zCgmk&<`nCfz?gakdFh=2e(t6tWX((Ku@ z7cXACdiCnfn>X*?z5DRt!>3Q5zI^%e?c28>KYslB_3O`{KmYsp4`kW@|GVOS;}{rt zvproLLn>~)oz*!_%3a9SHg7@E{qKMN|DQ8G(!{C6JFl|DruZDojjR=1s~$c37RUC- z@c(}K`akzSciU*6|N6CM+sp0u&)l}m*S&L}S2M-zKC8sT|AlpW%k7e;MU`sKo_cV# zQtF-?-hb|zU*10RU(U6Ndt1AV&cE>u$?{mcdP;4dMSuOi|3@d>InK+oEZ5 z(ua??f0j<#yzkA#H zq_jq6bD4Xxo5vLX?6Bdoi)^raSa{aG=-B5st4R9R&4uN^6ZdvyOxcH`N7hyOhU$S*S|L?G`Zwm$bJ0ROQBknF)6s@ z&lB;$Sw#`grEeV5*?uPCNnF)8+5K~JvN+vJ7fijEC;Tq|fbc8tEgxJW+Y7$g>ueM; z`wf3dFD*s7h_JnyXh4#{}`A8YUKb$;Q@Bj2KDRvgjR&-jdE zp*Q1KpPHYYSN~43K4S9Yg!TUUJ}XX;>90#uS{C&`*X489xJ0fW}9V? zZ|-$nCN0nB!0~+Hs?ynCuN>UN9#bo!6l3+n`C@kEgvgnqsz>&GKCRPNRG7MPXWZ#P zOLzHKKVtuv`~04eoxkp!K>DnWyDbdfI(J&MvM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