Skip to content

feat: log system + missing tags + util APIs (v2.2.0)#18

Merged
asn44nb merged 1 commit into
mainfrom
feat/v2.1.1
May 24, 2026
Merged

feat: log system + missing tags + util APIs (v2.2.0)#18
asn44nb merged 1 commit into
mainfrom
feat/v2.1.1

Conversation

@asn44nb
Copy link
Copy Markdown
Collaborator

@asn44nb asn44nb commented May 24, 2026

Changes

New: Real log system (mce:api/log/*)

  • mce:api/log/write — structured entries {n, lvl, msg}, 64-entry cap
  • mce:api/log/info / log/warn / log/error — level shorthands
  • mce:api/log/show — level-colored tellraw output, macro-free
  • mce:api/log/clear — clears entries + resets counter
  • mce:api/util/log and util/log_clear deprecated (compat wrappers kept)

Bug fixes

  • Add missing function tags: api/run/at, api/util/announce, announce_times, version, api/multi/run
  • Fix show_iter: was using storage compound match (invalid in 1.21.1); now uses store result score + if score matches
  • Fix help: unterminated JSON in Cmds example line

New util APIs

  • mce:api/util/error_clear — resets error state

Version

  • Bumped to 2.2.0, LanternLoad score 2002000
  • mce.log scoreboard objective added

…ON (v2.2.0)

- write: integer lvl field (0=INFO 1=WARN 2=ERROR), no string compound match
- Add mce:api/log/info|warn|error convenience shorthands
- show_iter: store result score + if score matches for branching
- show: fix 'data remove storage mce:log_iter' → correct path
- help: fix unterminated JSON in Cmds example line
@asn44nb asn44nb merged commit 613e146 into main May 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant