items.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. local S = dlxtrains_support_wagons.S
  2. if dlxtrains.crafting_enabled() and dlxtrains.get_config_wagon_crafting_recipe_complexity() == 1 then
  3. if dlxtrains_support_wagons.max_wagon_length >= 6 then
  4. minetest.register_craftitem("dlxtrains_support_wagons:caboose_body_type1", {
  5. description = S("Wooden Caboose Cabin with Cupola"),
  6. inventory_image = "dlxtrains_support_wagons_caboose_body_type1.png",
  7. })
  8. minetest.register_craft({
  9. output = "dlxtrains_support_wagons:caboose_body_type1",
  10. recipe = {
  11. {dlxtrains.materials.wood, dlxtrains.materials.glass, dlxtrains.materials.wood},
  12. {dlxtrains.materials.group_wool, "dlxtrains:blueprint", dlxtrains.materials.ladder_steel},
  13. {dlxtrains.materials.wood, dlxtrains.materials.furnace, dlxtrains.materials.wood},
  14. }
  15. })
  16. end
  17. if dlxtrains_support_wagons.max_wagon_length >= 4.875 then
  18. minetest.register_craftitem("dlxtrains_support_wagons:escort_body_type1", {
  19. description = S("Small Escort Wagon Cabin"),
  20. inventory_image = "dlxtrains_support_wagons_escort_body_type1.png",
  21. })
  22. minetest.register_craft({
  23. output = "dlxtrains_support_wagons:escort_body_type1",
  24. recipe = {
  25. {dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot},
  26. {dlxtrains.materials.steel_ingot, "dlxtrains:blueprint", dlxtrains.materials.glass},
  27. {dlxtrains.materials.wood, dlxtrains.materials.furnace, dlxtrains.materials.group_wool},
  28. }
  29. })
  30. end
  31. end