diff options
author | Blockhead <jbis1337@hotmail.com> | 2020-09-11 02:40:02 +1000 |
---|---|---|
committer | Blockhead <jbis1337@hotmail.com> | 2020-09-11 04:25:38 +1000 |
commit | 1d224d6b4c714ff63f98d3f935ccbd9f697fb1d9 (patch) | |
tree | 5fe70e52cc6d22240451d4a012219888015787f7 /advtrains_train_track/init.lua | |
parent | 7879a0a215547b0e40f5c1469b72547e7633aca7 (diff) | |
download | advtrains-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.lua | 37 |
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", { |