forked from mtcontrib/homedecor_modpack
add inventory images to chains mod
also some basic code style fixes: spaces/tabs, tiles/tile_images, etc.
This commit is contained in:
parent
34df183e29
commit
54708f4179
|
@ -1,43 +1,49 @@
|
||||||
print("[Chains] v1.1")
|
print("[Chains] v1.1")
|
||||||
|
|
||||||
minetest.register_node("chains:chain", {
|
minetest.register_node("chains:chain", {
|
||||||
description = "Chain",
|
description = "Hanging chain",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drops = "",
|
drops = "",
|
||||||
tile_images = { "Chain.png" },
|
tiles = { "Chain.png" },
|
||||||
drawtype = "plantlike",
|
inventory_image = "Chain.png",
|
||||||
groups = {cracky=3},
|
drawtype = "plantlike",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("chains:chain_top", {
|
minetest.register_node("chains:chain_top", {
|
||||||
description = "Chain Top",
|
description = "Hanging chain (ceiling mount)",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drops = "",
|
drops = "",
|
||||||
tile_images = { "Chain_top.png" },
|
tiles = { "Chain_top.png" },
|
||||||
drawtype = "plantlike",
|
inventory_image = "Chain_top_inv.png",
|
||||||
groups = {cracky=3},
|
drawtype = "plantlike",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("chains:chandelier", {
|
minetest.register_node("chains:chandelier", {
|
||||||
description = "Chandelier",
|
description = "Chandelier",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = LIGHT_MAX-2,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drops = "",
|
drops = "",
|
||||||
tile_images = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}},
|
tiles = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}},
|
||||||
drawtype = "plantlike",
|
inventory_image = "Chandelier_inv.png",
|
||||||
groups = {cracky=3},
|
drawtype = "plantlike",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'chains:chain 2',
|
output = 'chains:chain 2',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -46,6 +52,7 @@ minetest.register_craft({
|
||||||
{'homedecor:chainlink_steel'},
|
{'homedecor:chainlink_steel'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'chains:chain_top',
|
output = 'chains:chain_top',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -53,6 +60,7 @@ minetest.register_craft({
|
||||||
{'homedecor:chainlink_steel'},
|
{'homedecor:chainlink_steel'},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'chains:chandelier',
|
output = 'chains:chandelier',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
BIN
chains/textures/Chain_top_inv.png
Normal file
BIN
chains/textures/Chain_top_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 319 B |
BIN
chains/textures/Chandelier_inv.png
Normal file
BIN
chains/textures/Chandelier_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 576 B |
Loading…
Reference in New Issue
Block a user