wagon_recipes.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. if dlxtrains.crafting_enabled() then
  2. if dlxtrains.get_config_wagon_crafting_recipe_complexity() == 0 then
  3. if dlxtrains_support_wagons.max_wagon_length >= 4.875 then
  4. minetest.register_craft({
  5. output = "dlxtrains_support_wagons:escort_type1",
  6. recipe = {
  7. {dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot},
  8. {dlxtrains.materials.glass, dlxtrains.materials.furnace, dlxtrains.materials.group_wool},
  9. {dlxtrains.materials.advtrains_wheel, "dlxtrains:blueprint", dlxtrains.materials.advtrains_wheel},
  10. }
  11. })
  12. end
  13. if dlxtrains_support_wagons.max_wagon_length >= 6 then
  14. minetest.register_craft({
  15. output = "dlxtrains_support_wagons:caboose_type1",
  16. recipe = {
  17. {dlxtrains.materials.wood, dlxtrains.materials.glass, dlxtrains.materials.wood},
  18. {dlxtrains.materials.group_wool, dlxtrains.materials.furnace, dlxtrains.materials.ladder_steel},
  19. {dlxtrains.materials.advtrains_wheel, "dlxtrains:blueprint", dlxtrains.materials.advtrains_wheel},
  20. }
  21. })
  22. end
  23. elseif dlxtrains.get_config_wagon_crafting_recipe_complexity() == 1 then
  24. if dlxtrains_support_wagons.max_wagon_length >= 4.875 then
  25. minetest.register_craft({
  26. output = "dlxtrains_support_wagons:escort_type1",
  27. recipe = {
  28. {"", "dlxtrains_support_wagons:escort_body_type1", ""},
  29. {"dlxtrains:coupler_buffer_and_chain", "dlxtrains:wagon_chassis", "dlxtrains:coupler_buffer_and_chain"},
  30. {"dlxtrains:wheel_set", "", "dlxtrains:wheel_set"},
  31. }
  32. })
  33. end
  34. if dlxtrains_support_wagons.max_wagon_length >= 6 then
  35. minetest.register_craft({
  36. output = "dlxtrains_support_wagons:caboose_type1",
  37. recipe = {
  38. {"", "dlxtrains_support_wagons:caboose_body_type1", ""},
  39. {"dlxtrains:coupler_knuckle", "dlxtrains:wagon_chassis", "dlxtrains:coupler_knuckle"},
  40. {"dlxtrains:bogie", "", "dlxtrains:bogie"},
  41. }
  42. })
  43. end
  44. end
  45. end