feat: add missing function tags and new util APIs (v2.1.1)#17
Merged
Conversation
- Add function tags for api/run/at, api/util/announce, announce_times, version, multi/run - Add mce:api/util/log_clear — clears mce:log entries - Add mce:api/util/error_clear — resets mce:error state and counter - Bump version to 2.1.1 (LanternLoad score: 2001100) - Update help output with new API entries
- Add mce:api/log/write — structured entries {n, level, msg}, 64-entry cap
- Add mce:api/log/show — macro-free iterate + level-colored tellraw
- Add mce:api/log/clear — clears entries and resets counter
- Add mce.log scoreboard objective (tracks #log.n, #log.size)
- Deprecate mce:api/util/log and util/log_clear (backwards compat wrappers kept)
- Update mce:api/util/help with new log API entries
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.
Changes in v2.1.1
Bug fixes — missing function tags
Several public API functions had no corresponding function tag, making them undiscoverable for packs that use tag-based dependency wiring:
#mce:api/run/at— was missing#mce:api/util/announce— was missing#mce:api/util/announce_times— was missing#mce:api/util/version— was missing#mce:api/multi/run— was missingAll tags are added for both
tags/function/(1.21+) andtags/functions/(legacy) directories.New API functions
mce:api/util/log_clear— clearsmce:log entries(audit log reset)mce:api/util/error_clear— resetsmce:error Last/Code/Countand the internal error scoreboard counterVersion bump
2.0.1→2.1.12000100→2001100pack.mcmetadescription updatedmce:api/util/helpupdated with new entries