mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-01 06:51:10 +01:00
27 lines
887 B
Lua
27 lines
887 B
Lua
local modname = minetest.get_current_modname()
|
|
local modpath = minetest.get_modpath(modname)
|
|
local mod = mcl_minecarts
|
|
local S = minetest.get_translator(modname)
|
|
|
|
-- Normal rail
|
|
mod.register_curves_rail("mcl_minecarts:rail_v2", {
|
|
"default_rail.png",
|
|
"default_rail_curved.png",
|
|
"default_rail_t_junction.png",
|
|
"default_rail_t_junction_on.png",
|
|
"default_rail_crossing.png"
|
|
},{
|
|
description = S("Rail"),
|
|
_tt_help = S("Track for minecarts"),
|
|
_doc_items_longdesc = S("Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction."),
|
|
_doc_items_usagehelp = mod.text.railuse,
|
|
craft = {
|
|
output = "mcl_minecarts:rail_v2 16",
|
|
recipe = {
|
|
{"mcl_core:iron_ingot", "", "mcl_core:iron_ingot"},
|
|
{"mcl_core:iron_ingot", "mcl_core:stick", "mcl_core:iron_ingot"},
|
|
{"mcl_core:iron_ingot", "", "mcl_core:iron_ingot"},
|
|
}
|
|
},
|
|
})
|
|
|