aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--readme.txt1
4 files changed, 23 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
diff --git a/readme.txt b/readme.txt
index e095ba4..3a540f9 100644
--- a/readme.txt
+++ b/readme.txt
@@ -35,6 +35,7 @@ advtrains_japan_horn : Codesound
advtrains_steam_whistle : googol
advtrains_subway_horn : https://freesound.org/people/Mullumbimby/sounds/385283/
advtrains_subway_* : Gabriel (gbl08ma)
+45 degree platforms design : Och_Noe
Testers:
gpcf (Linuxworks server)