summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-06-13 22:52:55 +0100
committerrubenwardy <rw@rubenwardy.com>2018-06-13 22:52:55 +0100
commit237525b518aaec2a8e30bc387062338f81d5b01a (patch)
tree03806bfa2e8dfa9b6a10e127ef2ccca95e71039b /README.md
parent21e1ce6675b8e42dd14957e2a7110236c44a19f2 (diff)
Add support for groups in triggers
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 28bf8bd..b141cfb 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,10 @@ local trigger = awards.register_trigger(name, {
get_key = function(self, def)
return minetest.registered_aliases[def.trigger.node] or def.trigger.node
end,
+
+ -- "counted_key" only, true if the key is an item name. On notify(),
+ -- any watched groups will also be notified as `group:groupname` keys.
+ key_is_item = true,
})
```