feat: make chest particle type and color configurable per rarity#507
Merged
tastybento merged 3 commits intodevelopfrom Apr 26, 2026
Merged
feat: make chest particle type and color configurable per rarity#507tastybento merged 3 commits intodevelopfrom
tastybento merged 3 commits intodevelopfrom
Conversation
Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/caaefc4f-bcc1-4b8c-a84e-d2f7e5729fd1 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/caaefc4f-bcc1-4b8c-a84e-d2f7e5729fd1 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add configurable particle types for chests
feat: make chest particle type and color configurable per rarity
Apr 26, 2026
tastybento
approved these changes
Apr 26, 2026
|
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.



Chest particle effects (UNCOMMON/RARE/EPIC) were hardcoded to
Particle.DUSTwith fixed colors. This adds full configurability for both particle type and color per rarity level.Settings (
config.yml→world.chest-particles)Implementation
Settings.java— adds 6@ConfigEntryfields (3×Stringparticle names + 3×Color). Getter/setter pairs areString↔Stringfor Java Beans compatibility with BentoBox's YAML reflection system (mismatched types causeIntrospectionExceptionthat silently nulls the entire settings object). Resolution toParticleenum happens via:resolveChestParticle(Rarity)— parses the string, returnsnullfor"NONE"(disables particles for that rarity), falls back toDUSTon invalid namesresolveChestColor(Rarity)— returns the configuredColorfor the given rarityBlockListener.fillChest()— replaced hardcoded color/particle logic with calls to the two resolve methods; non-DUST particles are spawned withoutDustOptions(color is irrelevant to them).