From 3792b2bff8eb70c97e46c8fa136d476511efd34e Mon Sep 17 00:00:00 2001 From: Christian Sirolli <34974905+HeyITGuyFixIt@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:39:56 -0500 Subject: [PATCH 1/2] Create settingstypes.txt --- settingstypes.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 settingstypes.txt diff --git a/settingstypes.txt b/settingstypes.txt new file mode 100644 index 0000000..d5ae3b1 --- /dev/null +++ b/settingstypes.txt @@ -0,0 +1,2 @@ +# Choose between using axes or chisels to get the stripped trees +stripped_tree_enable_chisel (Enable Chisel) bool true From 22f8440df5c2bb53bcf9aa418c3d9db4c40b946f Mon Sep 17 00:00:00 2001 From: Christian Sirolli <34974905+HeyITGuyFixIt@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:43:43 -0500 Subject: [PATCH 2/2] Using core.settings to toggle chisel --- functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index fc73ec1..2f0e133 100644 --- a/functions.lua +++ b/functions.lua @@ -1,6 +1,6 @@ stripped_tree = {} --Select between chisel tool or axes. -stripped_tree.ENABLE_CHISEL = true +stripped_tree.ENABLE_CHISEL = core.settings:get_bool"stripped_tree_enable_chisel" local creative_mode = minetest.settings:get_bool("creative_mode") --Function to verify that stripped tree trunk exists