diff --git a/nodes.lua b/nodes.lua index 9387231..32e21d2 100644 --- a/nodes.lua +++ b/nodes.lua @@ -428,6 +428,13 @@ xdecor.register("tatami", { node_box = xdecor.nodebox.slab_y(0.0625) }) +xdecor.register("trampoline", { + description = "Trampoline", + tiles = {"xdecor_trampoline.png", "xdecor_trampoline_sides.png"}, + groups = {snappy=3, flammable=3, fall_damage_add_percent=-80, bouncy=90}, + node_box = xdecor.nodebox.slab_y(0.5) +}) + xdecor.register("tv", { description = "Television", light_source = 11, diff --git a/recipes.lua b/recipes.lua index ba1812e..33ea2c8 100644 --- a/recipes.lua +++ b/recipes.lua @@ -324,6 +324,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:trampoline", + recipe = { + {"farming:string", "farming:string", "farming:string"}, + {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, + {"default:steel_ingot", "", "default:steel_ingot"} + } +}) + minetest.register_craft({ output = "xdecor:tv", recipe = { diff --git a/textures/xdecor_trampoline.png b/textures/xdecor_trampoline.png new file mode 100644 index 0000000..760f49d Binary files /dev/null and b/textures/xdecor_trampoline.png differ diff --git a/textures/xdecor_trampoline_sides.png b/textures/xdecor_trampoline_sides.png new file mode 100644 index 0000000..3b96ebb Binary files /dev/null and b/textures/xdecor_trampoline_sides.png differ