aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_track/init.lua
diff options
context:
space:
mode:
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", {