aboutsummaryrefslogtreecommitdiff
path: root/moretrains_vintage
diff options
context:
space:
mode:
Diffstat (limited to 'moretrains_vintage')
-rw-r--r--moretrains_vintage/blend/moretrains_draisine.blendbin714760 -> 709104 bytes
-rw-r--r--moretrains_vintage/blend/moretrains_draisine.blend1bin0 -> 709104 bytes
-rw-r--r--moretrains_vintage/blend/moretrains_minecart.blendbin706488 -> 706520 bytes
-rw-r--r--moretrains_vintage/blend/moretrains_minecart.blend1bin0 -> 706520 bytes
-rw-r--r--moretrains_vintage/blend/moretrains_minecart_loaded.blendbin0 -> 713452 bytes
-rw-r--r--moretrains_vintage/blend/moretrains_minecart_loaded.blend1bin0 -> 713452 bytes
-rw-r--r--moretrains_vintage/init.lua84
-rw-r--r--moretrains_vintage/models/moretrains_minecart.b3dbin32829 -> 32829 bytes
-rw-r--r--moretrains_vintage/models/moretrains_minecart_loaded.b3dbin0 -> 37828 bytes
-rwxr-xr-xmoretrains_vintage/textures/moretrains_vintage.pngbin5376 -> 60600 bytes
-rw-r--r--moretrains_vintage/textures/moretrains_vintage.xcfbin0 -> 222463 bytes
11 files changed, 84 insertions, 0 deletions
diff --git a/moretrains_vintage/blend/moretrains_draisine.blend b/moretrains_vintage/blend/moretrains_draisine.blend
index 2797662..8b25acc 100644
--- a/moretrains_vintage/blend/moretrains_draisine.blend
+++ b/moretrains_vintage/blend/moretrains_draisine.blend
Binary files differ
diff --git a/moretrains_vintage/blend/moretrains_draisine.blend1 b/moretrains_vintage/blend/moretrains_draisine.blend1
new file mode 100644
index 0000000..09f4c0e
--- /dev/null
+++ b/moretrains_vintage/blend/moretrains_draisine.blend1
Binary files differ
diff --git a/moretrains_vintage/blend/moretrains_minecart.blend b/moretrains_vintage/blend/moretrains_minecart.blend
index 3ba7029..72c5cac 100644
--- a/moretrains_vintage/blend/moretrains_minecart.blend
+++ b/moretrains_vintage/blend/moretrains_minecart.blend
Binary files differ
diff --git a/moretrains_vintage/blend/moretrains_minecart.blend1 b/moretrains_vintage/blend/moretrains_minecart.blend1
new file mode 100644
index 0000000..b0a575d
--- /dev/null
+++ b/moretrains_vintage/blend/moretrains_minecart.blend1
Binary files differ
diff --git a/moretrains_vintage/blend/moretrains_minecart_loaded.blend b/moretrains_vintage/blend/moretrains_minecart_loaded.blend
new file mode 100644
index 0000000..a7c312f
--- /dev/null
+++ b/moretrains_vintage/blend/moretrains_minecart_loaded.blend
Binary files differ
diff --git a/moretrains_vintage/blend/moretrains_minecart_loaded.blend1 b/moretrains_vintage/blend/moretrains_minecart_loaded.blend1
new file mode 100644
index 0000000..a9dd1bc
--- /dev/null
+++ b/moretrains_vintage/blend/moretrains_minecart_loaded.blend1
Binary files differ
diff --git a/moretrains_vintage/init.lua b/moretrains_vintage/init.lua
index 74d5a37..6d5faa9 100644
--- a/moretrains_vintage/init.lua
+++ b/moretrains_vintage/init.lua
@@ -86,6 +86,90 @@ advtrains.register_wagon("moretrains_minecart", {
},
}, S("Minecart"), "moretrains_minecart_inv.png")
+advtrains.register_wagon("moretrains_minecart_loaded", {
+ mesh="moretrains_minecart_loaded.b3d",
+ textures = {"moretrains_vintage.png"},
+ drives_on={default=true},
+ max_speed=6,
+ seats = {},
+ visual_size = {x=1, y=1},
+ wagon_span=1.06,
+ collisionbox = {-0.8,-0.5,-0.7, 0.8,2,0.7},
+ drops={"default:wood"},
+ 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=1*4,
+ },
+
+}, S("Minecart (loaded)"), "moretrains_minecart_inv.png")
+
+
+advtrains.register_wagon("moretrains_minecart_engine", {
+ mesh="moretrains_minecart.b3d",
+ textures = {"moretrains_vintage.png"},
+ drives_on={default=true},
+ max_speed=6,
+ seats = {
+ {
+ name=S("Driver stand"),
+ attach_offset={x=0, y=-2, z=13},
+ view_offset={x=0, y=1.5, z=0},
+ group="dstand",
+ },
+ {
+ name="1",
+ attach_offset={x=-4, y=-2, z=0},
+ view_offset={x=0, y=-2, z=0},
+ group="pass",
+ },
+ {
+ name="2",
+ attach_offset={x=4, y=-2, z=0},
+ view_offset={x=0, y=-2, z=0},
+ group="pass",
+ },
+ {
+ name="3",
+ attach_offset={x=-4, y=-2, z=-8},
+ view_offset={x=0, y=-2, z=0},
+ group="pass",
+ },
+ {
+ name="4",
+ attach_offset={x=4, y=-2, z=-8},
+ view_offset={x=0, y=-2, z=0},
+ group="pass",
+ },
+ },
+ seat_groups = {
+ dstand={
+ name = "Driver Stand",
+ access_to = {"pass"},
+ require_doors_open=true,
+ driving_ctrl_access=true,
+ },
+ pass={
+ name = "Passenger area",
+ access_to = {"dstand"},
+ require_doors_open=true,
+ },
+ },
+ assign_to_seat_group = {"dstand", "pass"},
+
+ visual_size = {x=1, y=1},
+ wagon_span=1.06,
+ is_locomotive=true,
+ collisionbox = {-0.8,-0.5,-0.7, 0.8,2,0.7},
+ drops={"default:wood"},
+
+}, S("Minecart with Engine"), "moretrains_minecart_inv.png")
+
--minetest.register_craft({
-- output = 'advtrains:moretrains_draisine',
-- recipe = {
diff --git a/moretrains_vintage/models/moretrains_minecart.b3d b/moretrains_vintage/models/moretrains_minecart.b3d
index d470ebb..1621a2f 100644
--- a/moretrains_vintage/models/moretrains_minecart.b3d
+++ b/moretrains_vintage/models/moretrains_minecart.b3d
Binary files differ
diff --git a/moretrains_vintage/models/moretrains_minecart_loaded.b3d b/moretrains_vintage/models/moretrains_minecart_loaded.b3d
new file mode 100644
index 0000000..ef2b5d1
--- /dev/null
+++ b/moretrains_vintage/models/moretrains_minecart_loaded.b3d
Binary files differ
diff --git a/moretrains_vintage/textures/moretrains_vintage.png b/moretrains_vintage/textures/moretrains_vintage.png
index f4f80d8..2a0b08d 100755
--- a/moretrains_vintage/textures/moretrains_vintage.png
+++ b/moretrains_vintage/textures/moretrains_vintage.png
Binary files differ
diff --git a/moretrains_vintage/textures/moretrains_vintage.xcf b/moretrains_vintage/textures/moretrains_vintage.xcf
new file mode 100644
index 0000000..f8909e8
--- /dev/null
+++ b/moretrains_vintage/textures/moretrains_vintage.xcf
Binary files differ