diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-10 23:28:42 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-10 23:28:42 +0200 |
commit | e96cc188665384df96b89af35308716bbdc5ca37 (patch) | |
tree | 6c1c053c7df5d3903b81962eb55e1b250ad43da4 /advtrains/advtrains_train_industrial | |
parent | d1b1d6ab29afdb116dd7d3c6869bfec097bcb453 (diff) | |
parent | 5aad0930d1ddd63d9021d833a9379b4a01bd8414 (diff) | |
download | forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.tar.gz forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.tar.bz2 forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.zip |
Merge commit '5aad0930d1ddd63d9021d833a9379b4a01bd8414' as 'advtrains'
Diffstat (limited to 'advtrains/advtrains_train_industrial')
14 files changed, 110 insertions, 0 deletions
diff --git a/advtrains/advtrains_train_industrial/depends.txt b/advtrains/advtrains_train_industrial/depends.txt new file mode 100644 index 0000000..0492ba2 --- /dev/null +++ b/advtrains/advtrains_train_industrial/depends.txt @@ -0,0 +1,3 @@ +advtrains +advtrains_train_track +intllib? diff --git a/advtrains/advtrains_train_industrial/init.lua b/advtrains/advtrains_train_industrial/init.lua new file mode 100644 index 0000000..beec5b3 --- /dev/null +++ b/advtrains/advtrains_train_industrial/init.lua @@ -0,0 +1,107 @@ +local S = attrans + +advtrains.register_wagon("engine_industrial", { + mesh="advtrains_engine_industrial.b3d", + textures = {"advtrains_engine_industrial.png"}, + drives_on={default=true}, + max_speed=20, + seats = { + { + name=S("Driver Stand (right)"), + attach_offset={x=5, y=-3, z=-8}, + view_offset={x=5.2, y=-4, z=0}, + 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}, + driving_ctrl_access=true, + group = "dstand", + }, + }, + seat_groups = { + dstand={ + name = "Driver Stand", + access_to = {}, + driving_ctrl_access = true, + }, + }, + assign_to_seat_group = {"dstand"}, + visual_size = {x=1, y=1}, + wagon_span=2.6, + is_locomotive=true, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + drops={"default:steelblock 4"}, + horn_sound = "advtrains_industrial_horn", +}, S("Industrial Train Engine"), "advtrains_engine_industrial_inv.png") +--big-- +advtrains.register_wagon("engine_industrial_big", { + mesh="advtrains_engine_industrial_big.b3d", + textures = {"advtrains_engine_industrial_big.png"}, + drives_on={default=true}, + max_speed=30, + seats = { + { + name=S("Driver Stand (right)"), + attach_offset={x=5, y=7, z=20}, + view_offset={x=5.2, y=-4, z=11}, + 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}, + driving_ctrl_access=true, + group = "dstand", + }, + }, + seat_groups = { + dstand={ + name = "Driver Stand", + access_to = {}, + driving_ctrl_access = true, + }, + }, + assign_to_seat_group = {"dstand"}, + visual_size = {x=1, y=1}, + wagon_span=4, + is_locomotive=true, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + drops={"default:steelblock 4"}, + horn_sound = "advtrains_industrial_horn", +}, S("Big Industrial Train Engine"), "advtrains_engine_industrial_inv.png") +advtrains.register_wagon("wagon_tank", { + mesh="advtrains_wagon_tank.b3d", + textures = {"advtrains_wagon_tank.png"}, + seats = {}, + drives_on={default=true}, + max_speed=20, + visual_size = {x=1, y=1}, + wagon_span=2.2, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + drops={"default:steelblock 4"}, + has_inventory = true, + get_inventory_formspec = advtrains.standard_inventory_formspec, + inventory_list_sizes = { + box=8*3, + }, +}, S("Industrial tank wagon"), "advtrains_wagon_tank_inv.png") +advtrains.register_wagon("wagon_wood", { + mesh="advtrains_wagon_wood.b3d", + textures = {"advtrains_wagon_wood.png"}, + seats = {}, + drives_on={default=true}, + max_speed=20, + visual_size = {x=1, y=1}, + wagon_span=1.8, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + drops={"default:steelblock 4"}, + has_inventory = true, + get_inventory_formspec = advtrains.standard_inventory_formspec, + inventory_list_sizes = { + box=8*3, + }, +}, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png") diff --git a/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d b/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d Binary files differnew file mode 100644 index 0000000..58010c7 --- /dev/null +++ b/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d diff --git a/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d b/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d Binary files differnew file mode 100644 index 0000000..e8a50a2 --- /dev/null +++ b/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d diff --git a/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d b/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d Binary files differnew file mode 100644 index 0000000..4f28d6c --- /dev/null +++ b/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d diff --git a/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d b/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d Binary files differnew file mode 100644 index 0000000..023bf9a --- /dev/null +++ b/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d diff --git a/advtrains/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg b/advtrains/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg Binary files differnew file mode 100644 index 0000000..e8f31b3 --- /dev/null +++ b/advtrains/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png Binary files differnew file mode 100644 index 0000000..ac81bc7 --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png Binary files differnew file mode 100644 index 0000000..0fcdc94 --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png Binary files differnew file mode 100644 index 0000000..be4e80f --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png Binary files differnew file mode 100644 index 0000000..01100bf --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png Binary files differnew file mode 100644 index 0000000..03401be --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png Binary files differnew file mode 100644 index 0000000..145dcd8 --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png Binary files differnew file mode 100644 index 0000000..87109dd --- /dev/null +++ b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png |