Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelPebbles

PixelPebbles converts Cobblemon's Bedrock-format Pokémon models and animations into skinned glb models that Pixelmon (NeoForge 1.21.1) can load with its pixelmon:assimp renderer.

Bulbasaur, Charmander, Squirtle and Pikachu, converted from Cobblemon, in Pixelmon

You end up with two packs:

  • PixelPebbles-resourcepack.zip: the converted models and their textures, under the pixelpebbles namespace.
  • PixelPebbles-datapack.zip: adds extra palettes, cobblemon and cobblemon_shiny, to each converted species (and to its forms; see In game). The stock palettes stay as they are, so the converted model sits next to the original:
/pokespawn Bulbasaur palette:cobblemon
/pokespawn Bulbasaur palette:cobblemon_shiny

Requirements

  • Python 3.10+ with numpy (only make_datapack.py runs without it). uv works well: uv run --with numpy python tools/...
  • git, to fetch Cobblemon
  • your own copy of the Pixelmon mod jar, for the datapack step

Usage

Run everything from the repository folder. Every path has a default: the Cobblemon clone goes in ./cobblemon and everything the tools write goes in ./out. Pass --help to any tool for its options.

  1. Fetch Cobblemon. This makes a sparse, blob-filtered clone of only the folders the converter reads:

    python tools/fetch_cobblemon.py
    
  2. Convert every model to out/batch/<folder>/*.glb, plus a summary.json of what worked. Use --only 0001_bulbasaur,0025_pikachu to try a few first.

    uv run --with numpy python tools/batch.py
    
  3. Build the resource pack in out/PixelPebbles-resourcepack.zip:

    uv run --with numpy --with pillow python tools/build_resourcepack.py
    
  4. Make the datapack from your own Pixelmon jar, or from a folder that contains data/pixelmon/species:

    python tools/make_datapack.py --pixelmon path/to/Pixelmon-1.21.1-<version>.jar
    

    PixelPebbles does not include or ship any of Pixelmon's species data. That data belongs to Pixelmon, so this step runs on your machine, against your own install. It reads each species file from your jar, adds the palettes described below to the matching forms and genders, and writes the result into out/PixelPebbles-datapack.zip. Run it again whenever you update Pixelmon or rebuild the resource pack. Please don't share the generated datapack.

    Already using datapacks that change species files? A datapack replaces a species file whole, so normally only one pack's version of, say, 001_bulbasaur.json wins. Instead, give --pixelmon again for each of those datapacks (zip or folder), after the jar, in the order they load, lowest first:

    python tools/make_datapack.py --pixelmon Pixelmon.jar --pixelmon saves/MyWorld/datapacks/my-tweaks.zip
    

    The palettes are added on top of your versions, so your changes are kept. Then put PixelPebbles above those datapacks in the load order (/datapack list shows it), and run this again whenever they change.

  5. Install

    • Copy PixelPebbles-resourcepack.zip into .minecraft/resourcepacks/ and enable it in game. On a server, every player needs it (or the server can offer it as its resource pack).
    • Copy PixelPebbles-datapack.zip into saves/<world>/datapacks/, or into the server's <world>/datapacks/, then /reload or restart.

Each tool can also be run on its own: tools/convert.py <folder> converts one model, and tools/kposer.py <poser id> shows how a Kotlin poser is read.

In game

Charizard, Alolan Vulpix, Hisuian Decidueye, Lucario, Gengar and Dragonite in Pixelmon

Every converted Pokemon gets palettes named cobblemon and cobblemon_shiny, on the Pixelmon form that matches each Cobblemon variant:

/pokespawn Bulbasaur palette:cobblemon
/pokespawn Vulpix form:alolan palette:cobblemon_shiny
/pokespawn Shinx gender:female palette:cobblemon
  • Forms: regional forms, Burmy cloaks, Shellos seas, Unown letters, Tauros breeds and so on are matched by name.
  • Genders: species with a separate female model get it for females.
  • Cobblemon-only variants have no Pixelmon form, so they become extra palettes on the default form, named after their aspects: palette:cobblemon_flower_blue on Flabebe, palette:cobblemon_large on Pumpkaboo, and so on. Run make_datapack.py --verbose to see every mapping.
  • Glow: emissive texture layers become Pixelmon emissive textures. Like Pixelmon's own, they only show up close by, and only with emissive textures turned on in Pixelmon's config.
  • Battle stance: species with a battle idle use it while in battle.
  • Clips: Pixelmon plays idle, walk, fly, swim and idle_swim. The models also carry sleep, cry, faint, physical, special_attack, status and recoil wherever Cobblemon has them. Pixelmon doesn't play those by itself, but a battle animation datapack can, with a pokemon_animation action that names the clip.
  • Hidden parts: parts that Cobblemon hides in some poses stay hidden in the matching clips. For example, Pidgey's open wings only show while it flies, and Decidueye's arrow is hidden.
  • Large models with more than 200 bones (Pixelmon's limit) have their still bones merged into the bones that move.

Normal and shiny Charizard, red and blue flower Flabébé, and male and female Shinx

Known limitations

  • Animated textures (fire, water and screens on 18 species) use their first frame: Pixelmon models have no texture animation.
  • Cosmetic items are not converted.
  • Alpha Pokemon's glowing eyes are left out: Pixelmon has no alpha Pokemon.
  • A few upstream animation formulas are malformed and play as 0, and 9 models have no idle animation upstream.
  • Cobblemon variants that combine a form with a cosmetic option go on the default form, not on that form.

Licensing

  • The tools in this repository are licensed under the Mozilla Public License 2.0.
  • The converted assets (models, animations and textures) keep Cobblemon's licence for them: the Creative Commons Attribution-NonCommercial 3.0 Unported licence (CC BY-NC 3.0). Cobblemon's models folder carries that licence, and the licence file is copied next to each model in the pack. The resource pack's CREDITS.md gives the licence for each species, and the licence texts are in its licenses/ folder.

The screenshots in docs/ show converted Cobblemon models, so they are under CC BY-NC 3.0 too.

All models, animations and textures are the work of the Cobblemon team and contributors. Thank you for making them and sharing them openly. PixelPebbles only converts them.

Disclaimer

PixelPebbles is an unofficial fan project. It is not affiliated with or endorsed by Cobblemon, Pixelmon, Nintendo, Game Freak or The Pokémon Company. Pokémon and Pokémon character names are trademarks of Nintendo, Game Freak and The Pokémon Company.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages