aboutsummaryrefslogtreecommitdiff
path: root/advtrains/misc_nodes.lua
diff options
context:
space:
mode:
authorBlockhead <jbis1337@hotmail.com>2020-07-16 04:45:35 +1000
committerGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2020-07-25 19:14:57 +0200
commitd65ba80df77432849b3cf852619706632a4e4408 (patch)
tree4bc0754442f40efec5ad5605b7395dcdae025d4f /advtrains/misc_nodes.lua
parent643d69db9c8270af44eb060bd146e56a386f76d8 (diff)
downloadadvtrains-d65ba80df77432849b3cf852619706632a4e4408.tar.gz
advtrains-d65ba80df77432849b3cf852619706632a4e4408.tar.bz2
advtrains-d65ba80df77432849b3cf852619706632a4e4408.zip
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.
Diffstat (limited to 'advtrains/misc_nodes.lua')
-rw-r--r--advtrains/misc_nodes.lua22
1 files changed, 22 insertions, 0 deletions
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",