
muonpokemon
“Create a mod to add a new command /poketest <player> <pokemon> <aspect> <time> <player> is the online player <pokemon> is the name of a Pokemon <aspect> is...
00—cobblemon-fabricServer1.21.1mod
MuonPokemon Loan Command
- Added the
/poketest <player> <pokemon> [aspect] <time>server command. It lends the target online player a level‑100 Pokémon with 6×31 IVs, optional forced aspect, and the specified loan duration in minutes. - Loaned Pokémon are tagged so they cannot be traded, bred, deposited into a PC, or counted toward Pokédex progress. The tags live in the Pokémon's persistent NBT, so the restrictions survive restarts.
LoanedPokemonManagerwatches every loan on each server tick, shoves the Pokémon back into the party if someone tries to stash it in the PC, and automatically removes it (with a player notification) once the timer expires.- Breeding (
CollectEggEvent) attempts that involve a loaned Pokémon are cancelled with a chat warning, and Pokédex updates triggered by the loaned Pokémon are blocked via the pre-change event. - The command and tracker rely on Cobblemon's storage APIs, so despawning and party refreshes happen instantly on both the client and server.