diff --git a/README.txt b/README.txt index 47f3bd3..dbcb9d4 100644 --- a/README.txt +++ b/README.txt @@ -20,9 +20,13 @@ Grahpics & sounds: CC-BY 3.0 (see http://creativecommons.org/licenses/by/3.0/leg Changelog: +Update 1.2: +- Added arbalest +- Defaults initialized + Update 1.1: - Added crossbow -- Code shring +- Code shrink - Offensive arrows go through flora's and farming's - Small fixes diff --git a/init.lua b/init.lua index b2d48d7..be1d42a 100644 --- a/init.lua +++ b/init.lua @@ -14,6 +14,8 @@ throwing_arrows = { {"throwing:arrow_fireworks_red", "throwing:arrow_fireworks_red_entity"}, } +dofile(minetest.get_modpath("throwing").."/defaults.lua") + local input = io.open(minetest.get_modpath("throwing").."/throwing.conf", "r") if input then dofile(minetest.get_modpath("throwing").."/throwing.conf") diff --git a/throwing.conf.example b/throwing.conf.example index 1fcf418..f0e1ba5 100644 --- a/throwing.conf.example +++ b/throwing.conf.example @@ -1,4 +1,4 @@ -# You can disable any bow and arrow by writing lines like these inside throwing.conf +# You can disable or disable any bow and arrow by writing lines like these inside throwing.conf # # DISABLE_WOODEN_BOW = true # @@ -18,10 +18,10 @@ # DISABLE_CROSSBOW = true # # -# DISABLE_BUILD_ARROW = true +# DISABLE_BUILD_ARROW = false # # -# DISABLE_DIG_ARROW = true +# DISABLE_DIG_ARROW = false # # # DISABLE_DIAMOND_ARROW = true @@ -36,16 +36,16 @@ # DISABLE_STEEL_ARROW = true # # -# DISABLE_STONE_ARROW = true +# DISABLE_STONE_ARROW = false # # -# DISABLE_TELEPORT_ARROW = true +# DISABLE_TELEPORT_ARROW = false # # -# DISABLE_FIRE_ARROW = true +# DISABLE_FIRE_ARROW = false # # -# DISABLE_TNT_ARROW = true +# DISABLE_TNT_ARROW = false # # # DISABLE_TORCH_ARROW = true diff --git a/tools.lua b/tools.lua index 4fcd8a0..45e8f41 100644 --- a/tools.lua +++ b/tools.lua @@ -39,9 +39,17 @@ if not DISABLE_ROYAL_BOW then end if not DISABLE_CROSSBOW then - throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1, z=0.5}, 28, 5, 80, true, { + throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1.3, z=0.5}, 28, 5, 80, true, { {'group:wood', 'farming:string', ''}, {'default:steel_ingot', 'farming:string', 'group:wood'}, {'group:wood', 'farming:string', ''}, }) end + +if not DISABLE_ARBALEST then + throwing_register_bow ('arbalest', 'Arbalest', {x=1, y=1.3, z=0.5}, 35, 7.5, 120, true, { + {'default:steel_ingot', 'farming:string', 'default:stick'}, + {'default:steel_ingot', 'farming:string', 'default:steel_ingot'}, + {'default:steel_ingot', 'farming:string', 'default:stick'}, + }) +end