2.6 KiB
2.6 KiB
type, title, description, status
| type | title | description | status |
|---|---|---|---|
| User Story | US-007: Capture and place mobs as a Tamer | Let the Tamer move supported mobs without losing or duplicating them. | done |
US-007: Capture and place mobs as a Tamer
As the Tamer, I want to capture a mob and release it elsewhere so that I can relocate creatures safely.
Acceptance criteria
- The Tamer can use a named fishing rod on a supported targeted mob to capture it with no cooldown.
- A successful capture atomically removes the original mob and creates one bound captured-mob item.
- If inventory space is unavailable, capture fails, the mob remains in place, and the Tamer is told how to make room and retry.
- Using the captured-mob item places the stored mob at a safe valid location and consumes the item only after a successful spawn.
- Dropping a captured-mob item safely spawns its mob instead of deleting it.
- Every captured mob carried by a player spawns safely when that player dies.
- Ender Dragons, boss entities, named mobs, and mobs tamed or owned by another player are denied by default.
- Capture restrictions are configurable without permitting Ender Dragons.
- Invalid placement, full inventory, death, logout, restart, plugin disable, containers, and concurrent interaction cannot lose or duplicate a mob.
- Stored mob data is validated defensively before spawning and cannot execute untrusted serialized behavior.
- When a player loses the Tamer class, every captured mob in their custody is automatically released at the former Tamer's location.
- Ordinary inventory items are not dropped or changed during automatic release.
- Each captured-mob item and custody record is removed only after its mob spawns successfully.
- Multiple captured mobs are released without duplicating entities or custody records.
- If the former Tamer is offline or no safe release location is available, release is deferred without losing the captured mob.
- A deferred release is retried when the former Tamer next logs in or reaches a safe location.
- Tyrant death, class reassignment, opt-out, administration, and other Tamer-removal paths use the same release behavior.
Validation
Automated tests verify that only former Tamers are processed, offline custody remains deferred, successful releases remove only their corresponding custody records, and failed releases remain available for retry. The complete ./gradlew clean check jar lifecycle passes.