Server-side pasture block management for Cobblemon.
PastureLimit gives server owners full control over Pokémon pasture blocks with customizable limits, blacklists, and anti-farming tools. Designed specifically to work alongside PastureLoot to protect your server economy.
Features
- Rank-based limits (LuckPerms, FTB Ranks, or any Fabric Permissions API)
- Per-player limit overrides (by UUID)
- Per-dimension limits (Overworld, Nether, End)
- Species blacklist (e.g. Ditto, Smeargle)
- Label blacklist (
legendary,mythical,ultrabeast,paradox, etc.) - Per-species caps (prevent farming Ralts, Gimmighoul, etc.)
- Configurable deny messages with placeholders
- Creative mode bypass option
- In-game admin commands (
/pasturelimit reload,check,setplayer, etc.)
Why PastureLimit?
On servers running PastureLoot, players can easily exploit pastures by mass-storing high-value or farmable Pokémon. PastureLimit solves this by letting you set reasonable limits while remaining server-friendly and highly configurable.
Installation
- Install Fabric, Fabric API, and Cobblemon 1.7.3
- Place
pasturelimit.jarin your server'smods/folder - (Recommended) Install LuckPerms for rank-based limits
- Restart the server — the config file will be generated automatically
Server-side only — Players do not need to install anything.
Compatibility
- Minecraft 1.21.1
- Cobblemon 1.7.3
- Works with LuckPerms, FTB Ranks, and other permission mods
Discord
zmoonmaru
How to Install Cobblemon Pasture Limit (Mod)
Cobblemon Pasture Limit by zmoonmaru is verified for Fabric across Minecraft versions 1.21.1 (latest release: 1.2.0-beta3, file size: 104 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Cobblemon Pasture Limit file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Admin tools**
/pasturelimit check [player]** — full report: matching rank, Pokémon/stacked limits, pasture + virtual block counts, pastured totals, species caps, label caps, blacklist hits in loaded pastures. Omit player to check yourself (in-game)./pasturelimit checkblocks [player]** — block counts **and positions** for Cobblemon vs Virtual pastures. Omit player to check yourself./pasturelimit info** — richer summary (stacking, virtual defaults, rank/species/label counts).- Existing commands unchanged in behavior:
reload,recalc,recalcall,enforce,setplayer/removeplayer,setblocks/removeblocks.
- Config**
- Config options **rearranged** into clear sections (capacity → block limits → overrides → ranks → blacklists → messages).
config/pasturelimit.jsonnow includes//comments** explaining each option. Comments are stripped on load; values are preserved. After updating, restart or/pasturelimit reloadto regenerate the documented file.- Rank sample defaults also set
virtual_pasture_blocks_limitwhere relevant.
### Still included (from 1.2.0 line)
- Placement deny: ghost-block / inventory resync
- Double-block break tracking (Cobblemon + Virtual Loot)
- Deny messages +
deny_message_location(chat/actionbar/both/none) - Global
species_limits/label_limits(not per-pasture) /pasturelimit enforce <targets>(supports@a), newest-first release, configurableenforce_message- Public API:
com.pasturelimit.pasturelimit.api.PastureLimitAPI - Fakemon-friendly species matching (path / namespace / showdown-style)
- Species cap always uses
max(max_stackedon species does **not** raise the cap) - Rank fields:
limit,pasture_blocks_limit,virtual_pasture_blocks_limit,max_stacked_limit,label_limits,species_limits - Separate limits:
default_pasture_blocks_limit/default_virtual_pasture_blocks_limitand per-player equivalents
### Notes for server owners
- Pasture/Pokémon counts in
check/checkblocks/enforceonly include **loaded** chunks. Use/pasturelimit recalc <player>if numbers look wrong after travel. - Server-side only** — players do not need the mod.
### Added
- Public API** for other mods to query limits in-memory (no config file reads)
- Per-species
max_stacked** - optional stacked cap that overridesmaxwhen stacking is enabled - Rank
species_limits** and **max_stacked_limit** - ranks can override global species caps and stacked totals
Still a beta. Please test and report issues.
Discord: **
zmoonmaru**Global limits, force-recall, and [Virtual Loot](https://modrinth.com/mod/cobblemon-virtual-loot) polish.
### Breaking change
- Species and label limits are now global per player.**
Previously,
species_limits and label_limits only applied inside a single pasture block. Now they count across **all** of a player’s loaded pastures (Cobblemon + Virtual Loot).Example: with
"gimmighoul": 5, a player can have at most 5 Victini pastured in total, not 5 per block.### New
/pasturelimit enforce <targets>**
- Newest first
- Supports selectors:
@a,@p,@r, or a player name - Only runs when an operator uses the command
- Configurable enforce message**
enforce_message (placeholder %count%). Uses the same location setting as other deny messages (
chat / actionbar / both / none). Editable in YACL under Messages.
### Fixed
- Virtual Loot top-half break**
### Notes
- Only **loaded** chunks are counted and enforced (keeps it light on the server).
- Unloaded pastures are ignored until their chunk loads again.
This is a beta. Please test with players who already have a lot of restricted species pastured and report anything odd.
A quality-of-life and bug-fix update focused on the pasture **block** limit system and better control over denial messages.
### Fixed
- Ghost blocks / item desync**
- Top-half break not counting**
### Added / Improved
- Configurable message location**
deny_message_location with four choices:chat– normal chat (default)actionbar– action bar onlyboth– chat **and** action barnone– suppress all denial messages
- Full formatting support**
§c, §l, §o, colours, bold, italic, etc.).- Expanded YACL config screen**
- Default Pokémon limit
- Default pasture blocks limit
- Prevent creative bypass
- Notify on deny
- Message location
- All five denial messages (editable with formatting)
Complex lists (ranks, blacklists, species limits, etc.) remain JSON-only for precise server control.
### Technical notes
- Still fully server-side. Clients only need the mod if they want the YACL screen.
- Compatible with Cobblemon 1.7.3+. Cobblemon 1.8 should work.
- Existing configs are automatically upgraded. New keys get sensible defaults.
Thanks for the reports and testing. Enjoy cleaner pastures!
- New Feature**: You can now limit how many Pasture Blocks each player can place in the world.
Features Added:
- default_pasture_blocks_limit in config (default: 8)
- Per-rank pasture_blocks_limit support inside rank_limits
- Per-player block limit overrides
- New configurable deny message (block_limit_deny_message)
New commands:
``
/pasturelimit checkblocks <player> - Check how many blocks a player has placed
/pasturelimit setblocks <player> <limit> - Set per-player block limit
/pasturelimit removeblocks <player> - Remove per-player override
/pasturelimit recalc <player> - Resync count if it gets out of sync
`
Staff ranks can still have unlimited (-1) pasture blocks.
This pairs perfectly with the existing Pokémon limits to give you full control over pasture usage on your server.
<details>
<summary>Side Note</summary>
I had limited time testing this cuz of w*rk, lmk if it has bugs on my Discord: zmoonmaru`</details>
- Version 1.0.3**
- New Feature: Added label_limits**
- Global label caps (e.g. max legendaries or paradox per pasture)
- Per-rank label limits (overrides global)
- Supports -1 for unlimited
``
{
"label_limits": {
"ultrabeast": 2,
"paradox": 2
},
"rank_limits": [
{
"permission_node": "group.champion",
"limit": 16,
"label_limits": {
"legendary": 3,
"mythical": 3,
"paradox": 4
}
},
{
"permission_node": "group.ace_trainer",
"limit": 10,
"label_limits": {
"legendary": 2,
"mythical": 1
}
},
{
"permission_node": "group.trainer",
"limit": 6,
"label_limits": {}
}
]
}
`
Here are the most common labels you can use in blacklisted_labels and label_limits:
Main Labels
legendary — Legendary Pokémonmythical — Mythical Pokémonultra_beast — Ultra Beastspowerhouse — Pseudo-Legendaries (Dragonite, Garchomp, etc.)paradox — Paradox Pokémonbaby — Baby Pokémonstarter — Starter Pokémon
Generation Labels
gen1, gen2, gen3, gen4, gen5, gen6, gen7, gen8, gen9`### Dm me on Discord or join my server if you have any suggestions/bug reports. :3
- Version 1.0.2**
- Now works properly with Luckperms
- Fixed bug where species limits were being ignored if the species had a blacklisted label (e.g. Mew being blocked even when you set a limit for it).
- Species limits now properly override label blacklists as intended.
- Small cleanup under the hood.