aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-10-06 15:07:58 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-10-06 15:07:58 +0200
commit0a4af9b99e8e79e6899a02a984b53fa46c729cc5 (patch)
treeae5279beddd4a4468dd9ec0bc0aae394b2a4d10f /wagons.lua
parent08f957f1895f18a8bc017c9a99c5d5ef139694fc (diff)
parent8cae3cf9ee035757d5004389d12634f1a34f90bc (diff)
downloadadvtrains-0a4af9b99e8e79e6899a02a984b53fa46c729cc5.tar.gz
advtrains-0a4af9b99e8e79e6899a02a984b53fa46c729cc5.tar.bz2
advtrains-0a4af9b99e8e79e6899a02a984b53fa46c729cc5.zip
Merge branch 'master' of https://github.com/orwell96/advtrains
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua28
1 files changed, 27 insertions, 1 deletions
diff --git a/wagons.lua b/wagons.lua
index 540a882..47d7aae 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -445,7 +445,33 @@ advtrains.register_wagon("wagon_default", "steam",{
drops={"default:steelblock 4"},
}, "Passenger Wagon", "advtrains_wagon_inv.png")
-advtrains.register_train_type("subway", {"regular", "default"})
+advtrains.register_train_type("electric", {"default"})
+
+advtrains.register_wagon("engine_japan", "electric",{
+ mesh="advtrains_engine_japan.b3d",
+ textures = {"advtrains_engine_japan.png"},
+ attach_offset={x=0, y=10, z=10},
+ view_offset={x=0, y=6, z=0},
+ visual_size = {x=1, y=1},
+ wagon_span=2,
+ is_locomotive=true,
+ collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
+ drops={"default:steelblock 4"},
+}, "Japanese Train Engine", "green.png")
+
+advtrains.register_wagon("wagon_japan", "electric",{
+ mesh="advtrains_wagon_japan.b3d",
+ textures = {"advtrains_wagon_japan.png"},
+ attach_offset={x=0, y=10, z=10},
+ view_offset={x=0, y=6, z=0},
+ visual_size = {x=1, y=1},
+ wagon_span=2,
+ collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
+ drops={"default:steelblock 4"},
+}, "Japanese Train Wagon", "blue.png")
+
+
+advtrains.register_train_type("subway", {"default"})
advtrains.register_wagon("subway_wagon", "subway",{
mesh="advtrains_subway_train.b3d",