Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
REQUIRES PEHKUI | Optional - Heavily Recommend Collision Fix (Client)
Check out an extended version: ASAS: Trainer's Influence
Add more variance to Cobblemon by changing sizes without touching hitboxes!
I handpicked the max/min height and width difference so the hitbox does not feel janky (used Gengar as comparison). A Pokémon can be from 0.4x to 1.75x fatter, and from 0.45x to 1.65x taller, and will preserve its size after captured.
Works with every Pokémon and Fakemon.
Should work with any version and any mod/datapack. Purely visual, does not change cobblemon gimmicks.
Since R3.0:
If you're using a mod/datapack that uses pehkui to change player size, the Pokemon you send out will match your current size!
I felt it was appropriate this being the only exception where hitboxes should change.
Technical stuff read only if you want
To my knowledge there isn't a way to track a captured pokemon so I had to come up with my own way. When a Pokemon spawns the following will happen to it:-
Random size scale within boundaries (Height: 0.85x to 1.25x, Width: 0.9x to 1.2x).
-
Read Pokemon's Nature.
-
Multiply a fixed value to its size according to the Nature.
Why?
To my knowledge, Nature is the only thing that doesn't change about a Pokemon, so it's the only thing I can latch on to when a Pokemon is captured.
In reality, Nature is the only thing the datapack sees when ballparking sizes.
Regarding matching player size:
-
Check if trained Pokemon exists.
-
Get pehkui player data and store on a scoreboard.
-
Use an interval notation system to apply a scale for every size until it starts failing "execute if" tests at an interval (check functions/actions/base).
I also left comments spread out the datapack so people can check.
DISCLAIMER: I am aware that PokeSizes Cobblemon exists and is a very similar, but not the same, concept.