📄
pasted-code-1776469432612.txt
txt
122 lines
▶
Create a psychological horror Minecraft mod designed to make the player feel constantly observed, misled, and uncertain about reality. The experience must remain grounded in vanilla Minecraft aesthetics, avoiding obvious horror tropes, jumpscares, or exaggerated visuals. Fear should emerge from subtle inconsistencies, rare events, and long-term psychological pressure.
CORE SYSTEMS:
1. Mimic System (Hidden Entities)
* Certain blocks and passive mobs can be replaced at world generation or dynamically over time with “mimics.”
* Mimics perfectly replicate normal behavior at first (chests open, furnaces work, animals move normally).
* Over time, they exhibit increasingly unnatural traits:
* Slight head tracking toward the player when not directly observed
* Micro-movements (1–2 pixel shifts)
* Idle “breathing” animations for blocks
* Delayed interaction responses (e.g., chest opens a fraction late)
* Very rare: mimics relocate when the player is far away.
* Breaking a mimic may drop incorrect or inconsistent items.
* No consistent visual indicator exists to identify mimics.
2. Sound Hallucination System
* The game plays context-aware false sounds:
* Footsteps behind the player
* Block breaking/mining nearby
* Doors opening/closing
* Item pickup sounds
* Sounds must respect environment:
* Echo/reverb in caves
* Muffled through walls
* Directional audio positioning
* 80–90% of sounds are fake; 10–20% correspond to actual subtle changes in the world.
* Some sounds escalate into patterns (e.g., repeated mining forming a tunnel that later exists).
* Extremely rare: sounds mimic the player’s own recent actions with a delay.
3. False Multiplayer Presence
* The mod simulates a second “player” without ever confirming it exists.
* Evidence includes:
* Random torch placement in caves the player has not fully explored
* Small, crude structures appearing over time (cobblestone boxes, pillars, tunnels)
* Trees partially chopped but not broken
* Items missing from chests or rearranged
* Extremely rare events:
* A nametag flicker at render distance
* A humanoid silhouette briefly visible in fog or darkness
* No direct interaction ever occurs; the “entity” avoids confrontation.
4. Base Intrusion System
* The mod tracks the player’s primary base location.
* Over time, subtle changes occur within safe zones:
* Doors left open
* Torches removed or repositioned
* Items reordered in chests
* Blocks rotated or replaced with identical ones (possibly mimics)
* Changes happen when the player is away or not looking.
* Frequency increases with time spent in the same base.
5. Observation Mechanic
* Certain events only occur when the player is NOT looking:
* Mimics reposition
* Structures generate or change
* Sounds trigger behind the player
* Implement line-of-sight checks and camera direction tracking.
* The longer the player avoids turning around, the higher the chance of an event.
6. Escalation System
* The mod tracks:
* Total playtime
* Time spent alone in caves
* Time spent at base
* Frequency of sleeping
* Activity scales gradually:
* Early: rare, ambiguous events
* Mid: consistent but subtle interference
* Late: overlapping systems (sounds + changes + sightings)
7. Environmental Distortion (Very Subtle)
* Rare, brief inconsistencies:
* A block appears incorrect for 1–2 frames
* Lighting flickers slightly without a source
* Fog density changes momentarily
* Must be subtle enough that players question if it actually happened.
8. Data Persistence
* All changes must persist naturally in the world:
* Placed torches remain
* Structures remain
* Modified terrain stays altered
* The world should feel “used” by something else over time.
9. Anti-Pattern System
* Prevent predictability:
* No fixed triggers
* No repeated exact events
* Randomized timing with weighted probabilities
* Ensure long quiet periods to build tension.
10. No Confirmation Rule
* The mod must NEVER confirm the existence of an entity.
* No models, no boss, no final reveal.
* Everything must remain explainable—but unlikely.
GOAL:
Create a slow-burn horror experience where the player begins to doubt their memory, their safety, and eventually the assumption that they are alone. The fear must come from accumulated inconsistencies and the implication of unseen intelligence, not direct threat.
Now I have everything needed. Let me plan the final architecture:
10 Java classes across server and client source sets
HorrorState (PersistentState) + PlayerHorrorData (POJO) for all persistence
EscalationSystem drives all other systems from
ServerTickEventsSoundHallucinationSystem sends
PlaySoundS2CPacketdirectly to the player for directional audioFalsePresenceSystem, BaseIntrusionSystem, MimicSystem, ObservationSystem each handle their domain
EnvironmentalDistortionSystem (client) renders rare dark overlays via
HudRenderCallback
Here’s what was built:
11 files across the project:
HorrorState+PlayerHorrorData— all horror data persists to world NBT automatically; per-player fields track playtime, cave time, base position, sound/event cooldowns, and how long since the player last turned aroundEscalationSystem— drives every system fromServerTickEvents.END_SERVER_TICK; escalation level (0–1) is computed from playtime, cave exposure, sleep avoidance, and rotation stagnation, then used to gate and weight all event triggers with randomized staggered cooldowns to prevent pattern recognitionSoundHallucinationSystem— sendsPlaySoundS2CPacketdirectly to only the target player at calculated world positions; footsteps spawn behind the player using yaw offset math, mining sounds occasionally break a real block (10–15%) tying audio to actual world changesFalsePresenceSystem— places torches in dark underground areas outside the player’s FOV, removes single log blocks from trees to simulate a partially-chopped tree, and builds cobblestone pillars at the surface at distanceBaseIntrusionSystem— only triggers when the player is >50 blocks from their detected base; removes torches, opens doors viaProperties.OPEN, physically swaps random ItemStacks between chest slots, or marks a base block as a mimicMimicSystem— registersPlayerBlockBreakEvents.BEFOREto intercept mimic breaks: cancels normal drops, manually callsworld.breakBlock(..., false), and optionally spawns wrong items (rotten flesh, bone, gravel); also periodically relocates mimics when the player is far awayObservationSystem— FOV dot-product checks used everywhere to prevent events from triggering in the player’s line of sightEnvironmentalDistortionSystem(client) — on a long random cooldown (~20 min minimum), renders a near-invisible dark alpha overlay for 1–3 frames viaHudRenderCallback, subtle enough to be doubted
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/observed/data/HorrorState.java at line 8: cannot find symbol
import net.minecraft.world.PersistentStateType;
^
symbol: class PersistentStateType
location: package net.minecraft.world
ERROR in src/main/java/com/observed/data/HorrorState.java at line 61: cannot find symbol
private static final PersistentStateType<HorrorState> TYPE = new PersistentStateType<>(
^
symbol: class PersistentStateType
location: class HorrorState
ERROR in src/main/java/com/observed/data/HorrorState.java at line 8: cannot find symbol
import net.minecraft.world.PersistentStateType;
^
symbol: class PersistentStateType
location: package net.minecraft.world
ERROR in src/main/java/com/observed/data/HorrorState.java at line 61: cannot find symbol
private static final PersistentStateType<HorrorState> TYPE = new PersistentStateType<>(
^
symbol: class PersistentStateType
location: class HorrorState
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- PersistentStateType
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/observed/data/HorrorState.java
- src/main/java/com/observed/data/HorrorState.java
Please fix this error by creating a new artifact with the corrected code.
package com.observed;
import com.observed.data.HorrorState;
import com.observed.system.EscalationSystem;
import com.observed.system.MimicSystem;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
public class Observed implements ModInitializer {
public static final String MOD_ID = "observed";
@Override
public void onInitialize() {
MimicSystem.registerEvents();
ServerTickEvents.END_SERVER_TICK.register(EscalationSystem::onServerTick);
ServerPlayConnectionEvents.JOIN.register((handler, sender, server) -> {
HorrorState state = HorrorState.get(server);
state.getPlayer(handler.getPlayer().getUuid());
state.markDirty();
});
}
}