From: Scott Worley Date: Sun, 18 Oct 2020 21:57:45 +0000 (-0700) Subject: Gold sword X-Git-Url: http://git.scottworley.com/gold_sword/commitdiff_plain?ds=sidebyside Gold sword --- f684a741e9abdf9174fa535b2098237054dda0b5 diff --git a/init.lua b/init.lua new file mode 100644 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 index 0000000..1cc58a7 Binary files /dev/null and b/textures/gold_sword_tool_goldsword.png differ