Overview

Uses the sun angle for burning and spawn checks on sunlight sensitive mobs.

Morning scene with the sun low in the sky: one zombie standing in the long shadow of a cliff is not burning, while another zombie a few blocks away in direct sunlight is on fire.

Features

FFUtilities is included in this mod JAR (0.2.15 on 26.x, 0.2.8 on 1.21.1); no separate library download is needed.

How it works in detail

Open the config screen from the Mods list (Mod Menu on Fabric; optional).

Configuration

General

Key Default Description
enabled true Master toggle
checkIntervalTicks 5 How often each mob re-checks (staggered by entity ID)
burnRaycastDistance 64 Max burn ray length
useCachedSunVector true Cache the sun direction once per world tick
raycastThroughTransparent true Rays pass through glass and non-occluding blocks
transparentBlocksTreatedAsOpaque leaves and mangrove roots Blocks that still block the sun when transparent pass-through is on

Mob filter

Key Default Description
filterMode all all, whitelist or blacklist
whitelist common undead IDs Used when the mode is whitelist
blacklist empty Used when the mode is blacklist

Mobs outside the filter keep vanilla sun-burn and spawn behavior.

Spawning

Key Default Description
preventSpawnInSunlight true Block filtered monster spawns that can see the sun
spawnRaycastDistance 32 Max spawn-check ray length

Debug

Key Default Description
debugLogging false Verbose logs
showRaycasts false Draw rays in the world

Good to know

Requirements and source version

MinecraftLoaderRequires
1.21.1FabricFabric Loader 0.16.1 or newer and Fabric API
1.21.1NeoForgeNeoForge 21.1.211 or newer
26.1FabricFabric Loader 0.18.4 or newer, Fabric API and Java 25
26.1.1FabricFabric Loader 0.18.5 or newer, Fabric API and Java 25
26.1.2FabricFabric Loader 0.19.2 or newer, Fabric API and Java 25
26.1.2NeoForgeNeoForge 26.1.2.114 or newer and Java 25
26.2FabricFabric Loader 0.19.3 or newer, Fabric API and Java 25
26.2NeoForgeNeoForge 26.2.0.88 or newer and Java 25
26.3FabricFabric Loader 0.19.5 or newer, Fabric API and Java 25

Source version: 1.3.0. FFUtilities 0.2.15 is included in the 26.x jars and 0.2.8 in the others.

The Modrinth button is enabled only when a published project link is configured. The source version above may be newer than the latest published file.