Added laminate, slatted wooden and corrugated fences

master
Andrey2470T 2022-08-15 19:05:39 +03:00
parent 385c47cafb
commit e14e1aa740
16 changed files with 107 additions and 1 deletions

View File

@ -42,7 +42,7 @@ register.register_hedge("high_dark_rusty_fence", {
"multidecor_wood.png"
},
bounding_boxes = {
{-0.5, -0.5, -0.5, 0.5, 1.5, -0.3}
{-0.5, -0.5, -0.5, 0.5, 1.5, -0.4}
}
},
{
@ -57,3 +57,73 @@ register.register_hedge("high_dark_rusty_fence", {
type = "shapeless",
recipe = {"multidecor:dark_rusty_fence", "multidecor:dark_rusty_fence"}
})
register.register_furniture_unit("slatted_wooden_fence", {
type = "decoration",
style = "modern",
material = "wood",
visual_scale = 0.5,
description = "Slatted Wooden Fence",
use_texture_alpha = "blend",
mesh = "multidecor_slatted_wooden_fence.b3d",
tiles = {"multidecor_wood.png^multidecor_fence_nail_knob.png"},
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4}}
},
{
recipe = {
{"multidecor:plank", "multidecor:plank", ""},
{"multidecor:plank", "multidecor:metal_bar", ""},
{"multidecor:plank", "multidecor:steel_scissors", ""}
},
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
})
register.register_furniture_unit("high_slatted_wooden_fence", {
type = "decoration",
style = "modern",
material = "wood",
visual_scale = 0.5,
description = "High Slatted Wooden Fence",
use_texture_alpha = "blend",
mesh = "multidecor_high_slatted_wooden_fence.b3d",
tiles = {"multidecor_wood.png^multidecor_fence_nail_knob2.png"},
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.4}}
},
{
type = "shapeless",
recipe = {"multidecor:slatted_wooden_fence", "multidecor:slatted_wooden_fence"}
})
register.register_furniture_unit("corrugated_fence", {
type = "decoration",
style = "modern",
material = "metal",
visual_scale = 0.5,
description = "Corrugated Fence",
mesh = "multidecor_corrugated_fence.b3d",
tiles = {"multidecor_plastic_material.png^[multiply:darkgreen"},
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4}}
},
{
recipe = {
{"multidecor:steel_sheet", "multidecor:steel_sheet", "multidecor:steel_sheet"},
{"multidecor:steel_scissors", "dye:dark_green", ""},
{"", "", ""}
},
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
})
register.register_furniture_unit("high_corrugated_fence", {
type = "decoration",
style = "modern",
material = "metal",
visual_scale = 0.5,
description = "High Corrugated Fence",
mesh = "multidecor_high_corrugated_fence.b3d",
tiles = {"multidecor_plastic_material.png^[multiply:darkgreen"},
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.4}}
},
{
type = "shapeless",
recipe = {"multidecor:corrugated_fence", "multidecor:corrugated_fence"}
})

View File

@ -94,3 +94,39 @@ register.register_furniture_unit("alarm_clock", {
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
})
minetest.register_node(":multidecor:laminate",
{
drawtype = "nodebox",
description = "Laminate",
paramtype = "light",
paramtype2 = "facedir",
tiles = {"multidecor_laminate.png"},
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}
},
groups = {choppy=1.5}
})
--[[register.register_furniture_unit("laminate", {
type = "decoration",
style = "modern",
material = "wood",
drawtype = "nodebox",
visual_scale = 0.5,
description = "Laminate",
tiles = {"multidecor_laminate.png"},
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5 -0.45, 0.5}}
},
{
recipe = {
{"multidecor:plank", "multidecor:multidecor:plank", "multidecor:plank"},
{"multidecor:saw", "", ""},
{"", "", ""}
}
})]]
minetest.debug("laminate: " .. dump(minetest.registered_nodes["multidecor:laminate"]))

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB