12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- if dlxtrains.crafting_enabled() then
- if dlxtrains.get_config_wagon_crafting_recipe_complexity() == 0 then
- if dlxtrains_support_wagons.max_wagon_length >= 4.875 then
- minetest.register_craft({
- output = "dlxtrains_support_wagons:escort_type1",
- recipe = {
- {dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot, dlxtrains.materials.steel_ingot},
- {dlxtrains.materials.glass, dlxtrains.materials.furnace, dlxtrains.materials.group_wool},
- {dlxtrains.materials.advtrains_wheel, "dlxtrains:blueprint", dlxtrains.materials.advtrains_wheel},
- }
- })
- end
- if dlxtrains_support_wagons.max_wagon_length >= 6 then
- minetest.register_craft({
- output = "dlxtrains_support_wagons:caboose_type1",
- recipe = {
- {dlxtrains.materials.wood, dlxtrains.materials.glass, dlxtrains.materials.wood},
- {dlxtrains.materials.group_wool, dlxtrains.materials.furnace, dlxtrains.materials.ladder_steel},
- {dlxtrains.materials.advtrains_wheel, "dlxtrains:blueprint", dlxtrains.materials.advtrains_wheel},
- }
- })
- end
- elseif dlxtrains.get_config_wagon_crafting_recipe_complexity() == 1 then
- if dlxtrains_support_wagons.max_wagon_length >= 4.875 then
- minetest.register_craft({
- output = "dlxtrains_support_wagons:escort_type1",
- recipe = {
- {"", "dlxtrains_support_wagons:escort_body_type1", ""},
- {"dlxtrains:coupler_buffer_and_chain", "dlxtrains:wagon_chassis", "dlxtrains:coupler_buffer_and_chain"},
- {"dlxtrains:wheel_set", "", "dlxtrains:wheel_set"},
- }
- })
- end
- if dlxtrains_support_wagons.max_wagon_length >= 6 then
- minetest.register_craft({
- output = "dlxtrains_support_wagons:caboose_type1",
- recipe = {
- {"", "dlxtrains_support_wagons:caboose_body_type1", ""},
- {"dlxtrains:coupler_knuckle", "dlxtrains:wagon_chassis", "dlxtrains:coupler_knuckle"},
- {"dlxtrains:bogie", "", "dlxtrains:bogie"},
- }
- })
- end
- end
- end
|