v1.5.6#79
Merged
Merged
Conversation
This needs some heavy refactoring in the InfoDisplay classes and there could probably be some inheritance/simplification in rendering
Replace per-test-file vi.mock() boilerplate with comprehensive mock implementations in __mocks__/@minecraft/server.js and __mocks__/@minecraft/server-ui.js. All vi.fn() stubs (subscribe, runJob, run, runInterval, etc.) now live in one place and are applied automatically via the resolve.alias in vite.config.js. Adds vitest.setup.js (referenced by setupFiles) as a central place for future shared test setup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves all per-file vi.mock('@minecraft/server') and vi.mock('@minecraft/server-ui')
blocks into centralized __mocks__/ files so mock definitions live in one place.
Test files that need behavior different from the centralized mock use importOriginal
to extend rather than replace the centralized mock.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Vector.multiply -> Vector.scale - Vector.divide removed. Use Vector.scale(1/x) instead
Introduces three local regolith filters and two new profiles to automate the release workflow.
Filters (filters/)
update_mob_data — fetches the latest stable bedrock-samples tag from GitHub at build time and regenerates categoryToMobMap (from behavior_pack/spawn_rules/) and meleeMobs (from behavior_pack/entities/) in data.js
bump_version — interactively prompts for major/minor/patch and updates PACK_VERSION in constants.js and header.name/header.version/dependency versions in both manifests, writing changes to both source files and the regolith temp copy
package_mcaddon — renames the temp BP/RP dirs to Canopy[BP]/Canopy[RP], then zips them into build/Canopy-v{version}.mcaddon
Regolith profiles (config.json)
release — runs update_mob_data → package_mcaddon; exports to none since the filter writes the artifact directly to build/
bump-version — runs bump_version standalone; falls back to settings.bumpType when stdin is not a TTY
VSCode tasks (.vscode/tasks.json)
Added tasks for all profiles (run default, run preview, run release, bump version) and renamed the existing watch task to watch default for consistency. The bump version task opens a new panel and stays open so the readline prompt is accessible.
Update ja_JP.lang
Update en_US.lang command descriptions to preserve the original hand-written wiki formatting, and update camera.js subCommandWikiDescription strings to match the original wiki text for the /cam and /cs commands. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: register handDurability in InfoDisplay feat: add handDurability lang strings refactor: clean up handDurability
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 1 medium |
| Security | 3 critical |
| CodeStyle | 10 minor |
| Complexity | 9 medium |
🟢 Metrics 1999 complexity · -97 duplication
Metric Results Complexity 1999 Duplication -97
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Owner
Author
|
CI is failing because of a misconfiguration on @minecraft/debug-utilities on Mojang's side. |
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.
What's New
renderSignalStrength: InfoDisplay rule that renders the signal strength number on top of nearby redstone dust.renderEndGatewayExits: Shows the exit point of end gateways and their potential movement area.heldItemDurability: InfoDisplay rule that shows the durability of the tool in your main hand.Improvements
/debugentity: Text-based debug information is now available on Realms.Fixes
./canopy menu: Text fields now default to their current value instead of their default value.... and more improvements behind the scenes!