Fixed view offsets of some trains, inventory storages of wagons and added modpack logo
This commit is contained in:
parent
df9538eabe
commit
f89505402e
@ -9,14 +9,14 @@ advtrains.register_wagon("engine_industrial", {
|
||||
{
|
||||
name=S("Driver Stand (right)"),
|
||||
attach_offset={x=5, y=-3, z=-8},
|
||||
view_offset={x=5.2, y=-4, z=0},
|
||||
view_offset={x=5, y=-3, z=-8},
|
||||
driving_ctrl_access=true,
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (left)"),
|
||||
attach_offset={x=5, y=7, z=-8},
|
||||
view_offset={x=-5.2, y=-4, z=0},
|
||||
view_offset={x=5, y=-7, z=-8},
|
||||
driving_ctrl_access=true,
|
||||
group = "dstand",
|
||||
},
|
||||
@ -46,14 +46,14 @@ advtrains.register_wagon("engine_industrial_big", {
|
||||
{
|
||||
name=S("Driver Stand (right)"),
|
||||
attach_offset={x=5, y=-3, z=20},
|
||||
view_offset={x=5.2, y=-4, z=11},
|
||||
view_offset={x=5, y=-3, z=20},
|
||||
driving_ctrl_access=true,
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (left)"),
|
||||
attach_offset={x=5, y=-3, z=-8},
|
||||
view_offset={x=-5.2, y=-4, z=0},
|
||||
view_offset={x=5, y=-3, z=-8},
|
||||
driving_ctrl_access=true,
|
||||
group = "dstand",
|
||||
},
|
||||
|
@ -8,32 +8,32 @@ advtrains.register_wagon("engine_japan", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=-2, z=13},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=0, y=0, z=13},
|
||||
view_offset={x=0, y=0, z=13},
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=-2, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=0, z=0},
|
||||
view_offset={x=-4, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=-2, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=0, z=0},
|
||||
view_offset={x=4, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=-2, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=0, z=-8},
|
||||
view_offset={x=-4, y=0, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=-2, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=0, z=-8},
|
||||
view_offset={x=4, y=0, z=8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
@ -78,38 +78,38 @@ advtrains.register_wagon("wagon_japan", {
|
||||
seats = {
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=-2, z=8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=0, z=8},
|
||||
view_offset={x=-4, y=0, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=-2, z=8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=0, z=8},
|
||||
view_offset={x=4, y=0, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="1a",
|
||||
attach_offset={x=-4, y=-2, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=0, z=0},
|
||||
view_offset={x=-4, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2a",
|
||||
attach_offset={x=4, y=-2, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=0, z=0},
|
||||
view_offset={x=4, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=-2, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=0, z=-8},
|
||||
view_offset={x=-4, y=0, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=0, z=-8},
|
||||
view_offset={x=4, y=0, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
|
@ -12,14 +12,14 @@ advtrains.register_wagon("newlocomotive", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver Stand (left)"),
|
||||
attach_offset={x=-5, y=0, z=-10},
|
||||
view_offset={x=0, y=6, z=0},
|
||||
attach_offset={x=-4, y=3, z=-8},
|
||||
view_offset={x=-4, y=3, z=-8},
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (right)"),
|
||||
attach_offset={x=5, y=0, z=-10},
|
||||
view_offset={x=0, y=6, z=0},
|
||||
attach_offset={x=4, y=3, z=-8},
|
||||
view_offset={x=4, y=3, z=-8},
|
||||
group = "dstand",
|
||||
},
|
||||
},
|
||||
@ -40,7 +40,7 @@ advtrains.register_wagon("newlocomotive", {
|
||||
self.old_anim_velocity=advtrains.abs_ceil(velocity)
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
custom_on_activate = function(self, staticdata_table, dtime_s)
|
||||
minetest.add_particlespawner({
|
||||
amount = 10,
|
||||
@ -82,13 +82,13 @@ advtrains.register_wagon("detailed_steam_engine", {
|
||||
{
|
||||
name=S("Driver Stand (left)"),
|
||||
attach_offset={x=-8, y=0, z=-10},
|
||||
view_offset={x=9, y=-2, z=-6},
|
||||
view_offset={x=-8, y=0, z=-10},
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (right)"),
|
||||
attach_offset={x=8, y=0, z=-10},
|
||||
view_offset={x=0, y=6, z=0},
|
||||
view_offset={x=8, y=0, z=-10},
|
||||
group = "dstand",
|
||||
},
|
||||
},
|
||||
@ -191,7 +191,7 @@ advtrains.register_wagon("wagon_default", {
|
||||
access_to = {},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
assign_to_seat_group = {"pass"},
|
||||
visual_size = {x=1, y=1},
|
||||
wagon_span=2.634,
|
||||
|
@ -13,32 +13,32 @@ advtrains.register_wagon("engine_BBOE_1080", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=8, z=13},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=0, y=2, z=13},
|
||||
view_offset={x=0, y=2, z=13},
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=2, z=0},
|
||||
view_offset={x=-4, y=2, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=2, z=0},
|
||||
view_offset={x=4, y=2, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=2, z=-8},
|
||||
view_offset={x=-4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=2, z=-8},
|
||||
view_offset={x=4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
|
@ -13,47 +13,18 @@ advtrains.register_wagon("engine_DB_160", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=8, z=13},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=0, y=1, z=-3},
|
||||
view_offset={x=0, y=1, z=-3},
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
}
|
||||
},
|
||||
seat_groups = {
|
||||
dstand={
|
||||
name = "Driver Stand",
|
||||
access_to = {"pass"},
|
||||
access_to = {},
|
||||
require_doors_open=true,
|
||||
driving_ctrl_access=true,
|
||||
},
|
||||
pass={
|
||||
name = "Engenier's area",
|
||||
access_to = {"dstand"},
|
||||
require_doors_open=true,
|
||||
},
|
||||
}
|
||||
},
|
||||
assign_to_seat_group = {"dstand"},
|
||||
doors={
|
||||
|
27
freight_train/init.lua
Executable file → Normal file
27
freight_train/init.lua
Executable file → Normal file
@ -15,14 +15,14 @@ advtrains.register_wagon("diesel_lokomotive", {
|
||||
seats = {
|
||||
{
|
||||
name = S("Driver Stand (left)"),
|
||||
attach_offset = {x=-3, y=12, z=-2},
|
||||
view_offset = {x=-4, y=3, z=0},
|
||||
attach_offset = {x=-3, y=4, z=3},
|
||||
view_offset = {x=-3, y=4, z=3},
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name = S("Trainee Seat (right)"),
|
||||
attach_offset = {x=3, y=12, z=-2},
|
||||
view_offset = {x=4, y=3, z=0},
|
||||
attach_offset = {x=3, y=4, z=3},
|
||||
view_offset = {x=3, y=4, z=3},
|
||||
group = "tseat",
|
||||
},
|
||||
},
|
||||
@ -90,9 +90,9 @@ advtrains.register_wagon("wagon_gravel", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"advtrains:wagon_gravel"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
@ -112,9 +112,9 @@ advtrains.register_wagon("wagon_track", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"advtrains:wagon_track"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
@ -136,11 +136,10 @@ advtrains.register_wagon("wagon_lava", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"advtrains:wagon_lava"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"
|
||||
end,
|
||||
inventory_list_sizes = {
|
||||
box=8*6,
|
||||
@ -159,9 +158,9 @@ advtrains.register_wagon("wagon_tree", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"advtrains:wagon_tree"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
|
@ -14,38 +14,38 @@ advtrains.register_wagon("moretrains_railroad_car", {
|
||||
seats = {
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=8},
|
||||
view_offset={x=-4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=8},
|
||||
view_offset={x=4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="1a",
|
||||
attach_offset={x=-4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=0},
|
||||
view_offset={x=-4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2a",
|
||||
attach_offset={x=4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=0},
|
||||
view_offset={x=4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=-2, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=-8},
|
||||
view_offset={x=-4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=-8},
|
||||
view_offset={x=4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
@ -82,38 +82,38 @@ advtrains.register_wagon("moretrains_silberling", {
|
||||
seats = {
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=8},
|
||||
view_offset={x=-4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=8},
|
||||
view_offset={x=4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="1a",
|
||||
attach_offset={x=-4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=0},
|
||||
view_offset={x=-4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2a",
|
||||
attach_offset={x=4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=0},
|
||||
view_offset={x=4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=-2, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=-8},
|
||||
view_offset={x=-4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=-8},
|
||||
view_offset={x=4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
@ -155,7 +155,7 @@ advtrains.register_wagon("moretrains_diesel_german", {
|
||||
driving_ctrl_access=true,
|
||||
group = "dstand",
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
seat_groups = {
|
||||
dstand={
|
||||
@ -182,43 +182,43 @@ advtrains.register_wagon("moretrains_silberling_train", {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=-0.4, z=21},
|
||||
view_offset={x=10.4, y=9, z=0},
|
||||
view_offset={x=0, y=-0.4, z=21},
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=8},
|
||||
view_offset={x=-4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=-2, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=8},
|
||||
view_offset={x=4, y=-0.4, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="1a",
|
||||
attach_offset={x=-4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=0},
|
||||
view_offset={x=-4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2a",
|
||||
attach_offset={x=4, y=-2, z=0},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=0},
|
||||
view_offset={x=4, y=-0.4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=-2, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=-4, y=-0.4, z=-8},
|
||||
view_offset={x=-4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=4, y=-0.4, z=-8},
|
||||
view_offset={x=4, y=-0.4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
@ -269,7 +269,7 @@ local ingot = 'default:steel_ingot'
|
||||
if minetest.get_modpath("moreores") then
|
||||
block = 'moreores:silver_block'
|
||||
ingot = 'moreores:silver_ingot'
|
||||
|
||||
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
|
Binary file not shown.
BIN
moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend1
Normal file
BIN
moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend1
Normal file
Binary file not shown.
Binary file not shown.
@ -13,32 +13,32 @@ advtrains.register_wagon("engine_railbus", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=8, z=13},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=0, y=4, z=19},
|
||||
view_offset={x=0, y=4, z=19},
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=4, z=0},
|
||||
view_offset={x=-4, y=4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=4, z=0},
|
||||
view_offset={x=4, y=4, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=4, z=-8},
|
||||
view_offset={x=-4, y=4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=4, z=-8},
|
||||
view_offset={x=4, y=4, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
|
@ -14,8 +14,8 @@ advtrains.register_wagon("rocket", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver Stand"),
|
||||
attach_offset={x=0, y=10, z=-10},
|
||||
view_offset={x=0, y=6, z=0},
|
||||
attach_offset={x=0, y=9, z=-6},
|
||||
view_offset={x=0, y=9, z=-6},
|
||||
group = "dstand",
|
||||
},
|
||||
},
|
||||
@ -82,9 +82,9 @@ advtrains.register_wagon("rocket_wagon_tender", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"default:steelblock 4"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
@ -106,9 +106,9 @@ advtrains.register_wagon("rocket_wagon_box", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0},
|
||||
drops={"default:steelblock 4"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
get_inventory_formspec = function(self, pname, invname)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[" .. invname .. ";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
|
@ -13,14 +13,14 @@ advtrains.register_wagon("engine_electronic", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver Stand (front)"),
|
||||
attach_offset={x=o, y=6, z=8},
|
||||
view_offset={x=0, y=-3, z=0},
|
||||
attach_offset={x=0, y=-1, z=12},
|
||||
view_offset={x=0, y=-1, z=12},
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (back)"),
|
||||
attach_offset={x=o, y=-6, z=8},
|
||||
view_offset={x=0, y=-3, z=0},
|
||||
attach_offset={x=0, y=-1, z=8},
|
||||
view_offset={x=0, y=-1, z=8},
|
||||
group = "dstand",
|
||||
},
|
||||
},
|
||||
@ -49,26 +49,26 @@ advtrains.register_wagon("wagon_compartment", {
|
||||
seats = {
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=2, y=6, z=8},
|
||||
view_offset={x=0, y=-4, z=0},
|
||||
attach_offset={x=2, y=2, z=8},
|
||||
view_offset={x=2, y=2, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=-1, y=6, z=8},
|
||||
view_offset={x=0, y=-4, z=0},
|
||||
attach_offset={x=-1, y=2, z=8},
|
||||
view_offset={x=-1, y=2, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=2, z=-8},
|
||||
view_offset={x=-4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=2, z=-8},
|
||||
view_offset={x=4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
@ -94,26 +94,26 @@ advtrains.register_wagon("wagon_sleep", {
|
||||
seats = {
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=2, y=6, z=8},
|
||||
view_offset={x=0, y=-2, z=0},
|
||||
attach_offset={x=2, y=2, z=8},
|
||||
view_offset={x=2, y=2, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=-1, y=6, z=8},
|
||||
view_offset={x=0, y=-4, z=0},
|
||||
attach_offset={x=-1, y=2, z=8},
|
||||
view_offset={x=-1, y=2, z=8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=-4, y=2, z=-8},
|
||||
view_offset={x=-4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=4, y=2, z=-8},
|
||||
view_offset={x=4, y=2, z=-8},
|
||||
group="pass",
|
||||
},
|
||||
},
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 2.1 KiB |
@ -14,14 +14,14 @@ advtrains.register_wagon("engine_zugspitzbahn", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver Stand (front)"),
|
||||
attach_offset={x=o, y=6, z=8},
|
||||
view_offset={x=0, y=-3, z=0},
|
||||
attach_offset={x=0, y=0, z=18},
|
||||
view_offset={x=0, y=0, z=18},
|
||||
group = "dstand",
|
||||
},
|
||||
{
|
||||
name=S("Driver Stand (back)"),
|
||||
attach_offset={x=o, y=-6, z=8},
|
||||
view_offset={x=0, y=-3, z=0},
|
||||
attach_offset={x=0, y=0, z=-18},
|
||||
view_offset={x=0, y=0, z=-18},
|
||||
group = "dstand",
|
||||
},
|
||||
},
|
||||
@ -38,8 +38,8 @@ advtrains.register_wagon("engine_zugspitzbahn", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
|
||||
is_locomotive=true,
|
||||
drops={"advtrains:engine_zugspitzbahn"},
|
||||
|
||||
}, S("Zugspitzbahn engine"), "advtrains_bzb_inv.png")
|
||||
|
||||
}, S("Zugspitzbahn engine"), "advtrains_engine_bzb_inv.png")
|
||||
|
||||
advtrains.register_wagon("wagon_zugspitzbahn", {
|
||||
mesh="advtrains_wagon_bzb.b3d",
|
||||
@ -83,6 +83,6 @@ advtrains.register_wagon("wagon_zugspitzbahn", {
|
||||
wagon_span=3,
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
|
||||
drops={"default:steelblock 4"},
|
||||
}, S("Passenger Zugspitzbahn wagon"), "advtrains_bzb_inv.png")
|
||||
}, S("Passenger Zugspitzbahn wagon"), "advtrains_bzb_inv.png")
|
||||
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 644 B After Width: | Height: | Size: 1.7 KiB |
BIN
train_zugspitzbahn/textures/advtrains_engine_bzb_inv.png
Normal file
BIN
train_zugspitzbahn/textures/advtrains_engine_bzb_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 691 B |
41
transib/init.lua
Executable file → Normal file
41
transib/init.lua
Executable file → Normal file
@ -13,49 +13,20 @@ advtrains.register_wagon("engine_transib", {
|
||||
seats = {
|
||||
{
|
||||
name=S("Driver stand"),
|
||||
attach_offset={x=0, y=8, z=13},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
attach_offset={x=0, y=2, z=10},
|
||||
view_offset={x=0, y=2, z=10},
|
||||
driving_ctrl_access=true,
|
||||
group="dstand",
|
||||
},
|
||||
{
|
||||
name="1",
|
||||
attach_offset={x=-4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="2",
|
||||
attach_offset={x=4, y=8, z=0},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="3",
|
||||
attach_offset={x=-4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
{
|
||||
name="4",
|
||||
attach_offset={x=4, y=8, z=-8},
|
||||
view_offset={x=0, y=0, z=0},
|
||||
group="pass",
|
||||
},
|
||||
}
|
||||
},
|
||||
seat_groups = {
|
||||
dstand={
|
||||
name = "Driver Stand",
|
||||
access_to = {"pass"},
|
||||
access_to = {},
|
||||
require_doors_open=true,
|
||||
},
|
||||
pass={
|
||||
name = "Passenger area",
|
||||
access_to = {"dstand"},
|
||||
require_doors_open=true,
|
||||
},
|
||||
}
|
||||
},
|
||||
assign_to_seat_group = {"dstand", "pass"},
|
||||
assign_to_seat_group = {"dstand"},
|
||||
doors={
|
||||
open={
|
||||
[-1]={frames={x=0, y=20}, time=1},
|
||||
|
Loading…
x
Reference in New Issue
Block a user