aboutsummaryrefslogtreecommitdiff
path: root/advtrains
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
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')
-rw-r--r--advtrains/misc_nodes.lua22
-rw-r--r--advtrains/models/advtrains_platform_diag.b3dbin1970 -> 1970 bytes
-rw-r--r--advtrains/models/advtrains_platform_diag_low.b3dbin0 -> 1982 bytes
3 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",
diff --git a/advtrains/models/advtrains_platform_diag.b3d b/advtrains/models/advtrains_platform_diag.b3d
index 46c8bd9..9464e63 100644
--- a/advtrains/models/advtrains_platform_diag.b3d
+++ b/advtrains/models/advtrains_platform_diag.b3d
Binary files differ
diff --git a/advtrains/models/advtrains_platform_diag_low.b3d b/advtrains/models/advtrains_platform_diag_low.b3d
new file mode 100644
index 0000000..5a8054b
--- /dev/null
+++ b/advtrains/models/advtrains_platform_diag_low.b3d
Binary files differ