From 001b0cc49f371295389fe1c2f1502f91ac6d0004 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 24 Oct 2018 01:46:43 +0200 Subject: [PATCH] Update doc_items (fake items) --- mods/HELP/doc/doc_items/API.md | 7 +++++++ mods/HELP/doc/doc_items/init.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mods/HELP/doc/doc_items/API.md b/mods/HELP/doc/doc_items/API.md index 26cb11861..f8d3b87ce 100644 --- a/mods/HELP/doc/doc_items/API.md +++ b/mods/HELP/doc/doc_items/API.md @@ -351,6 +351,13 @@ definitions are already automatically added to this factoid. * `dig_immediate`: This group is already covered by the default factoids of this mod + +## Groups interpretations +Nodes which are technically a liquid will not be considered liquids by this mod +if the group `fake_liquid=1` is used. Useful for stuff like cobwebs. + + + ## Dependencies If you only add the custom fields to your items, you do *not* need to depend on this mod. If you use anything else from this mod (e.g. a function), you diff --git a/mods/HELP/doc/doc_items/init.lua b/mods/HELP/doc/doc_items/init.lua index ec1bbf9f8..bdbba21a4 100644 --- a/mods/HELP/doc/doc_items/init.lua +++ b/mods/HELP/doc/doc_items/init.lua @@ -592,7 +592,7 @@ doc.add_category("nodes", { formstring = entry_image(data) datastring = factoids_header(data, "nodes") - local liquid = data.def.liquidtype ~= "none" + local liquid = data.def.liquidtype ~= "none" and minetest.get_item_group(data.itemstring, "fake_liquid") == 0 if not forbidden_core_factoids.basics then datastring = datastring .. S("Collidable: @1", yesno(data.def.walkable)) .. "\n" if data.def.pointable == true then