Insomnia

Insomnia Plugin

Insomnia is Newt’s custom horror-realm plugin. Sacrifice a chicken to summon a nightmare portal, step into the horror_realm, and try to escape with your sanity intact. Darkness drains your mind, light slows the decay, and only true exhaustion lets you wake up – if the realm lets you go. Survive your first escape and claim the Corruption Trident, a dark weapon that follows you back to the overworld.

Nightmare Portal

Summoning the Nightmare Portal

The core entry point into Insomnia is the nightmare portal. To open one, a player must kill a chicken standing on top of a crimson stem. This sacrifice tears a hole between worlds and forms the portal structure.

Walking into the center of the portal teleports the player into the horror_realm world. Once inside, the normal rules of Minecraft start to bend. It’s darker, more oppressive, and your sanity becomes your most important resource.

Darkness accelerates sanity decay: the lower the light level around you, the faster your sanity drains. Holding a torch or standing in bright areas slows this decay, but doesn’t stop the realm from wearing you down. There is only one way out: rest. But you cannot sleep until your sanity falls below 20% – and attempting to do so early has consequences.

Horror Realm
Corruption Trident

Sanity, Shadows & the Corruption Trident

Inside the horror_realm, your sanity is constantly monitored. The darker it is, the faster it falls. Holding a torch or staying in higher light levels reduces the decay rate, but doesn’t undo the realm’s grip on your mind.

As sanity drops, Insomnia begins to escalate the horror:

  • Spooky ambient sounds
  • Shadow figures watching from the edges of vision
  • Disorientation and blindness effects
  • Block mounds forming around you
  • Hunter figures and phantom heads that vanish when you look at them
  • Torches extinguishing themselves
  • Blocks breaking around you and more

If you attempt to sleep before sanity drops below 20%, your bed will burn and a shadow figure will appear, telling you that you can’t rest yet – you’re not weak enough.

Once you finally escape the realm successfully for the first time, you are rewarded with the Corruption Trident. This dark weapon follows you out of the horror_realm and serves as both a trophy and a tool:

  • Using the Corruption Trident spawns a shockwave that knocks back all hostile mobs it hits and applies Wither to them.
  • If the shockwave hits a non-hostile mob within a 150-block radius of the origin, a new shockwave propagates outward from that mob as well.

Destroying nightmare portals can trigger a portal collapse event that violently throws back all entities in the area. If your health is low, this can easily be lethal. Treat portal destruction as a dangerous late-game action, not a casual cleanup.

technical bits

Commands

/getinsomniapdc <player> <key> – Gets a player's Persistent Data Container (PDC) value for the given key. Permission: insomnia.admin

/setinsomniapdc <player> <key> <value> – Sets a player's PDC value for the given key. Useful for testing or manual state fixes. Permission: insomnia.admin

/insomniasanity [player] – View a player's current sanity value (self or target if provided). Permission: insomnia.admin

/insomniasanity set <player> <value> – Manually set a player's sanity value. Great for debugging or event control. Permission: insomnia.admin

/insomnia reload – Reloads the Insomnia config file without restarting the server. Permission: insomnia.reload

/corruptiontrident – Gives the Trident of Corruption to the executor. Normally unlocked via first escape from the horror_realm. Permission: insomnia.trident

Config


#################################
# Newts Insomnia               #
# Horror realm & sanity system #
#################################

pdcvalues:
  - blind
  - escaped

worldcorruption:
  enabled: true

  structure:
    enabled: true
    base_chance: 0.04       # base chance per tick per player (scaled by sanity)
    min_distance: 6         # min horizontal distance from player
    max_distance: 12        # max horizontal distance from player
    allow_ore_mounds: true
    allow_jumbles: true
    allow_dead_trees: true
    allow_ruins: true

  block_eater:
    enabled: true
    radius: 5               # horizontal radius around player
    max_vertical_above: 4   # only eat blocks up to this many blocks above player
    holes_per_cycle_min: 2
    holes_per_cycle_max: 3
    max_sanity: 80          # only runs when sanity <= this

  torch_breaker:
    enabled: true
    radius: 6
    chance_per_cycle: 0.15  # probability each cycle to break 1–2 torches near the player
    max_sanity: 70

  books:
    enabled: true
    base_chance: 0.01       # chance at high sanity
    extra_chance_at_zero_sanity: 0.01  # added when sanity=0 (scaled linearly)
    max_sanity: 60          # only runs when sanity <= this

  herobrine:
    enabled: true
    spawn_chance: 0.003     # chance per cycle per player to spawn a head
    trigger_radius: 3.0     # distance for vanish effect
    max_sanity: 50          # only runs when sanity <= this