Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.9.0

Quest chapters.

- **Quests can open tiers.** `quests.tier-unlock` in `config.yml`: `level` (the default; tiers open by Wranglin' level, as before), `either` (the level, or sooner through a quest) or `quest` (only a quest opens Holler, Yonder and Backcountry; Yard is always open, so nobody is locked out of everything). Messages about a locked critter say which way opens it.
- **New admin commands for quests:** `/mobsquad unlock <player> <tier>`, `/mobsquad lock <player> <tier>` and `/mobsquad page <player> <critter>`. A quest plugin runs them from the console, for example through BetonQuest's command event. The player is told when a tier or page opens. A quest unlock is saved in the player's file as a `tier` line; older versions skip that line, and older files load with none.
- **Placeholders, if PlaceholderAPI is installed:** `%mobsquad_level%`, `critters`, `pages`, `tier_<tier>`, `page_<critter>`, `has_<critter>` and `best_<critter>`, for quest conditions. Only the player's own progress, only while they're online, and nothing about anyone else or where they are.
- MobSquad doesn't link to BetonQuest's code, so it works with any BetonQuest version (the live server runs a 3.3 development build) and with other quest plugins.
- Tested: unit tests (54: every unlock mode, Yard always open, the setting and a bad value, saving and old files, every placeholder and unknown ones). Not run on a server yet: the commands, the PlaceholderAPI registration and a real BetonQuest chapter. No chapters are written yet; they're server content.

## 0.8.1

- **Pigs, cows, chickens and frogs also glow in their coat.** They have only three looks each, so a look repeats for three or four coats; now they also glow in the coat's color and leave its trail, so every coat looks different. Wolves and cats keep the variant only. The list is `glow-too` in `coats.yml`. A copy of `coats.yml` already in `plugins/MobSquad` without that line gets the built-in list. A name that isn't a variant critter is skipped with a warning.
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Coax mobs into critters for Paper: they follow you, fight only hostile mobs, and live safely in a shared Bunkhouse. No client mods. Gotta coax em all... Pokemob!

**Status:** 0.8.1. Spirit coats; in 0.8.1 pigs, cows, chickens and frogs also glow and worlds can be set to no glow, checked by unit tests only so far. 0.8.0 passed with bots on throwaway Paper 26.1.2 and 26.2 servers (the full suite, 197 checks each) and on 26.3 (95 checks), then the Bunkhouse and coats parts again on all three after a last small change (43 checks on 26.1.2 and 26.2, 26 on 26.3). On 26.3 the bots can't use blocks, so the Bunkhouse menu, picking a coat in it and everything sent out from it didn't run there; the coats themselves ran, with the sidekick getting critters out. Bots can't crouch where the server sees it, so the creeper and fox puzzles were tested with a test-only stand-in for crouching; real crouching is untested. The daily sidekick roll is covered by unit tests only, since it needs 10 hours out. Nothing has been seen in a real game client yet, so how the glow, the particle trail and the chicken variants look is unchecked. Wolves, cats, pigs, cows and frogs aren't critters yet; only the chicken's variants ran on a server. The AuraSkills and Multiverse checks from 0.6.0 weren't rerun.
**Status:** 0.9.0. Quest chapters (tier and page unlocks, placeholders), checked by unit tests only so far. 0.8.1: pigs, cows, chickens and frogs also glow and worlds can be set to no glow, also unit tests only. 0.8.0 passed with bots on throwaway Paper 26.1.2 and 26.2 servers (the full suite, 197 checks each) and on 26.3 (95 checks), then the Bunkhouse and coats parts again on all three after a last small change (43 checks on 26.1.2 and 26.2, 26 on 26.3). On 26.3 the bots can't use blocks, so the Bunkhouse menu, picking a coat in it and everything sent out from it didn't run there; the coats themselves ran, with the sidekick getting critters out. Bots can't crouch where the server sees it, so the creeper and fox puzzles were tested with a test-only stand-in for crouching; real crouching is untested. The daily sidekick roll is covered by unit tests only, since it needs 10 hours out. Nothing has been seen in a real game client yet, so how the glow, the particle trail and the chicken variants look is unchecked. Wolves, cats, pigs, cows and frogs aren't critters yet; only the chicken's variants ran on a server. The AuraSkills and Multiverse checks from 0.6.0 weren't rerun.

## What it does

Expand All @@ -26,6 +26,7 @@ Coax mobs into critters for Paper: they follow you, fight only hostile mobs, and
- **Bunkhouses.** An admin marks a vault block as a Bunkhouse. Anyone who right-clicks it sees only their own critters. Click one to send it out or call it back. Critters never exist as items, so they can't be dropped, traded or duplicated.
- **Following.** A critter out with you walks after you and steps beside you if it's left more than 24 blocks behind.
- **Wranglin'.** Coaxing earns Wranglin' experience. One critter can be out at once, two from level 10 and three from level 25. Mob tiers unlock at levels 1, 10, 25 and 40.
- **Quest chapters.** A quest plugin can open tiers and journal pages. `quests.tier-unlock` in `config.yml` decides how tiers open: `level` (the default, level only), `either` (the level, or sooner through a quest) or `quest` (only a quest opens Holler, Yonder and Backcountry; Yard is always open). A quest runs `/mobsquad unlock <player> <tier>` or `/mobsquad page <player> <critter>` from the console, for example through BetonQuest's command event. With PlaceholderAPI installed, quest conditions can check the player's own progress: `%mobsquad_level%`, `%mobsquad_critters%`, `%mobsquad_pages%`, `%mobsquad_tier_<tier>%`, `%mobsquad_page_<critter>%`, `%mobsquad_has_<critter>%` and `%mobsquad_best_<critter>%` (the highest level among that kind, 0 if none). Values are only for online players, and none of them name another player or a place.
- **AuraSkills.** If AuraSkills is installed, Wranglin' shows up as one of its skills, with MobSquad's level. MobSquad keeps the level in the player's file and copies it to AuraSkills when it changes and when the player joins, so a level set with AuraSkills' own commands is put back. AuraSkills' XP multipliers and rewards don't apply to Wranglin'. The skill's AuraSkills settings are in `plugins/MobSquad/auraskills`. Without AuraSkills, nothing changes.
- **World groups.** With Multiverse-Inventories, critters cross to another inventory group only through the Bunkhouse: crossing sends the ones out with you home, and you can send them out again from a Bunkhouse there. The sidekick comes along, one copy. A block the enderman fetches only goes into your inventory in the world it came from.
- **Safety.** A critter never targets or hurts a player, and players can't hurt it. It never changes a block on its own, explodes, burns in the sun or wanders off by teleporting. The two specials that touch blocks go through the server's own checks: the bee's crops grow through the same event as natural growth, and the enderman takes a block only where a block-break check as you passes. Out of health, it's tuckered out: it drops nothing and rests in the Bunkhouse for 5 real minutes.
Expand Down Expand Up @@ -53,6 +54,8 @@ Settings are in `plugins/MobSquad/config.yml`: worlds where MobSquad is off, the
| `/mobsquad xp <player> <amount>` | admins | Sets a player's Wranglin' experience. |
| `/mobsquad level <player> <critter> <level>` | admins | Sets every critter of that kind a player has to a level. |
| `/mobsquad sidekick <player> <critter\|none>` | admins | Makes a player's critter of that kind their sidekick, or clears it. |
| `/mobsquad unlock <player> <tier>` and `lock` | admins, quests | Opens (or takes back) Holler, Yonder or Backcountry for a player through a quest. |
| `/mobsquad page <player> <critter>` | admins, quests | Opens a critter's journal page and tells the player. |
| `/mobsquad reload` | admins | Rereads config.yml. |

`/ms` works too. Permissions: `mobsquad.use` (everyone) and `mobsquad.admin` (ops).
Expand Down
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "com.extantape"
version = "0.8.1"
version = "0.9.0"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
Expand All @@ -12,16 +12,20 @@ java {
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.extendedclip.com/releases/")
}

// Built against the oldest supported Paper, so nothing newer than 26.1 sneaks in.
val paperApi = "io.papermc.paper:paper-api:26.1.2.build.74-stable"
// Optional: Wranglin' as an AuraSkills skill. Reached only when AuraSkills is installed.
val auraSkillsApi = "dev.aurelium:auraskills-api-bukkit:2.4.0"
// Optional: placeholders for quest conditions. Reached only when PlaceholderAPI is installed.
val placeholderApi = "me.clip:placeholderapi:2.12.3"

dependencies {
compileOnly(paperApi)
compileOnly(auraSkillsApi)
compileOnly(placeholderApi)

testImplementation(paperApi)
testImplementation(platform("org.junit:junit-bom:5.11.4"))
Expand Down
1 change: 1 addition & 0 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Dated decisions for this repo, newest last.
- Pigs, cows, chickens and frogs: "Add glow and trail (Recommended)". They wear their variant and also glow in the coat's color with its trail, so each coat looks different even where the three looks repeat. Wolves and cats keep the variant only. It's the `glow-too` list in `coats.yml` (0.8.1), so an admin can change it.
- Magic worlds: "We have two magic worlds…? One adult and one kid one." On Sonoran those are `magic` and `ninos_magic` (both exist there; checked 2026-11-22). Listing them in `spirit-coats.worlds` is a live change and waits for the owner's go.
- **No-glow worlds (lead, 2026-11-22, kids first).** The trust-and-safety review found the glow outline shows through walls to everyone tracking the critter in that world, and a coated critter is always near its owner, so in `ninos_magic` it could point to a kid's hidden base. 0.8.1 adds `spirit-coats.no-glow-worlds` (empty by default): coats there keep their variant and trail but get no outline. The outline goes off when the owner enters, before the critter follows; the trail there is sent only within 32 blocks; a no-glow entry that isn't a coat world is warned about at start, since the setting fails open on a typo. The live go request proposes `ninos_magic` there; the owner decides.
- **Quest chapters (0.9.0), lead's design, 2026-11-22, for the owner's say.** The brief: "Quest chapters introduce new mobs and unlock tiers. Without quests, tiers unlock by Wranglin' level alone." MobSquad offers console commands (`unlock`, `lock`, `page`) and PlaceholderAPI values that any quest plugin can use, and doesn't link to BetonQuest's own API, since the live server runs a 3.3 development build whose API can change. `quests.tier-unlock` defaults to `level`, so installing 0.9.0 changes nothing until a server opts in; `quest` keeps Yard open. The chapters themselves are server content, to be written with the narrative designer once the owner picks how tiers should open.
- **Live go: glow in both worlds (owner, Simon chat, 2026-11-22), relayed by the chief of staff.** He answered "Go, glow in both worlds"; the option read "Same look everywhere. The glow can give away where a kid is." The question told him the trust-and-safety finding: the outline shows through walls to everyone in that world, and in the kids' world it could lead someone to a kid's hidden base. He chose that look knowing it. The live install sets `spirit-coats.worlds: [magic, ninos_magic]` with no `no-glow-worlds`, after a bot run and a rehearsal on a copy of Sonoran. `no-glow-worlds` stays in the plugin, so listing `ninos_magic` later is a one-line config change and `/mobsquad reload`.

## 2026-11-15
Expand Down
13 changes: 13 additions & 0 deletions docs/test-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ Kept by this repo's owning session, per `~/Code/CLAUDE.md`, "Test self-audits".
- **Checked by hand:** on MobShowdown, a full run (42/42) and a run interrupted after 45 seconds both left the work folder empty, with no Java left and the test port closed. The other harnesses use the same code.
- **Gap skipped:** the suite can't check its own leftovers, because cleanup runs as the process exits. A wrapper that checks after the suite exits would add more machinery than the check is worth here.

## 2026-11-22: quest chapters (0.9.0)

| Promise | Test |
| --- | --- |
| By default tiers open by level alone; quest unlocks change nothing | unit `levelModeIgnoresQuestsSoNothingChangesByDefault`, `theSettingDefaultsToLevelAndABadValueIsWarnedAbout` (shipped config is `level`) |
| `either`: a quest opens a tier early, the level still works, one tier's quest doesn't open another | unit `eitherModeLetsAQuestOpenATierEarly` |
| `quest`: level alone doesn't open a tier; Yard always open in every mode (fails safe, nobody locked out) | unit `questModeNeedsTheQuestButYardIsAlwaysOpen` |
| Locked messages say how a tier opens | unit `theLockedMessageSaysHowToOpenIt` |
| Quest unlocks are saved; old files load with none; a bad tier line is skipped, never guessed | unit `questUnlocksAreSavedWithThePlayer`, `filesFromBeforeQuestsLoadWithNoneAndABadTierLineIsSkipped` |
| Placeholders give only the player's own progress; unknown ones are left as written | unit `placeholdersReportOnlyThePlayersOwnProgress` |

**Gaps:** the `unlock`, `lock` and `page` commands and the PlaceholderAPI registration haven't run on a server (no throwaway servers on 2026-11-22); bot checks for them go in with the next bot run. Who may run the commands is `mobsquad.admin`, the same Brigadier `requires` as the other admin commands, which the bot suite already checks for a player without it. A real BetonQuest chapter is untested until one is written.

## 2026-11-22: spirit coats (0.8.0)

| Promise | Test |
Expand Down
Loading
Loading