summaryrefslogtreecommitdiffstats
path: root/docs/_old_mediawiki/Quest-debugger.mediawiki
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-06 14:10:24 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-06 14:11:42 +0100
commit0aac85ff5c27e98564243a9f43ae58685bd18ff2 (patch)
tree1146693fe615b85be35447cd9fd2457ce1f3d180 /docs/_old_mediawiki/Quest-debugger.mediawiki
parent4c9a7d83a19828e64ea7f90ddf69f9212bb7a7d9 (diff)
Migrate docs to GitHub pages
Diffstat (limited to 'docs/_old_mediawiki/Quest-debugger.mediawiki')
-rw-r--r--docs/_old_mediawiki/Quest-debugger.mediawiki35
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/_old_mediawiki/Quest-debugger.mediawiki b/docs/_old_mediawiki/Quest-debugger.mediawiki
new file mode 100644
index 00000000..2b2cd243
--- /dev/null
+++ b/docs/_old_mediawiki/Quest-debugger.mediawiki
@@ -0,0 +1,35 @@
+The '''quests debugger''' allows you to see why a quest may not be working as intended. When turned on for a quest, it will print out what a task type is doing and how it is evaluating it. This can be helpful to see why a specific quest is not accepting a specific action.
+
+== Using the debugger ==
+
+The debugger can be enabled with '''/q a debug quest <nowiki><quest/*> <all/self></nowiki>'''. Using * in place of <nowiki><quest></nowiki> will enable it for all quests. Enabling it for all will show debug logs for every player, whereas self will show it for just yourself.
+
+[[https://i.imgur.com/Sb5DrpJ.png]]
+
+== Example ==
+
+We may want to debug the following task:
+
+```yaml
+tasks:
+ mining:
+ type: "blockbreakcertain"
+ amount: 30
+ blocks:
+ - DARK_OAK_LOG
+ - DARK_OAK_PLANKS
+ reverse-if-placed: false
+```
+
+When breaking PACKED_ICE, the debugger sends this output:
+[[https://i.imgur.com/2GKba8i.png]]
+
+Here it is telling us that the task type is checking the broken block against all the blocks in the <code>blocks</code> list, and not finding a match, thus skipping this task.
+
+Now, when breaking DARK_OAK_PLANKS:
+
+[[https://i.imgur.com/2nI8uCH.png]]
+
+The debugger tells us that it finds a match and increments the task progress.
+
+This can be useful when trying to work out why a task may not be working, such as in the case where you think you're breaking a block of a specific type, but in reality it has a different type. \ No newline at end of file