How asthewindx/survivor works
Survivor is a Minecraft zombie-apocalypse gameplay mod that reshapes survival rules and adds combat, environmental systems, item and block interactions, and UI. The player’s broad gameplay loop is represented by independently event-driven systems rather than one sampled request pipeline: player state and survival are supported by shared helpers, while combat, weather, blocks, items, lighting, and HUD provide distinct gameplay stages. The README also advertises behavior trees and modeling, but the supplied tree has no corresponding source paths, so those capabilities cannot be mapped more specifically. Edges reflect imports or calls visible in the supplied excerpts and SOURCE INDEX.
Main entry points: Script_Manifest.js Runtime registration · Config_Common.js Shared state and actions · Player_Basic.js Player survival · Temp.js Seasons and weather
Components 12
Runtime foundation
- Shared state and actions
scripts/Shares/Config_Common.js - Runtime registration
scripts/Script_Manifest.js
Survival and combat
- Player survival
scripts/Core/Player_Basic.js - Seasons and weather
scripts/Core/Temp.js - Infected combat
scripts/Core/Entity.js - Firearms
scripts/Core/Attack.js
Gameplay systems
- Block interactions
scripts/Systems/Blocks.js - Item use and codex
scripts/Systems/Item.js - Handheld lighting
scripts/Systems/Light.js
Player interface
- Status HUD
scripts/Systems/Hud.js - Debug commands
scripts/Shares/Debug.js
Other components
- Player
Connections 33
- Runtime registration → Player survival: imports
scripts/Script_Manifest.js - Runtime registration → Shared state and actions: imports
scripts/Script_Manifest.js - Runtime registration → Seasons and weather: imports
scripts/Script_Manifest.js - Runtime registration → Debug commands: imports
scripts/Script_Manifest.js - Runtime registration → Status HUD: imports
scripts/Script_Manifest.js - Runtime registration → Item use and codex: imports
scripts/Script_Manifest.js - Runtime registration → Block interactions: imports
scripts/Script_Manifest.js - Runtime registration → Firearms: imports
scripts/Script_Manifest.js - Runtime registration → Infected combat: imports
scripts/Script_Manifest.js - Runtime registration → Handheld lighting: imports
scripts/Script_Manifest.js - Firearms → Infected combat: uses hit logic
scripts/Core/Attack.js - Firearms → Shared state and actions: uses helpers
scripts/Core/Attack.js - Infected combat → Player survival: calls death handling
scripts/Core/Entity.js - Infected combat → Shared state and actions: uses helpers
scripts/Core/Entity.js - Player survival → Shared state and actions: uses helpers
scripts/Core/Player_Basic.js - Seasons and weather → Player survival: calls fatigue handling
scripts/Core/Temp.js - Seasons and weather → Shared state and actions: uses helpers
scripts/Core/Temp.js - Block interactions → Player survival: calls death handling
scripts/Systems/Blocks.js - Block interactions → Seasons and weather: reads season
scripts/Systems/Blocks.js - Block interactions → Shared state and actions: uses helpers
scripts/Systems/Blocks.js - Item use and codex → Shared state and actions: uses helpers
scripts/Systems/Item.js - Status HUD → Item use and codex: reads gun IDs
scripts/Systems/Hud.js - Status HUD → Shared state and actions: uses helpers
scripts/Systems/Hud.js - Handheld lighting → Item use and codex: reads gun IDs
scripts/Systems/Light.js - Handheld lighting → Seasons and weather: reads weather
scripts/Systems/Light.js - Handheld lighting → Shared state and actions: uses helpers
scripts/Systems/Light.js - Debug commands → Player survival: calls death handling
scripts/Shares/Debug.js - Debug commands → Seasons and weather: sets weather
scripts/Shares/Debug.js - Debug commands → Shared state and actions: uses helpers
scripts/Shares/Debug.js - Player → Player survival: plays through
- Player → Firearms: uses
- Player → Block interactions: interacts
- Player → Item use and codex: uses