aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBuckarooBanzay <BuckarooBanzay@users.noreply.github.com>2021-05-14 14:02:53 +0200
committerBuckarooBanzay <BuckarooBanzay@users.noreply.github.com>2021-05-14 14:02:53 +0200
commit8cd02607bb1f76032970e9d7cf0dadbd17b3cf76 (patch)
tree2844b3b40bc50ef4d5ada6f7dfd7f195c431ef57 /README.md
parent8f5d9113040726456dc816f2a353cd6708d64d74 (diff)
downloadmesecons_debug-8cd02607bb1f76032970e9d7cf0dadbd17b3cf76.tar.gz
mesecons_debug-8cd02607bb1f76032970e9d7cf0dadbd17b3cf76.zip
add "mesecons_debug:penalty_controller"
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8509540..8907fb1 100644
--- a/README.md
+++ b/README.md
@@ -30,3 +30,31 @@ All of these commands require the `mesecons_debug` privilege.
* `/mesecons_whitelist_get` shows the list of whitelisted mapblocks
* `/mesecons_whitelist_add` adds the current mapblock to the whitelist
* `/mesecons_whitelist_remove` removes the current mapblock from the whitelist
+
+## Penalty controller
+
+Can query the penalty and usage values of the placed-in mapblock (requires the `digiline` mod)
+
+Example code to query it with the luacontroller:
+
+```lua
+if event.type == "program" then
+ digiline_send("penalty_ctrl", "GET")
+end
+
+if event.type == "digiline" and event.channel == "penalty_ctrl" then
+ --[[
+ event.msg = {
+ micros = 0,
+ avg_micros = 0,
+ penalty = 0,
+ whitelisted = false
+ }
+ --]]
+end
+```
+
+# License
+
+* textures/penalty_controller_top.png
+ * CC BY-SA 3.0 https://cheapiesystems.com/git/digistuff