diff options
author | Wuzzy <Wuzzy2@mail.ru> | 2018-05-29 20:37:54 +0200 |
---|---|---|
committer | Wuzzy <Wuzzy2@mail.ru> | 2018-05-29 20:37:54 +0200 |
commit | ec3ad1b2d7f363442f6faf8c5ce88299cd04bdd2 (patch) | |
tree | 0dd72f89f2259ebfda1d1f000cd1fa41d10bda84 | |
parent | b6648a454183a1e2c44182ef03bdf13a305d6b31 (diff) |
Parse group fake_liquid=1origin/masterorigin/HEAD
-rw-r--r-- | API.md | 7 | ||||
-rw-r--r-- | init.lua | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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 @@ -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 |