Implements timer-based building decay and resource upkeep for survival games. Covers Rust-style Tool Cupboard protection, decay rates, and server cleanup of abandoned structures.
Ships in bbeierle12-skill-mcp-claude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Timer-based building decay and resource-based upkeep for survival games.
import { DecayManager } from './scripts/decay-manager.js';
import { UpkeepSystem } from './scripts/upkeep-system.js';
import { ToolCupboard } from './scripts/tool-cupboard.js';
// Decay without protection
const decay = new DecayManager({
mode: 'rust',
decayMultiplier: 1.0
});
decay.addPiece(piece);
decay.tick(deltaTime); // Called every frame/tick
// Tool Cupboard protection
const tc = new ToolCupboard({
radius: 30,
upkeepCost: { wood: 100, stone: 50 }
});
tc.setPosition(position);
tc.depositResources({ wood: 500, stone: 250 });
// Protected pieces won't decay while upkeep is paid
See references/decay-upkeep-advanced.md for:
scripts/decay-manager.js - Tick-based decay, material rates, damage statesscripts/upkeep-system.js - Resource drain, calculation, UI datascripts/tool-cupboard.js - Protection radius, authorization, resource storagescripts/cleanup-scheduler.js - Server-side cleanup of abandoned structuresDecay serves dual purposes in survival games: gameplay balance (prevents infinite hoarding) and server performance (removes abandoned bases). The Tool Cupboard pattern elegantly ties both together—players must actively maintain bases, and inactive players' structures automatically clean up.
What SKILL.md sets; muted values are Claude Code's defaults
/bbeierle12-skill-mcp-claude:decay-upkeepfrom bbeierle12-skill-mcp-claude
bbeierle12-skill-mcp-claude@cascade-code-languages-misc-1 is listed by joshuarweaver/cascade-code-languages-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin bbeierle12-skill-mcp-claudeOther plugins' skills for the same job
78 skills in this plugin
/building-mechanicsThree.js 3D building system with spatial indexing, structural physics, and multiplayer networking. Use when creating survival games, sandbox builders, or any game with player-constructed structures. Covers performance optimization (spatial hash grids, octrees, chunk loading), structural validation (arcade/heuristic/realistic physics modes), and multiplayer sync (delta compression, client prediction, conflict resolution)./algorithmic-artCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations./