2016-09-12 21:06:00 +02:00
|
|
|
--advtrains by orwell96, see readme.txt and license.txt
|
|
|
|
--crafting.lua
|
|
|
|
--registers crafting recipes
|
|
|
|
|
|
|
|
--tracks
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'advtrains:dtrack_placer 50',
|
|
|
|
recipe = {
|
|
|
|
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
|
|
|
|
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
|
|
|
|
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2016-09-17 11:14:28 +02:00
|
|
|
type = "shapeless",
|
|
|
|
output = 'advtrains:dtrack_vst1 2',
|
2016-09-12 21:06:00 +02:00
|
|
|
recipe = {
|
2016-09-17 11:14:28 +02:00
|
|
|
"advtrains:dtrack_placer",
|
|
|
|
"advtrains:dtrack_placer",
|
|
|
|
"default:gravel",
|
2016-09-12 21:06:00 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2016-09-17 11:14:28 +02:00
|
|
|
type = "shapeless",
|
|
|
|
output = 'advtrains:dtrack_vst2 2',
|
2016-09-12 21:06:00 +02:00
|
|
|
recipe = {
|
2016-09-17 11:14:28 +02:00
|
|
|
"advtrains:dtrack_placer",
|
|
|
|
"advtrains:dtrack_placer",
|
|
|
|
"default:gravel",
|
|
|
|
"default:gravel",
|
2016-09-12 21:06:00 +02:00
|
|
|
},
|
|
|
|
})
|
2016-09-17 11:14:28 +02:00
|
|
|
|
2016-09-12 21:06:00 +02:00
|
|
|
minetest.register_craft({
|
2016-09-17 11:14:28 +02:00
|
|
|
output = 'advtrains:dtrack_bumper 2',
|
2016-09-12 21:06:00 +02:00
|
|
|
recipe = {
|
2016-09-17 11:14:28 +02:00
|
|
|
{'default:wood', 'dye:red'},
|
|
|
|
{'default:steel_ingot', 'default:steel_ingot'},
|
|
|
|
{'advtrains:dtrack_placer', 'advtrains:dtrack_placer'},
|
2016-09-12 21:06:00 +02:00
|
|
|
},
|
|
|
|
})
|
2016-09-17 11:14:28 +02:00
|
|
|
--signals
|
2016-09-12 21:06:00 +02:00
|
|
|
minetest.register_craft({
|
2016-09-17 11:14:28 +02:00
|
|
|
output = 'advtrains:retrosignal_off 2',
|
2016-09-12 21:06:00 +02:00
|
|
|
recipe = {
|
2016-09-17 11:14:28 +02:00
|
|
|
{'dye:red', 'default:steel_ingot', 'default:steel_ingot'},
|
|
|
|
{'', '', 'default:steel_ingot'},
|
|
|
|
{'', '', 'default:steel_ingot'},
|
2016-09-12 21:06:00 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2016-09-17 11:14:28 +02:00
|
|
|
output = 'advtrains:signal_off 2',
|
2016-09-12 21:06:00 +02:00
|
|
|
recipe = {
|
2016-09-17 11:14:28 +02:00
|
|
|
{'', 'dye:red', 'default:steel_ingot'},
|
|
|
|
{'', 'dye:dark_green', 'default:steel_ingot'},
|
|
|
|
{'', '', 'default:steel_ingot'},
|
2016-09-12 21:06:00 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2016-09-17 11:14:28 +02:00
|
|
|
--trackworker
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'advtrains:trackworker',
|
|
|
|
recipe = {
|
|
|
|
{'default:diamond'},
|
|
|
|
{'screwdriver:screwdriver'},
|
|
|
|
{'default:steel_ingot'},
|
|
|
|
},
|
|
|
|
})
|
2016-09-12 21:06:00 +02:00
|
|
|
|
|
|
|
--wagons
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'advtrains:newlocomotive',
|
|
|
|
recipe = {
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'dye:black', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'advtrains:wagon_default',
|
|
|
|
recipe = {
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'dye:dark_green', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'advtrains:subway_wagon',
|
|
|
|
recipe = {
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'dye:yellow', 'default:steelblock'},
|
|
|
|
{'default:steelblock', 'default:steelblock', 'default:steelblock'},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
--misc_nodes
|
|
|
|
--crafts for platforms see misc_nodes.lua
|