aboutsummaryrefslogtreecommitdiff
path: root/moretrains_industrial/init.lua
diff options
context:
space:
mode:
authorrbduck <rbduck@platen-software.de>2020-02-11 21:56:50 +0100
committerrbduck <rbduck@platen-software.de>2020-02-11 21:56:50 +0100
commitf5b39a1476e1d3515278c2136b6336dac38bac39 (patch)
tree69ce0d102afab02ec831478dd431855bc88fa081 /moretrains_industrial/init.lua
parente206b8f4dd3ddbafed485a8a95f5d58340b03bc7 (diff)
downloadmoretrains-f5b39a1476e1d3515278c2136b6336dac38bac39.tar.gz
moretrains-f5b39a1476e1d3515278c2136b6336dac38bac39.tar.bz2
moretrains-f5b39a1476e1d3515278c2136b6336dac38bac39.zip
finished wood and tank wagons
Diffstat (limited to 'moretrains_industrial/init.lua')
-rw-r--r--moretrains_industrial/init.lua28
1 files changed, 25 insertions, 3 deletions
diff --git a/moretrains_industrial/init.lua b/moretrains_industrial/init.lua
index 3694d91..6585540 100644
--- a/moretrains_industrial/init.lua
+++ b/moretrains_industrial/init.lua
@@ -25,7 +25,29 @@ advtrains.register_wagon("moretrains_wagon_tank", {
inventory_list_sizes = {
box=8*3,
},
-}, S("Industrial tank wagon"), "moretrains_wagon_tank_inv.png")
+}, S("Industrial tank wagon (silver)"), "moretrains_wagon_tank_inv.png")
+
+advtrains.register_wagon("moretrains_wagon_tank2", {
+ mesh="moretrains_wagon_tank.obj",
+ textures = {"moretrains_wagon_tank2.png"},
+ seats = {},
+ drives_on={default=true},
+ max_speed=20,
+ visual_size = {x=1, y=1},
+ wagon_span=2.349,
+ collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
+ drops={"default:steelblock 4"},
+ has_inventory = true,
+ get_inventory_formspec = function(self, pname, invname)
+ return "size[8,11]"..
+ "list["..invname..";box;0,0;8,3;]"..
+ "list[current_player;main;0,5;8,4;]"..
+ "listring[]"
+ end,
+ inventory_list_sizes = {
+ box=8*3,
+ },
+}, S("Industrial tank wagon (blue)"), "moretrains_wagon_tank2_inv.png")
advtrains.register_wagon("moretrains_wagon_wood", {
@@ -48,7 +70,7 @@ advtrains.register_wagon("moretrains_wagon_wood", {
inventory_list_sizes = {
box=8*3,
},
-}, S("Industrial wood wagon"), "moretrains_wagon_tank_inv.png")
+}, S("Industrial wood wagon"), "moretrains_wagon_wood_inv.png")
advtrains.register_wagon("moretrains_wagon_wood_loaded", {
mesh="moretrains_wagon_wood_loaded.obj",
@@ -70,4 +92,4 @@ advtrains.register_wagon("moretrains_wagon_wood_loaded", {
inventory_list_sizes = {
box=8*3,
},
-}, S("Industrial wood wagon (loaded)"), "moretrains_wagon_tank_inv.png") \ No newline at end of file
+}, S("Industrial wood wagon (loaded)"), "moretrains_wagon_wood_loaded_inv.png") \ No newline at end of file