summaryrefslogtreecommitdiff
path: root/castle_weapons/battleaxe.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-17 16:53:18 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-17 16:53:18 -0400
commit907e8bf6a64215a516fdf16869dd81248aeaa2f6 (patch)
treed199282e5764c7ab5183fe0d78ed0412dbb0b89f /castle_weapons/battleaxe.lua
parent06d9243586cecb1abed74550ce2544b436572a35 (diff)
downloaddreambuilder_modpack-907e8bf6a64215a516fdf16869dd81248aeaa2f6.tar
dreambuilder_modpack-907e8bf6a64215a516fdf16869dd81248aeaa2f6.tar.gz
dreambuilder_modpack-907e8bf6a64215a516fdf16869dd81248aeaa2f6.tar.bz2
dreambuilder_modpack-907e8bf6a64215a516fdf16869dd81248aeaa2f6.tar.xz
dreambuilder_modpack-907e8bf6a64215a516fdf16869dd81248aeaa2f6.zip
update digilines, technic, unified inventory,
and switched castles to the new modpack form
Diffstat (limited to 'castle_weapons/battleaxe.lua')
-rw-r--r--castle_weapons/battleaxe.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/castle_weapons/battleaxe.lua b/castle_weapons/battleaxe.lua
new file mode 100644
index 0000000..f882cf9
--- /dev/null
+++ b/castle_weapons/battleaxe.lua
@@ -0,0 +1,28 @@
+-- internationalization boilerplate
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP.."/intllib.lua")
+
+minetest.register_alias("castle:battleaxe", "castle_weapons:battleaxe")
+
+minetest.register_tool("castle_weapons:battleaxe", {
+ description = S("Battleaxe"),
+ inventory_image = "castle_battleaxe.png",
+ tool_capabilities = {
+ full_punch_interval = 2.0,
+ max_drop_level=1,
+ groupcaps={
+ choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=20, maxlevel=3},
+ snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=20, maxlevel=3},
+ },
+ damage_groups = {fleshy=7},
+ },
+})
+
+minetest.register_craft({
+ output = "castle_weapons:battleaxe",
+ recipe = {
+ {"default:steel_ingot", "default:steel_ingot","default:steel_ingot"},
+ {"default:steel_ingot", "default:stick","default:steel_ingot"},
+ {"", "default:stick",""}
+ }
+})