From d65ba80df77432849b3cf852619706632a4e4408 Mon Sep 17 00:00:00 2001 From: Blockhead Date: Thu, 16 Jul 2020 04:45:35 +1000 Subject: Add low 45 degree platforms I would like to take this opportunity to credit Och_Noe as the original author for the plans to the 45 degree platform model. I failed to credit him properly when the first lot of 45 degree platforms were added. --- advtrains/misc_nodes.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'advtrains/misc_nodes.lua') diff --git a/advtrains/misc_nodes.lua b/advtrains/misc_nodes.lua index f1fb030..93d5572 100644 --- a/advtrains/misc_nodes.lua +++ b/advtrains/misc_nodes.lua @@ -68,6 +68,28 @@ function advtrains.register_platform(modprefix, preset) paramtype = "light", sunlight_propagates = true, }) + local diagonalbox_low = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0.5, -0.25, 0, -0.8 }, + {-0.25, -0.5, 0.5 , 0, 0, -0.55}, + {0, -0.5, 0.5 , 0.25, 0, -0.3 }, + {0.25 , -0.5, 0.5, 0.5, 0, -0.05} + } + } + minetest.register_node(modprefix..":platform_45_low_"..nodename, { + description = attrans("@1 Platform (low, 45 degree)", desc), + groups = {cracky = 1, not_blocking_trains = 1, platform=2}, + sounds = default.node_sound_stone_defaults(), + drawtype = "mesh", + mesh = "advtrains_platform_diag_low.b3d", + selection_box = diagonalbox_low, + collision_box = diagonalbox_low, + 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", -- cgit v1.2.3