From d8c59e0e8bbebdab4fe06ec4fc203fb8eb27ce5a Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 19 Nov 2021 17:42:37 +0100 Subject: [PATCH 1/2] remove swiftness from egapps The minetest world is already so small that you can reach world border from spawn in about 2 hours. I think the regen and fire resistance are good enough to make them special. --- mods/ITEMS/mcl_core/craftitems.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/craftitems.lua b/mods/ITEMS/mcl_core/craftitems.lua index fc84c50f54..0fb92fcb2c 100644 --- a/mods/ITEMS/mcl_core/craftitems.lua +++ b/mods/ITEMS/mcl_core/craftitems.lua @@ -163,7 +163,7 @@ local function eat_gapple(itemstack, placer, pointed_thing) mcl_potions.fire_resistance_func(placer, 1, 300) mcl_potions.leaping_func(placer, 1, 300) end - mcl_potions.swiftness_func(placer, absorbtion_factor, 120) -- TODO: Absorbtion + -- TODO: Absorbtion mcl_potions.regeneration_func(placer, 2, regen_duration) return gapple_hunger_restore(itemstack, placer, pointed_thing) end From 694252e15310f3fb6a848f0197f82415d994f333 Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 10 Sep 2022 01:06:29 +0200 Subject: [PATCH 2/2] Add a setting for fapples (fast apples) --- mods/ITEMS/mcl_core/craftitems.lua | 5 +++++ settingtypes.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/mods/ITEMS/mcl_core/craftitems.lua b/mods/ITEMS/mcl_core/craftitems.lua index 0fb92fcb2c..94575baca5 100644 --- a/mods/ITEMS/mcl_core/craftitems.lua +++ b/mods/ITEMS/mcl_core/craftitems.lua @@ -2,6 +2,8 @@ local S = minetest.get_translator(minetest.get_current_modname()) +local enable_fapples = minetest.settings:get_bool("mcl_enable_fapples",true) + -- -- Crafting items -- @@ -162,6 +164,9 @@ local function eat_gapple(itemstack, placer, pointed_thing) regen_duration, absorbtion_factor = 20, 4 mcl_potions.fire_resistance_func(placer, 1, 300) mcl_potions.leaping_func(placer, 1, 300) + if enable_fapples then + mcl_potions.swiftness_func(placer, absorbtion_factor, 120) + end end -- TODO: Absorbtion mcl_potions.regeneration_func(placer, 2, regen_duration) diff --git a/settingtypes.txt b/settingtypes.txt index 41fdb24589..75053092fe 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -180,6 +180,9 @@ enable_real_maps (Enable Real Maps) bool true # Enable Bookshelf inventories mcl_bookshelf_inventories (Enable bookshelf inventories) bool true +# Enable swiftness on enchanted golden apples +mcl_enable_fapples (Enable swiftness on enchanted golden apples) bool true + [Debugging] # If enabled, this will show the itemstring of an item in the description. mcl_item_id_debug (Item ID Debug) bool false