]> git.scottworley.com Git - gold_sword/commitdiff
Gold sword master
authorScott Worley <scottworley@scottworley.com>
Sun, 18 Oct 2020 21:57:45 +0000 (14:57 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 18 Oct 2020 21:57:45 +0000 (14:57 -0700)
init.lua [new file with mode: 0644]
textures/gold_sword_tool_goldsword.png [new file with mode: 0644]

diff --git a/init.lua b/init.lua
new file mode 100644 (file)
index 0000000..7a47cce
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,22 @@
+minetest.register_tool("gold_sword:sword_gold", {
+  description = "Gold Sword",
+  inventory_image = "gold_sword_tool_goldsword.png",
+  tool_capabilities = {
+    full_punch_interval = 0.9,
+    max_drop_level=1,
+    groupcaps={
+      snappy={times={[2]=1.40, [3]=0.30}, uses=30, maxlevel=1},
+    },
+    damage_groups = {fleshy=4},
+  },
+  sound = {breaks = "default_tool_breaks"},
+})
+
+minetest.register_craft({
+  output = 'gold_sword:sword_gold',
+  recipe = {
+    {'default:gold_ingot'},
+    {'default:gold_ingot'},
+    {'group:stick'},
+  }
+})
diff --git a/textures/gold_sword_tool_goldsword.png b/textures/gold_sword_tool_goldsword.png
new file mode 100644 (file)
index 0000000..1cc58a7
Binary files /dev/null and b/textures/gold_sword_tool_goldsword.png differ