☀️

Sunburn

Makes players burn in sunlight, the same way undead mobs do, a small effect plugin for vampire-themed events and night-only gameplay.

Private
About

Sunburn applies vanilla zombie/skeleton-style sunlight burning to all online players. Pairs naturally with vampire, undead, or night-survival event themes, whenever the sun comes up, players need to find shade or shelter or take damage.

Toggle on and off via commands rather than a config flag, since events typically only want this active for specific phases.

Mechanics

The plugin polls every second and burns players who meet all of these conditions:

Exposure: the player must be standing in a column of blocks where at least one block from feet to eye level receives full skylight. Roofs, leaves, and overhangs all count as cover.

Daylight, overworld, weather-permitting: burning only triggers in the overworld during the day half of the world cycle, and only when the weather is clear. Arid biomes (desert, savanna, badlands variants, and the void) override the weather check, the sun bites in those even through rain.

Game mode: only survival and adventure players are affected; creative and spectator are immune.

Mitigations: being in water, having the Fire Resistance effect, or wearing a helmet all prevent burn damage. A helmet absorbs the burn and takes one durability instead (Unbreaking gets its usual save chance, and the helmet breaks normally when it runs out). Fire Protection on any armour piece scales the burn duration down by 15% per level, taking the highest level on the player.

Commands

Also available under the alias /sb. Permission required: sunburn.admin.

  • /sunburn help
    Lists available commands.
  • /sunburn start
    Starts sunlight sensitivity for all players.
  • /sunburn stop
    Stops sunlight sensitivity for all players.