Repository navigation
Add Bedrock support for SmartPack 2.2.0 - #3
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e6b79a13e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| runSmartPackerAction(player, action, () -> { | ||
| Block target = getLookedAtBlock(player); | ||
| return Objects.equals(originalTarget, target) ? getChestBlockInventory(target) : null; |
There was a problem hiding this comment.
Validate chest access before packing through Bedrock actions
In SMART_PACKER_ITEM mode, a Bedrock player can select Pack Chest while looking at a locked chest and modify its contents without being able to open it. This callback retrieves the block inventory directly, and neither runSmartPackerAction nor useSmartPacker checks chest access beyond smartpack.chest. Previously, item-based chest packing required getOpenChestInventory(player), so the player first had to successfully open the chest; /pack chest is unavailable in this mode. Validate access before accepting the chest target in both the native form and fallback menu so the new interaction does not bypass that restriction.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@codex Can a check be put in place on the menu?
There was a problem hiding this comment.
To use Codex here, create an environment for this repo.
There was a problem hiding this comment.
Codex Review: Didn't find any major issues. Can't wait for the next one!
Reviewed commit: 065cd73f33
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Bedrock players can now set permanent exclusions with ordinary clicks and use the SmartPacker through a native action form. The SmartPacker form packs inventory or chest contents and toggles auto mode, with a chest-style fallback when the form is unavailable.
The exclusion menu announces final changes when they are applied. SmartPacker lore follows the current client and the player's saved auto-mode setting. Paper now advertises eligible
/packsubcommands for Java and Bedrock autocomplete.Bumps SmartPack to 2.2.0 and documents installation, permissions, and controls for both editions.
Validation
clean verifypassed against the Paper 1.21.11, 26.1.2, and 26.3 APIs.excludeautocomplete.