diff options
author | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2021-05-14 14:02:53 +0200 |
---|---|---|
committer | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2021-05-14 14:02:53 +0200 |
commit | 8cd02607bb1f76032970e9d7cf0dadbd17b3cf76 (patch) | |
tree | 2844b3b40bc50ef4d5ada6f7dfd7f195c431ef57 /README.md | |
parent | 8f5d9113040726456dc816f2a353cd6708d64d74 (diff) | |
download | mesecons_debug-8cd02607bb1f76032970e9d7cf0dadbd17b3cf76.tar.gz mesecons_debug-8cd02607bb1f76032970e9d7cf0dadbd17b3cf76.zip |
add "mesecons_debug:penalty_controller"
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |