A lot of game play fixs ,add water gen

This commit is contained in:
ConfidentOwl 2023-05-11 23:12:31 +03:00
parent 81ef24b45c
commit 91a152d942
52 changed files with 713 additions and 93 deletions

View File

@ -3,7 +3,7 @@ GLOBAL_FLUID_LIST ={
"mcl_core:lava_source","mcl_core:water_source","mclx_core:river_water_source","owl_tech:tar_source","owl_tech:metan_source"
}
INPUT_SLOT_NAME= {
"fluid_in","fuel",'input_in',"sapling",'input_in'
"fluid_in","fuel",'input_in',"input_in_add","sapling"
}
OUTPUT_SLOT_NAME={
'dst_add','dst',"wood","leaves"
@ -22,8 +22,8 @@ FLUID_CELL_TO_NAME={
metan_cell="owl_tech:metan_source"
}
local ore_duration = 2
local ingot_duration = 4
local ore_duration = 12
local ingot_duration = 24
local smel_metal_duration = 4
local biomassa_duration =4
local mixer_durtation= 2
@ -99,7 +99,7 @@ SIEV_RESIPS={
sulfur_dirt_dust= {(1),(1),("owl_tech:sulfur_dust"),(2),(ore_duration),(25),("owl_tech:saltpeter_dust"),(1),("owl_tech:sulfur_dirt_dust")},
diamond_dirt_dust= {(1),(1),("owl_tech:diamond_dust"),(2),(ore_duration),(25),("owl_tech:diamond_dust"),(1),("owl_tech:diamond_dirt_dust")},
--sapling
acacialeaves = {(1),(2),("owl_tech:biomassa"),(2),(biomassa_duration),(25),("mcl_core:acaciasapling"),(1),("mcl_core:acacialeves")},
acacialeaves = {(1),(2),("owl_tech:biomassa"),(2),(biomassa_duration),(25),("mcl_core:acaciasapling"),(1),("mcl_core:acacialeaves")},
birchleaves = {(1),(2),("owl_tech:biomassa"),(2),(biomassa_duration),(25),("mcl_core:birchsapling"),(1),("mcl_core:birchleaves")},
darkleaves = {(1),(2),("owl_tech:biomassa"),(2),(biomassa_duration),(25),("mcl_core:darksapling"),(1),("mcl_core:darkleaves")},
jungleleaves = {(1),(2),("owl_tech:biomassa"),(2),(biomassa_duration),(25),("mcl_core:junglesapling"),(1),("mcl_core:jungleleaves")},

View File

@ -45,7 +45,7 @@ minetest.register_node("owl_tech:bronze_macerator", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1,dst=1,dst_add=1},
groups = {pickaxey=2, owl_tech_machine=1,dst=1,dst_add=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -192,7 +192,7 @@ minetest.register_node("owl_tech:bronze_alloy_smelter", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1,input_in_add=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -336,7 +336,7 @@ minetest.register_node("owl_tech:bronze_sieve", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -477,7 +477,7 @@ minetest.register_node("owl_tech:bronze_forge_hammer", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -620,7 +620,7 @@ minetest.register_node("owl_tech:bronze_furnance", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -745,7 +745,7 @@ minetest.register_node("owl_tech:steel_macerator", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1,dst=1,dst_add=1},
groups = {pickaxey=2, owl_tech_machine=1,dst=1,dst_add=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -887,7 +887,7 @@ minetest.register_node("owl_tech:steel_alloy_smelter", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1,input_in_add=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -1028,7 +1028,7 @@ minetest.register_node("owl_tech:steel_forge_hammer", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
@ -1141,7 +1141,7 @@ minetest.register_node("owl_tech:steel_furnance", {
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
groups = {pickaxey=2, owl_tech_machine=1,input_in=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,

View File

@ -2,8 +2,109 @@ local S = minetest.get_translator(minetest.get_current_modname())
local name = minetest.get_current_modname()
local path = minetest.get_modpath(name)
local use_select_box = minetest.settings:get_bool("mcl_buckets_use_select_box", false)
---- This crutch was suggested by the developers of Mineclone 2 - they made the functions of their shovels and hoes local
local steelHammerDigs = {}
minetest.register_on_dignode( -- take from Hammermod by cultom https://content.minetest.net/packages/cultom/hammermod/
function(pos, oldnode, digger)
if digger == nil or not ( minetest.get_item_group(digger:get_wielded_item():get_name(),"miner_hammer")>0) then
return
end
local playerName = digger:get_player_name()
if(playerName == "" or steelHammerDigs[playerName]) then
return
end
steelHammerDigs[playerName] = true
local posDiff = pos.y - digger:get_pos().y
if(posDiff < 2 and posDiff > 1) then
if
digger:get_look_horizontal() > math.pi / 4 and digger:get_look_horizontal() < 3 * math.pi / 4 or
digger:get_look_horizontal() > 5 * math.pi / 4 and digger:get_look_horizontal() < 7 * math.pi / 4
then
pos.y = pos.y -1
pos.z = pos.z -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
else
pos.y = pos.y -1
pos.x = pos.x -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.y = pos.y -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
end
else
pos.x = pos.x -1
pos.z = pos.z -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z +1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.x = pos.x -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
pos.z = pos.z -1
minetest.node_dig(pos, minetest.get_node(pos), digger)
end
steelHammerDigs[playerName] = nil
end
)
---- This crutch was suggested by the developers of Mineclone 2 - they made the functions of their shovels and hoes localS
local function create_soil(pos, inv)
if pos == nil then
return false
@ -165,22 +266,6 @@ for i, value in ipairs(metals_ore_array) do
stack_max = 64,
groups = { craftitem=1 },
})
if metals_ore_array[i][7] then
--Simple burn ore in ingot
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..metals_ore_array[i][1].."_ingot",
recipe = "owl_tech:"..metals_ore_array[i][1].."_ore",
cooktime = 10,
})
--Simple burn dust in ingot
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..metals_ore_array[i][1].."_ingot",
recipe = "owl_tech:"..metals_ore_array[i][1].."_dust",
cooktime = 10,
})
end
--dust owl_tech_lamp_base.png owl_tech_lamp_part.png
minetest.register_craftitem("owl_tech:"..metals_ore_array[i][1].."_dust", {
description = S(metals_ore_array[i][2].. " dust"),
@ -289,6 +374,45 @@ for i, value in ipairs(metals_ore_array) do
stack_max = 64,
groups = { craftitem=1 },
})
if metals_ore_array[i][7] then
--Simple burn ore in ingot
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..metals_ore_array[i][1].."_ingot",
recipe = "owl_tech:"..metals_ore_array[i][1].."_ore",
cooktime = 10,
})
--Simple burn dust in ingot
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..metals_ore_array[i][1].."_ingot",
recipe = "owl_tech:"..metals_ore_array[i][1].."_dust",
cooktime = 10,
})
--burn dirt dust
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..metals_ore_array[i][1].."_ingot",
recipe = "owl_tech:"..metals_ore_array[i][1].."_dirt_dust",
cooktime = 10,
})
end
mcl_armor.register_set({
name = metals_ore_array[i][1],
description = metals_ore_array[i][2],
durability = metals_ore_array[i][6]*2,
enchantability = 9,
points = {
head = 2,
torso = 6,
legs = 5,
feet = 2,
},
craft_material = "owl_tech:"..metals_ore_array[i][1].."_plate",
cook_material = "owl_tech:"..metals_ore_array[i][1].."_nugget",
sound_equip = "mcl_armor_equip_iron",
sound_unequip = "mcl_armor_unequip_iron",
})
--plate
minetest.register_craftitem("owl_tech:"..metals_ore_array[i][1].."_plate", {
description = S(metals_ore_array[i][2].. " plate"),
@ -366,7 +490,7 @@ for i, value in ipairs(metals_ore_array) do
_doc_items_longdesc = "Pick from owl tech",
inventory_image = "(owl_tech_pick_head.png^[colorize:"..metals_ore_array[i][5]..":128)^owl_tech_pick_stick.png", --owl_tech_pick_head.png owl_tech_pick_stick.png
wield_scale = mcl_vars.tool_wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=4, enchantability=14 },
groups = { tool=1, pickaxe=1, dig_speed_class=4, enchantability=14},
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
@ -379,7 +503,7 @@ for i, value in ipairs(metals_ore_array) do
_mcl_toollike_wield = true,
_mcl_diggroups = {
pickaxey = { speed = 6, level = 4, uses = metals_ore_array[i][6]*2}
},
},
})
--Pick head
minetest.register_craftitem("owl_tech:pick_head_"..metals_ore_array[i][1], {
@ -409,6 +533,58 @@ for i, value in ipairs(metals_ore_array) do
output = "owl_tech:pick_"..metals_ore_array[i][1],
recipe = {"owl_tech:pick_head_"..metals_ore_array[i][1],"mcl_core:stick"}
})
--hammer
minetest.register_tool("owl_tech:hammer_".. metals_ore_array[i][1], {
description = S( metals_ore_array[i][2].." Hammer"),
_doc_items_longdesc = "Hammer from owl tech",
inventory_image = "(owl_tech_hammer_head.png^[colorize:"..metals_ore_array[i][5]..":128)^owl_tech_pick_stick.png", --owl_tech_pick_head.png owl_tech_pick_stick.png
wield_scale = mcl_vars.tool_wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=4, enchantability=14,miner_hammer=1 },
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
max_drop_level=4,
damage_groups = {fleshy=4},
punch_attack_uses = (metals_ore_array[i][6]*5),
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "owl_tech:"..metals_ore_array[i][1].."_ingot",
_mcl_toollike_wield = true,
_mcl_diggroups = {
pickaxey = { speed = 6, level = 4, uses = metals_ore_array[i][6]*10}
},
})
--Hammer head
minetest.register_craftitem("owl_tech:hammer_head_"..metals_ore_array[i][1], {
description = S("Hammer head "..metals_ore_array[i][1]),
_doc_items_longdesc = S("Hammer head use for crafte hammer in any place"),
inventory_image = "(owl_tech_hammer_head.png^[colorize:"..metals_ore_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte Hammer head
minetest.register_craft({
type = "shaped",
output = "owl_tech:hammer_head_"..metals_ore_array[i][1],
recipe = {
{"owl_tech:"..metals_ore_array[i][1].."_plate","owl_tech:"..metals_ore_array[i][1].."_plate","owl_tech:"..metals_ore_array[i][1].."_plate"},
{"owl_tech:"..metals_ore_array[i][1].."_ingot","owl_tech:"..metals_ore_array[i][1].."_ingot","owl_tech:"..metals_ore_array[i][1].."_ingot"},
{"owl_tech:work_file","","owl_tech:work_hammer",}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
--Crafte hasmmer from hammer head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:hammer_"..metals_ore_array[i][1],
recipe = {"owl_tech:hammer_head_"..metals_ore_array[i][1],"mcl_core:stick"}
})
--axe
minetest.register_tool("owl_tech:axe_".. metals_ore_array[i][1], {
description = S(metals_ore_array[i][2].." axe"),
@ -816,21 +992,21 @@ for i, value in ipairs(metals_ore_array) do
})
end
-- 1)tech_name 2)useal name 3)need ore ? 4)pickasxe_level 5)color 6)gem_base 7)gem_block_base 8)dust_block 9)burn fuel
-- 1)tech_name 2)useal name 3)need ore ? 4)pickasxe_level 5)color 6)gem_base 7)gem_block_base 8)dust_block 9)burn fuel 10)tool hardenet
local gems_orew_array={
{"coal","Coal ",true,1,"#1b1b1b","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",80},
{"solid_biofuel","Solid biofuel ",false,1,"#0e3000","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",160},
{"sulfur","Sulfur ",true,1,"#c2a800","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
{"saltpeter","Saltpeter ",true,1,"#b3e6ee","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
{"diamond","Diamond ",true,3,"#77cefb","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},
{"ruby","Ruby ",true,3,"#d40000","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},--
{"raw_ruber","Raw Ruber ",false,1,"#dace00","owl_tech_gem_3.png","owl_tech_gem_block_3.png","owl_tech_dust_block_1.png",0},
{"ruber","Ruber ",false,1,"#171717","default_steel_ingot.png","default_steel_block.png","owl_tech_dust_block_1.png",0},
{"coal","Coal ",true,1,"#1b1b1b","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",80,0},
{"solid_biofuel","Solid biofuel ",false,1,"#0e3000","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",160,0},
{"sulfur","Sulfur ",true,1,"#c2a800","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0,0},
{"saltpeter","Saltpeter ",true,1,"#b3e6ee","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0,0},
{"diamond","Diamond ",true,3,"#77cefb","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0,1000},
{"ruby","Ruby ",true,3,"#d40000","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0,750},--
{"raw_ruber","Raw Ruber ",false,1,"#dace00","owl_tech_gem_3.png","owl_tech_gem_block_3.png","owl_tech_dust_block_1.png",0,0},
{"ruber","Ruber ",false,1,"#171717","default_steel_ingot.png","default_steel_block.png","owl_tech_dust_block_1.png",0,0},
}
for i, value in ipairs(gems_orew_array) do
--ore
if gems_orew_array[i][3] then
if gems_orew_array[i][3] then --and
minetest.register_node("owl_tech:"..gems_orew_array[i][1].."_ore", {
description = S(gems_orew_array[i][2].." ore"),
_doc_items_longdesc = S(gems_orew_array[i][2]..' ore'),
@ -861,13 +1037,32 @@ for i, value in ipairs(gems_orew_array) do
stack_max = 64,
groups = { craftitem=1 },
})
--gem
if gems_orew_array[i][9]==0 then
--gem
minetest.register_craftitem("owl_tech:"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][2]),
_doc_items_longdesc = S(gems_orew_array[i][2]),
inventory_image = gems_orew_array[i][6].."^[colorize:"..gems_orew_array[i][5]..":128",
stack_max = 64,
groups = { craftitem=1 },
description = S(gems_orew_array[i][2]),
_doc_items_longdesc = S(gems_orew_array[i][2]),
inventory_image = gems_orew_array[i][6].."^[colorize:"..gems_orew_array[i][5]..":128",
stack_max = 64,
groups = { craftitem=1 },
})
else
--gem
minetest.register_craftitem("owl_tech:"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][2]),
_doc_items_longdesc = S(gems_orew_array[i][2]),
inventory_image = gems_orew_array[i][6].."^[colorize:"..gems_orew_array[i][5]..":128",
stack_max = 64,
groups = { craftitem=1,coal=1 },
})
end
--burn ore in gen
minetest.register_craft({
type = "cooking",
output = "owl_tech:"..gems_orew_array[i][1],
recipe = "owl_tech:"..gems_orew_array[i][1].."_ore",
cooktime = 10,
})
--plate
minetest.register_craftitem("owl_tech:"..gems_orew_array[i][1].."_plate", {
@ -930,6 +1125,258 @@ for i, value in ipairs(gems_orew_array) do
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
})
if gems_orew_array[i][10]>0 then
--pick
minetest.register_tool("owl_tech:pick_".. gems_orew_array[i][1], {
description = S( gems_orew_array[i][2].." Pickaxe"),
_doc_items_longdesc = "Pick from owl tech",
inventory_image = "(owl_tech_pick_head.png^[colorize:"..gems_orew_array[i][5]..":128)^owl_tech_pick_stick.png", --owl_tech_pick_head.png owl_tech_pick_stick.png
wield_scale = mcl_vars.tool_wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=4, enchantability=14 },
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
max_drop_level=4,
damage_groups = {fleshy=4},
punch_attack_uses = (gems_orew_array[i][10]),
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "owl_tech:"..gems_orew_array[i][1],
_mcl_toollike_wield = true,
_mcl_diggroups = {
pickaxey = { speed = 6, level = 4, uses = gems_orew_array[i][10]*2}
},
})
--Pick head
minetest.register_craftitem("owl_tech:pick_head_"..gems_orew_array[i][1], {
description = S("Pick head "..gems_orew_array[i][1]),
_doc_items_longdesc = S("Pick head use for crafte pick in any place"),
inventory_image = "(owl_tech_pick_head.png^[colorize:"..gems_orew_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte pick head
minetest.register_craft({
type = "shaped",
output = "owl_tech:pick_head_"..gems_orew_array[i][1],
recipe = {
{"owl_tech:"..gems_orew_array[i][1].."_plate","owl_tech:"..gems_orew_array[i][1],"owl_tech:"..gems_orew_array[i][1]},
{"owl_tech:work_file","","owl_tech:work_hammer",},
{"","",""}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
--Crafte pick from pick head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:pick_"..gems_orew_array[i][1],
recipe = {"owl_tech:pick_head_"..gems_orew_array[i][1],"mcl_core:stick"}
})
--axe
minetest.register_tool("owl_tech:axe_"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][2].." axe"),
_doc_items_longdesc = "Axe owl tech",
inventory_image = "(owl_tech_axe_head.png^[colorize:"..gems_orew_array[i][5]..":128)^owl_tech_pick_stick.png",
wield_scale = mcl_vars.tool_wield_scale,
groups = { tool=1, axe=1, dig_speed_class=4, enchantability=14 },
tool_capabilities = {
-- 1/0.9
full_punch_interval = 1.11111111,
max_drop_level=4,
damage_groups = {fleshy=9},
punch_attack_uses = (gems_orew_array[i][10]),
},
on_place = make_stripped_trunk,
sound = { breaks = "default_tool_breaks" },
_repair_material = "owl_tech:"..gems_orew_array[i][1],
_mcl_toollike_wield = true,
_mcl_diggroups = {
axey = { speed = 6, level = 4, uses = gems_orew_array[i][10]*2 }
},
})
--axe head item
minetest.register_craftitem("owl_tech:axe_head_"..gems_orew_array[i][1], {
description = S("Axe head "..gems_orew_array[i][1]),
_doc_items_longdesc = S("Axe head use for crafte axe in any place"),
inventory_image = "(owl_tech_axe_head.png^[colorize:"..gems_orew_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte axe from axe head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:axe_"..gems_orew_array[i][1],
recipe = {"owl_tech:axe_head_"..gems_orew_array[i][1],"mcl_core:stick"}
})
--Crafte head
minetest.register_craft({
type = "shaped",
output = "owl_tech:axe_head_"..gems_orew_array[i][1],
recipe = {
{"owl_tech:"..gems_orew_array[i][1].."_plate","owl_tech:"..gems_orew_array[i][1],""},
{"owl_tech:"..gems_orew_array[i][1],"owl_tech:work_hammer",""},
{"owl_tech:work_file","",""}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
--Sword
minetest.register_tool("owl_tech:sword_"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][2].." sword"),
_doc_items_longdesc = "Owl tech sword",
inventory_image = "(owl_tech_sword_blade.png^[colorize:"..gems_orew_array[i][5]..":128)^owl_tech_sword_stick.png",
wield_scale = mcl_vars.tool_wield_scale,
groups = { weapon=1, sword=1, dig_speed_class=4, enchantability=14 },
tool_capabilities = {
full_punch_interval = 0.625,
max_drop_level=4,
damage_groups = {fleshy=6},
punch_attack_uses = gems_orew_array[i][10],
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "owl_tech:"..gems_orew_array[i][1],
_mcl_toollike_wield = true,
_mcl_diggroups = {
swordy = { speed = 6, level = 4, uses = gems_orew_array[i][10]*2 },
swordy_cobweb = { speed = 6, level = 4, uses = gems_orew_array[i][10]*2 }
},
})
--sword head
minetest.register_craftitem("owl_tech:sword_head_"..gems_orew_array[i][1], {
description = S("Sword head "..gems_orew_array[i][1]),
_doc_items_longdesc = S("Sword head use for crafte sword in any place"),
inventory_image = "(owl_tech_sword_blade.png^[colorize:"..gems_orew_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte sword from sword head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:sword_"..gems_orew_array[i][1],
recipe = {"owl_tech:sword_head_"..gems_orew_array[i][1],"mcl_core:stick"}
})
--Crafte sword head
minetest.register_craft({
type = "shaped",
output = "owl_tech:sword_head_"..gems_orew_array[i][1],
recipe = {
{"","owl_tech:"..gems_orew_array[i][1].."_plate",""},
{"owl_tech:work_file","owl_tech:"..gems_orew_array[i][1].."_plate","owl_tech:work_hammer"},
{"","",""}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
--shovel
minetest.register_tool("owl_tech:shovel_"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][2].." Shovel"),
_doc_items_longdesc = "Owl tech shovel",
_doc_items_usagehelp = shovel_use,
inventory_image = "(owl_tech_shovel_head.png^[colorize:"..gems_orew_array[i][5]..":128)^owl_tech_shovel_stick.png",
wield_scale = wield_scale,
groups = { tool=1, shovel=1, dig_speed_class=4, enchantability=14 },
tool_capabilities = {
full_punch_interval = 1,
max_drop_level=4,
damage_groups = {fleshy=4},
punch_attack_uses = gems_orew_array[i][10],
},
on_place = make_grass_path,
sound = { breaks = "default_tool_breaks" },
_repair_material = "owl_tech:"..gems_orew_array[i][1],
_mcl_toollike_wield = true,
_mcl_diggroups = {
shovely = { speed = 6, level = 4, uses = gems_orew_array[i][10]*2 }
},
})
--Shovel head
minetest.register_craftitem("owl_tech:shovel_head_"..gems_orew_array[i][1], {
description = S("Shovel head "..gems_orew_array[i][1]),
_doc_items_longdesc = S("Shovel head use for crafte pick in any place"),
inventory_image = "(owl_tech_shovel_head.png^[colorize:"..gems_orew_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte sword from sword head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:shovel_"..gems_orew_array[i][1],
recipe = {"owl_tech:shovel_head_"..gems_orew_array[i][1],"mcl_core:stick"}
})
--Crafte sword head
minetest.register_craft({
type = "shaped",
output = "owl_tech:shovel_head_"..gems_orew_array[i][1],
recipe = {
{"owl_tech:work_file","owl_tech:"..gems_orew_array[i][1].."_plate","owl_tech:work_hammer"},
{"","owl_tech:"..gems_orew_array[i][1],""},
{"","",""}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
--Hoe
minetest.register_tool("owl_tech:hoe_"..gems_orew_array[i][1], {
description = S(gems_orew_array[i][1].." Hoe"),
--_tt_help = hoe_tt.."\n"..S("Uses: @1", uses.iron),
_doc_items_longdesc = "Owl tech hoe",
inventory_image = "(owl_tech_hoe_head.png^[colorize:"..gems_orew_array[i][5]..":128)^owl_tech_hoe_stick.png",
wield_scale = mcl_vars.tool_wield_scale,
on_place = hoe_on_place_function(gems_orew_array[i][10]),
groups = { tool=1, hoe=1, enchantability=14 },
tool_capabilities = {
-- 1/3
full_punch_interval = 0.33333333,
damage_groups = { fleshy = 1, },
punch_attack_uses = gems_orew_array[i][10],
},
_repair_material = "owl_tech:"..gems_orew_array[i][1],
_mcl_toollike_wield = true,
_mcl_diggroups = {
hoey = { speed = 6, level = 4, uses = 251 }
},
})
--Hoe head
minetest.register_craftitem("owl_tech:hoe_head_"..gems_orew_array[i][1], {
description = S("Hoe head "..gems_orew_array[i][1]),
_doc_items_longdesc = S("Hoe head use for crafte hoe in any place"),
inventory_image = "(owl_tech_hoe_head.png^[colorize:"..gems_orew_array[i][5]..":128)",
stack_max = 64,
groups = { craftitem=1 },
})
--Crafte hoe from hoe head
minetest.register_craft({
type = "shapeless",
output = "owl_tech:hoe_"..gems_orew_array[i][1],
recipe = {"owl_tech:hoe_head_"..gems_orew_array[i][1],"mcl_core:stick"}
})
--Crafte hoe head
minetest.register_craft({
type = "shaped",
output = "owl_tech:hoe_head_"..gems_orew_array[i][1],
recipe = {
{"owl_tech:work_file","owl_tech:"..gems_orew_array[i][1].."_plate",""},
{"owl_tech:work_hammer","owl_tech:"..gems_orew_array[i][1],""},
{"","",""}
},
replacements = {
{"owl_tech:work_hammer", "owl_tech:work_hammer"},
{"owl_tech:work_file", "owl_tech:work_file"},
}
})
end
end
--1)name 2)Name 3)flowing animation 4)source animation 5)cell tezture 6)is fluid?
local fluid_array ={

View File

@ -11,7 +11,7 @@ minetest.register_node("owl_tech:iron_fluid_pipe",{
stack_max = 64,
sunlight_propagates = true,
walkable = true,
groups = {owl_tech_fluid_pipe=1},
groups = {pickaxey = 1,owl_tech_fluid_pipe=1},
drawtype = "nodebox",
node_box = {
type = "connected",
@ -70,7 +70,7 @@ minetest.register_craft({
stack_max = 64,
sunlight_propagates = true,
walkable = true,
groups = {owl_tech_fluid_pipe=1},
groups = {pickaxey = 1,owl_tech_fluid_pipe=1},
drawtype = "nodebox",
node_box = {
type = "connected",

View File

@ -72,7 +72,7 @@ minetest.register_node("owl_tech:bronze_tank", {
local cell_output_1 = inv:get_stack("dst", 1)
local cell_input_2 = inv:get_stack("input_in_add", 1)
local cell_output_2 = inv:get_stack("dst_add", 1)
if minetest.get_item_group((minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})).name,"fluid_pipe") then --get from pipe steam
if minetest.get_item_group((minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})).name,"owl_tech_fluid_pipe") then --get from pipe steam
local meta_up = minetest.get_meta({x=pos.x,y=pos.y+1,z=pos.z})
local fluid_name_to_send = owl_tech.get_pull_fluid_name(meta_up,1)
local can_do ,inde_pull =owl_tech.test_add_fluid_in_any_pulls(meta,fluid_name_to_send,owl_tech.get_fluid_sand_in_tick(meta))
@ -82,7 +82,7 @@ minetest.register_node("owl_tech:bronze_tank", {
owl_tech.remove_fluid_in_node_pull(meta_up,remove_amount,inde_pull)
end
end
if minetest.get_item_group((minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})).name,"fluid_pipe") then --sand in pipe
if minetest.get_item_group((minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})).name,"owl_tech_fluid_pipe") then --sand in pipe
local meta_up = minetest.get_meta({x=pos.x,y=pos.y-1,z=pos.z})
local fluid_name_to_send = owl_tech.get_pull_fluid_name(meta,1)
local can_do ,inde_pull =owl_tech.test_add_fluid_in_any_pulls(meta_up,fluid_name_to_send,owl_tech.get_fluid_sand_in_tick(meta_up))

View File

@ -5,4 +5,5 @@ local path = minetest.get_modpath(name)
dofile(minetest.get_modpath("owl_tech") .. "/pipe/fluid_pipe.lua") --fluid pipe logick
dofile(minetest.get_modpath("owl_tech") .. "/pipe/fluid_pump.lua") --fluid pump logick
dofile(minetest.get_modpath("owl_tech") .. "/pipe/fluid_tank.lua") --fluid tank logick
dofile(minetest.get_modpath("owl_tech") .. "/pipe/item_pipe.lua") --item pipe logick
dofile(minetest.get_modpath("owl_tech") .. "/pipe/item_pipe.lua") --item pipe logick
dofile(minetest.get_modpath("owl_tech") .. "/pipe/water_concetrator.lua") --water_concetrator

View File

@ -13,7 +13,7 @@ minetest.register_node("owl_tech:iron_item_pipe_input",{
stack_max = 64,
sunlight_propagates = true,
walkable = true,
groups = {owl_tech_item_pipe=1},
groups = {pickaxey = 1,owl_tech_item_pipe=1},
drawtype = "nodebox",
node_box = {
type = "connected",
@ -79,7 +79,7 @@ minetest.register_node("owl_tech:iron_item_pipe",{
stack_max = 64,
sunlight_propagates = true,
walkable = true,
groups = {owl_tech_item_pipe=1,owl_tech_can_pipe_output=1},
groups = {pickaxey = 1,owl_tech_item_pipe=1,owl_tech_can_pipe_output=1},
drawtype = "nodebox",
node_box = {
type = "connected",
@ -143,7 +143,7 @@ minetest.register_node("owl_tech:iron_item_pipe_output",{
stack_max = 64,
sunlight_propagates = true,
walkable = true,
groups = {owl_tech_item_pipe=1,owl_tech_can_pipe_output=1},
groups = {pickaxey = 1,owl_tech_item_pipe=1,owl_tech_can_pipe_output=1},
drawtype = "nodebox",
node_box = {
type = "connected",

166
pipe/water_concetrator.lua Normal file
View File

@ -0,0 +1,166 @@
local S = minetest.get_translator(minetest.get_current_modname())
local name = minetest.get_current_modname()
local path = minetest.get_modpath(name)
--owl_tech_water_con_planks.png
minetest.register_node("owl_tech:water_concetrate_planks", {
description = S("Place 2 planks on a top of water concetrator to work"),
_doc_items_longdesc = S("Place 2 planks on a top of water concetrator to work"),
tiles = {"owl_tech_water_con_planks.png"},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=1, building_block=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_craft({
type = "shaped",
output = "owl_tech:water_concetrate_planks",
recipe = {
{"owl_tech:iron_plate","owl_tech:iron_plate",""},
{"group:wood","group:wood",""},
{"","",""},
}
})
local function set_formspect_tank(meta)
local fluid_1_name = owl_tech.get_pull_fluid_name(meta,1)
local fluid_1_volume = owl_tech.get_pull_volume(meta,1)
local formspec = "size[9,8.75]"..
"label[0,4;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]"..
"list[current_player;main;0,4.5;9,3;9]"..
mcl_formspec.get_itemslot_bg(0,4.5,9,3)..
"list[current_player;main;0,7.74;9,1;]"..
mcl_formspec.get_itemslot_bg(0,7.74,9,1)..
"label[2.75,0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Tank"))).."]"..
"list[context;input_in;2.5,1.5;1,1;]"..
mcl_formspec.get_itemslot_bg(2.5,1.5,1,1)..
"list[context;dst;3.5,1.5;1,1;]"..
mcl_formspec.get_itemslot_bg(3.5,1.5,1,1)..
"list[context;input_in_add;2.5,3.5;1,1;]"..
mcl_formspec.get_itemslot_bg(2.5,3.5,1,1)..
"list[context;dst_add;3.5,3.5;1,1;]"..
mcl_formspec.get_itemslot_bg(3.5,3.5,1,1)..
"listring[context;dst]"..
"listring[current_player;main]"..
"listring[current_player;main]"..
"listring[context;input_in]"..
"listring[context;input_in_add]"..
"listring[context;dst_add]"..
"listring[current_player;main]"
meta:set_string("formspec", formspec)
end
minetest.register_node("owl_tech:water_concetrate", {
description = S("Water Concetrator"),
_doc_items_longdesc = S("Concetrate water and output in pipe"),
tiles = {
"owl_tech_water_con_planks.png",
"owl_tech_water_con_planks.png",
"(owl_tech_base_briks.png^[colorize:#a35900:128)",
"(owl_tech_base_briks.png^[colorize:#a35900:128)",
"(owl_tech_base_briks.png^[colorize:#a35900:128)",
"(owl_tech_base_briks.png^[colorize:#a35900:128)",
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, owl_tech_machine=1},
sounds = mcl_sounds.node_sound_metal_defaults(),
paramtype2 = "facedir",
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
owl_tech.add_new_pull(meta,16000,1,1)
owl_tech.set_pull_fluid_whitlist(meta,1,"mcl_core:water_source") --whitlist for make input ONLY Water
owl_tech.set_mashine_tire(meta,1)
owl_tech.update_fluid_pipe_around(pos)
owl_tech.set_fluid_sand_in_tick(meta,60)
local inv = meta:get_inventory()
inv:set_size("input_in", 1) --for input
inv:set_size("dst", 1) --for input
inv:set_size("input_in_add", 1) --for output
inv:set_size("dst_add", 1) --for output
local timer =minetest.get_node_timer(pos)
meta:set_string("infotext",owl_tech.get_pull_volume(meta,1).."--"..owl_tech.get_pull_fluid_name(meta,1).."--"..owl_tech.get_pull_max_volume(meta,1))
set_formspect_tank(meta)
timer:start(0.2)
end,
on_timer = function(pos, elapsed)
local timer = minetest.get_node_timer(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
local cell_input_1 = inv:get_stack("input_in", 1)
local cell_output_1 = inv:get_stack("dst", 1)
local cell_input_2 = inv:get_stack("input_in_add", 1)
local cell_output_2 = inv:get_stack("dst_add", 1)
if (minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})).name =="owl_tech:water_concetrate_planks" and (minetest.get_node({x=pos.x,y=pos.y+2,z=pos.z})).name =="owl_tech:water_concetrate_planks" then --get from pipe steam
if owl_tech.get_pull_max_volume(meta,1)> owl_tech.get_pull_volume(meta,1)+1 then
owl_tech.set_pull_fluid_name(meta,1,"mcl_core:water_source")
owl_tech.set_pull_volume(meta,1,owl_tech.get_pull_volume(meta,1)+1)
end
end
if minetest.get_item_group((minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})).name,"owl_tech_fluid_pipe") then --sand in pipe
local meta_up = minetest.get_meta({x=pos.x,y=pos.y-1,z=pos.z})
local fluid_name_to_send = owl_tech.get_pull_fluid_name(meta,1)
local can_do ,inde_pull =owl_tech.test_add_fluid_in_any_pulls(meta_up,fluid_name_to_send,owl_tech.get_fluid_sand_in_tick(meta_up))
local can_do2 ,inde_pull_2 , remove_amount =owl_tech.test_remove_fluid_in_any_pulls(meta,fluid_name_to_send,owl_tech.get_fluid_sand_in_tick(meta_up))
if can_do and can_do2 then
owl_tech.add_fluid_in_node_pull(meta_up,fluid_name_to_send,remove_amount,inde_pull)
local pull_curent_volume = owl_tech.get_pull_volume(meta,1)
local difer = pull_curent_volume-remove_amount
owl_tech.set_pull_volume(meta,2,difer)
end
end
if minetest.get_item_group(cell_input_2:get_name(),"load_cell")>0 and ((owl_tech.get_pull_max_volume(meta,1)-owl_tech.get_pull_volume(meta,1))>=1000 )then
local fluid_name = string.sub(cell_input_2:get_name() , 10)
if FLUID_CELL_TO_NAME[fluid_name]~=nil and FLUID_CELL_TO_NAME[fluid_name]~="" and
(cell_output_2:is_empty() or (cell_output_2:get_name()=="owl_tech:empty_cell" and cell_output_2:get_free_space()>0 )) then
if not cell_output_2:is_empty() then-- Add main output
cell_output_2:set_count(cell_output_2:get_count()+1)
inv:set_stack('dst_add', 1, cell_output_2)
else
local item ={name="owl_tech:empty_cell", count=1, wear=0, metadata=""}
cell_output_2:add_item(item)
inv:set_stack('dst_add', 1, cell_output_2)
end
owl_tech.set_pull_volume(meta,1,owl_tech.get_pull_volume(meta,1)+1000)
owl_tech.set_pull_fluid_name(meta,1,FLUID_CELL_TO_NAME[fluid_name])
cell_input_2:set_count(cell_input_2:get_count()-1)
inv:set_stack('input_in_add', 1, cell_input_2)
end
end
if not cell_input_1:is_empty() and cell_input_1:get_name() =="owl_tech:empty_cell" and owl_tech.get_pull_volume(meta,1)>=1000 then
local fluid_name = string.sub(owl_tech.get_pull_fluid_name(meta,1) , 10)
if FLUID_NAME_TO_CELL[fluid_name]~=nil and FLUID_NAME_TO_CELL[fluid_name]~="" and
(cell_output_1:is_empty() or (cell_output_1:get_name()==FLUID_NAME_TO_CELL[fluid_name] and cell_output_1:get_free_space()>0 )) then
if not cell_output_1:is_empty() then-- Add main output
cell_output_1:set_count(cell_output_1:get_count()+1)
inv:set_stack('dst', 1, cell_output_1)
else
local item ={name=FLUID_NAME_TO_CELL[fluid_name], count=1, wear=0, metadata=""}
cell_output_1:add_item(item)
inv:set_stack('dst', 1, cell_output_1)
end
owl_tech.set_pull_volume(meta,1,owl_tech.get_pull_volume(meta,1)-1000)
cell_input_1:set_count(cell_input_1:get_count()-1)
inv:set_stack('input_in', 1, cell_input_1)
end
end
owl_tech.delit_name_fluid_if_0(meta)
set_formspect_tank(meta)
meta:set_string("infotext",owl_tech.get_pull_volume(meta,1).."--"..owl_tech.get_pull_fluid_name(meta,1).."--"..owl_tech.get_pull_max_volume(meta,1))
timer:start(0.2)
end
})
--Crafte iron fluid pipe
minetest.register_craft({
type = "shaped",
output = "owl_tech:water_concetrate",
recipe = {
{"owl_tech:bronze_plate","owl_tech:bronze_plate","owl_tech:bronze_plate"},
{"owl_tech:bronze_plate","owl_tech:water_concetrate_planks","owl_tech:bronze_plate"},
{"owl_tech:bronze_plate","owl_tech:bronze_fluid_pipe","owl_tech:bronze_plate"}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -12,16 +12,6 @@ minetest.register_craftitem("owl_tech:work_hammer", {
stack_max = 1,
groups = { craftitem = 1 },
})
--Crafte work hammer
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_hammer",
recipe = {
{"owl_tech:iron_ingot","owl_tech:iron_ingot",""},
{"owl_tech:iron_ingot","owl_tech:iron_ingot",""},
{"","mcl_core:stick",""}
}
})
--Work file for crafte
minetest.register_craftitem("owl_tech:work_file", {
description = S("Work file"),
@ -30,16 +20,7 @@ minetest.register_craftitem("owl_tech:work_file", {
stack_max = 1,
groups = { craftitem = 1 },
})
--Crafte worlk file
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_file",
recipe = {
{"","owl_tech:iron_ingot",""},
{"","owl_tech:iron_ingot",""},
{"","mcl_core:stick",""}
}
})
--Work mortar
minetest.register_craftitem("owl_tech:work_mortar", {
description = S("Work mortar"),
@ -48,16 +29,51 @@ minetest.register_craftitem("owl_tech:work_mortar", {
stack_max = 1,
groups = { craftitem = 1 },
})
--Crafte worlk file
minetest.register_craft({
local mortal_metalls_list={
"owl_tech:iron_ingot","owl_tech:copper_ingot","owl_tech:tin_ingot","owl_tech:bronze_ingot","mcl_core:iron_ingot"
}
for i, value in ipairs(mortal_metalls_list) do
--Crafte worlk file
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_mortar",
recipe = {
{"",mortal_metalls_list[i],""},
{"mcl_core:stone",mortal_metalls_list[i],"mcl_core:stone"},
{"mcl_core:stone","mcl_core:stick","mcl_core:stone"}
}
})
--Crafte wrench
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_mortar",
output = "owl_tech:wrench",
recipe = {
{"","owl_tech:iron_ingot",""},
{"mcl_core:stone","owl_tech:iron_ingot","mcl_core:stone"},
{"mcl_core:stone","mcl_core:stick","mcl_core:stone"}
{mortal_metalls_list[i],"",mortal_metalls_list[i]},
{mortal_metalls_list[i],mortal_metalls_list[i],mortal_metalls_list[i]},
{"",mortal_metalls_list[i],""}
}
})
})
--Crafte worlk file
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_file",
recipe = {
{"",mortal_metalls_list[i],""},
{"",mortal_metalls_list[i],""},
{"","mcl_core:stick",""}
}
})
--Crafte work hammer
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_hammer",
recipe = {
{mortal_metalls_list[i],mortal_metalls_list[i],""},
{mortal_metalls_list[i],mortal_metalls_list[i],""},
{"","mcl_core:stick",""}
}
})
end
--Work mortar
minetest.register_craftitem("owl_tech:wrench", {
description = S("Wrench"),
@ -66,13 +82,3 @@ minetest.register_craftitem("owl_tech:wrench", {
stack_max = 1,
groups = { craftitem = 1,hand_wrench=1},
})
--Crafte wrench
minetest.register_craft({
type = "shaped",
output = "owl_tech:wrench",
recipe = {
{"owl_tech:iron_ingot","","owl_tech:iron_ingot"},
{"owl_tech:iron_ingot","owl_tech:iron_ingot","owl_tech:iron_ingot"},
{"","owl_tech:iron_ingot",""}
}
})