27 lines
737 B
Lua
27 lines
737 B
Lua
-- carts/rails.lua
|
|
|
|
-- support for MT game translation.
|
|
local S = carts.get_translator
|
|
|
|
carts:register_rail("carts:rail", {
|
|
description = S("Rail"),
|
|
tiles = {
|
|
"carts_rail_straight.png", "carts_rail_curved.png",
|
|
"carts_rail_t_junction.png", "carts_rail_crossing.png"
|
|
},
|
|
inventory_image = "carts_rail_straight.png",
|
|
wield_image = "carts_rail_straight.png",
|
|
groups = carts:get_rail_groups(),
|
|
}, {})
|
|
|
|
minetest.register_alias("default:rail", "carts:rail")
|
|
|
|
|
|
carts:register_rail("carts:powerrail", {
|
|
description = S("Powered Rail"),
|
|
tiles = {
|
|
"carts_rail_straight_pwr.png", "carts_rail_curved_pwr.png",
|
|
"carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"
|
|
},
|
|
groups = carts:get_rail_groups(),
|
|
}, {acceleration = 5}) |