nalc/nalc_carts/init.lua
sys4-fr c80fe1c620 Ajout du mod nalc_carts
Ajout de messages de chargements dans le journal.
2018-09-16 15:24:40 +02:00

35 lines
1013 B
Lua

-- Rail Copper
minetest.clear_craft({ output = "carts:copperrail" })
minetest.register_craft(
{
output = "carts:copperrail 16",
recipe = {
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
}
})
-- Rail Power
minetest.clear_craft({ output = "carts:powerrail" })
minetest.register_craft({
type = "shapeless",
output = "carts:powerrail",
recipe = {"group:rail", "default:mese_crystal_fragment"},
})
-- Rail Brake
minetest.clear_craft({ output = "carts:brakerail" })
minetest.register_craft({
type = "shapeless",
output = "carts:brakerail",
recipe = {"group:rail", "default:coal_lump"},
})
-- Aliases
minetest.register_alias("carts:rail_copper", "carts:copperrail")
minetest.register_alias("carts:rail_brake", "carts:brakerail")
minetest.register_alias("carts:rail_power", "carts:powerrail")
minetest.log("action", "[nalc_carts] loaded.")