mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-03 16:01:17 +01:00
28 lines
887 B
Lua
28 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"},
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
|