Initial commit
2
README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# tech_additions
|
||||||
|
additions for some tech mod "server MTSR"
|
33
airblock.lua
Normal file
@ -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(),
|
||||||
|
})
|
||||||
|
|
7
basic_materials.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
minetest.register_craft({
|
||||||
|
output = 'basic_materials:silicon',
|
||||||
|
recipe = {
|
||||||
|
{ "default:sand", "default:sand" },
|
||||||
|
{ "default:sand", "default:tin_ingot" },
|
||||||
|
}
|
||||||
|
})
|
126
extra_cobble.lua
Normal file
@ -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", '',},
|
||||||
|
{ '', '', '',}
|
||||||
|
}
|
||||||
|
})
|
26
init.lua
Normal file
@ -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
|
8
jonez.lua
Normal file
@ -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,
|
||||||
|
})
|
14
locale/tech_additions.ru.tr
Normal file
@ -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=Кирпич из конгломерата
|
6
mod.conf
Normal file
@ -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
|
14
moreores.lua
Normal file
@ -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" },
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
45
multidecor.lua
Normal file
@ -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', },
|
||||||
|
}
|
||||||
|
})
|
BIN
screenshot.png
Normal file
After Width: | Height: | Size: 237 KiB |
65
techage.lua
Normal file
@ -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"})
|
BIN
textures/tech_additions_air_block.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/tech_additions_amphibolite.png
Normal file
After Width: | Height: | Size: 657 B |
BIN
textures/tech_additions_amphibolite_brick.png
Normal file
After Width: | Height: | Size: 669 B |
BIN
textures/tech_additions_amphibolite_cobble.png
Normal file
After Width: | Height: | Size: 752 B |
BIN
textures/tech_additions_andesite_cobble.png
Normal file
After Width: | Height: | Size: 757 B |
BIN
textures/tech_additions_baborium_block.png
Normal file
After Width: | Height: | Size: 933 B |
BIN
textures/tech_additions_conglomerate.png
Normal file
After Width: | Height: | Size: 1001 B |
BIN
textures/tech_additions_conglomerate_block.png
Normal file
After Width: | Height: | Size: 933 B |
BIN
textures/tech_additions_conglomerate_brick.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
textures/tech_additions_iron_block.png
Normal file
After Width: | Height: | Size: 945 B |
BIN
textures/tech_additions_wolfram_block.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/tech_additions_zinc_block.png
Normal file
After Width: | Height: | Size: 1.0 KiB |