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

Light Level

The light level condition checks the block light level or skylight level. This means we can check if mobs are spawning in an area.

Argument
Description
Default Value

min

The minimum light level

0

max

The maximum light level

15

mode

Either BLOCK, SKY, or BOTH (see below for info)

BOTH

Mobs can spawn at light level 7 and below

BLOCK only checks light from light sources, such as glowstone, torches, lava, etc.

SKY only checks the exposure to the sun. This means that your light level will be low if you are underground or under a ceiling.

BOTH checks both BLOCK and SKY and uses whichever value is bigger. This is what Minecraft does to check if mobs can spawn.

Last updated 1 year ago

❔