Mechanics
Other WikisDonate
  • Home
  • Examples
  • Placeholders
  • ⚙️Mechanics
    • Action Bar
    • Boss Bar
    • Command
    • Custom Sound
    • Damage
    • Drop Item
    • Fake Item
    • Firework
    • Flinch
    • Ignite
    • Leap
    • Lightning
    • Message
    • Particle
    • Potion
    • Push
    • Sculk Bloom
    • Sculk Shriek
    • Sound
    • Title
    • Warden Disturbance
  • 🎯Targeters
    • ServerPlayers
    • Shapes
      • Box
      • Scatter
    • Source
    • Target
    • World
  • ❔Conditions
    • Biome
    • Custom Biome
    • Entity Type
    • Gliding
    • Has Permission
    • InCone
    • Light Level
    • Material Category
    • On Ground
    • Range
    • Riding
    • Sneaking
    • Sprinting
  • 🔌Integrations
    • 🌊GeyserMC
    • 🌎MechanicsEverywhere
    • 👽MythicMobs
    • 🔫WeaponMechanics
Powered by GitBook
On this page
  1. Conditions

Custom Biome

Last updated 1 year ago

This condition requires

The custom biome condition checks whether the target entity/location is in a specific biome. This can be used to check for vanilla biomes, but I recommend using the Biome condition for vanilla.

Argument
Description
Default Value

biome

Which biome should we be in

*Required

Mechanics:
  - "Potion{potion=POISON, chance=20%} ?CustomBiome(biome=biomemanager:radiation_zone)"
  - "Potion{potion=WITHER, chance=20%} ?CustomBiome(biome=biomemanager:radiation_zone)"

This has a 40% chance to give the source entity a negative potion effect (either poison or wither), but they must be in the biomemanager:radiation_zone biome.

Mechanics:
  - "CustomSound{sound=city.carnoises} @Source{offset=r40} ?CustomBiome{biome=biomemanager:city}"

Plays the named sound city.carnoises (this sound is not in any resourcepack, it is just an example sound I made up) in a random direction, 40 blocks away, so long as the source entity is in the city biome.

❔
BiomeManager