2014-08-26 00:32:56 +02:00
|
|
|
print("[Chains] v1.1")
|
|
|
|
|
|
|
|
minetest.register_node("chains:chain", {
|
2014-08-26 00:44:26 +02:00
|
|
|
description = "Hanging chain",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
2014-08-26 00:50:43 +02:00
|
|
|
tiles = { "chains_chain.png" },
|
|
|
|
inventory_image = "chains_chain.png",
|
2014-08-26 00:44:26 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_node("chains:chain_top", {
|
2014-08-26 00:44:26 +02:00
|
|
|
description = "Hanging chain (ceiling mount)",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
2014-08-26 00:50:43 +02:00
|
|
|
tiles = { "chains_chain_top.png" },
|
|
|
|
inventory_image = "chains_chain_top_inv.png",
|
2014-08-26 00:44:26 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_node("chains:chandelier", {
|
2014-08-26 00:44:26 +02:00
|
|
|
description = "Chandelier",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
light_source = LIGHT_MAX-2,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
2014-08-26 00:50:43 +02:00
|
|
|
tiles = { {name="chains_chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}},
|
|
|
|
inventory_image = "chains_chandelier_inv.png",
|
2014-08-26 00:44:26 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chain 2',
|
|
|
|
recipe = {
|
|
|
|
{'homedecor:chainlink_steel'},
|
|
|
|
{'homedecor:chainlink_steel'},
|
|
|
|
{'homedecor:chainlink_steel'},
|
|
|
|
}
|
|
|
|
})
|
2014-08-26 00:44:26 +02:00
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chain_top',
|
|
|
|
recipe = {
|
|
|
|
{'default:steel_ingot'},
|
|
|
|
{'homedecor:chainlink_steel'},
|
|
|
|
},
|
|
|
|
})
|
2014-08-26 00:44:26 +02:00
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
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'},
|
|
|
|
}
|
|
|
|
})
|