A Touch of Madness

Sanity slips under pressure, and the shadows it lets in can kill.
Back to Files

A Touch of Madness 0.1.0

File nameatouchofmadness-0.1.0.jar
Uploader
kc00lkc00l
Uploaded
Oct 28, 2026
Downloads
19
Size
325.0 KB
Mod Loaders
NeoForge
File ID
9352402
Type
B
Beta
Supported game versions
  • 26.1.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:a-touch-of-madness-1770620:9352402"

Learn more about Curse Maven

What's new

  • The Pillar has its own creative tab, "A Touch of Madness", and no longer nests libworks-runtime or fills its Works tab (#2).
  • Every player has Sanity, 0 to 100: 100 when new, 50 after respawning, saved with the player. It is Sane above 50, Uneasy from 50 down to 20 and Insane below 20, all four set in atouchofmadness-common.toml. /sanity get|set|add <player> [value], at permission level 2, reads and moves it, and returns it rounded down for execute store (#3).
  • Where a player stands drains their Sanity: 6/min in Low light, light at the eyes below 5 unless a full moon is in the sky they can see, in a dimension with a moon; 4/min while freezing, from powder snow or any other cold; 1.5/min in water or rain; and 1/min in a dimension type in #atouchofmadness:unsettling, the Nether by default. Every rate and the Low-light threshold are in the environment section of atouchofmadness-common.toml (#4).
  • Eating moves Sanity by the food's Sanity Modifier, the atouchofmadness:sanity_modifier item data map, which a datapack can add to or override: −10 for a spider eye or pufferfish down to +30 for an enchanted golden apple, and 0 for any food it doesn't list. Each slice of a placed cake applies the cake's. Waking from sleeping through the night restores 40 to each sleeper, and breaking a block in #minecraft:flowers outside creative restores 1; both are in the moments section of atouchofmadness-common.toml (#6).
  • Who is near moves Sanity. Each entity in #atouchofmadness:unsettling, vanilla's monsters by default, within 8 blocks drains its weight a minute, from the atouchofmadness:unsettling_weight entity-type data map: 1 for a type it doesn't list, 3 for an Enderman, and 10 for the Warden, the Wither and the Elder Guardian, up to 10/min in all. Company restores 2/min, however many are near: any entity in #atouchofmadness:comforting within 8 blocks (tamed if it can be tamed; wolves, cats, parrots, horses, donkeys, mules, llamas, nautiluses, villagers and allays by default), or any other player in Survival or Adventure. A datapack can change both tags and the data map. The rates, the radii and the cap are in the nearby section of atouchofmadness-common.toml (#7).
  • Music restores Sanity: while the nearest jukebox playing within 64 blocks plays a disc, 4/min, hopper-fed or not; jukeboxes never stack. A disc that is one of the last two a player heard is Stale and restores half what its last play did, so one disc on repeat gives 4, 2, 1… and two alternating 4, 4, 2, 2…, while three or more in rotation stay at 4. The history is each player's own, saved with them through relogs and death, and shared by every jukebox. The rate and the range are in the music section of atouchofmadness-common.toml (#8).
  • The Flower Crown, the Pillar's first item, in its creative tab: shaped from six flowers of any kind in #minecraft:flowers, F F F over F _ F. Worn in the head slot, with no armour, it restores 1.5/min, and it wears only while worn, shown as a durability bar, until after 1 in-game day of wear it wilts away. Taking hits doesn't wear it, a creative player's never wears, and no anvil, grindstone or crafting repair mends it. The restore and the wear time, in in-game days, are in the crown section of atouchofmadness-common.toml (#9).
  • Discovery: a player learns how Sanity works by meeting it. Each drain, restore and stage below Sane is a hidden advancement in an "A Touch of Madness" tab, done with a toast the first time it actually moves the player's Sanity (a restore at full or a drain at empty never counts) or, for a stage, the first time they reach it; the root, granted on join, explains the meter. Each sits at atouchofmadness:discovery/<id>: a pack removes one to count it as known, or overrides it to fire on minecraft:tick to mark it known from the start. Two criterion triggers fire them, atouchofmadness:sanity_changed with a source and atouchofmadness:stage_reached with a stage. discovery.enabled in atouchofmadness-common.toml, off, counts everything as known while the advancements are still earned (#18).
  • Shadow Creatures, the Lurker and the Gaunt, and Umbra, which is in the creative tab. Around a player Uneasy or Insane in Survival or Adventure, in a dimension type in #atouchofmadness:shadows (all three by default), a spawn attempt comes every 20 s while they are under their cap: 1 at 50 Sanity, 2 at 35, 3 at 20 and 4 at 10 and below, the two kinds together, Gaunts only below 10. A creature appears 12 to 24 blocks away on a block it can stand on, out of sight where it can, whatever the light; the attempts stop while doMobSpawning is off. Each has one Owner, and only its Owner and Insane players are sent it, hear it or can hit it. While the Owner is Uneasy it is Unreal: harmless, unharmable and without collision, stalking at the edge of sight and fading when approached within 4 blocks or struck. While they are Insane it is Real: the Lurker, slow, with 30 health and 4 damage, and the Gaunt, fast, with 16 health and 7 damage; each can be killed for 1–2 or 2–4 Umbra, and keeps to vanilla's difficulty scaling, so on Peaceful it deals nothing and never closes in, as vanilla lets no mob target a player there, yet stays. It is never saved, and goes when its Owner logs out, dies, changes dimension, sleeps or leaves Survival and Adventure, or when their cap falls below their count; it never stops them sleeping. Their Owner's own creatures nearby drain them as shadow_creature, apart from hostile: by their atouchofmadness:unsettling_weight entries, 2 for the Lurker and 4 for the Gaunt, twice that while Real. Each Real hit takes 5 Sanity as shadow_strike; each has a discovery advancement. The caps, interval, distances, Gaunt threshold and chance, Real factor, strike and each creature's stats are in the shadows section of atouchofmadness-common.toml (#10).
  • Shadow Creatures pass through blocks, as a vex does: both the Lurker and the Gaunt drift with no gravity straight to where they're going, through walls and floors, at 2.5 and 5 blocks a second, drift in their shadows config sections. One inside a solid block is never hurt by it and lands no hit there: within reach of its Owner, it comes out beside them to strike (#21).
  • Killing a Real Shadow Creature restores the killer's Sanity at once as shadow_kill, 10 for a Lurker and 20 for a Gaunt, kill in their shadows config sections. The kill is the player's whose attack, arrows and other projectiles included, dealt the killing blow: the Owner or another Insane player, the only ones who can hit it, and never the Owner of a creature another killed. A creature that fades, vanishes or dies with no player behind the blow restores nothing. It has a discovery advancement under shadow_creature (#20).
  • A Shadow Creature drops Umbra only when a player gets the kill, by the loot tables' minecraft:killed_by_player condition: a player who hurt it in the last 5 s, arrows and their tamed animals included. One that dies of /kill, the void, lava or an untamed mob drops nothing, Real or Unreal, unless a player hurt it in the last 5 s (#22).
  • Jade and EMI, both optional, show what the Pillar keeps out of sight, as far as the player has discovered it. In Jade, a playing jukebox shows its disc's freshness for the player looking, "Fresh disc: restores Sanity in full" or "Stale disc: restores 1/2 the Sanity a Fresh one would", 1/4 and on for a disc heard more often, once that player has discovered the Stale disc. In EMI, Info pages cover the Flower Crown, each food with a Sanity Modifier, music discs and Umbra (opened by shadow_kill), each reading "Not yet discovered" until its thing is, and the music page's Stale-disc sentence waiting on stale_disc; with discovery.enabled off, all show in full. The atouchofmadness:sanity_modifier data map is now synced to clients (#19).
  • Each Shadow Creature takes a Shape as it appears: the look of a monster its biome spawns, weighted as the biome spawns them, from #atouchofmadness:lurker_shapes or #atouchofmadness:gaunt_shapes, drawn as a see-through shadow of that mob's own model. In a desert a Lurker may be a husk, in the Nether a piglin; where the biome spawns none of its tag, as in mushroom fields, a Lurker is a zombie and a Gaunt a phantom. A datapack can add to or remove from either tag, another mod's mobs included. A Shape changes only the look: health, damage, speed, size and behaviour stay the Lurker's or the Gaunt's (#11).
  • Hallucinations, which only the player sees or hears, played by their own client. From Uneasy down, the screen's edge washes to grey, more deeply as Sanity falls, and fake sounds play near the player from nothing: a creeper's hiss, a groan, footsteps, a cave's eerie noise, a door. They come about once a minute at 50 and every 10 s at 0, each with an uncertain subtitle of its own, such as "Something hisses?". While Insane, the view sways slowly, scaled by vanilla's Distortion Effects slider, and whispers play now and then. An Unreal Shadow Creature murmurs as it stalks and a Real one cries out as it attacks, heard only by those it is sent to. hallucinations.sway and hallucinations.colourLoss in atouchofmadness-client.toml switch off the sway and the colour loss. The server tells each client its player's Sanity and Stage in a payload of the Pillar's own, atouchofmadness:sanity, on login and whenever either changes (#14).
  • The Encroachment, a Hallucination: from Uneasy down, dark shapes creep in from the screen's edges, faint and only at the corners while Uneasy and a step nearer and darker while Insane, about a third of the way in at 0 Sanity, writhing slowly as much as vanilla's Distortion Effects slider lets them. While Insane, the colour loss also reaches in from the edge toward the middle of the view. Both ease in and out as Sanity falls and is restored; hallucinations.encroachment in atouchofmadness-client.toml turns the Encroachment off, and hallucinations.colourLoss still turns off the colour loss, reach and all (#24).
  • Umbra Gear, the best in each role at a cost in Sanity, in the creative tab: the Umbra Sword, which deals netherite's damage at a faster swing (2 attacks a second to netherite's 1.6); the Umbra Pickaxe, which mines at netherite's tier and faster (12 to its 9); and four pieces of Umbra Armour, each with diamond's protection and toughness and 5% more movement speed. Each crafts from Umbra in its vanilla shape, the tools with sticks, and repairs on an anvil with anything in #atouchofmadness:repairs_umbra_gear, Umbra by default. A tool drains 2/min for each hand that holds one, and each piece of armour 1/min while worn; carried, nothing drains. The drain is umbra_gear, with a discovery advancement under the root, and the three rates are in the umbra section of atouchofmadness-common.toml (#13).
  • The Sanity meter, drawn by A Touch Of's Runtime, which the Pillar now nests and requires, atouchof 0.1.3 up to 0.2: a row of ten eyes above the food bar, filled in half steps of 5 Sanity, pale when Sane, darker when Uneasy and shadow-black when Insane. One to three chevrons show which way Sanity is moving and how fast, from the Net rate: one from 0.5/min, two from 3/min and three from 8/min, up for a restore and down for a drain, and none at whichever end of the range the rate pushes toward. It is the meter atouchofmadness:sanity, and its sprites are atouchofmadness:hud/sanity_{full,half,empty}, with _uneasy and _insane versions, which a resource pack can replace (#15).
  • Each Strike by the Dark takes 10 Sanity at once as struck_by_the_dark, on every difficulty, Peaceful included: A Touch of Darkness raises the Strike as the Runtime's signal, and without it nothing does. The amount is struckByTheDark in the moments section of atouchofmadness-common.toml, and the Strike has a discovery advancement under the root (#16).

This mod has no additional files