Add 45 degree diagonal platforms with a mesh
parent
9d7b21c451
commit
09fda4ffaa
|
@ -46,6 +46,28 @@ function advtrains.register_platform(modprefix, preset)
|
|||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
local diagonalbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.5, -0.25, 0.5, -0.8 },
|
||||
{-0.25, -0.5, 0.5 , 0, 0.5, -0.55},
|
||||
{0, -0.5, 0.5 , 0.25, 0.5, -0.3 },
|
||||
{0.25 , -0.5, 0.5, 0.5, 0.5, -0.05}
|
||||
}
|
||||
}
|
||||
minetest.register_node(modprefix..":platform_45_"..nodename, {
|
||||
description = attrans("@1 Platform (45 degree)", desc),
|
||||
groups = {cracky = 1, not_blocking_trains = 1, platform=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drawtype = "mesh",
|
||||
mesh = "advtrains_platform_diag.b3d",
|
||||
selection_box = diagonalbox,
|
||||
collision_box = diagonalbox,
|
||||
tiles = {btex, btex.."^advtrains_platform_diag.png"},
|
||||
paramtype2 = "facedir",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shapeless",
|
||||
output = modprefix .. ":platform_high_"..nodename.." 4",
|
||||
|
@ -60,6 +82,13 @@ function advtrains.register_platform(modprefix, preset)
|
|||
"dye:yellow", preset
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shapeless",
|
||||
output = modprefix .. ":platform_45_"..nodename.." 2",
|
||||
recipe = {
|
||||
"dye:yellow", preset, preset, preset
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 93 B |
Loading…
Reference in New Issue