# godot-game-loop-harvest

godot-game-loop-harvest sets up data-driven resource harvesting for Godot 4 with tool tier checks, hit tweens, FastNoiseLite veins, and UNIX offline progression.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 313 installs · ★ 983 repo stars
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-game-loop-harvest/SKILL.md
- Updated: 2026-10-16
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/godot-game-loop-harvest

## What it does

This skill outlines a modular gathering loop for mining, logging, and foraging in Godot 4. Interactable objects use `StaticBody3D` paired with `harvestable_node.gd`. Hitting an object routes through `apply_hit`, validating tool categories and tiers defined in `HarvestToolData` enums before emitting yield or damage signals to inventories and HUDs.

Persistence and world respawns rely on an autoloaded `HarvestRespawnManager`. Real-world offline progress uses `Time.get_unix_time_from_system()`. Cluster distribution across terrain relies on `FastNoiseLite` height thresholds so nodes appear in natural formations.

Mutating runtime hit points or durability directly on a shared `.tres` resource corrupts every instance in memory unless `duplicate(true)` runs first. Non-uniform scaling on 3D collision shapes is prohibited because it ruins raycast registration.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-harvest -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-game-loop-harvest/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-game-loop-harvest/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-harvest -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-game-loop-harvest/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-harvest -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-game-loop-harvest/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills skills/godot-game-loop-harvest
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-game-loop-harvest/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-harvest -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-game-loop-harvest
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-game-loop-harvest/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-harvest -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-game-loop-harvest/SKILL.md

## When to use it
- configure resource harvesting in Godot 4 using Resource assets
- validate tool tiers and weapon types on harvestable objects
- calculate offline progression rewards using UNIX timestamps
- distribute ore nodes procedurally with FastNoiseLite masks

## Example prompts
- Create a harvestable tree node using StaticBody3D and harvestable_node.gd with hit shake logic
- Implement offline mining yield calculation based on Time.get_unix_time_from_system
- Generate mineral vein clusters on the terrain using FastNoiseLite thresholds

## Similar
- [godot-tilemap](https://affpapa.org/en/nevibecode/skills/godot-tilemap.md) — skill · 11900 installs
- [godot-mcp](https://affpapa.org/en/nevibecode/mcp/sandraschi-godot-mcp.md) — MCP server · ★ 6 repo stars
- [game-godot-specialist](https://affpapa.org/en/nevibecode/skills/game-godot-specialist.md) — skill · ★ 57 repo stars
- [godot-physics](https://affpapa.org/en/nevibecode/skills/godot-physics.md) — skill · 12400 installs
- [scenario-godot-animation](https://affpapa.org/en/nevibecode/skills/scenario-godot-animation.md) — skill · 458 installs
- [godot](https://affpapa.org/en/nevibecode/skills/godot.md) — skill · 3 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 100 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
