From fb4fef783b605dcdc73554019ef46d8354614ad4 Mon Sep 17 00:00:00 2001 From: Louis Royer <55180044+louisroyer@users.noreply.github.com> Date: Sun, 26 Apr 2020 11:33:12 +0200 Subject: [PATCH] Shapeless locked chests crafts (chest + lockpad) (#530) --- technic/doc/api.md | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/technic/doc/api.md b/technic/doc/api.md index 2e5b6d3..8ae6963 100644 --- a/technic/doc/api.md +++ b/technic/doc/api.md @@ -11,9 +11,12 @@ Helper functions ---------------- +* `technic.EU_string(num)` + * Converts num to a human-readable string (see pretty_num) + and adds the `EU` unit + * Use this function when showing players energy values * `technic.pretty_num(num)` - * Converts the number `num` to a human-readable string. - * Use this function when showing players power values. + * Converts the number `num` to a human-readable string with SI prefixes * `technic.swap_node(pos, nodename)` * Same as `mintest.swap_node` but it only changes the nodename. * It uses `minetest.get_node` before swapping to ensure the new nodename @@ -61,6 +64,10 @@ ### Specific machines * `technic.register_solar_array(data)` * data is a table +* `technic.can_insert_unique_stack(pos, node, stack, direction)` +* `technic.insert_object_unique_stack(pos, node, stack, direction)` + * Functions for the parameters `can_insert` and `insert_object` to avoid + filling multiple inventory slots with same type of item. Used itemdef fields ------------------- -- Gitblit v1.8.0