Overview
Effects are typically defined within biome configurations and trigger based on player location. Each effect runs on an interval-based system with configurable chances.Basic Effect Configuration
Core Properties
Interval & Chance
interval (required, min: 0)
Effect check interval in milliseconds.
interval milliseconds.
chance (required, min: 1)
Probability is 1 in CHANCE per interval.
chance: 30, there’s a 1/30 probability the effect triggers each interval.
Higher chance values = lower probability.
chance: 100 means 1% chance per interval, while chance: 10 means 10% chance.Particle Effects
Basic Particles
particleEffect
The Bukkit particle type to spawn.
ENCHANTED_HITFLAMESOUL_FIRE_FLAMEDRIPPING_WATERFALLING_DUSTENCHANTPORTALEND_RODSCULK_SOUL
Particle Count
particleCount (default: 0, range: 0-512)
Number of particles to spawn per trigger.
When
particleCount is 0, the alt X/Y/Z values represent motion instead of offset.Particle Positioning
particleDistance (default: 20, range: 0-64)
Maximum distance in front of the player where particles can spawn.
particleDistanceWidth (default: 24, range: 0-128)
Radius left/right of player’s view direction for particle placement.
particleAway (default: 5, range: 0-16)
Minimum distance from player before particles can spawn.
particleOffset (default: 0, range: -32 to 32)
Vertical offset from the surface height.
Particle Motion/Offset
WhenparticleCount > 0, these values act as offset. When particleCount = 0, they represent motion.
particleAltX (default: 0, range: -8 to 8)
particleAltY (default: 0, range: -8 to 8)
particleAltZ (default: 0, range: -8 to 8)
Randomization
randomAltX (default: true)
Randomize altX between -altX and altX.
randomAltY (default: false)
Randomize altY between -altY and altY.
randomAltZ (default: true)
Randomize altZ between -altZ and altZ.
Extra Parameter
extra (default: 0)
Additional parameter for certain particle types (poorly documented by Bukkit).
Sound Effects
Basic Sound
sound
Bukkit sound type to play.
ENTITY_BAT_AMBIENTBLOCK_AMETHYST_BLOCK_CHIMEAMBIENT_CAVEBLOCK_BEACON_AMBIENTENTITY_WARDEN_AMBIENTMUSIC_DISC_OTHERSIDE
Sound Properties
soundDistance (default: 12, range: 0-512)
Maximum distance from player where sound can play.
volume (default: 1.5, range: 0.001-512)
Sound volume level.
minPitch (default: 0.5, range: 0.01-1.99)
Minimum sound pitch.
maxPitch (default: 1.5, range: 0.01-1.99)
Maximum sound pitch.
Potion Effects
Basic Potion
potionEffect
Potion effect type name (uppercase, spaces replaced with underscores).
SPEEDSLOWJUMP_BOOSTNIGHT_VISIONWATER_BREATHINGREGENERATIONMINING_FATIGUEDARKNESS
Potion Properties
potionStrength (default: -1, range: -1 to 1024)
Amplifier level for the potion effect. Set to -1 to disable.
0= Level I1= Level II2= Level III
potionTicksMin (default: 75, min: 1)
Minimum duration in ticks.
potionTicksMax (default: 155, min: 1)
Maximum duration in ticks.
If a player already has a stronger amplifier of the same effect, the new effect won’t be applied.
Custom Commands
commandRegistry
Execute commands with configurable location parameters.
Complete Examples
Mystical Forest
Dark Cave Ambience
Underwater Bubble Stream
Desert Heat Waves
Soul Sand Valley
Speed Boost Zone
Performance Tips
- Use reasonable intervals: Values under 100ms can cause lag with many players
- Limit particle counts: Keep under 10 for most effects
- Adjust chance appropriately: High frequency (low chance values) impacts performance
- Limit sound distance: Smaller values reduce processing overhead
- Avoid complex command registries: Commands execute on the main thread
Troubleshooting
Effects not triggering
Check the interval and chance values. Withinterval: 1000 and chance: 100, the effect has only a 1% chance every second.
Increase frequency by:
- Lowering
interval - Lowering
chancevalue
Particles spawning in wrong location
Adjust the positioning parameters:particleDistance: How far in frontparticleDistanceWidth: How wide the spawn areaparticleAway: Minimum distanceparticleOffset: Vertical offset from surface
Sounds too loud/quiet
Adjustvolume and soundDistance. Larger distances reduce effective volume.
Potion effects not applying
EnsurepotionStrength is not -1 and verify the effect name is correct (uppercase, underscores for spaces).