forked from VoxeLibre/VoxeLibre
Add a setting for fapples (fast apples)
This commit is contained in:
parent
d8c59e0e8b
commit
694252e153
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
local S = minetest.get_translator(minetest.get_current_modname())
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
|
|
||||||
|
local enable_fapples = minetest.settings:get_bool("mcl_enable_fapples",true)
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Crafting items
|
-- Crafting items
|
||||||
--
|
--
|
||||||
|
@ -162,6 +164,9 @@ local function eat_gapple(itemstack, placer, pointed_thing)
|
||||||
regen_duration, absorbtion_factor = 20, 4
|
regen_duration, absorbtion_factor = 20, 4
|
||||||
mcl_potions.fire_resistance_func(placer, 1, 300)
|
mcl_potions.fire_resistance_func(placer, 1, 300)
|
||||||
mcl_potions.leaping_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
|
end
|
||||||
-- TODO: Absorbtion
|
-- TODO: Absorbtion
|
||||||
mcl_potions.regeneration_func(placer, 2, regen_duration)
|
mcl_potions.regeneration_func(placer, 2, regen_duration)
|
||||||
|
|
|
@ -180,6 +180,9 @@ enable_real_maps (Enable Real Maps) bool true
|
||||||
# Enable Bookshelf inventories
|
# Enable Bookshelf inventories
|
||||||
mcl_bookshelf_inventories (Enable bookshelf inventories) bool true
|
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]
|
[Debugging]
|
||||||
# If enabled, this will show the itemstring of an item in the description.
|
# If enabled, this will show the itemstring of an item in the description.
|
||||||
mcl_item_id_debug (Item ID Debug) bool false
|
mcl_item_id_debug (Item ID Debug) bool false
|
||||||
|
|
Loading…
Reference in New Issue