rails.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- Common rail registrations
  2. -- (Steel) rail
  3. boost_cart:register_rail("boost_cart:rail", {
  4. description = "Rail",
  5. tiles = {
  6. "carts_rail_straight.png", "carts_rail_curved.png",
  7. "carts_rail_t_junction.png", "carts_rail_crossing.png"
  8. },
  9. groups = boost_cart:get_rail_groups()
  10. })
  11. minetest.register_craft({
  12. output = "boost_cart:rail 12",
  13. recipe = {
  14. {"default:steel_ingot", "group:stick", "default:steel_ingot"},
  15. {"default:steel_ingot", "", "default:steel_ingot"},
  16. {"default:steel_ingot", "group:stick", "default:steel_ingot"},
  17. }
  18. })
  19. minetest.register_alias("default:rail", "carts:rail")
  20. -- Copper rail
  21. boost_cart:register_rail("boost_cart:copperrail", {
  22. description = "Copper rail",
  23. tiles = {
  24. "carts_rail_straight_cp.png", "carts_rail_curved_cp.png",
  25. "carts_rail_t_junction_cp.png", "carts_rail_crossing_cp.png"
  26. },
  27. groups = boost_cart:get_rail_groups()
  28. })
  29. minetest.register_craft({
  30. output = "boost_cart:copperrail 12",
  31. recipe = {
  32. {"default:copper_ingot", "group:stick", "default:copper_ingot"},
  33. {"default:copper_ingot", "", "default:copper_ingot"},
  34. {"default:copper_ingot", "group:stick", "default:copper_ingot"},
  35. }
  36. })