Add action logger#773
Open
Wavy77 wants to merge 1 commit into
Open
Conversation
uukelele
requested changes
May 12, 2026
| "spawn_timeout": 30, // num seconds allowed for the bot to spawn before throwing error. Increase when spawning takes a while. | ||
| "block_place_delay": 0, // delay between placing blocks (ms) if using newAction. helps avoid bot being kicked by anti-cheat mechanisms on servers. | ||
| "action_logging": false, // when true, write structured ACTION logs for successful bot block/item actions. | ||
| "action_log_file_prefix": "andy_log", // prefix for action log files in ./bots/<bot>/logs/ |
Contributor
There was a problem hiding this comment.
This can be hard coded. Or just use log by default. Maybe also with a timestamp.
| **/ | ||
| if (x == null || y == null || z == null) throw new Error('Invalid position to break block at.'); | ||
| let block = bot.blockAt(Vec3(x, y, z)); | ||
| const targetCoord = new Vec3(Math.floor(x), Math.floor(y), Math.floor(z)); |
Contributor
There was a problem hiding this comment.
This is not important enough to have its own file. Consider moving to README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an optional action logger for structured bot action logs.
The logger records successful block and item actions when action_logging is enabled in settings.js. It is disabled by default and is intended to help debug bot behavior without changing normal bot execution.
Included changes:
This PR intentionally excludes unrelated experimental features such as neural networks, replay execution, causal DAG logic, and broader agent architecture changes.