diff --git a/chains/depends.txt b/chains/depends.txt new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/chains/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/chains/init.lua b/chains/init.lua new file mode 100644 index 00000000..755019b5 --- /dev/null +++ b/chains/init.lua @@ -0,0 +1,63 @@ +print("[Chains] v1.1") + +minetest.register_node("chains:chain", { + description = "Chain", + walkable = false, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tile_images = { "Chain.png" }, + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) +minetest.register_node("chains:chain_top", { + description = "Chain Top", + walkable = false, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tile_images = { "Chain_top.png" }, + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) +minetest.register_node("chains:chandelier", { + description = "Chandelier", + paramtype = "light", + walkable = false, + light_source = LIGHT_MAX-2, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tile_images = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}}, + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) +minetest.register_craft({ + output = 'chains:chain 2', + recipe = { + {'homedecor:chainlink_steel'}, + {'homedecor:chainlink_steel'}, + {'homedecor:chainlink_steel'}, + } +}) +minetest.register_craft({ + output = 'chains:chain_top', + recipe = { + {'default:steel_ingot'}, + {'homedecor:chainlink_steel'}, + }, +}) +minetest.register_craft({ + output = 'chains:chandelier', + recipe = { + {'', 'homedecor:chainlink_steel', ''}, + {'default:torch', 'homedecor:chainlink_steel', 'default:torch'}, + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + } +}) diff --git a/chains/textures/Chain.png b/chains/textures/Chain.png new file mode 100644 index 00000000..36cb2258 Binary files /dev/null and b/chains/textures/Chain.png differ diff --git a/chains/textures/Chain_roll.png b/chains/textures/Chain_roll.png new file mode 100644 index 00000000..908e262e Binary files /dev/null and b/chains/textures/Chain_roll.png differ diff --git a/chains/textures/Chain_top.png b/chains/textures/Chain_top.png new file mode 100644 index 00000000..9279f956 Binary files /dev/null and b/chains/textures/Chain_top.png differ diff --git a/chains/textures/Chandelier.png b/chains/textures/Chandelier.png new file mode 100644 index 00000000..18a61f77 Binary files /dev/null and b/chains/textures/Chandelier.png differ