godot-game-loop-harvest

Implement data-driven resource harvesting with tool validation and item spawning in Godot 4.

488|36|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/thedivergentai/gd-agentic-skills --skill godot-game-loop-harvest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-game-loop-harvest
Source: https://github.com/thedivergentai/gd-agentic-skills/tree/main/skills/godot-game-loop-harvest
Command: npx skills add https://github.com/thedivergentai/gd-agentic-skills --skill godot-game-loop-harvest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the implementation of resource gathering mechanics in Godot 4, handling the complexities of tool validation, resource depletion, and item spawning.

Core Features & Use Cases

  • Data-Driven Resources: Define harvestable items with specific health, yield, and required tools using custom resources.
  • Tool & Tier Validation: Ensures only appropriate tools can harvest specific resources.
  • Dynamic Spawning: Handles item drops upon successful harvesting.
  • Persistence: Integrates with a respawn manager for world persistence.
  • Use Case: Implement a mining system where players use pickaxes of varying tiers to harvest different types of ores, with each successful hit depleting the ore's health and eventually dropping valuable minerals.

Quick Start

Attach the harvestable_node.gd script to a StaticBody3D node and assign the ResourceData to configure its properties.

Frequently Asked Questions about godot-game-loop-harvest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a resource harvesting system in Godot 4?

You can implement a resource harvesting system in Godot 4 by attaching the provided harvestable script to a StaticBody3D node and assigning custom ResourceData to configure health, yield, and required tools.

How does tool validation work for mining and logging mechanics in Godot?

Tool validation for mining and logging mechanics works through a data-driven setup where custom resources define specific required tools and tiers, ensuring players cannot harvest resources without the appropriate equipment.

Can I configure resource depletion and item drops without writing custom logic?

Resource depletion and item drops are handled automatically by the system, which manages node health reduction on each successful hit and dynamically spawns item drops upon depletion.

Does this Godot harvesting system support world persistence for respawning resources?

Yes, the Godot harvesting system supports world persistence by integrating directly with a respawn manager, allowing harvested resources like ores and trees to be restored across game sessions.

How do I connect harvested items to my inventory and UI in Godot?

You can connect harvested items to your inventory and UI by utilizing the system's built-in signals, which dispatch feedback events upon successful resource gathering and item spawning.