From cd64a3610a002ba7c718c001b358118036062970 Mon Sep 17 00:00:00 2001 From: jp Date: Sat, 4 Jul 2015 13:20:00 +0200 Subject: [PATCH] Add Ivy --- crafts.lua | 70 ++++++++++++++++++++++------------------ nodes.lua | 15 +++++++++ textures/xdecor_ivy.png | Bin 0 -> 242 bytes 3 files changed, 54 insertions(+), 31 deletions(-) create mode 100644 textures/xdecor_ivy.png diff --git a/crafts.lua b/crafts.lua index 8edf5a7..7f2dca2 100644 --- a/crafts.lua +++ b/crafts.lua @@ -7,6 +7,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:barrel", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"default:iron_lump", "", "default:iron_lump"}, + {"group:wood", "group:wood", "group:wood"} + } +}) + minetest.register_craft({ output = "xdecor:candle", recipe = { @@ -28,36 +37,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - output = "xdecor:painting", - recipe = { - {"default:sign_wall", "dye:blue"} - } -}) - -minetest.register_craft({ - output = "xdecor:moonbrick", - recipe = { - {"default:brick", "default:stone"} - } -}) - -minetest.register_craft({ - output = "xdecor:flint_steel", - recipe = { - {"default:obsidian_shard", "default:steel_ingot"} - } -}) - -minetest.register_craft({ - output = "xdecor:barrel", - recipe = { - {"group:wood", "group:wood", "group:wood"}, - {"default:iron_lump", "", "default:iron_lump"}, - {"group:wood", "group:wood", "group:wood"} - } -}) - minetest.register_craft({ output = "xdecor:cabinet", recipe = { @@ -126,6 +105,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:flint_steel", + recipe = { + {"default:obsidian_shard", "default:steel_ingot"} + } +}) + minetest.register_craft({ output = "xdecor:frame", recipe = { @@ -148,6 +134,14 @@ minetest.register_craftitem("xdecor:hammer", { inventory_image = "xdecor_hammer.png" }) +minetest.register_craft({ + output = "xdecor:ivy 2", + recipe = { + {"group:leaves", "group:stick"}, + {"group:stick", "group:leaves"} + } +}) + minetest.register_craft({ output = "xdecor:japanese_door", recipe = { @@ -184,6 +178,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:moonbrick", + recipe = { + {"default:brick", "default:stone"} + } +}) + minetest.register_craft({ output = "xdecor:multishelf", recipe = { @@ -193,6 +194,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:painting", + recipe = { + {"default:sign_wall", "dye:blue"} + } +}) + minetest.register_craft({ output = "xdecor:plant_pot", recipe = { @@ -203,7 +211,7 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "xdecor:rope 2", + output = "xdecor:rope", recipe = { {"farming:string"}, {"farming:string"}, diff --git a/nodes.lua b/nodes.lua index 8ba912a..c2e470d 100644 --- a/nodes.lua +++ b/nodes.lua @@ -276,6 +276,21 @@ minetest.register_tool("xdecor:flint_steel", { end }) +xdecor.register("ivy", { + description = "Ivy", + drawtype = "signlike", + walkable = false, + climbable = true, + groups = {dig_immediate=3, flammable=2, plant=1}, + paramtype2 = "wallmounted", + selection_box = { type="wallmounted" }, + legacy_wallmounted = true, + tiles = {"xdecor_ivy.png"}, + inventory_image = "xdecor_ivy.png", + wield_image = "xdecor_ivy.png", + sounds = xdecor.leaves +}) + xdecor.register("lantern", { description = "Lantern", light_source = 12, diff --git a/textures/xdecor_ivy.png b/textures/xdecor_ivy.png new file mode 100644 index 0000000000000000000000000000000000000000..65c65f9ebfdc8e3b4009876faa6ab52ff0fad0ff GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHF4e$wZ1=4=?s*c5?RY}Yf@&Xm^%mNcxjyyf%;1tm4*deR3#j7K*Q<34s1EG|V2RsbgTN56nuw8UI#uF|f!6G4X zHNuA5Axc7chP;7+mxh6Xp@cD~Ay=b_rGbi(W~0P8p00$qXLQ&jWDW-LTs+p(o51#& hjm?qK;51_gV^kbZV$tfj^FZqvJYD@<);T3K0RYibMo0hv literal 0 HcmV?d00001