commit 845e094171c18a152abc4755ac6a0af4c6ee9593 Author: Aleksandr Date: Sat Jan 6 16:15:07 2024 +0500 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..91cbb9d --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# tech_additions +additions for some tech mod "server MTSR" \ No newline at end of file diff --git a/airblock.lua b/airblock.lua new file mode 100644 index 0000000..2003399 --- /dev/null +++ b/airblock.lua @@ -0,0 +1,33 @@ +local S = minetest.get_translator("tech_additions") + +local placeairblock = function () + return function(itemstack, user, pointed_thing) + local pos = user:getpos() + local dir = user:get_look_dir() + local distancefromplayer = 3 + local new_pos = { + x = pos.x + (dir.x * distancefromplayer), + y = pos.y + 1 + (dir.y * distancefromplayer), + z = pos.z + (dir.z * distancefromplayer), + } + local getPos = minetest.get_node(new_pos) + if getPos.name == "air" or + getPos.name == "default:water_source" or + getPos.name == "default:water_flowing" or + getPos.name == "default:river_water_source" or + getPos.name == "default:river_water_flowing" then + minetest.set_node(new_pos, {name="tech_additions:air_block"}) + end + end +end + +minetest.register_node("tech_additions:air_block", { + description = S("Air Block"), + tiles = {"tech_additions_air_block.png"}, + groups = {snappy=3, fall_damage_add_percent = -99, bouncy=70}, + light_source = 30, + paramtype = "light", + sunlight_propagates = true, + on_secondary_use = placeairblock(), + }) + diff --git a/basic_materials.lua b/basic_materials.lua new file mode 100644 index 0000000..febc739 --- /dev/null +++ b/basic_materials.lua @@ -0,0 +1,7 @@ +minetest.register_craft({ + output = 'basic_materials:silicon', + recipe = { + { "default:sand", "default:sand" }, + { "default:sand", "default:tin_ingot" }, + } +}) diff --git a/extra_cobble.lua b/extra_cobble.lua new file mode 100644 index 0000000..21bbd04 --- /dev/null +++ b/extra_cobble.lua @@ -0,0 +1,126 @@ +local S = minetest.get_translator("tech_additions") + +minetest.register_node("tech_additions:amphibolite_cobble", { + description = S("Amphibolite cobble"), + tiles = { 'tech_additions_amphibolite_cobble.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:amphibolite_cobble', + recipe = { + { "default:cobble", "default:cobble", '', }, + { "default:cobble", "default:cobble", '', }, + { '', '', '', } + } +}) + +minetest.register_craft({ + output = 'default:cobble 4', + recipe = { + { "tech_additions:amphibolite_cobble"} + } +}) + +minetest.register_node("tech_additions:amphibolite", { + description = S("Amphibolite"), + tiles = { 'tech_additions_amphibolite.png' }, + groups = {crumbly = 2}, +}) + +--techage.add_grinder_recipe({input="tech_additions:amphibolite_cobble", output="tech_additions:amphibolite"}) + +minetest.register_craft({ + type = "cooking", + output = "tech_additions:amphibolite", + recipe = "tech_additions:amphibolite_cobble", + cooktime = 20, +}) + +minetest.register_node("tech_additions:amphibolite_brick", { + description = S("Amphibolite brick"), + tiles = { 'tech_additions_amphibolite_brick.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:amphibolite_brick 4', + recipe = { + { "tech_additions:amphibolite", "tech_additions:amphibolite", '',}, + { "tech_additions:amphibolite", "tech_additions:amphibolite", '',}, + { '', '', '',} + } +}) + +minetest.register_node("tech_additions:andesite_cobble", { + description = S("Andesite cobble"), + tiles = { 'tech_additions_andesite_cobble.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:andesite_cobble', + recipe = { + { "default:cobble", "default:cobble", "default:cobble", } + } +}) + +minetest.register_craft({ + output = 'default:cobble 3', + recipe = { + { "tech_additions:andesite_cobble"} + } +}) + +minetest.register_node("tech_additions:conglomerate", { + description = S("Conglomerate"), + tiles = { 'tech_additions_conglomerate.png' }, + groups = {crumbly = 2}, + sounds = default.node_sound_gravel_defaults(), +}) + +minetest.register_craft({ + output = 'tech_additions:conglomerate', + recipe = { + { "default:gravel", "default:gravel", '',}, + { "default:gravel", "default:gravel", '',}, + { '', '', '', } + } +}) + +minetest.register_craft({ + output = 'default:gravel 4', + recipe = { + { "tech_additions:conglomerate"} + } +}) + +minetest.register_node("tech_additions:conglomerate_block", { + description = S("Conglomerate block"), + tiles = { 'tech_additions_conglomerate_block.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:conglomerate_block 9', + recipe = { + { "tech_additions:conglomerate", "tech_additions:conglomerate", "tech_additions:conglomerate",}, + { "tech_additions:conglomerate", "tech_additions:conglomerate", "tech_additions:conglomerate",}, + { "tech_additions:conglomerate", "tech_additions:conglomerate", "tech_additions:conglomerate",} + } +}) + +minetest.register_node("tech_additions:conglomerate_brick", { + description = S("Conglomerate brick"), + tiles = { 'tech_additions_conglomerate_brick.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:conglomerate_brick 4', + recipe = { + { "tech_additions:conglomerate", "tech_additions:conglomerate", '',}, + { "tech_additions:conglomerate", "tech_additions:conglomerate", '',}, + { '', '', '',} + } +}) \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..2da3715 --- /dev/null +++ b/init.lua @@ -0,0 +1,26 @@ +--additions for techage mod +dofile(minetest.get_modpath("tech_additions") .. "/techage.lua") + +--additions for multidecor package +if minetest.get_modpath("craft_ingredients") then +dofile(minetest.get_modpath("tech_additions") .. "/multidecor.lua") +end + +--additions for basic_materials mod +dofile(minetest.get_modpath("tech_additions") .. "/basic_materials.lua") + +--add air block +dofile(minetest.get_modpath("tech_additions") .. "/airblock.lua") + +--additions for moreores +if minetest.get_modpath("moreores") then +dofile(minetest.get_modpath("tech_additions") .. "/moreores.lua") +end + +--add extra cobble +dofile(minetest.get_modpath("tech_additions") .. "/extra_cobble.lua") + +--additions for moreores +if minetest.get_modpath("jonez") then + dofile(minetest.get_modpath("tech_additions") .. "/jonez.lua") +end \ No newline at end of file diff --git a/jonez.lua b/jonez.lua new file mode 100644 index 0000000..f4e57e5 --- /dev/null +++ b/jonez.lua @@ -0,0 +1,8 @@ +local S = minetest.get_translator("tech_additions") + +techage.ironage_register_recipe({ + output = "jonez:marble 4", + recipe = {"default:cobble", "default:cobble", "default:cobble", "default:sand"}, + heat = 7, + time = 8, +}) \ No newline at end of file diff --git a/locale/tech_additions.ru.tr b/locale/tech_additions.ru.tr new file mode 100644 index 0000000..1a1f04a --- /dev/null +++ b/locale/tech_additions.ru.tr @@ -0,0 +1,14 @@ +# textdomain: tech_additions + +TA1 Iron block=Блок железа TA1 +Baborium block=Блок бабуриума +Wolfram block=Блок вольфрама +Zinc block=Блок цинка +Air Block=Воздушный блок +Amphibolite cobble=Амфиболитовый булыжник +Amphibolite=Амфиболит +Amphibolite brick=Кирпич из амфиболита +Andesite cobble=Андезитовый булыжник +Conglomerate=Конгломерат +Conglomerate block=Блок конгломерата +Conglomerate brick=Кирпич из конгломерата \ No newline at end of file diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..6a2cfc9 --- /dev/null +++ b/mod.conf @@ -0,0 +1,6 @@ +name = tech_additions +description = Adds some block and recipes. +depends = default, techage +optional_depends = craft_ingredients +min_minetest_version = 5.7 +title = Tech additions \ No newline at end of file diff --git a/moreores.lua b/moreores.lua new file mode 100644 index 0000000..80a3ff6 --- /dev/null +++ b/moreores.lua @@ -0,0 +1,14 @@ +minetest.register_craft({ + output = 'moreores:mithril_ingot 9', + recipe = { + { "moreores:mithril_block" }, + } +}) + +minetest.register_craft({ + output = 'moreores:silver_ingot 9', + recipe = { + { "moreores:silver_block" }, + } +}) + diff --git a/multidecor.lua b/multidecor.lua new file mode 100644 index 0000000..a0d5073 --- /dev/null +++ b/multidecor.lua @@ -0,0 +1,45 @@ +local S = minetest.get_translator("tech_additions") + +minetest.register_node("tech_additions:wolfram_ingot_block", { + description = S("Wolfram block"), + tiles = { 'tech_additions_wolfram_block.png' }, + groups = { cracky = 3 } +}) + +minetest.register_node("tech_additions:zinc_ingot_block", { + description = S("Zinc block"), + tiles = { 'tech_additions_zinc_block.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:wolfram_ingot_block', + recipe = { + { "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", }, + { "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", }, + { "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", "multidecor:wolfram_ingot", } + } +}) + +minetest.register_craft({ + output = 'multidecor:wolfram_ingot 9', + recipe = { + { 'tech_additions:wolfram_ingot_block', }, + } +}) + +minetest.register_craft({ + output = 'tech_additions:zinc_ingot_block', + recipe = { + { "multidecor:zinc_ingot", "multidecor:zinc_ingot", "multidecor:zinc_ingot", }, + { "multidecor:zinc_ingot", "multidecor:zinc_ingot", "multidecor:zinc_ingot", }, + { "multidecor:zinc_ingot", "multidecor:zinc_ingot", "multidecor:zinc_ingot", } + } +}) + +minetest.register_craft({ + output = 'multidecor:zinc_ingot 9', + recipe = { + { 'tech_additions:zinc_ingot_block', }, + } +}) diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..a2d2f43 Binary files /dev/null and b/screenshot.png differ diff --git a/techage.lua b/techage.lua new file mode 100644 index 0000000..e76d46e --- /dev/null +++ b/techage.lua @@ -0,0 +1,65 @@ +local S = minetest.get_translator("tech_additions") + +minetest.register_node("tech_additions:iron_block", { + description = S("TA1 Iron block"), + tiles = { 'tech_additions_iron_block.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:iron_block', + recipe = { + { "techage:iron_ingot", "techage:iron_ingot", "techage:iron_ingot", }, + { "techage:iron_ingot", "techage:iron_ingot", "techage:iron_ingot", }, + { "techage:iron_ingot", "techage:iron_ingot", "techage:iron_ingot", } + } +}) + +minetest.register_craft({ + output = 'techage:iron_ingot 9', + recipe = { + { 'tech_additions:iron_block', }, + } +}) + +minetest.register_node("tech_additions:baborium_block", { + description = S("Baborium block"), + tiles = { 'tech_additions_baborium_block.png' }, + groups = { cracky = 3 } +}) + +minetest.register_craft({ + output = 'tech_additions:baborium_block', + recipe = { + { "techage:baborium_ingot", "techage:baborium_ingot", "techage:baborium_ingot", }, + { "techage:baborium_ingot", "techage:baborium_ingot", "techage:baborium_ingot", }, + { "techage:baborium_ingot", "techage:baborium_ingot", "techage:baborium_ingot", } + } +}) + +minetest.register_craft({ + output = 'techage:baborium_ingot 9', + recipe = { + { 'tech_additions:baborium_block', }, + } +}) + +minetest.register_craft({ + output = 'techage:ta3_barrel_oil', + recipe = { + { 'multidecor:consolidated_oil', 'multidecor:consolidated_oil', 'techage:ta3_barrel_empty'}, + { 'multidecor:consolidated_oil', 'multidecor:consolidated_oil', 'multidecor:consolidated_oil'}, + { 'multidecor:consolidated_oil', 'multidecor:consolidated_oil', 'multidecor:consolidated_oil'}, + } +}) + +minetest.register_craft({ + output = 'techage:ta4_injector_pas', + recipe = { + { '', 'techage:aluminum', ''}, + { '', 'techage:ta3_injector_pas', ''}, + { '', 'techage:ta4_wlanchip', ''}, + } +}) + +techage.add_grinder_recipe({input="multidecor:consolidated_oil", output="techage:plastic_granules"}) \ No newline at end of file diff --git a/textures/tech_additions_air_block.png b/textures/tech_additions_air_block.png new file mode 100644 index 0000000..657102c Binary files /dev/null and b/textures/tech_additions_air_block.png differ diff --git a/textures/tech_additions_amphibolite.png b/textures/tech_additions_amphibolite.png new file mode 100644 index 0000000..a8f562b Binary files /dev/null and b/textures/tech_additions_amphibolite.png differ diff --git a/textures/tech_additions_amphibolite_brick.png b/textures/tech_additions_amphibolite_brick.png new file mode 100644 index 0000000..744a952 Binary files /dev/null and b/textures/tech_additions_amphibolite_brick.png differ diff --git a/textures/tech_additions_amphibolite_cobble.png b/textures/tech_additions_amphibolite_cobble.png new file mode 100644 index 0000000..ed9bd55 Binary files /dev/null and b/textures/tech_additions_amphibolite_cobble.png differ diff --git a/textures/tech_additions_andesite_cobble.png b/textures/tech_additions_andesite_cobble.png new file mode 100644 index 0000000..888208a Binary files /dev/null and b/textures/tech_additions_andesite_cobble.png differ diff --git a/textures/tech_additions_baborium_block.png b/textures/tech_additions_baborium_block.png new file mode 100644 index 0000000..45464d3 Binary files /dev/null and b/textures/tech_additions_baborium_block.png differ diff --git a/textures/tech_additions_conglomerate.png b/textures/tech_additions_conglomerate.png new file mode 100644 index 0000000..fc82da1 Binary files /dev/null and b/textures/tech_additions_conglomerate.png differ diff --git a/textures/tech_additions_conglomerate_block.png b/textures/tech_additions_conglomerate_block.png new file mode 100644 index 0000000..a77d92a Binary files /dev/null and b/textures/tech_additions_conglomerate_block.png differ diff --git a/textures/tech_additions_conglomerate_brick.png b/textures/tech_additions_conglomerate_brick.png new file mode 100644 index 0000000..a481b49 Binary files /dev/null and b/textures/tech_additions_conglomerate_brick.png differ diff --git a/textures/tech_additions_iron_block.png b/textures/tech_additions_iron_block.png new file mode 100644 index 0000000..080e861 Binary files /dev/null and b/textures/tech_additions_iron_block.png differ diff --git a/textures/tech_additions_wolfram_block.png b/textures/tech_additions_wolfram_block.png new file mode 100644 index 0000000..0239ff0 Binary files /dev/null and b/textures/tech_additions_wolfram_block.png differ diff --git a/textures/tech_additions_zinc_block.png b/textures/tech_additions_zinc_block.png new file mode 100644 index 0000000..b93451d Binary files /dev/null and b/textures/tech_additions_zinc_block.png differ