# FINAL FULL SYSTEM PROMPT: RUSHRUSHRUSH
**Core Concept:** A hyper-fast, high-stakes combat roguelike conversion of Minecraft. The player is bound to a dopamine-addicted parasite embedded in their nervous system. Survival demands absolute aggression, high-speed movement tech (sliding), and frame-perfect defense (parrying). Mining and traditional progression are entirely erased—combat, execution, and raw dopamine generation are the only currencies until the final extraction clock stops.
---
## 1. THE DOPAMINE & RECOVERY ENGINE (THE PARASITE STATE MACHINE)
### A. Core Player Data Structures
Every player entity tracks the following variables per tick (20 ticks/sec):
- `IsInRushState`: Boolean (Default: `false`)
- `AdrenalineTimer`: Float (Current active rush duration in seconds, max `60.0`)
- `DelayedDamagePool`: Float (Accumulated damage points absorbed during a rush)
- `DopaminePoints`: Float (`0.0` to `1000.0`, tracks style rank and resource accumulation)
- `StarvationTimer`: Float (Default: `3.0`, counts down when adrenaline hits zero)
### B. The Pacing & Injection Logic
- **Item: "Fleshy Mass"** — An organic, twitching syringe object. Consuming it is instant (`0 ticks` animation, right-click execution).
- **Injection Math:**
- Adds `+15.0` seconds to `AdrenalineTimer`. Hard capped at `60.0` seconds (The Crimson Ceiling).
- Triggers custom visual flash, sound muffled states, and shifts movement profile.
- **The Crimson Ceiling Overfeed (Fatal Overdose):**
- If `AdrenalineTimer >= 60.0` AND `DopaminePoints >= 1000.0` (SATIATED rank met) when a player tries to force another injection, trigger an immediate **Neural Meltdown Run-Wipe**.
- **Execution:** Instantly drop world audio into a tinnitus high-frequency loop (`tinnitus_ring.ogg`), lock keyboard/mouse inputs entirely, skew camera view roll by `45 degrees`, scale a custom fullscreen opacity texture (`textures/misc/tendrils.png`) from `0.0` to `1.0` within 10 ticks, and force kill the player host entity (`player.kill()`) with the custom death translation string: `"The parasite overconsumed its host."` Delete world file if hardcore tracking is validated.
### C. Mechanical Starvation ("The Rot")
- If `AdrenalineTimer <= 0.0` while `IsInRushState == true`, toggle `IsInRushState = false` and initialize `StarvationTimer = 3.0`.
- **Velocity Retention:** The player does NOT walk slow. Speed remains at normal vanilla sprinting speed, but all sliding and parrying code tracks are hard disabled.
- **Visual Decay:** Render a grayscale desaturation post-processing shader overlay, turning the environment into a cold, washed-out sepia environment. Throbbing red veins throb violently at the screen border synced to a rapid gasping sound event loop.
- **The Resolution Gate:**
- If the player successfully registers a weapon hit against a living entity before `StarvationTimer == 0.0`, cancel starvation, consume 1x "Fleshy Mass" automatically, and re-engage `IsInRushState = true` at a reset timer value of `15.0`.
- If `StarvationTimer` drops to `0.0`, apply the total cumulative value of `DelayedDamagePool` to the player instantly via a hard bypass damage source (`"parasite_starve"`), wiping out shields and armor properties.
---
## 2. DYNAMIC AUDIO & DECOUPLED AUDIO MIXER
### A. The Amen Break Hook System
- All soundtrack management is decoupled from compiling steps. Create a localized sound engine schema inside `assets/rushrushrush/sounds.json` mapping to local `.ogg` tracks.
- **Trigger Track Events:**
- On first injection -> Fire sound registration key `rushrushrush:amen_break_start`.
- On reaching S-Rank -> Hot-swap or layer audio track with `rushrushrush:amen_break_climax`.
- This allows the user to drop in custom breakbeat loops directly into the mod directories without editing raw codebase repositories.
### B. Dynamic Frequency Filtration
- While `IsInRushState == true`, apply a dedicated real-time **Low-Pass Filter (LPF)** to the master game mixer loop.
- Muffle all ambient background elements (mobs, weather, footsteps) down to a strict frequency cutoff profile of `800Hz`.
- **Dynamic Decay:** As `AdrenalineTimer` decreases below `5.0` seconds, scale the LPF cutoff linearly from `800Hz` back to a clean vanilla spectrum (`22000Hz`), fading ambient environment feedback back into perception as the music loop recedes.
---
## 3. ADVANCED VISUAL OVERLAY PROFILE (HUD & VIEWPORT INTERFACE)
The screen interface must convey frantic psychological overstimulation. The layout consists of three primary custom UI modules:
### A. The Core HUD Geometry
1. **The Biological Fuel Gauge (Adrenaline Bar):**
- Positioned in the **lower-center quadrant**, directly hovering above the experience level tracker bar.
- Designed as a heavy, curved organic frame constructed of bone-white bars with a deep hollow center.
- Filled with a thick, pulsing visceral crimson red fluid meter that depletes horizontally toward the center.
- **The Danger Zone:** When the meter reaches past `45.0` seconds, the fluid turns a violent glowing white-hot neon color and the entire frame vibrates erratically via an interface coordinate offset randomizer loop.
2. **The Delayed Damage Buffer (The Heart Trap):**
- Overlays standard health hearts. When taking damage during a rush, hearts do not break. Instead, they freeze into a cracked texture, and a **secondary fractured dark purple overlay bar** grows behind the Adrenaline Bar, visually logging exactly how much damage is waiting to snap back when the rush concludes.
3. **The Dopamine Combo Gauge (FEED THE BEAST):**
- Placed in the **upper-right corner of the view display screen**.
- Features a massive, jagged, hyper-stylized letters displaying the current Dopamine Grade.
- **The Grade Tiers & Dynamic Point Maps:**
- `D` — **DRY** (`0 - 150` points) | Color: Flat Dull Gray
- `C` — **CHOKE** (`151 - 350` points) | Color: Sickly Pale Green
- `B` — **BITE** (`351 - 550` points) | Color: Bruise Indigo Blue
- `A` — **ACID** (`551 - 750` points) | Color: Searing Toxic Yellow
- `S` — **SLAUGHTER** (`751 - 900` points) | Color: Piercing Bright Orange
- `SS` — **SICK** (`901 - 975` points) | Color: Deep Blood Crimson Red
- `SSS` — **SATIATED** (`976 - 1000` points) | Color: Glitching Prismatic Neon White
- A vertical fluid pillar grows adjacent to the letter grade. When no hits land for 20 ticks (1 second), points decay at a steady rate of `-15 points/sec`.
### B. Viewport & Screen Shader States
- **The Flash:** Instantly overlay a flat red hex template color matrix (`#FF0000`, alpha visibility value set to `0.75`) across the camera view viewport frame on injection, executing a smooth decay interpolation loop down to `0.0` over exactly `10 ticks` (0.5 seconds).
- **The Monotone Matrix:** Lock environmental saturation down by exactly `35%`. Mutes the standard coloration profiles of grass, sky, and stone blocks, turning the background world cold and calculated, allowing bright red telegraphing indicators from enemy entities to pop out in extreme stark contrast.
- **Pulsing Vignette Boundary:** Implement an intensive vignette shading layer hugging the screen borders. The pulsation frequency of this vignette boundaries must bind directly to your internal adrenaline heart rate math equation: `VignetteSpeed(Hz) = 1.0 + (DopaminePoints / 200.0)`. At baseline ranks, it throbs slowly; at full SSS saturation, the boundaries flash at a manic `6.0Hz`.
- **Sensory Overstimulation Shaders:** When `AdrenalineTimer > 45.0` seconds AND `DopaminePoints > 750.0` (S Rank+), execute a localized **Chromatic Aberration pixel shader**. Split the rendering coordinates of the red and blue image layers by a shifting screen offset variable, making block faces and borders split, smear, and double-image dynamically. Concurrently, displace field-of-view matrices outwards (`FOV + 25.0`), creating extreme peripheral speed stretching.
---
## 4. ALL HOSTILE ENTITY BEHAVIOR OVERHAUL DIRECTIVES
To maintain parity with an agile player, delete vanilla mob pathfinding templates and map the following unique behavior overrides to every hostile entity class:
### A. Overworld Archetypes
- **Zombies / Husks / Piglins ("Kinetic Grapple"):** If a sprinting player enters a 6-block linear view profile, these units frame-lock for 8 ticks (0.4s) while emitting red kinetic tracking sparks. They then launch a directional horizontal velocity thrust (`velocity x2.0`). Impacting the player locks player coordinates for 15 ticks (0.75s) and drains `-150 Dopamine Points`. *Counter:* Player must slide sideways to break target tracing or parry precisely at the collision boundary frame.
- **Skeletons / Strays ("Barrage Flanking"):** These mobs run away backwards at a high vector speed (`velocity x1.5`) when a player closes within 5 blocks, performing a wide backward vault leap while throwing a horizontal cone spray of **3 arrows simultaneously**. Arrows travel at exactly `2.0x` vanilla missile physics speed. *Counter:* Slide under the mid-air projectile spread trajectory and smash them before touchdown.
- **Creepers ("Singularity Blast"):** Creepers maintain continuous high-speed tracking velocity while counting down their ignition fuses. When the countdown reaches `10 ticks` remaining, they activate a high-mass gravitational pull centered on their bounding entity box, pulling the player toward ground zero. *Counter:* Time a left-click melee strike precisely at the detonation frame to execute a **Blast Deflection parry**, negating player hit values and converting the blast into a monumental vertical kinetic launch (Rocket Jump).
- **Spiders / Cave Spiders ("Ambush Pounce"):** Spiders actively pathfind onto ceilings and vertical structure walls. When passing beneath them, they execute a vertical dive attack, generating a temporary `3x3` grid of cobweb hazard nodes onto the collision coordinates, halting player slide momentum. *Counter:* Land an upward slash swing mid-air before touchdown to shred their structures instantly.
### B. Nether Threats (Bullet Hell Profiles)
- **Blazes ("Gatling Overdrive"):** Blazes no longer shoot slow, isolated fireballs. They elevate to fixed heights above the arena floors, locking their core axes and projecting a rapid-fire sequence of **12 fast kinetic plasma rounds** over a 20-tick execution window. *Counter:* Chain consecutive weapon-swing parries to reflect the rounds directly back into the core, acting as a massive parry refuel chain.
- **Ghasts ("Artillery Shredder"):** Fireballs move at triple standard physics speeds and track the player's predictive movement vectors rather than their static position coordinates. Upon exploding, they generate localized kinetic shockwaves that disable the player's slide capability for 40 ticks if caught in the outer radius. *Counter:* Direct parry deflection sends the projectile back at double power to clear the airspace.
- **Wither Skeletons ("Phase Shift Dash"):** These mobs become near-invisible smoky wisps during movement tracks, running at triple normal walking speed. They exit the wisp state only within a 3-block radius of the host player, executing a dual-wield sweeping slash that inflicts heavy delayed damage pool loads. *Counter:* Listen to the sonic hum of their wisp tracks and execute an anticipatory blind parry to force them out of phase alignment.
### C. The End-Game Gateway Overhaul
- **Endermen ("Blink Strike & Roof Shatter"):** Endermen skip linear movement pathfinding. They execute instantaneous coordinate teleports every 20 ticks (1 second), re-materializing directly behind or above the player's viewing axis to execute an immediate downward sweep. If a player attempts to hold position under a 2-block deep protection roof ceiling, the Enderman punches the geometry, shattering all overhead solid blocks within a 3x3 footprint into flying falling block hazards. *Counter:* Match the spatial audio queue of the teleportation zip to strike blind behind your camera matrix within the 3-tick parry frame.
- **The Ender Dragon ("Apex Calamity"):** The final boss loop is transformed into a hyper-aggressive flight engagement path. The Dragon drops traditional hovering logic. She performs tight, rapid dive-bomb swoops across the island arena, breathing continuous toxic purple streams that track player coordinates. *Counter:* The player must slide directly under her diving wings, parry her snout impact to freeze her flight vector frame for 20 ticks, climb her neck geometry while maintaining an active rush state, and shatter the healing End Crystals by parrying her airborne projectile attacks directly into them.
---
## 5. HARD FRAME REFLEX MECHANICS (SLIDE & PARRY LOGIC)
### A. The Kinetic Crouch Slide
- **Condition:** Executed when `Crouch Input` registers while sprinting and `IsInRushState == true`.
- **Logic:** Instantly collapse bounding box heights down to `0.6 blocks` (enabling passage through 1-block crawlways). Apply a sharp linear vector impulse (`look_vector.x * 1.5, look_vector.z * 1.5`) decaying at a rate of 5% per tick for 15 ticks. Gives complete invulnerability to projectile elements during the initial 5 ticks of the slide trail.
### B. The 3-Tick Frame Parry Engine
- **Condition:** Triggered by an `Attack Input` using any item ID (swords, pickaxes, axes, bare hands) while `IsInRushState == true`.
- **The Execution Window:** Opens an active boolean flag tracking loop for exactly **3 ticks (0.15 seconds)** post-input.
- **The Impact Hook (Frame-Freeze):** If an external damage payload intersects the player collision profile during this 3-tick window:
1. Cancel all incoming damage values.
2. Invoke a hard engine sleep/pause cycle holding all game entity positions, gravity computations, and block tracking paths completely frozen for exactly **100 milliseconds**.
3. Broadcast network sound packet `rushrushrush:parry_impact` — stacking a heavy anvil collision sound profile at a pitch level of `1.8` over a standard TNT explosion block profile at volume `2.0`.
4. Stagger the target entity backward by a massive distance vector of `3.0 blocks`, applying extreme slowing effects (`Slowness V`) to them for 20 ticks.
5. Halt the decay operations of `AdrenalineTimer` for the next 40 ticks (2 seconds) and purge `50%` of the active stored contents inside `DelayedDamagePool`.