1.8 KiB
1.8 KiB
AGENTS.md — Arena Mod
Mission
Build a server-first NeoForge 1.21.1 PvE arena mod. The mod must remain usable without Cobblemon, EasyNPC, Create, or any boss mod.
Working rules
SPEC.mdis the functional source of truth.ARCHITECTURE.mdis the technical source of truth.- Work only on the current unchecked phase in
TODO.md, unless explicitly asked otherwise. - Inspect the existing project and dependency versions before coding. Never invent an API.
- For optional integrations (Cobblemon/EasyNPC/third-party entities), verify the actual installed API/source before writing integration code.
- Keep optional integrations isolated; absence of an optional mod MUST NOT prevent startup.
- Prefer Minecraft/NeoForge registries and resource IDs (
namespace:path) over hard-coded vanilla lists. - Content must be data-driven where specified. Invalid content disables only the affected definition and produces a useful diagnostic; it must not crash the server.
- Inventory safety is critical. Never clear a player's original inventory until its recovery snapshot has been durably persisted.
- Avoid unrelated refactors. Keep commits/changes scoped and easy to review.
- Compile/test after each phase. Fix compilation errors before declaring a phase complete.
- Add focused tests where practical, especially for pure logic (wave budgeting, rank thresholds, validation, state transitions).
- If implementation must diverge from these docs, document the reason in
ARCHITECTURE.mdbefore proceeding. - Update
TODO.mdonly for work actually completed.
Definition of done for a phase
- Project compiles.
- Existing tests still pass.
- New behavior has a minimal test or reproducible manual test procedure.
- No optional dependency became mandatory.
- No known inventory-loss/duplication path was introduced.
TODO.mdreflects reality.