aboutsummaryrefslogtreecommitdiff
path: root/crafting.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-12 21:06:00 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-12 21:06:00 +0200
commitf54d3b2e6cbba105f6ddd8c7f006db3e04d05b0e (patch)
tree85e375bae1e658798e239c186820afab9411adb6 /crafting.lua
parent1cffe6a9b63305eaccce007af5db522cfb5989d1 (diff)
downloadadvtrains-f54d3b2e6cbba105f6ddd8c7f006db3e04d05b0e.tar.gz
advtrains-f54d3b2e6cbba105f6ddd8c7f006db3e04d05b0e.tar.bz2
advtrains-f54d3b2e6cbba105f6ddd8c7f006db3e04d05b0e.zip
Adding crafting recipes
Diffstat (limited to 'crafting.lua')
-rw-r--r--crafting.lua76
1 files changed, 76 insertions, 0 deletions
diff --git a/crafting.lua b/crafting.lua
new file mode 100644
index 0000000..474f808
--- /dev/null
+++ b/crafting.lua
@@ -0,0 +1,76 @@
+--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({
+ output = 'advtrains:dtrack_puffer 2',
+ recipe = {
+ {'default:wood', 'dye:red', ''},
+ {'default:steel_ingot', '', 'default:steel_ingot'},
+ {'advtrains:dtrack_placer', 'advtrains:dtrack_placer', ''},
+ },
+})
+--temporary, as long as puffers do not rotate
+minetest.register_craft({
+ output = 'advtrains:dtrack_puffer_30',
+ recipe = {
+ {'advtrains:dtrack_puffer'},
+ },
+})
+minetest.register_craft({
+ output = 'advtrains:dtrack_puffer_45',
+ recipe = {
+ {'advtrains:dtrack_puffer_30'},
+ },
+})
+minetest.register_craft({
+ output = 'advtrains:dtrack_puffer_60',
+ recipe = {
+ {'advtrains:dtrack_puffer_45'},
+ },
+})
+minetest.register_craft({
+ output = 'advtrains:dtrack_puffer',
+ recipe = {
+ {'advtrains:dtrack_puffer_60'},
+ },
+})
+
+
+--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