Fragment Collection Config
Global fragment collection settings
フィールド
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
artifactId | String | fragment_storage | artifactId of the Fragment Storage artifact that stores the collected fragments. Empty = the first Fragment Storage artifact found. |
defaultFragmentItem | Item | — | Item used for a fragment that has neither a custom item nor a usable display item. If this one is empty too, the fragment cannot be collected by picking up an item. |
fragmentFoundSound | Sound | — | Sound played when a fragment is collected. |
groupCompletedSound | Sound | — | Sound played when all fragments in a group are collected. |
fragmentFoundParticles | List<Particle> | — | Particles spawned when a fragment is found. |
groupCompletedParticles | List<Particle> | — | Particles spawned when a group is completed. |
particleCount | Int | 10 | Number of particles spawned per particle type, around the player's head. 0 = no particles. |
particleSpread | Double | 0.5 | Spread of the particles, in blocks, around the player's head. |
How to use it
Only one entry is expected. Without it, picking up a fragment plays no sound and no particle.
- Sounds —
fragmentFoundSoundplays when a fragment is collected andgroupCompletedSoundwhen a group is completed, before theonFoundandonCompletedtriggers. - Particles —
fragmentFoundParticlesandgroupCompletedParticlesappear around the player's head.particleCount(default10,0= none) is the number spawned per particle type andparticleSpread(default0.5) their spread in blocks. A particle type that needs extra data (dust, block...) writes a warning in the console and is skipped. defaultFragmentItem— the item used for a fragment that has neither acustomItemnor a usabledisplayItem.artifactId— theartifactIdof the Fragment Storage artifact that stores the fragments. Empty, or an id that no artifact has, uses the first Fragment Storage artifact found (an unknown id also writes a warning).