2014-08-26 01:02:02 +02:00
|
|
|
print("[Chains] v1.2")
|
2014-08-26 00:32:56 +02:00
|
|
|
|
2014-08-26 00:56:48 +02:00
|
|
|
-- wrought iron items
|
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_node("chains:chain", {
|
2014-08-26 00:56:48 +02:00
|
|
|
description = "Hanging chain (wrought iron)",
|
2014-08-26 00:44:26 +02:00
|
|
|
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:56:48 +02:00
|
|
|
description = "Hanging chain (ceiling mount, wrought iron)",
|
2014-08-26 00:44:26 +02:00
|
|
|
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:56:48 +02:00
|
|
|
description = "Chandelier (wrought iron)",
|
2014-08-26 00:44:26 +02:00
|
|
|
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:56:48 +02:00
|
|
|
-- brass-based items
|
|
|
|
|
|
|
|
minetest.register_node("chains:chain_brass", {
|
|
|
|
description = "Hanging chain (brass)",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
|
|
|
tiles = { "chains_chain_brass.png" },
|
|
|
|
inventory_image = "chains_chain_brass.png",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("chains:chain_top_brass", {
|
|
|
|
description = "Hanging chain (ceiling mount, brass)",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
|
|
|
tiles = { "chains_chain_top_brass.png" },
|
|
|
|
inventory_image = "chains_chain_top_brass_inv.png",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("chains:chandelier_brass", {
|
|
|
|
description = "Chandelier (brass)",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
light_source = LIGHT_MAX-2,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
drops = "",
|
|
|
|
tiles = { {name="chains_chandelier_brass.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}},
|
|
|
|
inventory_image = "chains_chandelier_brass_inv.png",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- crafts
|
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chain 2',
|
|
|
|
recipe = {
|
2014-10-12 07:14:11 +02:00
|
|
|
{'glooptest:chainlink'},
|
|
|
|
{'glooptest:chainlink'},
|
|
|
|
{'glooptest:chainlink'},
|
2014-08-26 00:32:56 +02:00
|
|
|
}
|
|
|
|
})
|
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'},
|
2014-10-12 07:14:11 +02:00
|
|
|
{'glooptest:chainlink'},
|
2014-08-26 00:32:56 +02:00
|
|
|
},
|
|
|
|
})
|
2014-08-26 00:44:26 +02:00
|
|
|
|
2014-08-26 00:32:56 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chandelier',
|
|
|
|
recipe = {
|
2014-10-12 07:14:11 +02:00
|
|
|
{'', 'glooptest:chainlink', ''},
|
|
|
|
{'default:torch', 'glooptest:chainlink', 'default:torch'},
|
2014-08-26 00:32:56 +02:00
|
|
|
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
|
|
|
|
}
|
|
|
|
})
|
2014-08-26 00:56:48 +02:00
|
|
|
|
|
|
|
-- brass versions
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chain_brass 2',
|
|
|
|
recipe = {
|
|
|
|
{'homedecor:chainlink_brass'},
|
|
|
|
{'homedecor:chainlink_brass'},
|
|
|
|
{'homedecor:chainlink_brass'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chain_top_brass',
|
|
|
|
recipe = {
|
|
|
|
{'technic:brass_ingot'},
|
|
|
|
{'homedecor:chainlink_brass'},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'chains:chandelier_brass',
|
|
|
|
recipe = {
|
|
|
|
{'', 'homedecor:chainlink_brass', ''},
|
|
|
|
{'default:torch', 'homedecor:chainlink_brass', 'default:torch'},
|
|
|
|
{'technic:brass_ingot', 'technic:brass_ingot', 'technic:brass_ingot'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|