From e5d51062b3e93824b6d41095bf33e79ff3e151b2 Mon Sep 17 00:00:00 2001 From: jimy-byerley Date: Sat, 21 Jun 2014 09:39:37 +0200 Subject: [PATCH] modified: depends.txt modified: documentation.txt modified: structures.lua --- depends.txt | 4 ++-- documentation.txt | 13 +------------ structures.lua | 26 +++++++++++++++----------- 3 files changed, 18 insertions(+), 25 deletions(-) diff --git a/depends.txt b/depends.txt index bbc4438..74d3d9a 100755 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,4 @@ default moreores -explosion -mesecons \ No newline at end of file +mesecons +farming \ No newline at end of file diff --git a/documentation.txt b/documentation.txt index 3178c6a..c3709c7 100755 --- a/documentation.txt +++ b/documentation.txt @@ -1,6 +1,6 @@ This mod add computers and screen to minetest made by jimy byerley jimy.byerley@gmail.com -It is GNU, do it what you want ! +License is GNU GPL v2, do it what you want ! ==[ crafting ]========================================== @@ -22,14 +22,3 @@ modern screen : plastic plastic electronic card glass plastic - -keyboard : - button button button - button button button - button button button - -laptop : - modern screen - electronic card - keyboard - diff --git a/structures.lua b/structures.lua index fc1e848..723f755 100755 --- a/structures.lua +++ b/structures.lua @@ -2,6 +2,10 @@ including : concrete, steel armature, grid, bridge, support, flat ]] +local bronze_ingot = "default:bronze_ingot" +if minetest.registered_nodes[bronze_ingot] == nil then + bronze_ingot = "moreores:bronze_ingot" +end minetest.register_craft({ output = 'technology:concrete', @@ -13,9 +17,9 @@ minetest.register_craft({ minetest.register_craft({ output = 'technology:armature_h 5', recipe = { - {'moreores:bronze_ingot', 'moreores:bronze_ingot', 'moreores:bronze_ingot'}, - {'', 'moreores:bronze_ingot', ''}, - {'moreores:bronze_ingot', 'moreores:bronze_ingot', 'moreores:bronze_ingot'}, + {bronze_ingot, bronze_ingot, bronze_ingot}, + {'', bronze_ingot, ''}, + {bronze_ingot, bronze_ingot, bronze_ingot}, } }) @@ -176,9 +180,9 @@ minetest.register_node("technology:grid_h", { minetest.register_craft({ output = 'technology:grid_v 10', recipe = { - {'', 'moreores:bronze_ingot', ''}, - {'moreores:bronze_ingot', 'moreores:bronze_ingot', 'moreores:bronze_ingot'}, - {'', 'moreores:bronze_ingot', ''}, + {'', bronze_ingot, ''}, + {bronze_ingot, bronze_ingot, bronze_ingot}, + {'', bronze_ingot, ''}, } }) @@ -195,15 +199,15 @@ minetest.register_craft({ minetest.register_craft({ output = 'technology:floor 2', recipe = { - {'moreores:bronze_ingot', 'moreores:bronze_ingot'}, + {bronze_ingot, bronze_ingot}, } }) minetest.register_craft({ output = 'technology:edge 10', recipe = { - {'moreores:bronze_ingot', 'moreores:bronze_ingot'}, - {'moreores:bronze_ingot', 'moreores:bronze_ingot'}, + {bronze_ingot, bronze_ingot}, + {bronze_ingot, bronze_ingot}, } }) @@ -224,8 +228,8 @@ minetest.register_craft({ minetest.register_craft({ output = 'technology:triangle 4', recipe = { - {'moreores:bronze_ingot', 'moreores:bronze_ingot'}, - {'', 'moreores:bronze_ingot'}, + {bronze_ingot, bronze_ingot}, + {'', bronze_ingot}, } })