📄
pasted-code-1791614768490.txt
txt
1 lines
▶
Develop a standalone Spigot/Paper (1.20+) horror minigame plugin built around an terrifying entity called The Stalker. The core mechanics must handle custom AI behavior, tension sound design, line-of-sight triggers, and event-based jump-scares.Note on Model Rendering: All custom entity visuals and animations will be handled via the ModelEngine 4 API later. The plugin logic should treat The Stalker as a underlying living entity (e.g., an invisible Zombie/ArmorStand anchor) hooked into ModelEngine via its blueprint ID stalker.1. Stalker Entity SpecificationsBlueprint Identifier: stalker (To be loaded into ModelEngine later)Health Pool: $300\text{ HP}$ (Wither equivalent)Immunities: Cancel all damage from LAVA, FIRE, FIRE_TICK, and FALL.Movement Style: Fast, silent ground movement with wall-climbing capabilities when obstructed horizontally.2. Core Gameplay MechanicsA. Environmental & Audio AuraDarkness Aura: Any player within $10$ blocks of The Stalker receives continuous PotionEffectType.DARKNESS (Amplifier 1).Paranoia Sound Loop: Plays ambient breathing (entity.warden.sniff) and quiet stone-stepping sounds directly behind the nearest targeted player at random intervals ($5$--$15$ seconds).B. Line-of-Sight & "Don't Look Away" MechanicTrack player camera angle relative to The Stalker using dot-product vector math.If a targeted player looks directly at The Stalker for more than $2$ seconds, trigger a sudden teleport behind the player's current view vector.C. Noise-Based Aggro SystemPlayers sprinting, breaking blocks, or opening containers in light level $< 4$ instantly trigger an audio pulse.Send an action-bar message to the player: §c§osilent... i heard you... alongside a high-pitch static burst sound.D. Blood Moon Integration (Multiples of 5 Days)Track world time ($(\text{dayNumber} \bmod 5) == 0$).During Red Moon nights ($13000 \le \text{time} \le 23000$):The Stalker remains in a permanent Enraged state (+30% movement speed).Forces a red vignette effect on players using client-side world border packets.3. Low Health & Jumpscare FXLow Health Vignette: When a player drops below $30\%$ health ($6$ hearts):Spawn red dust particles (Particle.DUST with red color options) directly around the player's view.Loop entity.warden.heartbeat audio every second.Camera Snap Jumpscare:When triggered (e.g., opening a chest in the dark or getting caught from behind), play a sharp $0.15$-second camera recoil, apply 1 second of DARKNESS/BLINDNESS, and play entity.elder_guardian.curse at max pitch.
Create the Paper 1.20+ project files and
/stalkercommand.Implement the invisible 300-HP anchor and custom stalking, noise, aura, jumpscare, and Blood Moon mechanics.
Keep ModelEngine integration ready via the
stalkerblueprint identifier, without requiring ModelEngine yet.
Created TheStalker, a Paper 1.20+ horror minigame plugin. Use /stalker spawn and /stalker remove to manage the invisible 300-HP Zombie anchor; its persistent data includes the stalker ModelEngine blueprint ID for later visual integration.
Implemented custom stalking and wall-climbing movement, darkness and paranoia effects, low-light noise aggro, the look-away teleport mechanic, Blood Moon speed and border effects, and low-health and jumpscare effects.
Make the stalker do damage also of good amount and change it from zombie model to enderman
Add meaningful attack damage when the Stalker catches a player.
Change its invisible anchor from a Zombie to an Enderman and keep the
stalkerblueprint hook.
The Stalker now uses an invisible Enderman anchor instead of a Zombie. When it catches a player from behind, it deals 8 damage (4 hearts), with a 1.5-second attack cooldown.
package com.kodari.stalker;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class StalkerPlugin extends JavaPlugin {
private StalkerManager stalkerManager;
@Override
public void onEnable() {
this.stalkerManager = new StalkerManager(this);
Bukkit.getPluginManager().registerEvents(this.stalkerManager, this);
this.stalkerManager.start();
getCommand("stalker").setExecutor(new StalkerCommand(this.stalkerManager));
}
@Override
public void onDisable() {
if (this.stalkerManager != null) {
this.stalkerManager.shutdown();
}
}
}