csharpfritz/aspire-minecraft/building-protection

Claude Code and agent skill by csharpfritz/aspire-minecraft

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Prevents subsystems from modifying blocks within placed building volumes using 3D bounding box clipping

Install

npx vskill@latest install csharpfritz/aspire-minecraft/building-protection

SKILL.md

Context

When multiple subsystems modify the Minecraft world (buildings, canals, rails, paths), later systems can accidentally destroy blocks placed by earlier ones. The BuildingProtectionService provides a central registry of 3D bounding boxes that other subsystems must respect.

Patterns

1. Register buildings after placement

After a building is constructed, register its 3D bounding box with the protection service. Include buffer zones for entrances and aesthetic spacing.

csharp
// Registration in StructureBuilder after building construction
protectionService.Register(
resourceName,
minX: x - 1, // 1-block buffer on sides
minY: surfaceY, // ground level
minZ: z - 2, // 2-block entrance buffer (south)
maxX: x + StructureSize,
maxY: surfaceY + 25, // full building height
maxZ: z + StructureSize
);
2. ClipFill for protected excavation

When a subsystem needs to /fill an area that might overlap buildings, use ClipFill to get non-overlapping sub-boxes.

csharp
var subBoxes = protectionService.ClipFill(minX, minY, minZ, maxX, maxY, maxZ);
foreach (var (bMinX, bMinY, bMinZ, bMaxX, bMaxY, bMaxZ) in subBoxes)
{
await rcon.SendCommandAsync(
$"fill {bMinX} {bMinY} {bMinZ} {bMaxX} {bMaxY} {bMaxZ} minecraft:air");
}
3. Axis-aligned box subtraction

SubtractBox yields up to 6 non-overlapping remainder sub-boxes when removing a protected region from a fill volume:

  • X left / X right (full Y and Z range of overlap)
  • Y below / Y above (clamped to X overlap range)
  • Z front / Z back (clamped to X+Y overlap range)
4. Initialization order matters

Buildings must be placed BEFORE canals/rails so the protection registry is populated when those systems run.

Anti-Patterns

  • Checking protection after the fact — always clip BEFORE sending /fill commands
  • Forgetting buffer zones — buildings need clearance for entrances and aesthetics
  • Relying on Y-range non-overlap — canal depth (SurfaceY-2 to SurfaceY) may not overlap building Y (SurfaceY+1 to SurfaceY+26) today, but future features might

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/csharpfritz/aspire-minecraft/building-protection/badge)](https://verified-skill.com/skills/csharpfritz/aspire-minecraft/building-protection)

Something wrong with this skill or its page? Tell us.