new wagon in progress - missing loaded variants

This commit is contained in:
rbduck 2020-12-13 17:09:28 +01:00
parent 4437ba5f43
commit 97212db34f
11 changed files with 3137 additions and 0 deletions

2
moretrains_gondola/depends.txt Executable file
View File

@ -0,0 +1,2 @@
advtrains
intllib?

View File

@ -0,0 +1,34 @@
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
end
advtrains.register_wagon("moretrains_wagon_gondola", {
mesh="moretrains_wagon_gondola.obj",
textures = {"moretrains_wagon_gondola.png"},
seats = {},
drives_on={default=true},
max_speed=20,
visual_size = {x=1, y=1},
wagon_span=2.784,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
drops={"default:steelblock"},
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("Gondola wagon (empty)"), "moretrains_wagon_gondola_inv.png")

View File

@ -0,0 +1,13 @@
# Blender MTL File: 'moretrains_wagon_gondola.blend'
# Material Count: 1
newmtl gondola_wagon
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 1
map_Kd /home/linux/minetest/mods/moretrains/moretrains_gondola/textures/moretrains_wagon_gondola.png

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB