forked from nalc/homedecor_modpack
import Doc's "chains" mod
This mod adds chandeliers hanging from a chain; recipes have been changed from Doc's original to use homedecor's chainlinks instead of steel ingots.
This commit is contained in:
parent
0afd5b9b2c
commit
34df183e29
1
chains/depends.txt
Normal file
1
chains/depends.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
default
|
63
chains/init.lua
Normal file
63
chains/init.lua
Normal file
@ -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'},
|
||||||
|
}
|
||||||
|
})
|
BIN
chains/textures/Chain.png
Normal file
BIN
chains/textures/Chain.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 194 B |
BIN
chains/textures/Chain_roll.png
Normal file
BIN
chains/textures/Chain_roll.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 216 B |
BIN
chains/textures/Chain_top.png
Normal file
BIN
chains/textures/Chain_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 387 B |
BIN
chains/textures/Chandelier.png
Normal file
BIN
chains/textures/Chandelier.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 710 B |
Loading…
Reference in New Issue
Block a user