homedecor_modpack/chains/init.lua

72 lines
1.8 KiB
Lua
Raw Normal View History

print("[Chains] v1.1")
minetest.register_node("chains:chain", {
description = "Hanging chain",
walkable = false,
climbable = true,
sunlight_propagates = true,
paramtype = "light",
drops = "",
tiles = { "chains_chain.png" },
inventory_image = "chains_chain.png",
drawtype = "plantlike",
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("chains:chain_top", {
description = "Hanging chain (ceiling mount)",
walkable = false,
climbable = true,
sunlight_propagates = true,
paramtype = "light",
drops = "",
tiles = { "chains_chain_top.png" },
inventory_image = "chains_chain_top_inv.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 = "",
tiles = { {name="chains_chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}},
inventory_image = "chains_chandelier_inv.png",
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'},
}
})