Godot genre survival

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot genre survival is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for survival games (Minecraft, Don't Starve, The Forest, Rust) covering needs systems, resource gathering, crafting recipes, base building, and progression balancing. Use when building open-world survival, crafting-focused, or resource management games. Keywords survival, needs syst

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Physiology & Needs

Gathering & Inventory

World & Performance


Expert Components (scripts/)

MANDATORY: Prefer these scripts over inline stubs. Do not paste pass architectures into scenes.

[survival_patterns.gd](scripts/survival_patterns.gd)

MANDATORY first read — Activity-scaled vitals, MultiMesh populate, threaded chunk load, WorkerThreadPool noise chunks (generate_noise_chunk_async), GridMap snap/place, Persist collect, deep duplicate(true).

[status_depletion_manager.gd](scripts/status_depletion_manager.gd)

MANDATORY for needs — Activity-scaled hunger/thirst in _physics_process (aligns with NEVER: no constant decay).

[inventory_data.gd](scripts/inventory_data.gd)

Core Resource-based grid inventory: stack limits, metadata, add/remove.

[inventory_slot_data.gd](scripts/inventory_slot_data.gd)

Lightweight UI↔logic slot DTO.

[inventory_slot_resource.gd](scripts/inventory_slot_resource.gd)

Serializable slot Resource with durability tracking.

[modular_inventory_controller.gd](scripts/modular_inventory_controller.gd)

Controller wiring inventory data to UI signals.

[interactable.gd](scripts/interactable.gd)

Universal harvest / pickup / world-trigger interface.

[crafting_recipe_processor.gd](scripts/crafting_recipe_processor.gd)

Ingredient check → consume → grant result (discovery-friendly).


Decision Tree — Survival Systems

| Need | Route |

|------|-------|

| Item / recipe / durability data | Custom Resource + inventory_slot_resource.gd |

| Bag / stack / weight | inventory_data.gd + modular_inventory_controller.gd — weight caps / drag-drop UI → godot-inventory-system (Do NOT re-teach grid UI here) |

| Hunger / thirst | status_depletion_manager.gd — set sprinting from movement |

| Harvest / open / pickup | interactable.gd |

| Craft | crafting_recipe_processor.gd |

| Base build snap | survival_patterns.gd place_if_empty / GridMap |

| Forest foliage | MultiMesh via populate_nature — never 10k MeshInstance3D |

| Chunk stream | load_world_chunk threaded path in survival_patterns |

| Procedural noise / biomes at scale | generate_noise_chunk_async in survival_patterns — or MANDATORY godot-procedural-generation when terrain exceeds chunk helpers |

| Phase | Peer skills | Purpose |

|-------|-------------|---------|

| 1. Data | godot-resource-data-patterns | Item/recipe Resources |

| 2. UI | godot-ui-containers, godot-inventory-system | Grid + drag/drop |

| 3. World | godot-procedural-generation, godot-3d-world-building | Noise, GridMap |

| 4. Logic | godot-signal-architecture, godot-state-machine-advanced | Needs + interaction |

| 5. Save | godot-save-load-systems | World + inventory + recipes |

Key Mechanics (pointers, not tutorials)

Needs (activity-scaled)

Wire movement → StatusDepletionManager.sprinting. Empty vitals → gradual HP drain + warnings (never instant death). See script — do not reintroduce constant decay_rate in _process.

Tiered Tool Scaling

Stone Axe 1 yield / Steel Axe 5 yield / proximity Auto-Saw — encode as item Resource metadata, not hardcoded harvest scripts.

Spawn Safe Zones

Re-roll spawn points outside bed/player_beds radius before enabling threat spawners.

Godot-Specific Tips

Common Pitfalls

  1. Tedium — Scale gather yield with tool tier.
  2. Inventory clutter — Generous stacks + storage sinks.
  3. No goals — Tech tree / boss pressure beyond pure survive.

Elite Technical Implementations

MANDATORY when starting base-building snap or biome/noise work: read elite-technical-patterns.md. Do NOT Load for first-pass needs/inventory/crafting — use the script catalog above.

Deep recipes (on demand)

| Topic | Reference / script |

|-------|-------------------|

| Needs / crafting / tools | key-mechanics.md + bundled survival scripts |

| Base build grid snap | elite-technical-patterns.md + base_builder.gd |

| Biome / spawn safety | elite-technical-patterns.md + biome_generator.gd |

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.