110 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
a95947d928 biogasmachines: gasifier unified_inventory registration rewritten.
Unified_Inventory recipe registration code splitted: type is registered
before adding default recipes via API; recipe registration moved to
API function so it gets called every time function successfully runs
(ported from compactor.lua).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 21:35:58 +01:00
Michal Cieslakiewicz
e72ffe28ad biogasmachines: compactor machine added.
Compactor machine compresses material using Biogas as fuel
and Ice cubes as coolant. Recipes are added using public
API function.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 21:26:29 +01:00
Michal Cieslakiewicz
64f469f4c4 biogasmachines: remove artifact function call.
During code replication from base freezer.lua to other Biogas Machines
in on_punch() callback a unnecessary call to biogasmachines.is_pipe_with_water()
function has been overlooked and left over. This commit removes that call
for gasifier and furnaces.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-13 15:25:30 +01:00
Michal Cieslakiewicz
6395a46a45 slprogtools: copier label sound changed to click.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-08 13:29:12 +01:00
Michal Cieslakiewicz
f37967b5dc slprogtools: moreores can be used to craft copier.
Crafting recipe for Memory Copier can contain silver instead of gold
if moreores mod is installed.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-08 12:07:06 +01:00
Michal Cieslakiewicz
8dc681157b slprogtools: custom label for copier added.
Memory Copier description can now be changed via formspec the same
way books are titled. Setting empty label resets name to default text.
TODO and README.md updated. Modpack version changed to 0.92.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-07 23:20:48 +01:00
Michal Cieslakiewicz
c41fbd41f4 slprogtools: read-only flag for memory copier added.
Memory Copier dongle can now be write-protected.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-07 17:48:26 +01:00
Michal Cieslakiewicz
959a0a42fa biogasmachines: gasfurnace: delay for autoshutdown added.
Backported from Jet Furnace. When no fuel, device waits for some time
(the same value as for standby) before it shuts down automatically.
This timeout allows fuel to reach device in more complicated Tubelib
machineries.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-04 13:26:56 +01:00
Michal Cieslakiewicz
921426e22a README.md: modpack version changed to 0.9.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-03 16:33:17 +01:00
Michal Cieslakiewicz
3e9996a6e2 biogasmachines: gas jet upgraded furnace added.
Jet Furnace that is 2 times faster than standard version in both item cooking
time and Biogas consumption. Additionally it supports stack pulling from output
tray (can be paired with High Perf Pusher) and longer auto-poweroff delay
(to allow fuel to reach device before it automatically shuts down).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-03 15:35:44 +01:00
Michal Cieslakiewicz
2d7c24c7b7 README.md updated.
Gas Jet Furnace added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-02 11:50:38 +01:00
Michal Cieslakiewicz
cac5b09f7b README.md and TODO files updated.
Recycler and Torch moved out of biogasmachines to future plans,
Gas Jet Furnace added. Indicator added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-02 11:44:17 +01:00
Michal Cieslakiewicz
3ed73401d2 slprogtools: dependencies updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-27 15:56:43 +01:00
Michal Cieslakiewicz
9875c3ced4 Modpack image added, description updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-27 15:25:40 +01:00
Michal Cieslakiewicz
87b326663e README.md: modpack version bump to 0.8.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-27 10:38:37 +01:00
Michal Cieslakiewicz
08045c822d moderntables: major update, new tables.
Moderntables mod code updated, new nodes added. Now it provides:
* 5 wooden simple tables
* 5 wooden table variants with drawer (2*8 inventory)
* 5 metal simple tables
* 5 metal table variants with drawer (2*8 inventory)
* (optional) Tubelib four-legged machinery stand
* (optional) Tubelib standard wooden tables (simple and drawer variant)
* (optional) Tubelib wood+metal tables (simple and drawer variant)

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-27 10:24:35 +01:00
realmicu
095154f0e1
README.md reformatted. 2018-11-24 14:26:03 +01:00
Michal Cieslakiewicz
38a80ca643 README.md updated and reformatted again.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 14:24:22 +01:00
Michal Cieslakiewicz
b38fc219fd README.md reformatted.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 13:41:43 +01:00
Michal Cieslakiewicz
f32cad66c9 README.md and TODO files updated.
Biogas Furnace moved from planned to done, text reformatting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 13:38:20 +01:00
Michal Cieslakiewicz
811695d78d biogasmachines: better item move protection for working tray.
Further checks for 'cur' inventory list when moving items.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 13:10:24 +01:00
Michal Cieslakiewicz
f289fba0ae biogasmachines: gas furnace added.
Biogas Furnace is Tubelib-compatible version of standard furnace that
uses Biogas as fuel. All default furnace cooking recipes apply.
See gasfurnace.lua for details and differences.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 12:57:41 +01:00
Michal Cieslakiewicz
8a76692f1e README.md and TODO files updated.
Metal Recycler introduced.
Ice cubes as water source for HT Compressor.
Compressed Gravel as primary input in another 'Obsidian' recipe
for HT Compressor.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 17:23:47 +01:00
Michal Cieslakiewicz
63b877ffdc biogasmachines: gasifier: recipe and code update.
Coal block output changed to 9 Biogas units.
Timer code optimized by using local recipe variable.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:25:58 +01:00
Michal Cieslakiewicz
283805df77 biogasmachines: gasifier: Straw product decreased to 2 Biogas.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:16:30 +01:00
Michal Cieslakiewicz
ca86efe343 biogasmachines: gasifier: recipe change, minor code updates.
Coal gasification recipe now produces Gravel instead of Biofuel
as a secondary product. Recipe hint bar number width changed back
from 3 to 2. README.md updated.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 14:39:12 +01:00
Michal Cieslakiewicz
fb58c29f6c README.md and TODO files updated.
Gasifier implementation noted in TODO and README.md.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:28:31 +01:00
Michal Cieslakiewicz
a5bf21660d biogasmachines: gasifier: fix listring order.
Putting 'cur' at the end of listring in formspec brings back
shift-click access to 'src' which had been broken by putting
'cur' in the middle.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:07:59 +01:00
Michal Cieslakiewicz
1c93dd5e73 biogasmachines: freezer: allow taking items from working tray.
Items can be taken from working tray ('cur' inventory list) when
machine is stopped. This functionality is identical to gasifier behaviour.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:05:20 +01:00
Michal Cieslakiewicz
33c7cbf09e biogasmachines: gasifier: fixed working tray item processing.
Fixed incorrect behaviour when machine was restarted with non-empty
working tray. Now device checks this tray before source (input) inventory
and if item is present, sets it for processing.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 13:37:04 +01:00
Michal Cieslakiewicz
22ef12415d biogasmachines: freezer: add color to working tray.
Working tray has now blue background that gets brighter when machine
is operating. It is used to indicate that this tray is a special one
and cannot be accessed by player like normal inventory cell.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 13:00:43 +01:00
Michal Cieslakiewicz
d8cf44597f biogasmachines: freezer: static formspec data calculated only once.
Formspec data that needs to be calculated only once is stored in
a special array (method introduced in gasifier) and never re-calculated.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 12:07:07 +01:00
Michal Cieslakiewicz
811b486e9e biogasmachines: freezer: unused variable removed from function.
Unused 'number' variable removed from on_receive_fields() callback.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 11:46:50 +01:00
Michal Cieslakiewicz
485b578e33 biogasmachines: gasifier machine added.
This machine is designed to extract Biogas from highly compressed
dry organic matter, such as fossil fuels (coal block) and straw.
It requires no fuel to avoid complex processing loops.
Its recipe base is expandable via API function.
All functionality and Tubelib integration is in place.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 11:40:56 +01:00
Michal Cieslakiewicz
d1f39d9582 biogasmachines: code update for stub machines.
Code cleanup and preparations for another Biogas Machine.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-15 17:44:35 +01:00
Michal Cieslakiewicz
8a05d661a2 README.md and freezer header comment updated.
README.md and freezer.lua documentation changes.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-15 17:20:31 +01:00
Michal Cieslakiewicz
bbe683365e biogasmachines: water freezer done.
Water Freezer is now fully functional.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 23:38:39 +01:00
Michal Cieslakiewicz
590037ca21 biogasmachines: freezer: crafting recipe added.
Crafting recipe added. When unified_inventory is installed, crafting guide
is expanded with 'freezing' type and ice generation recipe.
What's left: textures and look.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 17:28:24 +01:00
Michal Cieslakiewicz
94ea89dc2f biogasmachines: functions: connection table moved out of function.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:24:26 +01:00
Michal Cieslakiewicz
94c9594961 biogasmachines: freezer: accept pipe connections from all sides.
Freezer now accepts pipe connections from all sides, thanks to improved
pipe detection logic in functions.lua. Function that checks if an element
belongs to an array has been made public to all module files, module
has been rewritten to utilize this function instead of duplicating
code.
What's left: textures, crafting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:16:18 +01:00
Michal Cieslakiewicz
af94d88e8e furnacemonitor: duplicated array removed.
Duplicated message color array removed, version local to on_punch
callback left.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-11 11:28:07 +01:00
Michal Cieslakiewicz
c2607b5ea9 biogasmachines: freezer: tubelib integration implemented.
Freezer now interacts with tubelib devices and can be a part of
complex machines (i.e. paired with Liquid Sampler).
Minor code adjustments: inventory reshaping, on_punch logic.
What's left: textures, crafting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-11 11:24:07 +01:00
Michal Cieslakiewicz
69dfcc7847 biogasmachines: freezer: basic work implemented.
Freezer can now work as a standalone device, producing ice
from water supplied in bucket or through pipes.
What works: ice production logic, manual on/off.
Todo: tubelib integration (tubes and message i/o), crafting,
textures.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-10 15:03:43 +01:00
Michal Cieslakiewicz
847156e703 biogasmachines: further works on freezer.
Water detection code reorganized, new graphics for freezer added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-07 15:46:21 +01:00
Michal Cieslakiewicz
6eafa51477 biogasmachines: freezer early version created.
Simple freezer node created to test pipeworks water supply.
Node has temporary textures, no formspecs and no inventories.
When punched node shows if water is flowing into it via pipes.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-06 20:45:02 +01:00
Michal Cieslakiewicz
ad0c65e7e0 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-04 13:16:23 +01:00
Michal Cieslakiewicz
2734ffbfad minertools: update multidevice menu.
Separate formspec has been added for each function of multidevice,
now device dynamically shows settings valid only for selected mode.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-04 12:53:53 +01:00
Michal Cieslakiewicz
2e3d936e83 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 19:54:28 +01:00
Michal Cieslakiewicz
b6da23f08b minertools: mineral blocks detection added.
According to minetest documentation, mese blocks can appear naturally
at depths < 1024. Mineral detectors have been upgraded to recognize blocks
of mese, coal and diamond (these can be generated without smelting so
theoretically can be found deep in the ground). To enable this, internal
structures and affected functions have been rewritten to allow more than
one node type for label ('coal' etc.).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 19:46:39 +01:00
Michal Cieslakiewicz
e978b61939 minertools: accept sandstone blocks as natural.
Sandstone blocks (including bricks) are now qualified by geothermometer
as nodes of natural origin and device shows reading for them.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 14:23:01 +01:00