master
Andrea Plati 7 years ago
parent 687a3bcd0b
commit b0171614c6
  1. 6
      README.txt
  2. 2
      init.lua
  3. 14
      throwing.conf.example
  4. 10
      tools.lua

@ -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

@ -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")

@ -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

@ -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

Loading…
Cancel
Save