aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_track/init.lua
diff options
context:
space:
mode:
authorBlockhead <jbis1337@hotmail.com>2020-09-11 02:40:02 +1000
committerBlockhead <jbis1337@hotmail.com>2020-09-11 04:25:38 +1000
commit1d224d6b4c714ff63f98d3f935ccbd9f697fb1d9 (patch)
tree5fe70e52cc6d22240451d4a012219888015787f7 /advtrains_train_track/init.lua
parent7879a0a215547b0e40f5c1469b72547e7633aca7 (diff)
downloadadvtrains-1d224d6b4c714ff63f98d3f935ccbd9f697fb1d9.tar.gz
advtrains-1d224d6b4c714ff63f98d3f935ccbd9f697fb1d9.tar.bz2
advtrains-1d224d6b4c714ff63f98d3f935ccbd9f697fb1d9.zip
Add 3-way turnouts and y-turnouts (both diverging)
Diffstat (limited to 'advtrains_train_track/init.lua')
-rw-r--r--advtrains_train_track/init.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/advtrains_train_track/init.lua b/advtrains_train_track/init.lua
index d85f8a1..227bf02 100644
--- a/advtrains_train_track/init.lua
+++ b/advtrains_train_track/init.lua
@@ -21,6 +21,43 @@ minetest.register_craft({
},
})
+-- y-turnout
+advtrains.register_tracks("default", {
+ nodename_prefix="advtrains:dtrack_sy",
+ texture_prefix="advtrains_dtrack_sy",
+ models_prefix="advtrains_dtrack_sy",
+ models_suffix=".obj",
+ shared_texture="advtrains_dtrack_shared.png",
+ description=attrans("Y-turnout"),
+ formats = {},
+}, advtrains.ap.t_yturnout)
+minetest.register_craft({
+ output = 'advtrains:dtrack_sy_placer 2',
+ recipe = {
+ {'advtrains:dtrack_placer', '', 'advtrains:dtrack_placer'},
+ {'', 'advtrains:dtrack_placer', ''},
+ {'', 'advtrains:dtrack_placer', ''},
+ },
+})
+--3-way turnout
+advtrains.register_tracks("default", {
+ nodename_prefix="advtrains:dtrack_s3",
+ texture_prefix="advtrains_dtrack_s3",
+ models_prefix="advtrains_dtrack_s3",
+ models_suffix=".obj",
+ shared_texture="advtrains_dtrack_shared.png",
+ description=attrans("3-way turnout"),
+ formats = {},
+}, advtrains.ap.t_s3way)
+minetest.register_craft({
+ output = 'advtrains:dtrack_s3_placer 1',
+ recipe = {
+ {'advtrains:dtrack_placer', 'advtrains:dtrack_placer', 'advtrains:dtrack_placer'},
+ {'', 'advtrains:dtrack_placer', ''},
+ {'', '', ''},
+ },
+})
+
-- Diamond Crossings
-- perpendicular
advtrains.register_tracks("default", {