All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Cobblemon Pasture Limit

Cobblemon Pasture Limit

by zmoonmaru • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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

  1. Install Fabric, Fabric API, and Cobblemon 1.7.3
  2. Place pasturelimit.jar in your server's mods/ folder
  3. (Recommended) Install LuckPerms for rank-based limits
  4. 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:

  1. Click the Download button above and select your Minecraft version (1.21.1) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Cobblemon Pasture Limit file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
1mo ago 1
1.21.1
Fabric
2mo ago 1
1.21.1
Fabric
3mo ago 1
1.21.1
Fabric
3mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Fabric
6mo ago 1
## 1.2.0-beta3

  • 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.json now includes // comments** explaining each option. Comments are stripped on load; values are preserved. After updating, restart or /pasturelimit reload to regenerate the documented file.
  • Rank sample defaults also set virtual_pasture_blocks_limit where 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, configurable enforce_message
  • Public API: com.pasturelimit.pasturelimit.api.PastureLimitAPI
  • Fakemon-friendly species matching (path / namespace / showdown-style)
  • Species cap always uses max (max_stacked on 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_limit and per-player equivalents

### Notes for server owners

  • Pasture/Pokémon counts in check / checkblocks / enforce only include **loaded** chunks. Use /pasturelimit recalc <player> if numbers look wrong after travel.
  • Server-side only** — players do not need the mod.
# PastureLimit 1.2.0-beta2

### Added
  • Public API** for other mods to query limits in-memory (no config file reads)
  • Per-species max_stacked** - optional stacked cap that overrides max when 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**
# Version 1.2.0-beta1

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>**
Force-recalls excess Pokémon so a player is back under global species/label limits.
  • Newest first
  • Supports selectors: @a, @p, @r, or a player name
  • Only runs when an operator uses the command

  • Configurable enforce message**
New config key 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**
Breaking only the upper half of a virtual pasture no longer leaves the block count stuck. Same double-block handling as Cobblemon pastures in 1.1.0, with an extra safety net on 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.
# Version 1.1.0

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**
When a player hit their pasture block limit, the client would still briefly place a “ghost” pasture and consume the item until they switched slots or relogged. Placement is now properly cancelled and the inventory is force-synced instantly. No more ghosts.

  • Top-half break not counting**
Breaking only the top half of a pasture block no longer left the block count stuck. The tracker now correctly detects both the top and bottom half of the double block.

### Added / Improved
  • Configurable message location**
New option deny_message_location with four choices:
  • chat – normal chat (default)
  • actionbar – action bar only
  • both – chat **and** action bar
  • none – suppress all denial messages

  • Full formatting support**
All denial messages fully support Minecraft’s formatting codes (§c, §l, §o, colours, bold, italic, etc.).

  • Expanded YACL config screen**
The in-game config menu now exposes:
  • 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!
## Version 1.0.4

  • 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>


## Small Update

  • 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émon
  • mythical — Mythical Pokémon
  • ultra_beast — Ultra Beasts
  • powerhouse — Pseudo-Legendaries (Dragonite, Garchomp, etc.)
  • paradox — Paradox Pokémon
  • baby — Baby Pokémon
  • starter — 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
## Minor Bugfix

  • 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.
First Release
Cobblemon Pasture Limit Icon
Download Cobblemon Pasture Limit
Select game version
Select platform