diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-03 09:31:05 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-03 09:31:05 -0400 |
commit | 2fa93b219eadfcdcf8f1d472aad046fc62d5b99d (patch) | |
tree | cff2e96e78cd89aa965976553d2ff8989b5a02b5 /technic/doc/api.md | |
parent | 76594f4bd5f825eaf1245965e2c0933bec47320d (diff) | |
download | dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.gz dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.bz2 dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.xz dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.zip |
update castles, cottages, digistuff, gloopblocks, locks,
maptools, mesecons, pipeworks, technic, unified inventory,
unified dyes, and xban2
Diffstat (limited to 'technic/doc/api.md')
-rw-r--r-- | technic/doc/api.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/technic/doc/api.md b/technic/doc/api.md index 2e5b6d3..178ab0a 100644 --- a/technic/doc/api.md +++ b/technic/doc/api.md @@ -11,9 +11,12 @@ switching station handles the network activity. 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 |