add better textures and crafts
authormbblp <mbb-mail@gmx.de>
Thu, 2 Feb 2017 22:06:24 +0000 (23:06 +0100)
committerorwell96 <mono96.mml@gmail.com>
Thu, 2 Feb 2017 22:06:24 +0000 (23:06 +0100)
advtrains/advtrains/craft_items.lua [new file with mode: 0644]
advtrains/advtrains/crafting.lua
advtrains/advtrains/init.lua
advtrains/advtrains/textures/advtrains_boiler.png [new file with mode: 0644]
advtrains/advtrains/textures/advtrains_chimney.png [new file with mode: 0644]
advtrains/advtrains/textures/advtrains_driver_cab.png [new file with mode: 0644]
advtrains/advtrains/textures/advtrains_wheel.png [new file with mode: 0644]
advtrains/advtrains_train_steam/init.lua
advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png [new file with mode: 0644]

diff --git a/advtrains/advtrains/craft_items.lua b/advtrains/advtrains/craft_items.lua
new file mode 100644 (file)
index 0000000..a4db385
--- /dev/null
@@ -0,0 +1,23 @@
+core.register_craftitem("advtrains:boiler", {
+       description = "Boiler",
+       inventory_image = "advtrains_boiler.png",
+})
+
+core.register_craftitem("advtrains:driver_cab", {
+       description = "driver's cab",
+       inventory_image = "advtrains_driver_cab.png",
+})
+
+core.register_craftitem("advtrains:wheel", {
+       description = "Wheel",
+       inventory_image = "advtrains_wheel.png",
+})
+
+
+core.register_craftitem("advtrains:chimney", {
+       description = "Chimney",
+       inventory_image = "advtrains_chimney.png",
+})
index 5ba12ce..72cd6da 100644 (file)
@@ -65,6 +65,45 @@ minetest.register_craft({
        },
 })
 
+--boiler
+minetest.register_craft({
+       output = 'advtrains:boiler',
+       recipe = {
+               {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+               {'doors:trapdoor_steel', '', 'default:steel_ingot'},
+               {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+       },
+})
+
+--drivers'cab
+minetest.register_craft({
+       output = 'advtrains:driver_cab',
+       recipe = {
+               {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+               {'', '', 'default:glass'},
+               {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+       },
+})
+
+--drivers'cab
+minetest.register_craft({
+       output = 'advtrains:wheel',
+       recipe = {
+               {'', 'default:steel_ingot', ''},
+               {'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
+               {'', 'default:steel_ingot', ''},
+       },
+})
+
+--chimney
+minetest.register_craft({
+       output = 'advtrains:chimney',
+       recipe = {
+               {'', 'default:steel_ingot', ''},
+               {'', 'default:steel_ingot', 'default:torch'},
+               {'', 'default:steel_ingot', ''},
+       },
+})
 
 
 --misc_nodes
index b001f1f..c2f2a6a 100644 (file)
@@ -80,6 +80,8 @@ dofile(advtrains.modpath.."/damage.lua")
 dofile(advtrains.modpath.."/signals.lua")
 dofile(advtrains.modpath.."/misc_nodes.lua")
 dofile(advtrains.modpath.."/crafting.lua")
+dofile(advtrains.modpath.."/craft_items.lua")
+
 
 --load/save
 
diff --git a/advtrains/advtrains/textures/advtrains_boiler.png b/advtrains/advtrains/textures/advtrains_boiler.png
new file mode 100644 (file)
index 0000000..8c7ff0d
Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_boiler.png differ
diff --git a/advtrains/advtrains/textures/advtrains_chimney.png b/advtrains/advtrains/textures/advtrains_chimney.png
new file mode 100644 (file)
index 0000000..285a1a6
Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_chimney.png differ
diff --git a/advtrains/advtrains/textures/advtrains_driver_cab.png b/advtrains/advtrains/textures/advtrains_driver_cab.png
new file mode 100644 (file)
index 0000000..331bcc9
Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_driver_cab.png differ
diff --git a/advtrains/advtrains/textures/advtrains_wheel.png b/advtrains/advtrains/textures/advtrains_wheel.png
new file mode 100644 (file)
index 0000000..fb72879
Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_wheel.png differ
index e489fd4..16a71f7 100644 (file)
@@ -139,7 +139,7 @@ advtrains.register_wagon("detailed_steam_engine", {
                })
        end,
        drops={"default:steelblock 4"},
-}, S("Detailed Steam Engine"), "advtrains_engine_steam_inv.png")
+}, S("Detailed Steam Engine"), "advtrains_detailed_engine_steam_inv.png")
 
 advtrains.register_wagon("wagon_default", {
        mesh="advtrains_passenger_wagon.b3d",
@@ -209,24 +209,34 @@ advtrains.register_wagon("wagon_box", {
 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'},
+               {'', '', 'advtrains:chimney'},
+               {'advtrains:driver_cab', 'dye:black', 'advtrains:boiler'},
+               {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'},
        },
 })
+
+minetest.register_craft({
+       output = 'advtrains:detailed_steam_engine',
+       recipe = {
+               {'', '', 'advtrains:chimney'},
+               {'advtrains:driver_cab', 'dye:green', 'advtrains:boiler'},
+               {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'},
+       },
+})
+
 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'},
+               {'default:glass', 'dye:dark_green', 'default:glass'},
+               {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'},
        },
 })
 minetest.register_craft({
        output = 'advtrains:wagon_box',
        recipe = {
-               {'default:steelblock', 'default:steelblock', 'default:steelblock'},
-               {'default:steelblock', 'default:chest', 'default:steelblock'},
-               {'default:steelblock', 'default:steelblock', 'default:steelblock'},
+               {'group:wood', 'group:wood', 'group:wood'},
+               {'group:wood', 'default:chest', 'group:wood'},
+               {'advtrains:wheel', '', 'advtrains:wheel'},
        },
 })
diff --git a/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png b/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png
new file mode 100644 (file)
index 0000000..51adb5a
Binary files /dev/null and b/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png differ