Skip to content

Add block registry settings and config reset - #63

Merged
osipxd merged 2 commits into
developfrom
feature/block-registries-config
Nov 9, 2026
Merged

osipxd merged 2 commits into
developfrom
feature/block-registries-config

Conversation

@osipxd

@osipxd osipxd commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #62 and #44.

  • disabled-block-registries: a new config option with /mimic config disabled-block-registries add|remove and toggles in the interactive config, working like disabled-items-registries. mimic and minecraft can't be disabled.
  • /mimic config reset [option]: resets any config option to its default. Until now, a preferred provider could only go back to automatic selection by editing config.yml and restarting.
  • Interactive config: shows (auto) when a provider is selected automatically, keeps every provider clickable so the current one can be pinned, and shows a clickable reset when one is pinned.
  • BlockRegistry.breakBlock: tool defaults to null for Kotlin callers, so breakBlock(block, dropsConsumer = consumer) works. The overloads for Java stay.
  • The config.yml header now points to /mimic instead of the removed /mimic info.

🤖 Generated with Claude Code

@codacy-production

codacy-production Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity · 0 duplication

Metric Results
Complexity 4
Duplication 0

View in Codacy

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.

@osipxd
osipxd force-pushed the feature/block-registries-config branch from 9a39822 to 254ddfd Compare November 9, 2026 13:14
@osipxd
osipxd force-pushed the feature/block-registries-config branch from 254ddfd to ccc8333 Compare November 9, 2026 13:15
@osipxd osipxd added this to the Next milestone Nov 9, 2026
@osipxd osipxd self-assigned this Nov 9, 2026
@osipxd
osipxd requested a balanced review from Copilot November 9, 2026 13:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the block-registry controls and configuration reset changes.

No open issues 🎉

What changed in this PR

Extends Mimic’s configuration controls to block registries and adds command-based resets, building on the existing block API and command improvements.

Changes:

  • Adds block-registry disable settings, commands, and interactive toggles while protecting mimic and minecraft.
  • Adds per-option resets and distinguishes automatic provider selection from pinned selections.
  • Makes the block-breaking tool optional for Kotlin callers, updates the API snapshot, and adds configuration tests.
File Description
mimic-bukkit/​src/​test/​kotlin/​impl/​mimic/​MimicBlockRegistryTest.kt Tests exclusion of disabled block registries.
mimic-bukkit/​src/​test/​kotlin/​config/​MimicConfigTest.kt Tests protected registries and persisted resets.
mimic-bukkit/​src/​main/​kotlin/​MimicImpl.kt Passes configuration into block-registry wrappers.
mimic-bukkit/​src/​main/​kotlin/​config/​MimicConfig.kt Adds block-registry settings, resets, and updated header text.
mimic-bukkit/​src/​main/​kotlin/​command/​ConfigMessage.kt Adds registry toggles, automatic-selection labels, and reset links.
mimic-bukkit/​src/​main/​kotlin/​command/​ConfigCommand.kt Adds block-registry controls and per-option reset commands.
mimic-bukkit/​src/​main/​kotlin/​command/​BlocksSubcommand.kt Uses the optional tool parameter when breaking blocks.
mimic-bukkit/​src/​main/​kotlin/​blocks/​WrappedBlockRegistry.kt Applies configured block-registry disable settings.
mimic-api/​src/​main/​kotlin/​blocks/​BlockRegistry.kt Defaults the Kotlin tool argument to null.
mimic-api/​api/​mimic-api.api Records the generated default-argument API method.
CHANGELOG.md Documents block-registry controls and reset commands.

Review effort: Balanced

@osipxd
osipxd merged commit e25ee57 into develop Nov 9, 2026
4 checks passed
@osipxd
osipxd deleted the feature/block-registries-config branch November 9, 2026 13:25
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.

2 participants