]> git.lizzy.rs Git - xdecor.git/blobdiff - src/enchanting.lua
Add settings and compatibility with moreblocks and stairs
[xdecor.git] / src / enchanting.lua
index ad2e7e49135a7dd04bb13c4d3471a0ca12a19534..53ee21776eaf4d4f96d28c5dccc1668c934b3000 100644 (file)
@@ -281,3 +281,24 @@ enchanting:register_tools("default", {
                sword  = {enchants = "sharp"}
        }
 })
+
+enchanting:register_tools("3d_armor", {
+       materials = "steel, bronze, gold, diamond",
+       tools = {
+               boots      = {enchants = "strong, speed"},
+               chestplate = {enchants = "strong"},
+               helmet     = {enchants = "strong"},
+               leggings   = {enchants = "strong"}
+       }
+})
+
+-- Recipes
+
+minetest.register_craft({
+       output = "xdecor:enchantment_table",
+       recipe = {
+               {"", "default:book", ""},
+               {"default:diamond", "default:obsidian", "default:diamond"},
+               {"default:obsidian", "default:obsidian", "default:obsidian"}
+       }
+})
\ No newline at end of file