Just litel add

This commit is contained in:
ConfidentOwl 2023-02-12 18:56:15 +03:00
parent 104103af61
commit 30e3d68ac5
4 changed files with 34 additions and 6 deletions

View File

@ -50,7 +50,29 @@ All electrical machines can be automated with the help of pipes, cables.
***
## Multiblocks
Multiblocks - not just large machines, you can strictly build on inturctions - large and large machines in which you can change the input and output nodes
1)Pyrolysis oven -converts wood into charcoal and wood tars
Node List -
0)1-owl_tech:wood_pyrolis -C
1)1-owl_tech:base_item_hatch_input
2)1-owl_tech:base_item_hatch_output
3)1-owl_tech:base_energy_hatch_input
4)1-owl_tech:base_fluid_hatch_output
5)2-owl_tech:copper_grid -Z
6)6-owl_tech:tin_tiles -Y
7)28-owl_tech:steel_big_tiles- X
Assembly instructions
1)
XXXXX
XYYYX
XXXXX
2)
XYYYX
CZZZY
XYYYX
3)
XXXXX
XYYYX
XXXXX
Instead of Y, you can put hatch in any order
***
Warning - mod in deep development (install it in your game worlds only at your own peril and risk)

View File

@ -6,6 +6,12 @@ function owl_tech.prepear_for_verticak_steam_miner(pos)
meta:set_int("curent-y",1) -- use pos - curent-y for get diginbg pos
meta:set_int("get_bedrock",0)
end
------------------------------------
--Get node drop
function owl_tech.get_node_drop(node_name)
local drop= minetest.get_node_drops(node_name, "toolname")
return drop[1]
end
----------------------------------
-- can steam miner mine this node
function owl_tech.can_vertical_steam_miner_mine_this(pos,meta)
@ -38,7 +44,7 @@ function owl_tech.vertical_steam_mine(pos,meta,can_mine)
node_mine.name == dst_its:get_name()
) then
if dst_its:is_empty() and node_mine.name~='air' then
local new_stack = {name=node_mine.name, count=1, wear=0, metadata=""}
local new_stack = {name=owl_tech.get_node_drop(node_mine.name), count=1, wear=0, metadata=""}
inv:set_stack('dst', 1,new_stack)
minetest.set_node({x=pos.x,y=(pos.y-meta:get_int("curent-y")),z=pos.z}, {name="owl_tech:decor_bronze_pipe"})
meta:set_int("curent-y",meta:get_int("curent-y")+1)
@ -142,7 +148,7 @@ function owl_tech.diging_quary(pos,meta,can_mine)
node_mine.name == dst_its:get_name()
) then
if dst_its:is_empty() and node_mine.name~='air' then
local new_stack = {name=node_mine.name, count=1, wear=0, metadata=""}
local new_stack = {name=owl_tech.get_node_drop(node_mine.name), count=1, wear=0, metadata=""}
inv:set_stack('dst', 1,new_stack)
minetest.remove_node(pos_dig)
owl_tech.calculate_new_pos_for_quarry(meta)

View File

@ -2,7 +2,7 @@ local S = minetest.get_translator(minetest.get_current_modname())
local name = minetest.get_current_modname()
local path = minetest.get_modpath(name)
--[[
multinode = 3x4x3
multinode = 3x5x3
frames - "owl_tech:steel_big_tiles"
entrails - "owl_tech:copper_grid"
other nodes(can replace bu hatch) - "owl_tech:tin_tiles"

View File

@ -141,7 +141,7 @@ for i, value in ipairs(metals_ore_array) do
tiles = {"default_stone.png^(owl_tech_ore_base.png^[colorize:"..metals_ore_array[i][5]..":128)"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=metals_ore_array[i][4], building_block=1, material_stone=1, blast_furnace_smeltable=1},
groups = {pickaxey=metals_ore_array[i][4], building_block=1, material_stone=1, blast_furnace_smeltable=1,ore=1},
drop = "owl_tech:"..metals_ore_array[i][1].."_ore",
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 3,