mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
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,29 +1,33 @@
|
||||
print("[Chains] v1.1")
|
||||
|
||||
minetest.register_node("chains:chain", {
|
||||
description = "Chain",
|
||||
description = "Hanging chain",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
drops = "",
|
||||
tile_images = { "Chain.png" },
|
||||
tiles = { "Chain.png" },
|
||||
inventory_image = "Chain.png",
|
||||
drawtype = "plantlike",
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("chains:chain_top", {
|
||||
description = "Chain Top",
|
||||
description = "Hanging chain (ceiling mount)",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
drops = "",
|
||||
tile_images = { "Chain_top.png" },
|
||||
tiles = { "Chain_top.png" },
|
||||
inventory_image = "Chain_top_inv.png",
|
||||
drawtype = "plantlike",
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("chains:chandelier", {
|
||||
description = "Chandelier",
|
||||
paramtype = "light",
|
||||
@ -33,11 +37,13 @@ minetest.register_node("chains:chandelier", {
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
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}}},
|
||||
inventory_image = "Chandelier_inv.png",
|
||||
drawtype = "plantlike",
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'chains:chain 2',
|
||||
recipe = {
|
||||
@ -46,6 +52,7 @@ minetest.register_craft({
|
||||
{'homedecor:chainlink_steel'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'chains:chain_top',
|
||||
recipe = {
|
||||
@ -53,6 +60,7 @@ minetest.register_craft({
|
||||
{'homedecor:chainlink_steel'},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'chains:chandelier',
|
||||
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