Add support for reading distributor slot status. This action
is complementary to already present filter setting function.
'port' distributor message is modified to accept filter color
only (without '=on/off'), device returns selected filter state.
A wrapper function ($get_filter(...)) for Lua Controller and
condition selector for ICTA Controller are implemented as well.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Ignore waterlily as growable flower under growlight. This plant
should be floating on water. Furthermore, it is completely transparent
when grown on soil, giving player a false impression of empty space
there (unless F5 debug mode is used).
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Without this method (which shares code with 'put') hydrogen from
electrolyzer is removed and disappear when connected via pump to
full destination device (tank, fuel cell etc).
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
* Make some LCD display related things globally accessible
* Deprecate `read_data` to avoid confusion (use `send_cmnd` instead)
* Allow arbitrary data for `send_msg` and `get_msg` (with optional parameter)
* Make some LCD display related things globally accessible
* Deprecate `read_data` to avoid confusion (use `send_cmnd` instead)
* Allow arbitrary data for `send_msg` and `get_msg` (with optional parameter)
Advantages:
* Code uses common functions for manual usage and automation where possible. This avoids forgetting half of the adjustments like it happened in #14
* Support for meta and wear
* Code duplication for the different automatic modes is reduced/avoided
Additionally, the `techage.item_image` function was adjusted:
* added support meta and wear
* removed duplicate stack size labels for non-tools with max_stack=1
* added optional parameter to "overwrite" stacksize for tools (necessary because of minetest limitations)