diff --git a/README.md b/README.md index 5982022..fe32a39 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ ta4_jetpack requires the modpack 3d_armor. 3d_armor is itself a modpack and can' ### History +#### 2022-08-17 + +Updated Mods: +- techage (fix "Invalid field use_texture_alpha" errors) + + #### 2022-08-06 Updated Mods: diff --git a/lcdlib/mod.conf b/lcdlib/mod.conf index 4e0f72f..602f95a 100644 --- a/lcdlib/mod.conf +++ b/lcdlib/mod.conf @@ -1 +1 @@ -name = lcdlib \ No newline at end of file +name = lcdlib diff --git a/networks/README.md b/networks/README.md index 2628d3f..5a197dd 100644 --- a/networks/README.md +++ b/networks/README.md @@ -80,7 +80,7 @@ All this testing nodes can be enabled via mod settings `networks_test_enabled = ### License -Copyright (C) 2021 Joachim Stolberg +Copyright (C) 2021-2022 Joachim Stolberg Code: Licensed under the GNU AGPL version 3 or later. See LICENSE.txt Textures: CC BY-SA 3.0 @@ -128,3 +128,6 @@ Required: tubelib2 **2022-01-06 V0.11** - Support for junction rotation added + +**2022-09-10 V0.12** +- New API function `networks.liquid.get_liquids` added diff --git a/networks/init.lua b/networks/init.lua index 82786b5..8810e7b 100644 --- a/networks/init.lua +++ b/networks/init.lua @@ -13,7 +13,7 @@ networks = {} -- Version for compatibility checks, see readme.md/history -networks.version = 0.11 +networks.version = 0.12 if not minetest.global_exists("tubelib2") or tubelib2.version < 2.2 then minetest.log("error", "[networks] Networks requires tubelib2 version 2.2 or newer!") diff --git a/networks/liquid.lua b/networks/liquid.lua index 1082cc9..3b1b262 100644 --- a/networks/liquid.lua +++ b/networks/liquid.lua @@ -265,3 +265,31 @@ function networks.liquid.turn_valve_off(pos, tlib2, name_off, name_on) return true end end + +------------------------------------------------------------------------------- +-- Info/Tools +------------------------------------------------------------------------------- +-- Return list of liquids of connected tanks +-- Node at pos must be a pump +function networks.liquid.get_liquids(pos, tlib2) + local tbl = {} + for _, dir in ipairs(networks.get_node_connection_dirs(pos, tlib2.tube_type)) do + for _,item in ipairs(get_network_table(pos, tlib2, dir, "tank")) do + local liq = LQD(item.pos) + if liq and liq.peek then + local liq_name = liq.peek(item.pos, item.indir) + if liq_name then + local def = minetest.registered_items[liq_name] or minetest.registered_craftitems[liq_name] + if def then + tbl[def.description] = true + end + end + end + end + end + local out = {} + for k,v in pairs(tbl) do + out[#out + 1] = k + end + return out +end \ No newline at end of file diff --git a/signs_bot/README.md b/signs_bot/README.md index 377bfd1..18b2082 100644 --- a/signs_bot/README.md +++ b/signs_bot/README.md @@ -57,7 +57,8 @@ The mod has an in-game help to all blocks and signs. Therefore, it is highly rec The commands are also all described as help in the "Sign command" node. All blocks or signs that are set are taken from the bot inventory. Any blocks or signs removed will be added back to the Bot Inventory. -For all Inventory commands applies: If the inventory stack specified by is full, so that nothing more can be done, or just empty, so that nothing more can be removed, the next slot will automatically be used. +`` is always the bot internal inventory stack (1..8). +For all Inventory commands applies: If the bot inventory stack specified by `` is full, so that nothing more can be done, or just empty, so that nothing more can be removed, the next slot will automatically be used. move - to follow one or more steps forward without signs cond_move - walk to the next sign and work it off @@ -69,6 +70,7 @@ For all Inventory commands applies: If the inventory stack specified by i pause - wait one or more seconds move_up - move up (maximum 2 times) move_down - move down + fall_down - fall into a hole/chasm (up to 10 blocks) take_item - take one or more items from a box add_item - put one or more items in a box add_fuel - for furnaces or similar @@ -106,6 +108,20 @@ For all Inventory commands applies: If the inventory stack specified by i flame_on - Make fire flame_off - Put out the fire +#### Techage specific commands + + ignite - Ignite the techage charcoal lighter + low_batt - Turn the bot off if the battery power is below the + given value in percent (1..99) + jump_low_batt