aboutsummaryrefslogtreecommitdiff
path: root/moretrains_basic/init.lua
diff options
context:
space:
mode:
authorrbduck <rbduck@platen-software.de>2020-05-16 18:10:18 +0200
committerrbduck <rbduck@platen-software.de>2020-05-16 18:10:18 +0200
commit1b96b5feadd62b7bf62e0b7a9709ecbd238e4450 (patch)
treeb6dab92a3b65cb951af7500ac41338ba10a0ae3b /moretrains_basic/init.lua
parent283b1100265372e58c61c8fa7df133c486c5c7d6 (diff)
downloadmoretrains-1b96b5feadd62b7bf62e0b7a9709ecbd238e4450.tar.gz
moretrains-1b96b5feadd62b7bf62e0b7a9709ecbd238e4450.tar.bz2
moretrains-1b96b5feadd62b7bf62e0b7a9709ecbd238e4450.zip
/give rubberduck advtrains:moretrains_railroad_car 99
Diffstat (limited to 'moretrains_basic/init.lua')
-rw-r--r--moretrains_basic/init.lua25
1 files changed, 22 insertions, 3 deletions
diff --git a/moretrains_basic/init.lua b/moretrains_basic/init.lua
index a44a904..1e85112 100644
--- a/moretrains_basic/init.lua
+++ b/moretrains_basic/init.lua
@@ -7,7 +7,7 @@ end
advtrains.register_wagon("moretrains_railroad_car", {
- mesh="moretrains_railroad_car.obj",
+ mesh="moretrains_railroad_car.b3d",
textures = {"moretrains_railroad_car.png"},
drives_on={default=true},
max_speed=20,
@@ -56,11 +56,30 @@ advtrains.register_wagon("moretrains_railroad_car", {
require_doors_open=true,
},
},
+ doors={
+ open={
+ [-1]={frames={x=0, y=10}, time=1},
+ [1]={frames={x=20, y=30}, time=1}
+ },
+ close={
+ [-1]={frames={x=10, y=20}, time=1},
+ [1]={frames={x=30, y=40}, time=1}
+ }
+ },
+ door_entry={-1.7},
assign_to_seat_group = {"pass"},
visual_size = {x=1, y=1},
- wagon_span=3.0,
+ wagon_span=2.94,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
drops={"default:steelblock"},
-}, S("Railroad Car"), "moretrains_unknown_wagon_inv.png")
+}, S("Railroad Car"), "moretrains_railroad_car_inv.png")
+minetest.register_craft({
+ output = 'advtrains:moretrains_railroad_car',
+ recipe = {
+ {'default:steelblock', 'default:tin_ingot', 'default:steelblock'},
+ {'dye:dark_green', 'default:glass', 'dye:blue'},
+ {'advtrains:wheel', '', 'advtrains:wheel'},
+ },
+})