Compare commits

..
Author SHA1 Message Date
Paul 396ab13164 1.9 in gradle properties 2026-09-06 20:01:10 +10:00
Paul 4eb39566fa Resnap your shot 2026-09-06 11:52:33 +10:00
Paul b33536e872 Not snapshot 2026-09-06 11:24:44 +10:00
Paul 5957ddae58 Merge remote-tracking branch 'origin/main' 2026-09-06 10:54:43 +10:00
Paul fcb798161e A bunch more changelog cleanup [skip-ci] 2026-09-06 10:54:30 +10:00
Polymeta 357ac35802 Merge branch 'implement_pokemon' into 'main'
implement_pokemon

See merge request cable-mc/cobblemon!2380
2026-09-05 23:27:50 +00:00
Paul 25c6fb6d31 Merge remote-tracking branch 'origin/lang-updates' 2026-09-06 09:18:08 +10:00
Polymeta 7fd9b678f1 Merge branch 'implement_pokemon_local' into 'implement_pokemon'
Quick-fix a few learnset gaps

See merge request cable-mc/cobblemon!2371
2026-09-05 23:12:55 +00:00
Konoha DandPolymeta 169e06a26f Quick-fix a few learnset gaps 2026-09-05 23:12:55 +00:00
Polymeta ecfc71bfd1 Merge branch 'implement_pokemon' into 'main'
implement_pokemon

See merge request cable-mc/cobblemon!2379
2026-09-05 23:01:10 +00:00
Polymeta f2919aa75d Merge branch 'tm-machine-loop-sound-fix' into 'main'
Fix TM Machine sound not looping properly when UI is open

See merge request cable-mc/cobblemon!2378
2026-09-05 23:00:56 +00:00
Polymeta 336b076eee Merge branch 'tm-drop-fix' into 'main'
Fixed neoforge tms being dropped in GUI when applied to pokemon through TMM

See merge request cable-mc/cobblemon!2377
2026-09-05 23:00:15 +00:00
ewwww 7a970b4bc1 taillow z-fighting fix + boltund neck centering 2026-09-05 18:20:29 -04:00
plastered_crab 1947450d77 Fix TM Machine sound not looping properly when UI is open 2026-09-05 15:14:46 -07:00
Gertimoshka de94721703 Fixed neoforge tms being dropped in GUI when applied to pokemon through TMM 2026-09-05 23:58:56 +02:00
Polymeta c6e217dda7 Merge branch 'implement_pokemon' into 'main'
implement_pokemon

See merge request cable-mc/cobblemon!2376
2026-09-05 21:24:33 +00:00
ewwww 49f4a254d1 these got fixed and reverted 🥀 2026-09-05 17:06:46 -04:00
Polymeta b0886449bb Merge branch 'move-sync-fix' into 'main'
Fix learnset not syncing TMs or Egg moves.

Closes #2058

See merge request cable-mc/cobblemon!2375
2026-09-05 21:00:54 +00:00
Deltric aca61300d6 Fix learnset not syncing TMs or Egg moves. 2026-09-05 15:42:45 -05:00
Polymeta 5667ddf6a2 Merge branch 'implement_pokemon' into 'main'
implement_pokemon

See merge request cable-mc/cobblemon!2374
2026-09-05 20:10:27 +00:00
ewwww 702ce3b8f8 added various cries 2026-09-05 15:51:30 -04:00
Polymeta 096136b48e bucket tweaks 2026-09-05 19:21:55 +00:00
Polymeta 25bcd1dec2 alphas have two tms for sure 2026-09-05 19:18:24 +00:00
ewwww a9432fc1de Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-09-05 14:59:11 -04:00
Polymeta 7ec7152ec3 Merge branch 'display-case-cull-fix' into 'main'
Fixed incorrect culling of display case

See merge request cable-mc/cobblemon!2370
2026-09-05 16:33:11 +00:00
Polymeta 0ac7f664f1 Merge branch 'rocky-tidepool-water-fix' into 'main'
fixing some blockstate frozen water

See merge request cable-mc/cobblemon!2372
2026-09-05 14:52:37 +00:00
Slippy 4550cf31ed fixing some blockstate frozen water 2026-09-05 09:34:12 -05:00
Gertimoshka 4d783b2d15 Fixed incorrect culling of display case 2026-09-05 15:27:30 +02:00
Polymeta c0fc28d61d Merge branch 'move-sound-implementation' into 'main'
Quick sound implementation

See merge request cable-mc/cobblemon!2367
2026-09-05 12:41:14 +00:00
Polymeta 3701ae7dac Merge branch 'implement_pokemon' into 'main'
Implement pokemon typo fix

Closes #2049 and #2050

See merge request cable-mc/cobblemon!2369
2026-09-05 12:39:41 +00:00
ewwww b4cc95b3bf added bonk to duraludon's battle_cry 2026-09-05 08:24:32 -04:00
Jerzykv eb83d11952 Bergmite typo fix 2026-09-05 14:02:57 +02:00
geumuandWeblate dc2ffa7899 Translated using Weblate (Korean)
Currently translated at 99.6% (9436 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ko/
2026-09-05 09:41:24 +00:00
Paul a80689609c Merge remote-tracking branch 'origin/main' into implement_pokemon 2026-09-05 19:28:24 +10:00
Paul 42c2eab418 A bunch of changelog cleanup [skip-ci] 2026-09-05 19:26:19 +10:00
Sterrezo 7c1c0dd3c8 Merge branch 'main' into move-sound-implementation 2026-09-05 10:58:07 +02:00
Sterrezo 320f5f7090 Added sounds to Blizzard and Horn Drill 2026-09-05 10:57:55 +02:00
Paul beed7a322c Merge remote-tracking branch 'origin/main' 2026-09-05 16:47:31 +10:00
Paul b58e9c6de5 Updated best-spawner-config version so it auto re-exports on new version 2026-09-05 16:47:16 +10:00
Dmytro BunnuaandWeblate 3e7ae9750c Translated using Weblate (Ukrainian)
Currently translated at 75.9% (7193 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/uk/
2026-09-05 05:04:38 +00:00
Hiroku 85f80c530e Merge branch 'berry-patch-persistent-leaves-fix' into 'main'
fixing the false persistent leaves

See merge request cable-mc/cobblemon!2366
2026-09-05 00:05:08 +00:00
Slippy 1ab5f13704 fixing the false persistent leaves 2026-09-04 18:40:03 -05:00
Paul 782f0b8a5a Merge remote-tracking branch 'origin/main' 2026-09-05 07:24:59 +10:00
Paul 9dbd27b23c Fixed alphas not being stronger than you if your highest level party member is level 41-50, rescaled alpha level boost 2026-09-05 07:24:44 +10:00
Hiroku 2faf669ace Merge branch 'implement_pokemon' into 'main'
Many movelist changes and pokemon bug fixes

Closes #2049 and #2050

See merge request cable-mc/cobblemon!2365
2026-09-04 20:44:52 +00:00
Frank The FarmerandHiroku 1c38433dda Many movelist changes and pokemon bug fixes 2026-09-04 20:44:52 +00:00
Paul d9d3583cb1 Wrong operator chief (closes #2057) 2026-09-05 05:35:33 +10:00
Jerzykv dd7edee941 Changelog 2026-09-04 20:11:59 +02:00
Jerzykv 616d16e11f Fixed #2050 2026-09-04 20:07:18 +02:00
Jerzykv 77a648cebd Fixed "shellos tree-birch" and "composer" typos, fixing #2049 2026-09-04 20:06:57 +02:00
Paul adaa852b59 Data scrape for deerling, sawsbuck, psyduck 2026-09-04 23:30:37 +10:00
Paul c17c48caec Merge remote-tracking branch 'origin/main' into implement_pokemon 2026-09-04 23:28:10 +10:00
Paul f6a833a5fd Fixed drops script not pointing to the right sheet, allow flower species feature to be used without a key, scraped spawns 2026-09-04 23:24:10 +10:00
Polymeta ab3d26dee6 Merge branch 'showdown-zip' into 'main'
Update showdown zip

See merge request cable-mc/cobblemon!2364
2026-09-04 10:34:25 +00:00
gruxor 37e526614f Update showdown zip 2026-09-04 06:29:26 -04:00
FrankTheFarmer 0f3c6d07c8 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-09-04 19:39:25 +10:00
FrankTheFarmer 3be4ae8fa6 Temporarily restoring Crobat's ability to walk 2026-09-04 19:39:18 +10:00
RedGenesectNinja d9b027dd66 I missed a few 2026-09-04 04:17:44 -05:00
Polymeta 612b75d3e5 Merge branch 'main' into implement_pokemon 2026-09-04 09:39:15 +01:00
Sterrezo bbfe6bd143 Revert "Added Cry SFX for Surskit, Duskull, Dusclops, Applin, Flapple, Duraludon (w/ bonk), Dipplin, Archaludon, & Hydrapple. Added Move SFX for Play Rough."
This reverts commit 562418e324.
2026-09-04 10:05:21 +02:00
FrankTheFarmer 219fcc369f Restored Dhelmise's seat locator again 2026-09-04 16:09:08 +10:00
RedGenesectNinja e28eb0e3da Removed Power Shift from TM learnsets due to it not having a TM 2026-09-04 00:37:41 -05:00
RedGenesectNinja b3160795fe Moved Captivate and Natural Gift from TM to Legacy learnsets 2026-09-04 00:27:18 -05:00
Polymeta aa68ef640d Merge branch 'tm-fix' into 'main'
Fixed TM serializing dummy move components and not being usable when first retrieved from a loot chest

See merge request cable-mc/cobblemon!2363
2026-09-04 05:25:29 +00:00
Hiroku 47a6d450cf Merge branch 'mp-ride-fix' into 'main'
Fixed crash when passenger packet arrives before seat assignment packet

See merge request cable-mc/cobblemon!2362
2026-09-04 04:25:35 +00:00
CraterandHiroku 14e4abca27 Fixed crash when passenger packet arrives before seat assignment packet 2026-09-04 04:25:35 +00:00
Hiroku 108716eb84 Merge branch 'temp-showdown-update' into 'main'
Update showdown version

See merge request cable-mc/cobblemon!2334
2026-09-04 04:08:34 +00:00
Paul 8c6ef80cf5 Fixed TM serializing dummy move components and not being usable when first retrieved from a loot chest 2026-09-04 14:07:52 +10:00
Hiroku 2d61cb5979 Merge branch 'alpha-eye-fixes' into 'main'
Alpha particles no longer render on pokemon without eyes and Alpha eye trails...

See merge request cable-mc/cobblemon!2361
2026-09-04 03:32:06 +00:00
FrankTheFarmer 5b8dc82ef2 Changelott 2026-09-04 12:53:18 +10:00
FrankTheFarmer 1d3bc137ad Fixed z-fighting on Hisui Bias Dewott 2026-09-04 12:50:25 +10:00
FrankTheFarmer 35e6caf6f2 Converted Hisui Bias Dewott to json because somebody forgot (it was me) 2026-09-04 12:50:11 +10:00
FrankTheFarmer cd827eccbf Converted Oshawott to json poser 2026-09-04 12:40:55 +10:00
JPAKx4 3e89e2b9ad Alpha particles no longer render on pokemon without eyes and Alpha eye trails no longer render on pokemon mid capture. 2026-09-03 21:12:09 -05:00
FrankTheFarmer f0c0bb2521 hitboxes and stuff changelog 2026-09-04 11:01:23 +10:00
FrankTheFarmer 82c2ce22c1 Torkoal tweaks. He will no longer be faster than the hares 🚫🐢💨 2026-09-04 11:00:42 +10:00
FrankTheFarmer d14a269b29 Restored Lanturn's missing ground walk and sleep animations 2026-09-04 10:59:40 +10:00
FrankTheFarmer a726408482 Corrected the scales, hitbox sizes, and eye heights of many pokemon 2026-09-04 10:59:27 +10:00
Dmytro BunnuaandWeblate 7e8b972c70 Translated using Weblate (Ukrainian)
Currently translated at 75.2% (7130 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/uk/
2026-09-03 21:35:23 +00:00
RedGenesectNinja 15e76629cb Leafeon, Turtwig, Grotle and Torterra could learn Leafage through TM when they shouldn't 2026-09-03 15:39:26 -05:00
RedGenesectNinja 10c0c188b3 Grimer and Muk could learn Smog through TM when they shouldn't 2026-09-03 15:38:40 -05:00
RedGenesectNinja fd9d3a3028 Adjusted Cherubi and Cherrim's scale 2026-09-03 15:36:52 -05:00
Polymeta ba5529e401 Merge branch 'adorn-compat-update' into 'main'
Update Adorn minimum compatibility version to 6.3.1.

See merge request cable-mc/cobblemon!2351
2026-09-03 16:09:14 +00:00
Jackson Bowes e0a4a72f9c Merge branch 'stamina-doubling-the-squeakuel' into 'main'
return stamina mins to previous and raise stamina regen where it matters

See merge request cable-mc/cobblemon!2360
2026-09-03 11:07:29 -05:00
Paul 59c922dee0 Merge remote-tracking branch 'origin/main' 2026-09-03 20:52:37 +10:00
Paul e5dda3e975 In herds, levelRangeOffset applies last in the process instead of near the start, fixes Unowns 2026-09-03 20:52:29 +10:00
jackowes 7d75993562 return stamina mins to previous and raise stamina regen where it matters 2026-09-02 20:28:49 -05:00
Jackson Bowes 54c64d3dfe Merge branch 'double-stams' into 'main'
double all ride stams

See merge request cable-mc/cobblemon!2359
2026-09-02 18:09:46 -05:00
jackowes ddf1396abb double all ride stams 2026-09-02 17:36:39 -05:00
Paul e3b2220813 Only wild alphas hide their items 2026-09-03 08:29:32 +10:00
Hiroku f982a94ebb Merge branch 'some-fixes' into 'main'
A few bug fixes

See merge request cable-mc/cobblemon!2358
2026-09-02 22:28:53 +00:00
阿鱼andWeblate 1c97760188 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (9472 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-09-02 22:17:31 +00:00
Dmytro BunnuaandWeblate c6d33e6cec Translated using Weblate (Ukrainian)
Currently translated at 73.5% (6971 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/uk/
2026-09-02 22:17:30 +00:00
Gustavo PuerariandWeblate 8e6e1cc3f2 Translated using Weblate (Portuguese (Brazil))
Currently translated at 94.4% (8946 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2026-09-02 22:17:29 +00:00
Watuneni iteiteandWeblate ea9654af61 Translated using Weblate (Japanese)
Currently translated at 100.0% (9472 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ja/
2026-09-02 22:17:28 +00:00
TeggyandWeblate b8ccaf9f89 Translated using Weblate (Spanish)
Currently translated at 100.0% (9472 of 9472 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/es/
2026-09-02 22:17:27 +00:00
Jackson Bowes dac42f1971 Merge branch 'issue-1738' into 'main'
Fixed bird mounts flickering between their fly and glide animations

Closes #1738

See merge request cable-mc/cobblemon!2346
2026-09-02 14:37:25 -05:00
Jerzykv 09152c7e97 begone, bracket! 2026-09-02 20:26:38 +02:00
Jerzykv f9cddd02a9 Very minor changes to Cinderace's battle intro 2026-09-02 20:26:08 +02:00
Jerzykv 4920244767 Dracovish can no longer swim 2026-09-02 20:07:42 +02:00
Jerzykv 9b20a55b69 Added focus blast to Clawitzer at level 2026-09-02 20:00:55 +02:00
Jerzykv 9f1be5feaa Added body press to Probopass at level 2026-09-02 20:00:38 +02:00
Jerzykv 8ea8968a04 More alpha eye stuff 2026-09-02 19:57:48 +02:00
Jerzykv efd4f3c623 Adjusted Miltank's alpha eyes 2026-09-02 19:09:19 +02:00
Jerzykv 4a06c57a1b Fixed Alolan Sandslash's cry animation, added it to the poser 2026-09-02 19:04:32 +02:00
Watuneni iteiteandWeblate 2ab3d396d2 Translated using Weblate (Japanese)
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ja/
2026-09-02 11:14:53 +00:00
Paul 297fa6f9b0 Changelog 2026-09-02 21:13:18 +10:00
Paul 455b6bde43 Merge remote-tracking branch 'origin/lang-updates' 2026-09-02 21:12:20 +10:00
Hiroku b3f32404cb Merge branch 'random-starter' into 'main'
Random Starters

See merge request cable-mc/cobblemon!2354
2026-09-02 11:10:13 +00:00
Paul 8b4326a82d Logic cleanup 2026-09-02 21:05:45 +10:00
Paul fb45d110bc Merge remote-tracking branch 'origin/random-starter' into random-starter 2026-09-02 20:58:07 +10:00
Paul a51ccb1a86 Merge remote-tracking branch 'origin/main' into random-starter
# Conflicts:
#	common/src/main/resources/data/cobblemon/callbacks/pokemon_entity_spawn/apply_marks.molang
2026-09-02 20:57:59 +10:00
Hiroku e3cfb7199d Merge branch 'main' into 'random-starter'
# Conflicts:
#   common/src/main/resources/data/cobblemon/callbacks/pokemon_entity_spawn/apply_marks.molang
2026-09-02 10:54:05 +00:00
Paul 3bb61dd649 Alphas don't show their held items 2026-09-02 20:51:42 +10:00
Paul b55d4d576d Merge remote-tracking branch 'origin/main' into some-fixes 2026-09-02 20:31:10 +10:00
Paul 99d818d11e Fixed syncing of battle victory count not running, leading to R to battle prompt staying after first victory 2026-09-02 20:28:51 +10:00
Paul 48b546fad4 Fixed (hackily) gender selection for strictly gender-formed pokemon 2026-09-02 20:13:38 +10:00
Paul 2ee04e3b1c Ensure healthy pokemon appear earlier in the party list when converting a party to a battle team 2026-09-02 19:18:02 +10:00
Hiroku fbef8ff0dc Merge branch 'fix/battle-faint-enhancements' into 'main'
🐛 fix: battle faint enhancement

See merge request cable-mc/cobblemon!2323
2026-09-01 12:02:22 +00:00
Polymeta c25a8ca8b5 Merge branch 'Added-TM-Loot-and-Bug-Fixes' into 'main'
Added tm loot and bug fixes

See merge request cable-mc/cobblemon!2357
2026-09-01 09:22:47 +00:00
Jerzykv 248cc4c5bc Added more missing moves 2026-09-01 11:02:56 +02:00
Jerzykv 1bbebfd3ae Removed Volt Tackle as a TM for Pikachu line, Alolan Raichu move edits 2026-09-01 10:59:53 +02:00
Jerzykv 5b5a0afc45 The correct Samurott now has its moves 2026-09-01 10:34:56 +02:00
Slippy d07729abfc adjusted deep sea spire location 2026-08-31 21:56:25 -05:00
Slippy 945c34ccd6 woops. small issue 2026-08-31 12:23:15 -05:00
Jerzykv 01d2350993 Removed non-existing cry from Sandygast and Palossand 2026-08-31 13:10:20 +02:00
Jerzykv 93b7c421cb Fixed Alolan Sandshrew's cry 2026-08-31 13:09:45 +02:00
Jerzykv 192542a362 Added missing moves to 17 Pokemon 2026-08-31 12:29:04 +02:00
Hiroku 8af45c01d8 Merge branch 'they-are-jumbo-sized-alphas' into 'main'
Fixed Alphas and other pokemon getting improper size marks

See merge request cable-mc/cobblemon!2349
2026-08-31 10:21:45 +00:00
Jerzykv 96d508d548 Added Hisui bias Rufflet's model 2026-08-31 11:40:45 +02:00
Hiroku a51db63d86 Merge branch 'level-spawning' into 'main'
Add ability to blocklist worlds from spawning Pokemon

See merge request cable-mc/cobblemon!2356
2026-08-31 09:27:48 +00:00
Daniel Naylor f906079a25 Update changelog, add config en-US language strings 2026-08-31 10:24:48 +01:00
Paul efd77e1337 Scraped more spawns 2026-08-31 19:04:43 +10:00
Paul acc4f341b6 Fixed dudunsparce and maushold always having the same form instead of having randomization 2026-08-31 19:03:56 +10:00
Jerzykv 567372ef51 Bergmite can now evolve into Hisuian Avalugg, and added bias form 2026-08-31 11:02:59 +02:00
Paul 53b712f8a2 Added isPokeSnack condition to spawning 2026-08-31 19:02:31 +10:00
Gertimoshka d787aabe4e Remove Dead Import 2026-08-31 10:37:35 +03:00
Slippy 327c8b47d1 made submerged spike blend in more 2026-08-30 13:02:41 -05:00
Slippy 448b02cef9 fixed a bug with rocky outcrops 2026-08-30 12:47:16 -05:00
Slippy 1c669d3eae fixed bugs with wildfire scar habitats 2026-08-30 12:45:41 -05:00
Slippy 14d6b55989 After playtesting, added difficult to get TMs to gimmi towers 2026-08-30 12:19:44 -05:00
Daniel Naylor c3d023a56b Remove Jetbrains annotation 2026-08-30 15:32:45 +01:00
JPAKx4 8382e9d904 Merge remote-tracking branch 'origin/adorn-compat-update' into adorn-compat-update 2026-08-30 08:41:08 -05:00
JPAKx4 2cf907bec1 Update Adorn minimum compatibility version to 6.3.1. 2026-08-30 08:40:49 -05:00
Daniel Naylor d167d4c2f2 Add ability to blocklist worlds from spawning Pokemon
To achieve this, we cache the ResourceLocation of a world on the ServerLevel, and check that as an additional condition in ServerPlayerMixin.cobblemon. The configuration accepts a new config item level_spawning_blocklist to allow server owners to specify this. This allows server owners that don't want Cobblemon to spawn in certain worlds to turn it off here, rather than use other plugins that delete entities, saving valuable ticks
2026-08-30 12:37:45 +01:00
Paul 61181f3f1c Clamping probably goes the other way around for herds 2026-08-30 12:03:53 +10:00
Kenji_64 156d193fc8 Fixed Sliggoo (+ Hisuian) evolving in the Nether and End, where it can't rain 2026-08-29 15:03:18 +02:00
Kenji_64 b5b22e2c23 Fixed some jarring z-fighting in Togedemaru's model 2026-08-29 14:57:34 +02:00
Kenji_64 e47275236a Fixed a shiny error with Dracovish 2026-08-29 14:44:37 +02:00
Kenji_64 eb96be2eff Fixed Garganacl's missing cry sound 2026-08-29 14:42:48 +02:00
Kenji_64 f620f84222 Fixed Combee's pollinated state overwriting the shiny and female textures 2026-08-29 14:41:08 +02:00
Watuneni iteiteandWeblate 2c79a66298 Translated using Weblate (Japanese)
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ja/
2026-08-28 15:03:32 +00:00
Jerzykv 27ce289de0 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-08-28 10:24:29 +02:00
Jerzykv bc4076f734 Fixed a typo in Darumaka's poser 2026-08-28 10:24:05 +02:00
Hiroku b2b5a8f715 Merge branch 'whoopsies' into 'main'
Fix parents

See merge request cable-mc/cobblemon!2355
2026-08-28 04:57:52 +00:00
dhi_holo 46764b9fab Fix parents
whoopsies
2026-08-28 09:41:11 +10:00
Kenji_64 d212cc0ad1 Skiploom drops the correct flower now 2026-08-28 00:27:00 +02:00
Gertimoshka 600e07fe08 Simpler fix 2026-08-27 21:17:00 +03:00
Hiroku 4a3f3b0d3f Merge branch '1.8-tag-updates' into 'main'
Edits to a few tags.

See merge request cable-mc/cobblemon!2353
2026-08-27 16:18:58 +00:00
Paul bc423515fb Merge remote-tracking branch 'origin/main' 2026-08-28 01:10:36 +10:00
Paul 13e8e39d43 Rescraped spawns 2026-08-28 01:10:25 +10:00
Paul 8dd6446b6a Fixed uncommon herds not spawning more than a leader most of the time, improved(?) herd members spawning in walls 2026-08-28 01:07:54 +10:00
Hiroku 8fc9b46ce7 Merge branch 'implement_pokemon' into 'main'
e

See merge request cable-mc/cobblemon!2352
2026-08-27 10:52:13 +00:00
Hiroku 832d315501 The possessive pronoun is without the apostrophe
(Otherwise it is a contraction)
2026-08-27 10:34:29 +00:00
Hiroku d4da62adb5 Merge branch 'More-Habitat-Bug-Fixes' into 'main'
Increased the rarity of fossil structures again. Adjusted so type gems should...

See merge request cable-mc/cobblemon!2344
2026-08-27 10:31:33 +00:00
Hiroku f7f6e9d2ee Merge branch 'patch-2' into 'main'
Fixed a typo causing the AI to not recognize surging strikes as a multi hit move.

See merge request cable-mc/cobblemon!2342
2026-08-27 10:30:20 +00:00
Veraxiel 8a375d5e81 Edits to a few tags. 2026-08-27 05:37:32 -04:00
geumuandWeblate 0bb860c9ab Translated using Weblate (Korean)
Currently translated at 99.6% (9432 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ko/
2026-08-27 02:03:22 +00:00
Gertimoshka 7616008cd3 Random Option now exist for Starter Selection, for those who cannot choose 2026-08-25 15:04:07 +03:00
Paul cf36db419d Oopsy on level clamping 2026-08-25 20:17:50 +10:00
Paul f634d7fae0 missed a file 2026-08-25 19:49:55 +10:00
Paul dddb3b3d48 Koffing and Sudowoodo herd fixes 2026-08-25 19:49:47 +10:00
Paul 2468f8a8e6 Fixed spawn scraper not processing Leader = "only" properly from the sheet, leading to impossible spawns 2026-08-25 19:45:27 +10:00
Paul c6ce359736 Fixed herdable pokemon levelRange field not being used to clamp the resulting level possibilities 2026-08-25 19:40:48 +10:00
Gertimoshka e99ba8cd1d Merge branch 'main' of https://gitlab.com/cable-mc/cobblemon 2026-08-25 11:28:43 +03:00
ewwww 3f35ca5bd2 switcheroo 2026-08-24 15:26:31 -04:00
Paul e053d2864e Merge remote-tracking branch 'origin/main' 2026-08-24 23:15:09 +10:00
Paul e098426a6d Fixed issue in behaviour scraper, fixed see sky condition on herds not being interpreted, rescraped herds and species data 2026-08-24 23:14:58 +10:00
Hiroku 069f483552 Merge branch 'compost-this' into 'main'
Composting Fixes

Closes #2008 and #2043

See merge request cable-mc/cobblemon!2348
2026-08-24 11:18:40 +00:00
ewwww 9a8c7dc8bf oops forgot this too 2026-08-24 04:17:21 -04:00
Paul 82ba0334a7 open keyword not needed 2026-08-24 18:14:44 +10:00
Paul bfed3ad52f Fixed habitat natural-mode injecting spawns into all buckets 2026-08-24 18:13:52 +10:00
ewwww 149a59ffbf oops forgot this 2026-08-24 04:01:21 -04:00
Paul a7dd139c14 More script rescraping but bombing existing spawns first, correctly purging removed spawns 2026-08-24 18:00:42 +10:00
ewwww 3866e888de Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-08-24 03:55:30 -04:00
ewwww 5089ea5027 added regigigas & regidrago eye locators 2026-08-24 03:55:05 -04:00
Paul 840762c00d Some scraping of spawns 2026-08-24 17:53:29 +10:00
ewwww b38c44321e various seat locator naming fixes 2026-08-24 03:41:34 -04:00
ewwww 1ba7ed425e i'm not sure either 2026-08-24 03:15:00 -04:00
ewwww 9645a1dd17 locators for regieleki 2026-08-24 00:06:09 -04:00
ewwww 232d871bef fixed ho-oh's missing alpha texture 2026-08-24 00:05:57 -04:00
ewwww ce0b5b77bd compostable eggant berry 2026-08-24 00:05:45 -04:00
JPAKx4 a4f2472431 Update Adorn minimum compatibility version to 6.3.1. 2026-08-23 13:06:38 -05:00
dhi_holo aaae400f0a Merge branch 'data-fixings' into compost-this 2026-08-23 13:05:12 +10:00
dhi_holo ba42daa83e Merge branch 'main' into compost-this 2026-08-23 13:05:00 +10:00
geumuandWeblate 85577259a6 Translated using Weblate (Korean)
Currently translated at 99.6% (9432 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ko/
2026-08-22 20:02:37 +00:00
geumuandWeblate 5271e09d8d Translated using Weblate (Korean)
Currently translated at 99.6% (9432 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ko/
2026-08-22 19:38:43 +00:00
Polymeta c6cb98cabd Delete 0460_abomasnow_alpha.json 2026-08-22 14:23:00 +00:00
Polymeta 95f56fc1f8 Delete 0738_vikavolt_alpha.json 2026-08-22 14:12:58 +00:00
Polymeta a328c54dda Edit 0629_vullaby_herd.json 2026-08-22 13:58:54 +00:00
Gertimoshka 12db01b7b2 Merge branch 'main' of https://gitlab.com/cable-mc/cobblemon 2026-08-22 13:02:20 +03:00
Paul 93515777b8 oop put that back 2026-08-22 17:40:15 +10:00
Paul 16e327bd27 Rescraped behaviours, scraped spawns 2026-08-22 17:40:00 +10:00
Hiroku 0edb9ad115 Merge branch 'pasture-block-performance-optimization' into 'main'
Index Pokémon stores by UUID for O(1) lookup

See merge request cable-mc/cobblemon!2345
2026-08-22 02:18:14 +00:00
Hiroku 8189e5d819 Merge branch 'Habitat-Adjustments' into 'main'
bunch of fixes

See merge request cable-mc/cobblemon!2350
2026-08-22 00:39:34 +00:00
Slippy 72234e6260 turned the rocky outcrops into a biome feature because I can not get it to generate correctly as a structure 2026-08-21 13:21:12 -05:00
Mosekon 48e341aca6 Document UUID store index in changelog
Note the party/PC UUID lookup optimization under 1.8.0 Changes.
2026-08-21 10:16:21 -07:00
Slippy f2aed673ee Some new Biome tags. Adjusted biome tags of some structures 2026-08-21 12:02:58 -05:00
Slippy 51d214d45e Fixed Sus gravel not generating loot 2026-08-21 11:47:34 -05:00
Nico MerenqandWeblate a4619e761b Translated using Weblate (Russian)
Currently translated at 85.5% (8099 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-20 15:52:21 +00:00
Slippy fa67e21a76 Gimmighoul chests in most ruins are now a 10% chance to generate rather than a 40% or 50% chance to generate so you are more likely to get the TM. This does not include gimmighoul towers. 2026-08-20 10:47:56 -05:00
Gertimoshka 62cccd204a Fixed Alphas and Other pokemon getting improper size marks 2026-08-20 14:12:15 +03:00
Gertimoshka ec9c1a0db3 Fixed Alphas having size marks improperly applied 2026-08-20 14:10:43 +03:00
FrankTheFarmer d2bbf12598 Removed shiny aspect line in magikarp jump pattern resolver which broke some addons 2026-08-20 14:02:47 +10:00
dhi_holo e58ffb9a00 Compostables updated 2026-08-20 12:51:18 +10:00
dhi_holo 0281dd2e94 Eggant
Closes #2043
2026-08-20 11:07:04 +10:00
Nico MerenqandWeblate 4060472a23 Translated using Weblate (Russian)
Currently translated at 85.4% (8087 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-20 00:30:16 +00:00
Nico MerenqandWeblate 58ec5f38ed Translated using Weblate (Russian)
Currently translated at 85.0% (8055 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-19 21:00:15 +00:00
Nico MerenqandWeblate 38938b99ac Translated using Weblate (Russian)
Currently translated at 85.0% (8054 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-19 20:34:20 +00:00
Nico MerenqandWeblate ba204b1473 Translated using Weblate (Russian)
Currently translated at 85.0% (8051 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-19 19:41:52 +00:00
Nico MerenqandWeblate fd2de073d9 Translated using Weblate (Russian)
Currently translated at 84.9% (8040 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-19 18:28:23 +00:00
Nico MerenqandWeblate ecec45fb7f Translated using Weblate (Russian)
Currently translated at 84.7% (8022 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-19 18:05:22 +00:00
Slippy 9889307981 reduce type gem rarity. They were suddenly increased when fixing a world gen issue 2026-08-19 12:00:09 -05:00
Jerzykv 9a18dcadd4 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-08-18 20:50:39 +02:00
Jerzykv 7e6864764f Fixed Servine t-posing in battle 2026-08-18 20:50:19 +02:00
Kiritiop 8468d81286 Fixed bird mounts flickering between their fly and glide animations
activeInput was only set inside the speed cap check, so a mount reaching its top speed while the player still held W was indistinguishable from the player letting go, and the glide flag flipped every tick.

Both the glide and FLY pose thresholds were also hardcoded to 0.2, which is exactly the top speed of a minimum SPEED stat mount, so slow mounts sat on the boundary instead of crossing it.

activeInput now comes from player input alone, the glide test has a 0.19/0.13 hysteresis band using state.gliding as its own memory, and the FLY pose threshold moved to 0.1 to match JetBehaviour.

Closes #1738
2026-08-18 14:23:24 -04:00
plastered_crab e6636bb6af no changelog needed I guess 2026-08-18 11:19:32 -07:00
plastered_crab 78706548ab mixin to prevent our structures from leaving behind artifacted terrain when removing their placement via our processor. Now does a check before generation entirely so it never gets placed down in the first place. 2026-08-18 11:04:18 -07:00
阿鱼andWeblate a5184be524 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-08-17 22:28:33 +00:00
Mosekon da6455fd33 Index Pokémon stores by UUID for O(1) lookup
get(uuid) scanned the whole store and allocated a full PC list. Pasture
block entities call that per tether per tick, which dominated MSPT with
hundreds of pastured Pokémon.

Keep an in-memory UUID map on set/remove, and rebuild after load and PC
resize. Public initialize() stays overridable for a micro version bump.

Measured: 240 pastures / 480 assigned, 73 ms to 16 ms MSPT.
2026-08-17 14:38:19 -07:00
阿鱼andWeblate 7e544346dd Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-08-17 15:18:38 +00:00
阿鱼andWeblate 4812a33169 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (9439 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-08-17 13:00:09 +00:00
阿鱼andWeblate 0fbd003cba Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.4% (9417 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-08-17 11:02:53 +00:00
FrankTheFarmer 074073a933 Changelog moment 2026-08-17 19:58:13 +10:00
FrankTheFarmer f82712e6b4 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2026-08-17 19:51:48 +10:00
FrankTheFarmer 5745ff547c Removed line in Gyarados-jump resolver that seems to be breaking gummy related gyarados addons 2026-08-17 19:51:29 +10:00
FrankTheFarmer 8f5617c986 Fixed eevee using it's shoulder animation when in battle due to battle conditions in its standing pose 2026-08-17 19:48:24 +10:00
RedGenesectNinja 02f69779a1 Adjusted Mightyena's hitbox 2026-08-16 18:57:02 -05:00
Jerzykv a2bfc55e96 Lanturn poser fix again 2026-08-16 22:01:52 +02:00
Paul 1f9c632883 Fixed scraper for behaviours skipping no-form records, rescraped 2026-08-15 14:38:56 +10:00
Jerzykv 7fecdb1126 Changelog 2026-08-14 18:31:34 +02:00
Jerzykv f88ec39ec7 Fixed Tentacool's surfacewater animation 2026-08-14 15:20:05 +02:00
Jerzykv f8b4b2fc2a Part 2 of restoring and adding cries 2026-08-13 08:33:19 +02:00
Slippy 271aef9821 Increased the rarity of fossil structures again. Adjusted so type gems should only generate below y level 0. There were some instances of them generating up high. Adjusted some other things 2026-08-13 00:55:33 -05:00
FrankTheFarmer ce9970ca1a Added unown's missing cry 2026-08-13 15:11:30 +10:00
Jerzykv bf47299b2f Multiple cries restored + poser conversions and fixes 2026-08-12 19:09:26 +02:00
Jerzykv e56b399c59 Darumaka no longer has empty eyes while sleeping 2026-08-12 18:38:02 +02:00
Nico MerenqandWeblate 39098134e8 Translated using Weblate (Russian)
Currently translated at 84.5% (8004 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-12 08:53:44 +00:00
redmageman 0f505ea3f8 Added the fix to the changelog 2026-08-11 20:13:10 -05:00
Slippy 478859d0ed more fixes 2026-08-11 16:38:48 -05:00
Slippy cf95f62185 Merge branch 'main' of https://gitlab.com/cable-mc/cobblemon into More-Habitat-Bug-Fixes 2026-08-11 15:39:51 -05:00
Nico MerenqandWeblate 6ba2fc5b65 Translated using Weblate (Russian)
Currently translated at 84.5% (8001 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-11 18:34:14 +00:00
Nico MerenqandWeblate c25724967a Translated using Weblate (Russian)
Currently translated at 84.3% (7983 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-11 10:30:50 +00:00
Slippy 067e9d42e7 Flowerbed clearing habitat block fix 2026-08-11 00:13:07 -05:00
Nico MerenqandWeblate 0063c8c8af Translated using Weblate (Russian)
Currently translated at 84.3% (7983 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-11 04:53:41 +00:00
Kenji_64 ebdffb44e8 Properly added Snorlax' sleep_intro back 2026-08-10 23:20:57 +02:00
Kenji_64 6cc609fdfc Fixed Metang using the "wrong" animations as a perma-flyer 2026-08-10 23:11:39 +02:00
Kenji_64 864a4f5c09 Fixed Floragato's alt cry having no sound 2026-08-10 23:03:08 +02:00
Kenji_64 d2f365504b Dragapult poser fixes + physical fix 2026-08-10 22:48:38 +02:00
Nico MerenqandWeblate 48f4790a36 Translated using Weblate (Russian)
Currently translated at 84.2% (7981 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-10 17:51:58 +00:00
FrankTheFarmer 024ec427da Dewott in da changelog 2026-08-10 14:31:36 +10:00
FrankTheFarmer 935ea3ad53 Tweaked Dewott's placeholder animations a bit to prevent clipping on the skirt 2026-08-10 14:28:01 +10:00
FrankTheFarmer f270e479e6 Converted Dewott's poser to json 2026-08-10 14:27:41 +10:00
FrankTheFarmer ce5d3e75a0 Fixed some z-fighting on Dewott's hands 2026-08-10 14:27:24 +10:00
Nico MerenqandWeblate f7a5bcbd4d Translated using Weblate (Russian)
Currently translated at 84.2% (7973 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-10 00:26:03 +00:00
Nico MerenqandWeblate 75b7ca4786 Translated using Weblate (Russian)
Currently translated at 84.2% (7973 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-09 21:09:56 +00:00
Nico MerenqandWeblate dfee92bc1c Translated using Weblate (Russian)
Currently translated at 84.2% (7973 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-09 15:48:37 +00:00
Watuneni iteiteandWeblate 0fd4bd443e Translated using Weblate (Japanese)
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ja/
2026-08-09 15:48:36 +00:00
Nico MerenqandWeblate e26eceeb2a Translated using Weblate (Russian)
Currently translated at 84.1% (7967 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-09 13:28:23 +00:00
redmageman 51be1364d3 Merge branch cobblemon:main into patch-2 2026-08-09 01:35:04 -05:00
redmageman 27706a766e Fixed a typo causing the AI to not recognize surging strikes as a multi hit move. 2026-08-09 01:32:54 -05:00
Nico MerenqandWeblate 79a4fbcb48 Translated using Weblate (Russian)
Currently translated at 84.1% (7966 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-08 23:34:41 +00:00
Nico MerenqandWeblate 53fdce17f8 Translated using Weblate (Russian)
Currently translated at 84.1% (7966 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-08 21:52:48 +00:00
Nico MerenqandWeblate b03e29c5a9 Translated using Weblate (Russian)
Currently translated at 84.1% (7966 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-08 20:26:10 +00:00
Nico MerenqandWeblate 3bdf89570a Translated using Weblate (Russian)
Currently translated at 84.1% (7966 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-08 15:19:54 +00:00
Nico MerenqandWeblate 0c15a05986 Translated using Weblate (Russian)
Currently translated at 83.7% (7932 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-07 15:58:13 +00:00
Nico MerenqandWeblate bd69670cd2 Translated using Weblate (Russian)
Currently translated at 83.7% (7930 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-06 15:57:41 +00:00
Nico MerenqandWeblate a89f07856a Translated using Weblate (Russian)
Currently translated at 83.3% (7889 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-06 03:47:34 +00:00
Nico MerenqandWeblate 8d0fc13e11 Translated using Weblate (Russian)
Currently translated at 82.1% (7780 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-05 15:43:57 +00:00
Nico MerenqandWeblate 9fc77832e6 Translated using Weblate (Russian)
Currently translated at 81.8% (7747 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-04 14:06:46 +00:00
阿鱼andWeblate fbd928eeaf Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 98.8% (9358 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2026-08-04 09:27:21 +00:00
Nico MerenqandWeblate 8d0beca2f6 Translated using Weblate (Russian)
Currently translated at 81.4% (7711 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-04 09:27:20 +00:00
dhi_holo 9350960457 Update remedy.json
Resolves problem of if a furnace still has data of having this recipe stored within it
2026-08-04 09:34:53 +10:00
dhi_holo 1b3daa2740 Update en_us.json
Simplified Obtain TM description
2026-08-04 09:31:37 +10:00
Nico MerenqandWeblate 784f06b9f0 Translated using Weblate (Russian)
Currently translated at 80.8% (7658 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-03 11:56:56 +00:00
dhi_holo 6cfe3fd39d Merge branch 'main' into data-fixings 2026-08-03 19:13:53 +10:00
dhi_holo 338cb819af Craft to Obtain
Update Craft TM Advancement to be Obtain TM Advancement
2026-08-03 17:41:04 +10:00
dhi_holo 1a75d4b2e8 Budding Tag
Added the item form of the budding blocks tag (block form already existed)
2026-08-03 15:50:03 +10:00
dhi_holo 5c4c7b2995 Fixes
Fixed #2008 to the best of my understanding
Corrected compatibility numbers to match updated loot tables
2026-08-03 14:58:17 +10:00
Nico MerenqandWeblate 39e3ca9da8 Translated using Weblate (Russian)
Currently translated at 80.8% (7658 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-02 23:36:20 +00:00
Nico MerenqandWeblate e40164f8cf Translated using Weblate (Russian)
Currently translated at 80.5% (7625 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-08-01 16:41:28 +00:00
arvid6andWeblate c087cab84a Translated using Weblate (Spanish)
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/es/
2026-08-01 10:27:01 +00:00
Nico MerenqandWeblate bbdc732bd4 Translated using Weblate (Russian)
Currently translated at 80.1% (7587 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-31 18:54:52 +00:00
TeggyandWeblate e9bdd6be11 Translated using Weblate (Spanish)
Currently translated at 99.3% (9404 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/es/
2026-07-30 11:47:06 +00:00
Watuneni iteiteandWeblate 2330aa9512 Translated using Weblate (Japanese)
Currently translated at 100.0% (9468 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ja/
2026-07-30 08:51:59 +00:00
gruxor 76ec04055a Update showdown version 2026-07-29 20:19:58 -04:00
Nico MerenqandWeblate 7472d3fd0f Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:23 +00:00
Cobblemonovich MaxandWeblate 73c842391e Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:21 +00:00
Cobblemonovich MaxandWeblate ce28b96fc8 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:21 +00:00
Cobblemonovich MaxandWeblate f0b2f71f17 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:20 +00:00
Cobblemonovich MaxandWeblate e5187f0d0a Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:20 +00:00
Cobblemonovich MaxandWeblate 4610870a1d Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:19 +00:00
Cobblemonovich MaxandWeblate 5658c12a7d Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:19 +00:00
Cobblemonovich MaxandWeblate c2e6723c3a Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:18 +00:00
Cobblemonovich MaxandWeblate 2a31ebf292 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:17 +00:00
Cobblemonovich MaxandWeblate 77f76edfcf Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:17 +00:00
Cobblemonovich MaxandWeblate 9684f39c65 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:16 +00:00
Cobblemonovich MaxandWeblate 011995390b Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:16 +00:00
Cobblemonovich MaxandWeblate a2500b7b2d Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:15 +00:00
Cobblemonovich MaxandWeblate 811674adb9 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:14 +00:00
Cobblemonovich MaxandWeblate 6ca671c877 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:14 +00:00
Cobblemonovich MaxandWeblate 080ba93d57 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:13 +00:00
Cobblemonovich MaxandWeblate 96d3e39211 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:13 +00:00
Cobblemonovich MaxandWeblate 79c02d386b Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:12 +00:00
Cobblemonovich MaxandWeblate 38c0c13121 Translated using Weblate (Russian)
Currently translated at 79.9% (7573 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/ru/
2026-07-29 21:14:11 +00:00
Gustavo PuerariandWeblate 157e211f06 Translated using Weblate (Portuguese (Brazil))
Currently translated at 94.4% (8942 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2026-07-28 21:13:01 +00:00
arvid6andWeblate e4654cf24d Translated using Weblate (Spanish)
Currently translated at 98.9% (9365 of 9468 strings)

Translation: Cobblemon/Mod
Translate-URL: https://lang.cobblemon.com/projects/cobblemon/mod/es/
2026-07-28 14:27:43 +00:00
João Piologo e6c54575ee 🐛 fix: battle faint enhancement
Makes the right-top opponent's pokeball only go dark after the fainting animation, preventing the user to know beforehand if it was a KO.
2026-07-13 20:30:09 -03:00
3026 changed files with 134200 additions and 16755 deletions
+2 -495
View File
@@ -1,518 +1,25 @@
# Changelog
## [1.8.0 (MONTH Xth, 2026)](#1-8-0)
## [1.x.x (MONTH Xth, 2026)](#1-x-x)
### Additions
- Added config options to award experience to fainted Pokémon for opponents they helped defeat (`awardExperienceToFaintedPokemon`) and to still award experience for defeated enemies even after battle loss/forfeit (`awardExperienceOnBattleLoss`)
- Party Overlay Exp Gained Animation will now display the amount of EXP the Pokémon gained
- Added a toast to notify players of how they can scroll through their party. Did you know you can hold R and scroll instead of using arrow keys??!
- Added a new layer property that makes a layer scroll in a direction. "scrolling": {"speedU": 0.1, "speedV": 0.1}
- Added missing crops to Botany Pots integration
- Added a way to obtain Porygon by inserting the Upgrade or Dubious Disc into a data monitor
- Added a new `cobblemon:structure`, which is a feature without any restrictions allowing the Builders to place certain structures in much more specific manner.
- Added Configs for Infinite Use TMs and Unlocking all TMs
- Added Type Gem blocks
- Added Type Gem Clusters
- Added TMs
- Added TM Machine
- Added Deepslate Core Block
- Added /givetm Command
- Added advancement triggers for learning TMs: `cobblemon:has_learn_specific_tm` (per-TM), `cobblemon:has_learn_all_tm` (all TMs learned), and `cobblemon:tms_learned` (count-based), backed by a new `totalTMLearnedCount` on player advancement data.
- Added `cobblemon:catch_alpha_pokemon` advancement trigger and `totalAlphaCaptureCount` tracking for capturing Alpha Pokémon.
- Added Move Dex to Pokédex
- Added the Habitat Block, a spawner block for servers and adventure maps that controls spawning in an area.
- Added Disk Rack for storing disks and being an audio sequencer for Noteblocks
- Added intrinsic scaling to all Pokémon (+-5%). Some rendering cases, such as shoulder mounting, revert to 1.0 scaling to preserve animation accuracy.
- Added scaling to "baby" Pokémon (smaller (-20%) at level 1 → normally sized at level 10)
- Added conditional seats for riding. Seats can be gated by molang such as "is_alpha".
- Added Alpha Pokémon
- Added alpha scaling (alphas are larger than their normal counterparts)
- Alphas will always lead herds and will spawn in herds
- Alphas spawn with two random TM moves from their learnset
- Alpha Pokémon will always defend themselves from players that attack them
- Added alpha level matching and stat boost (based on level)
- Added pitch-down and reverb to alpha cries
- Added alpha Pokémon bait effect
- Added alpha eye rendering including eye overlay, bloom, eye trail, and particles.
- Added cobweb block slowness immunity for spider Pokémon
- Added 49 new habitat structures. 34 as typical Minecraft structures and 15 as structures that get placed as biome features to allow for more natural placement in generation. Structures placed as biome features will not be able to be located with the `/locate structure` command.
- Vanilla village house template pools have been adjusted to account for the new abandoned village structure habitat. Weights have changed within the JSON file for every piece to ensure too many habitats don't generate in a single village.
- Added 10 new ruin structures.
- rooted_arch_ruins & crumbling_arch_ruins have been transferred over to biome features, allowing for better placement in generation.
- All ruin structures that did not generate with a gimmighoul/gilded chest before will now generate with one.
- All ruin structures gilded chest loot tables have been updated to include a guaranteed TM not learned naturally by any Pokémon through their level-up moveset. Each ruin gets its own specific TM, so you can now go hunting ruins to complete your move dex!
- All fossil structures have been transferred over to biome features, allowing for better placement in generation.
- The prehistoric_underwater_fissure & prehistoric_submerged_impact fossil structures now use the biome tag `#cobblemon:is_temperate_ocean`.
- Gimmighoul towers now generate at ground level rather than sinking one block into the ground.
- A new shipwreck cove structure called the "magma_shipwreck_cove" has been added.
- Shipwreck coves now generate slightly more frequently.
- Added equipment loot tables for shipwreck cove enemies.
- Maps from abandoned fishing boats leading to shipwreck coves now will skip explored chunks, allowing the player to find more shipwreck coves easier.
- The lush shipwreck cove's phantom mob spawner has been replaced with breezes.
- The lush shipwreck cove structure itself has been slightly cleaned up to be less noisy with the blocks it is built out of.
- All shipwreck coves' spawners have been adjusted to give compatible mobs enchanted iron or diamond armour and weapons while in its ominous state. The armour given to the mobs will also use the automaton trim. We upped the difficulty because it was too easy now that your Pokémon can fight for you.
- One TM of the elemental hyper beams has been added as guaranteed loot to the main treasure chest in every shipwreck cove. (Magma cove gets blast burn, lush cove gets frenzy plant, and submerged cove gets hydro cannon)
- Added 7 new advancements
- Pressing the inventory key now closes the Pokémon interact wheel GUI
- Pokémon cries now play when clicking Pokémon in the summary screen.
- Pressing the Summary key while either the starter selection or summary screen are open now closes those screens
- Ice type Pokémon are now immune to Packed Snow
- Held item visibility can now be controlled by the held_item_visible command argument.
### New rideable Pokémon
- Crobat
- Skarmory
- Milotic
- Archeops
- Goodra
- Goodra (Hisuian Form)
- Drampa
- Duraludon
- Archaludon
### Pokémon Added
#### Generation 3
- Wurmple
- Silcoon
- Beautifly
- Cascoon
- Dustox
- Skitty
- Delcatty
- Seviper
- Zangoose
#### Generation 4
- Cherubi
- Cherrim
- Stunky
- Skuntank
#### Generation 5
- Audino
- Pawniard
- Bisharp
#### Generation 6
- Pancham (+ Cosmetic with Black Glasses)
- Pangoro (+ Cosmetic with Black Glasses)
#### Generation 7
- Rockruff
- Lycanroc
#### Generation 8
- Rolycoly
- Carkol
- Coalossal
- Runerigus
- Snom
- Frosmoth
- Indeedee
- Duraludon
- Applin
- Flapple
- Appletun
#### Generation 9
- Nymble
- Lokix
- Kingambit
- Dipplin
- Archaludon
- Hydrapple
#### Regional Forms
- Sandshrew (Alolan Form)
- Sandslash (Alolan Form)
- Yamask (Galarian Form)
- Avalugg (Hisuian Form)
### Model updates for the following Pokémon
- Sandshrew
- Sandslash
- Nidoking
- Zubat
- Golbat
- Crobat
- Ditto
- Porygon
- Porygon2
- Porygon-Z
- Skarmory
- Smoochum
- Jynx
- Popplio
- Brionne
- Primarina
- Fletchling
- Fletchinder
- Talonflame
- Sableye
- Mawile
- Goomy
- Sliggoo
- Goodra
- Nacli
- Naclstack
- Garganacl
- Bidoof
- Cranidos
- Chatot
- Yamask
- Cofagrigus
- Tyranitar
- Turtonator
- Golett
- Corsola
- Arbok (New Patterns: Angry, Cartoon, Clown, Comedic, Crow, Grin, Ink, Modern, Rain, Scribble, Silence, Sloth, Suspicious, Will)
- ... and Substitute
#### Model changes to the regional bias resource pack:
- Added Mime Jr. (Galar Bias)
- Added Bergmite (Hisui Bias)
- Changed models for every existing regional bias
### Animation updates for the following Pokémon
- Kakuna
- Grimer
- Nidoran♀ (+ New shoulder mount)
- Nidorina
- Nidoran♂ (+ New shoulder mount)
- Sandshrew
- Diglett
- Dugtrio
- Graveler
- Happiny
- Chansey
- Blissey
- Poliwhirl
- Poliwrath
- Zubat
- Vulpix
- Drowzee
- Hypno
- Noctowl
- Skarmory
- Skitty
- Flygon
- Shellos
- Riolu
- Lucario
- Purrloin
- Liepard
- Joltik
- Galvantula
- Nidoking
- Fletchling
- Fletchinder
- Talonflame
- Archeops
- Drampa
- Sewaddle
- Swadloon
- Leavanny
- Goomy
- Sliggoo
- Goodra
- Shedinja
- Skwovet
- Greedent
- Bidoof
- Cranidos
- Chatot
- Yamask
- Cofagrigus
- Luvdisc
- Staryu
- Starmie
- Togetic
- Rellor
- Rabsca
- Yungoos
- Gumshoos
- Cottonee
- Whimsicott
- Corsola
#### Added sounds to the following moves
- Absorb
- Aurora Beam
- Double Team
- Draco Meteor
- Fire Punch
- Fire Spin
- Flame Charge
- Flame Wheel
- Giga Drain
- Ice Punch
- Leech Life
- Magical Leaf
- Mega Drain
- Minimize
- Poison Gas
- Rock Throw
- Scary Face
- Seed bomb
- Smokescreen
- String Shot
- Tail Whip
### Changes
- Stat increase and decrease particles have been changed, with the addition of alpha boost particles.
- Dragonite's mailbag cosmetic can now also be obtained with a chest in the cosmetic slot
- Adjusted Croagunk's walkspeed
- Adjusted Aerodactyl's walkspeed
- Sharp Beak can now be crafted
- Metal Alloy can now be crafted
- Ability Capsules can now be brewed
- Using an Ability Capsule will now return an Empty Bottle
- The following items can now be obtained by brushing the following Pokémon:
- Pink Wool - Wigglytuff
- White Wool - Swablu, Altaria
- Shed Shell - Ekans, Arbok, Dratini, Dragonair, Dunsparce, Treecko, Grovyle, Sceptile, Seviper, Scraggy, Scrafty, Helioptile, Heliolisk, Salandit, Salazzle, Sobble, Drizzile, Inteleon, Silicoblra, Sandaconda, Toxel, Toxtricity, Orthworm, Dudunsparce
- Phantom Membrane - Dreepy, Drakloak, Dragapult
- The following items can now be obtained by evolving the following Pokémon into any of their evolutions:
- Turtle Scute - Squirtle, Wartortle, Turtwig, Grotle, Tirtouga, Chewtle
- Shed Shell - Metapod, Kakuna, Ekans, Paras, Venonat, Krabby, Scyther, Kabuto, Dratini, Dragonair, Ledyba, Spinarak, Yanma, Pineco, Dunsparce, GLigar, Pupitar, Treecko, Grovyle, Silcoon, Cascoon, Surskit, Nincada, Trapinch, Vibrava, Corphish, Anorith, Bagon, Shelgon, Kricketot, Burmy, Combee, Skorupi, Swadloon, Whirlipede, Dwebble, Scraggy, Karrablast, Joltik, Larvesta, Spewpa, Clauncher, Helioptile, Charjabug, Crabrawler, Cutiefly, Dewpider, Salandit, Wimpod, Poipole, Sobble, Drizzile, Dottler, Silicobra, Toxel, Sizzlipede, Snom, Tarountula, Nymble, Rellor
- Saccharine Leaves now drop Tart, Sweet, or Syrupy Apples, depending on their honey coating stage, instead of vanilla Apples
- Fixed the height of the Tumblestone Bud items when held in hand, placed on head, viewed in a GUI, and placed in an Item Frame
- Refactored all advancements, removing several deemed unnecessary. Due to this refactor, all previously obtained advancements will be reset besides the root (for picking a starter Pokémon). We are sorry for the inconvience, but it makes the tab cleaner and simplifies future advancements.
- Restructured Botany Pots integration folder structure
- Decrease the default pastured mon wander radius to 32.
- Factor in the weight of Pokémon when calculating pushing forces between hitboxes.
- Remade the Starter Selection Screen with new assets
- Refactored berry trees to be less impactful on TPS (more performant)
- Changed the bait effects of the following items: (Vanilla) Sweet & Glow Berries, Golden & Enchanted Golden Apples (Cobblemon) Custap, Eggant, Hopo & Micle Berries, Sweet Hearts
- Wild Pokémon now reliably have at least one offensive move if they can have offensive moves at that level.
- Data Monitor can accept Disks (TMs, Music Disks, Upgrade, Dubious Disk, etc.) to change what's being displayed on the screen
- Rider positioning is now client-driven (Remove poseOffsets and offset per seat/pose) in favour of sending real-time passenger position.
- Cleaned up seat data. Removed all now unused fields from seats in all species files. Also made locator seat names explicit in the species files (however, this doesn't break the legacy format)
- Marks can now provide aspects.
- Added new shiny and Alpha chance configs
- Apricorns now make a new sound when harvested
- Lowered the volume of harvesting berries
- Added alternate versions of the basic PC Wallpapers based on the original design of Cobblemon's PC, before public release
- Improved compatibility with various mods
- Farmer's Delight's cutting board can now be used to strip Apricorn and Saccharine's logs, or salvage their planks from various blocks. It can also separate their boats from chests
- Farmer's Delight's cutting board can be used to get two white dye from Pep-Up Flowers and two magenta dye from Medicinal Leeks
- Farmer's Delight's cutting board can separate Tumblestone Blocks back into Tumblestones
- Farmer's Delight's cutting board can salvage Type Gems from their Gem Blocks
- Farmer's Delight's Onions, Tomatoes, and Cabbages can be used to cook Open-Faced Sandwiches. Nature's Spirit's Olives also can be used
- Farmer's Delight's cutting board can be used on Hearty Grains to obtain rice and straw, similarly to Farmer's Delight's Rice Panicles
- Farmer's Delight's Apple Pies and Apple Ciders can now be made using Applin Apples, alongside the Vanilla counterpart
- Amendments allows for cooking Leek and Potato Stew in a Cauldron
- Any mods that utilise Moonlight's Soft Fluid system can store Leek and Potato Stew, Medicinal Brew, Antidote, Awakening, Burn Heal, Ice Heal, Paralyze Heal, Full Heal, Potion, Super Potion, Hyper Potion, Max Potion, Full Restore, Ability Capsules, Moomoo Milk, and Berry Juice in liquid form (such as Suplementaries' Jar or Goblet, or Cauldrons while using Amendments)
- Supplementaries' Hourglass can now use Bright Powder, Quick Powder, Metal Powder, Heal Powder, Silver Powder, and Remedy
- Berry Trees are now compatible with the Planter properly
- Saccharine Way Signs (added by Supplementaries automagically) now use a premade texture to prevent odd visual issues
- Supplementaries' Jar can now store various Cobblemon cookies, candies, and similar items
- Some of Supplementaries' items have been added to the `#cobblemon:held/container_held_items` item tag, including sacks, safes, and lunch baskets
- Experience Nuggets can be used in place of Sculk for making the EXP Candies if using Create
- Rage Candy Bar has a Create Mixing recipe
- All Cobblemon ores can now be crushed in Create's Crushing Wheels
- All Gem and Tumblestone Clusters can be crushed for automatic, low return, gems
- Hearty Grains can be milled like Farmer's Delight Rice Panicles if both Farmer's Delight and Create are installed
- Big Roots and Revival Herbs can be milled to their respective powders
- Pep-Up Flowers, Medicinal Leeks, and all 70 berries can be milled in Create's Millstone for additional dye drops
- Auspicious Armour and Upgrades can be Haunted using Create's crafting systems
- Applin Apples can be used to make Honeyed Apples in Create
- Golden Apples can now be crafted using the Applin Apples
- Prismarine Crystals and Amethyst Shards can now be used to craft Pokedexes
- Updated Pokédex Screens item tag to support tagged variants of Redstone and Glowstone Dust
- Sounds for interacting with various Cobblemon blocks now play from the centre of the block, rather than the corner
- The `/pc` command no longer plays PC activation sounds
### Fixes
- Fixed Blitzle's base scale being `1` rather than the intended `0.8`
- Fixed Magnezone's emissive layer for the shiny having the wrong name, thus displaying wrongly
- Fixed Litleo not blinking
- Fixed Omanyte and Omastar incorrectly using water animations on land.
- Fixed Pokédex layout for genderless variations
- Fixed odd stacking behaviour with the poke_bait item.
- Fixed a compatibility issue with World Game Rules which caused some log spam in specific cases.
- Fixed improper validation of Pokémon when performing a trade.
- Fixed an issue where particle like beam can disappear when you don't see the beginning of the beam, or you look away
- Fixed Bedrock particle materials (alpha/opaque/blend/add) sharing one render batch, which caused incorrect culling on mixed batches; each material now batches and draws with its own blend and cull state, and the alpha material renders as a true cutout
- Fixed an occasional crash on retrieving revived fossils
- Fixed brushing not working on Neoforge
- Fixed braking not working for submarines (whoops).
- Fixed strafing not having the same friction as forward movement (funny whoops).
- Fixed submarine's surface-water animations not playing when supposed to.
- Fixed submarine camera freaking out when looking up or down on the surface.
- Fixed pastured mons despawning and running away.
- Fixed Apricorn trees crashing when other mods bonemeal it
- Fixed the issue that caused Hover Behaviour rides without a ground style to be rendered useless upon touching the ground on a server.
- Removed the "inAir" penalty for block destruction speed when on a hover mount.
- Fixed horizontal and vertical collisions with hover mounts so they no longer accumulate or retain momentum
- Fixed NeoForge brewing stand unexpectedly crashing users when shift clicking items within its menu
- Fixed NPCs switching Pokémon very often during battles
- Fixed Campfire pot causing crashes under certain circumstances
- Fixed Type Gems not being consumed upon use
- Fixed Ancient Pokéball's to their respective modifiers
- Fixed a Server warning when recalling Pokémon
- Fixed sliding particles incorrectly handling block collision
- Fixed Full Heal not curing status conditions in battle
- Fixed a rare issue with battles locking up when you are forced to switch, with the switch menu appearing instantly.
- Fixed the combined effects of Pledge moves having broken Showdown message handling and localisation
- Fixed rare Pokémon being far too likely to spawn multiple times in a single spawn cycle. The dev told me that the exact bug is too complicated to explain.
- Resolved the niche issue where Structures would spawn in an incorrect location, creating very funky world gen.
- Fixed Galarian Ponyta missing its cry.
- Fixed various log warnings caused by redundant files and sound events.
- Traded Pokémon will now retain the original friendship level when traded back to its OT
- Clusters now display correctly on maps
- Fixed removing mulch from berry trees with a shovel not working.
- Fixed collecting honey from Saccharine Leaf blocks deleting Honey Bottles when the inventory was full
- Fixed Stripped Saccharine Wood recipe being missing
- Fixed CancelableSoundInstance causing lag by attempting to create sounds every tick when out of range of hearing
- Fixed Stat Reducing Aprijuice not being possible to apply on a max out Pokémon, and the possibility of going into negatives
- Fixed Exploit where you could take out the bait or drop your Pokérod with bait to avoid consuming bait, now the bobber will just disappear if you do so
- Fixed Apricorn and Saccharine boats incorrectly using chest boat models
- Fixed wild and trainer battle AI refusing to select moves with the `adjacentAlly` target type, even when it's their only option
- Fixed gilded chests being more accessible than intended
- Fixed fished up Pokémon not being added as "seen" to the Pokedex
- Fixed surprised Gimmighoul encounters not being added as "seen" to the Pokedex
- Fixed a crash involving berry trees that have been world edited.
- Fixed visual desync in multiplayer for players mounting Pokémon outside other players' loaded chunks
- Fixed Pokémon entities leveled by rare candy not getting stronger as Minecraft entities unless recalled.
- Fixed a freeze during game load that occurred when multiple mods tried to load Cobblemon API classes at the same time.
- Fixed random tick crashes from berry trees
- Lowered the volume of Blitzle and Zebstrika's cry
- Regional Foods will now prioritise being eaten instead of used for healing Pokémon, shift clicking will use it as healing
- Resolved Z-Fighting on Pokédex Models
- Restored Ninjask's ability to do barrel rolls
- Fixed Raichu (male) and Alolan Raichu (both genders) not displaying the correct Partner Cap when Pewter Crunchies are in the cosmetic slot.
- Fixed a crash caused by adding enchanted items to the Resurrection Machine
- Fixed a crash that could occur when starting a PvN battle with only fainted Pokémon.
- Fixed the Remember Riding Camera config not being respected when dismounting and resolved the incompatibility with the Auto Third Person mod
- Fixed Full Heal block not dropping Full Heals
- Fixed status cure items not returning an empty bottle when used
- Fixed Panpour consuming its held item when evolving with a Water Stone
- Fixed Smoked Tail Curry returning a Wooden Bowl when consumed despite it not being included in the recipe
- Fixed `/giveallpokemon` not respecting the min and max parameters
- Fixed the choose starter toast not disappearing when capturing a Pokémon instead of opening the starter selection screen
- Fixed an issue where certain Sinister Tea seasonings were only applying as instant effects and would not apply over time
- Long config option labels now scroll instead of overflowing
### Developer
- Added `PokeSnackSpawnerFactory` which allows influence registration on PokeSnack encounters
- Added `FishingSpawnerFactory` which allows influence registration on fishing encounters
- Added `BattleFleeAttemptEvent` fired from `PokemonBattle.checkFleeAttempt`, allowing developers to intercept and control flee attempts
- Tweaked the spawning selector interface to take a bucket function rather than a bucket directly.
- Added a new `cobblemon:height_range` processor type to allow developers to restrict structure-spawning ranges.
- Separated all the functions of MoLangFunctions.kt into their own files.
- Spawn buckets and their base weights are now provided by the spawner, with different base weights for world, fishing, snack, and habitat spawn buckets.
- Removed "SpawnBucket" class in favour of just storing maps of bucket names to weights.
- Fixed nicknames not being applied to Pokémon spawned from `spawn_pool_world` files.
- Added support for `profilePokedexScale`, `profilePokedexTranslation`, `profileSummaryScale`, and `profileSummaryTranslation` in poser files for finer control over profile displays.
- Fixed riding camera offsets defined on Pokémon forms not being applied
### Molang & Datapacks
- Added `moveset_builders` datapack folder for different styles of movesets.
- Added `party_pools` datapack folder for defining groups of Pokémon for complex NPC party definitions.
- Added `party_compositions` datapack folder for arranging parties on NPCs that rely on party pools.
- Added `composed_pool` NPC party provider type which combines a party pool with a party composition to create more complex NPC parties.
- Added basic chatter NPC Behaviour
- Added `q.item.is_enchanted()`
- Added `q.item.has_enchantment(minecraft:sharpness, 3)`
- Added `has_chosen_starter` & `get_starter_uuid` as available Molang functions
- Added `has_tm_move_unlocked`, `unlock_tm_move`, & `lock_tm_move` as available Molang functions for Players
- Added `marks`, `has_mark`, & `remove_marks` as available Molang functions for Pokémon
- Added Data Component support for species drops, eg `"components": {"minecraft:custom_model_data": 123}`
- Added the new `sortOrder` field to mark entries, (defaults to 0 if not specified) which controls the order in which marks are rendered on the HUD, with higher numbers being rendered on top of lower numbers
- Added optional `order` field to starter categories. It will allow explicitly sorting categories in the starter selection screen
- SpeciesAdditions append vs override now matches wiki documentation
- Added `weighted_choice` as a new feature type. It requires setting weights for each choice and allows developers to simplify the process of assigning random aspect choice based on marble chance
- Added `q.world.spawn_loot_table_items(loot_table_id, x, y, z)` which spawns the items from the loot table at the position. (Use type: "minecraft:chest" for the loot table.)
- Added `q.pokemon.entity` to access the entity of Pokémon.
- Flamethrower and Seismic Toss had their action effect JSON cleaned up
- Ride sounds can now be set as exclusive to passengers
- Ride sounds no longer play when submerged unless specified with a new setting
- NPC Trainers can now call a `command` animation when issuing a command in battle.
- Added a q.failed function to move action effects.
- Herd spawned Pokémon have their levels controlled differently. The `levelRange` property now acts as a clamp instead of a filter, with a new `herdLevelRange` property to do the filter behaviour.
- `q.sound` now accepts three parameters (sound event, volume and pitch) instead of just the sound event and pitch.
### Particles
#### New Move Animations
- Blizzard
- Disarming Voice
- Draco Meteor
- Dragon Breath
- Dragon Rage
- Drain Punch
- Fairy Wind
- Fire Fang
- Gust
- Horn Drill
- Hydro Pump
- Ice Fang
- Leafage
- Leaf Storm
- Light Screen
- Night Shade
- Play Rough
- Pyro Ball
- Reflect
- Rock Slide
- Sonic Boom
- Sucker Punch
- Supersonic
- Thunder Fang
#### Tweaks and Fixes (Moves)
- Confusion
- Dragon Claw
- Eruption
- Fire Punch
- Flame Burst
- Flame Charge
- Flamethrower
- Frost Breath
- Hypnosis
- Ice Punch
- Icy Wind
- Mud Sport
- Poison Fang
- Protect
- Psychic
- Quick Attack
- Rage Powder
- Razor Leaf
- Sand Attack
- Scratch
- Shadow Claw
- Sing
- Spore
- String Shot
- Tackle
- Tail Whip
- Thunder
- Thunder Punch
- Thunder Wave
- Water Gun
- Water Pulse
- Water Sport
#### Miscellaneous Particles
+ Added Wild Might particles for Alpha Pokémon
+ Updated stat increase and decrease particles
### Localization
- Updated translations for:
- Japanese
- German
- Spanish
- Ecuadorian Spanish
- Portuguese
- Brazilian Portuguese
- Simplified Chinese
- Traditional Chinese
- Korean
- Updated translations for:
+529
View File
@@ -0,0 +1,529 @@
# Changelog
## [1.8.0 - Make Your Move Update (September 6th, 2026)](#1-8-0)
#### I think the red eyes mean they're friendly!
### Additions
- Added Alpha Pokémon
- Alpha Pokémon are bigger, stronger, and more aggressive than regular Pokémon.
- They are also scarier.
- They always know a TM move and will adapt to be stronger than your party.
- Alphas will always lead herds and spawn in herds.
- Added alpha Pokémon attraction bait effect to Hopo Berries.
- Added intrinsic scaling to all Pokémon (anywhere from 5% smaller to 5% bigger than normal). Some cases, such as shoulder mounting, will not scale so that the shoulder animations don't look silly.
- Added scaling to "baby" Pokémon (10% smaller at level 1 → normally sized at level 10).
- Added TMs.
- Added TM Machine. TMs are made from elemental type gems, and their recipes are unlocked by having Pokémon that know the move.
- Added config options for making TMs infinite-use and instant unlocking of all TM recipes.
- Added Type Gem blocks as well as crystal clusters and deepslate core blocks that are used for growing elemental type gems.
- Added a new Starter Selection menu that looks way better.
- Added a "Move Dex" to the Pokédex to help identify what moves a Pokémon can learn and what Pokémon can get a move.
- Added the Habitat Block, a spawner block for servers and adventure maps that controls spawning in an area.
- Added 49 new habitat structures. In these habitats you will find rarer Pokémon and sometimes different Pokémon will appear on different days.
- Added a toast to notify players of how they can scroll through their party. Did you know you can hold R and scroll instead of using arrow keys? It's true!!!
- Added a way to obtain Porygon by inserting an Upgrade or Dubious Disc into a data monitor.
- Added Disk Rack for storing disks and being an audio sequencer for Noteblocks. What does that have to do with Pokémon? How about you mind your own business!
- Added missing crops to Botany Pots integration.
- Added conditional seats for riding. Seats can be gated by Molang such as "is_alpha".
- Added 10 new ruin structures.
- Added a new shipwreck cove structure called the Magma Shipwreck Cove.
- Added 7 new advancements.
- Pokémon cries now play when clicking Pokémon in the summary screen.
- Held item visibility can now be controlled by the `held_item_visible` command argument.
- Added config option to disable Pokémon spawning on a per-world basis.
- Added config options to award experience to fainted Pokémon for opponents they helped defeat (`awardExperienceToFaintedPokemon`) and to still award experience for defeated enemies even after battle loss/forfeit (`awardExperienceOnBattleLoss`).
- Added `/givetm` command.
- Added advancement triggers for learning TMs: `cobblemon:has_learn_specific_tm` (per-TM), `cobblemon:has_learn_all_tm` (all TMs learned), and `cobblemon:tms_learned` (count-based), backed by a new `totalTMLearnedCount` on player advancement data.
- Added `cobblemon:catch_alpha_pokemon` advancement trigger and `totalAlphaCaptureCount` stat for captured Alpha Pokémon.
### New rideable Pokémon
- Crobat
- Skarmory
- Milotic
- Archeops
- Goodra
- Goodra (Hisuian Form)
- Drampa
- Duraludon
- Archaludon
### Pokémon Added
#### Generation 3
- Wurmple
- Silcoon
- Beautifly
- Cascoon
- Dustox
- Skitty
- Delcatty
- Seviper
- Zangoose
#### Generation 4
- Cherubi
- Cherrim
- Stunky
- Skuntank
#### Generation 5
- Audino
- Pawniard
- Bisharp
#### Generation 6
- Pancham (+ Cosmetic with Black Glasses)
- Pangoro (+ Cosmetic with Black Glasses)
#### Generation 7
- Rockruff
- Lycanroc
#### Generation 8
- Rolycoly
- Carkol
- Coalossal
- Runerigus
- Snom
- Frosmoth
- Indeedee
- Duraludon
- Applin
- Flapple
- Appletun
#### Generation 9
- Nymble
- Lokix
- Kingambit
- Dipplin
- Archaludon
- Hydrapple
#### Regional Forms
- Sandshrew (Alolan Form)
- Sandslash (Alolan Form)
- Yamask (Galarian Form)
- Avalugg (Hisuian Form)
### Model updates for the following Pokémon
- Sandshrew
- Sandslash
- Nidoking
- Zubat
- Golbat
- Crobat
- Ditto
- Porygon
- Porygon2
- Porygon-Z
- Skarmory
- Smoochum
- Jynx
- Popplio
- Brionne
- Primarina
- Fletchling
- Fletchinder
- Talonflame
- Sableye
- Mawile
- Goomy
- Sliggoo
- Goodra
- Nacli
- Naclstack
- Garganacl
- Bidoof
- Cranidos
- Chatot
- Yamask
- Cofagrigus
- Tyranitar
- Turtonator
- Golett
- Corsola
- Arbok (New Patterns: Angry, Cartoon, Clown, Comedic, Crow, Grin, Ink, Modern, Rain, Scribble, Silence, Sloth, Suspicious, Will)
- ... and Substitute
#### Model changes to the regional bias resource pack:
- Added Mime Jr. (Galar Bias)
- Added Bergmite (Hisui Bias)
- Changed models for every existing regional bias
### Animation updates for the following Pokémon
- Kakuna
- Grimer
- Nidoran♀ (+ New shoulder mount)
- Nidorina
- Nidoran♂ (+ New shoulder mount)
- Sandshrew
- Diglett
- Dugtrio
- Graveler
- Happiny
- Chansey
- Blissey
- Poliwhirl
- Poliwrath
- Zubat
- Vulpix
- Drowzee
- Hypno
- Noctowl
- Skarmory
- Skitty
- Flygon
- Shellos
- Riolu
- Lucario
- Purrloin
- Liepard
- Joltik
- Galvantula
- Nidoking
- Fletchling
- Fletchinder
- Talonflame
- Archeops
- Drampa
- Sewaddle
- Swadloon
- Leavanny
- Goomy
- Sliggoo
- Goodra
- Shedinja
- Skwovet
- Greedent
- Bidoof
- Cranidos
- Chatot
- Yamask
- Cofagrigus
- Luvdisc
- Staryu
- Starmie
- Togetic
- Rellor
- Rabsca
- Yungoos
- Gumshoos
- Cottonee
- Whimsicott
- Corsola
#### Added sounds to the following moves
- Absorb
- Aurora Beam
- Double Team
- Draco Meteor
- Fire Punch
- Fire Spin
- Flame Charge
- Flame Wheel
- Giga Drain
- Ice Punch
- Leech Life
- Magical Leaf
- Mega Drain
- Minimize
- Poison Gas
- Rock Throw
- Scary Face
- Seed bomb
- Smokescreen
- String Shot
- Tail Whip
### Changes
- Removed the penalty for block destruction speed when on a hover mount, making them better for digging.
- Golden Apples can now be crafted using the Applin Apples.
- Prismarine Crystals and Amethyst Shards can now be used to craft Pokedexes.
- Updated Pokédex Screens item tag to support tagged variants of Redstone and Glowstone Dust.
- Sharp Beak can now be crafted using bones and Flying Gems.
- Metal Alloy can now be crafted using iron and Thunder Stones.
- Ability Capsules can now be brewed from Medicinal Brew and Dragon Breath.
- Using an Ability Capsule will now return an Empty Bottle.
- Decreased the default pastured wander radius to 32 blocks.
- Added alternate versions of the basic PC Wallpapers based on the original design of Cobblemon's PC, before public release.
- Rooted Arch Ruins, Crumbling Arch Ruins, and all fossil structures have been improved so that they generate more naturally in terrain.
- Gimmighoul towers now generate at ground-level rather than sinking one block into the ground.
- All ruin structures that did not generate with a gimmighoul/gilded chest before will now generate with one.
- All ruin structures gilded chest loot tables have been updated to include a guaranteed TM not learned naturally by any Pokémon through their level-up moveset. Each ruin gets its own specific TM, so you can now go hunting ruins to complete your move dex!
- The Prehistoric Underwater Fissure and Prehistoric Submerged Impact fossil structures now use the biome tag `#cobblemon:is_temperate_ocean`.
- The lush shipwreck cove's phantom mob spawner has been replaced with breezes.
- Shipwreck coves now generate slightly more frequently.
- Added equipment loot tables for shipwreck cove enemies.
- Maps from abandoned fishing boats leading to shipwreck coves now will skip explored chunks, allowing the player to find more shipwreck coves more easily.
- All shipwreck coves' spawners have been adjusted to give compatible mobs enchanted iron or diamond armour and weapons while in its ominous state. The armour given to the mobs will also use the automaton trim. We upped the difficulty because it was too easy now that your Pokémon can fight for you.
- One TM of the elemental hyper beams has been added as guaranteed loot to the main treasure chest in every shipwreck cove. (Magma Cove gets Blast Burn, Lush Cove gets Frenzy Plant, and Submerged Cove gets Hydro Cannon.)
- The following items can now be obtained by brushing the following Pokémon:
- Pink Wool - Wigglytuff
- White Wool - Swablu, Altaria
- Shed Shell - Ekans, Arbok, Dratini, Dragonair, Dunsparce, Treecko, Grovyle, Sceptile, Seviper, Scraggy, Scrafty, Helioptile, Heliolisk, Salandit, Salazzle, Sobble, Drizzile, Inteleon, Silicoblra, Sandaconda, Toxel, Toxtricity, Orthworm, Dudunsparce
- Phantom Membrane - Dreepy, Drakloak, Dragapult
- The following items can now be obtained by evolving the following Pokémon into any of their evolutions:
- Turtle Scute - Squirtle, Wartortle, Turtwig, Grotle, Tirtouga, Chewtle
- Shed Shell - Metapod, Kakuna, Ekans, Paras, Venonat, Krabby, Scyther, Kabuto, Dratini, Dragonair, Ledyba, Spinarak, Yanma, Pineco, Dunsparce, GLigar, Pupitar, Treecko, Grovyle, Silcoon, Cascoon, Surskit, Nincada, Trapinch, Vibrava, Corphish, Anorith, Bagon, Shelgon, Kricketot, Burmy, Combee, Skorupi, Swadloon, Whirlipede, Dwebble, Scraggy, Karrablast, Joltik, Larvesta, Spewpa, Clauncher, Helioptile, Charjabug, Crabrawler, Cutiefly, Dewpider, Salandit, Wimpod, Poipole, Sobble, Drizzile, Dottler, Silicobra, Toxel, Sizzlipede, Snom, Tarountula, Nymble, Rellor
- Saccharine Leaves now drop Tart, Sweet, or Syrupy Apples, depending on their honey coating stage, instead of vanilla Apples.
- Fixed the height of the Tumblestone Bud items when held in hand, placed on head, viewed in a GUI, and placed in an Item Frame.
- Refactored all advancements, removing several deemed unnecessary. Due to this cleanup, all previously obtained advancements will be reset besides the root (for picking a starter Pokémon). This sucks, and we're sorry. We had to do this eventually so better now than later.
- Forces between colliding hitboxes now factors in the weight of Pokémon.
- Improved berry tree performance on singleplayer and servers.
- Updated stat increase and decrease particle effects with the addition of alpha boost particles.
- Improved the performance of pasture blocks on singleplayer and servers.
- Changed the bait effects of the following items: (Vanilla) Sweet & Glow Berries, Golden & Enchanted Golden Apples (Cobblemon) Custap, Eggant, Hopo & Micle Berries, Sweet Hearts.
- Wild Pokémon now reliably have at least one offensive move if they can have offensive moves at that level. No more free lunches with Pokémon that can't even hurt you.
- Data Monitor can accept Disks (TMs, Music Disks, Upgrade, Dubious Disk, etc.) to change what's being displayed on the screen.
- The party overlay's experience-gained animation now displays the amount of EXP the Pokémon gained.
- Pressing the inventory key now closes the Pokémon interact wheel GUI.
- Updated the sound for harvesting Apricorns.
- Lowered the volume of harvesting berries.
- Improved compatibility with various mods
- Farmer's Delight's cutting board can now be used to strip Apricorn and Saccharine's logs, or salvage their planks from various blocks. It can also separate their boats from chests.
- Farmer's Delight's cutting board can be used to get two white dye from Pep-Up Flowers and two magenta dye from Medicinal Leeks.
- Farmer's Delight's cutting board can separate Tumblestone Blocks back into Tumblestones.
- Farmer's Delight's cutting board can salvage Type Gems from their Gem Blocks.
- Farmer's Delight's Onions, Tomatoes, and Cabbages can be used to cook Open-Faced Sandwiches. Nature's Spirit's Olives also can be used.
- Farmer's Delight's cutting board can be used on Hearty Grains to obtain rice and straw, similarly to Farmer's Delight's Rice Panicles.
- Farmer's Delight's Apple Pies and Apple Ciders can now be made using Applin Apples, alongside the Vanilla counterpart.
- Amendments allows for cooking Leek and Potato Stew in a Cauldron.
- Any mods that utilise Moonlight's Soft Fluid system can store Leek and Potato Stew, Medicinal Brew, Antidote, Awakening, Burn Heal, Ice Heal, Paralyze Heal, Full Heal, Potion, Super Potion, Hyper Potion, Max Potion, Full Restore, Ability Capsules, Moomoo Milk, and Berry Juice in liquid form (such as Suplementaries' Jar or Goblet, or Cauldrons while using Amendments).
- Supplementaries' Hourglass can now use Bright Powder, Quick Powder, Metal Powder, Heal Powder, Silver Powder, and Remedy.
- Berry Trees are now compatible with the Planter properly
- Saccharine Way Signs (added by Supplementaries automagically) now use a premade texture to prevent odd visual issues.
- Supplementaries' Jar can now store various Cobblemon cookies, candies, and similar items.
- Some of Supplementaries' items have been added to the `#cobblemon:held/container_held_items` item tag, including sacks, safes, and lunch baskets.
- Experience Nuggets can be used in place of Sculk for making the EXP Candies if using Create.
- Rage Candy Bar has a Create Mixing recipe.
- All Cobblemon ores can now be crushed in Create's Crushing Wheels. All Gem and Tumblestone Clusters can be crushed for automatic, low return, gems.
- Hearty Grains can be milled like Farmer's Delight Rice Panicles if both Farmer's Delight and Create are installed.
- Big Roots and Revival Herbs can be milled to their respective powders.
- Pep-Up Flowers, Medicinal Leeks, and all 70 berries can be milled in Create's Millstone for additional dye drops.
- Auspicious Armour and Upgrades can be Haunted using Create's crafting systems.
- Applin Apples can be used to make Honeyed Apples in Create.
- Sounds for interacting with various Cobblemon blocks now play from the centre of the block, rather than the corner. You probably didn't notice.
- Dragonite's mailbag cosmetic can now also be obtained with a chest in the cosmetic slot.
- Adjusted the walk speed for Croagunk and Aerodactyl.
- The `/pc` command no longer plays PC activation sounds
- Pressing the Summary key while either the starter selection or summary screen are open now closes those screens.
- Ice type Pokémon are now immune to Packed Snow.
- Added cobweb block slowness immunity for spider Pokémon
### Fixes
- Fixed rare Pokémon being far too likely to spawn multiple times in a single spawn cycle. The dev told me that the exact bug is too complicated to explain.
- Fixed Omanyte and Omastar incorrectly using water animations on land.
- Fixed Pokédex layout for genderless variations.
- Fixed odd stacking behaviour with Poké Baits.
- Fixed a compatibility issue with World Game Rules which caused some log spam in specific cases.
- Fixed improper validation of Pokémon when performing a trade.
- Fixed an issue where particles like beams can disappear when you don't see the beginning of the beam, or you look away.
- Fixed Bedrock particle materials sometimes being incorrectly invisible from some sides.
- Fixed an occasional crash on retrieving revived fossils.
- Fixed brushing not working on Neoforge. Again.
- Fixed braking not working for submarine-style mounts (whoops).
- Fixed strafing not having the same friction as forward movement (funny whoops).
- Fixed submarine-style mounts' surface-water animations not playing when supposed to.
- Fixed submarine-style mounts' camera freaking out when looking up or down on the surface.
- Fixed pastured Pokémon despawning and running away.
- Fixed Apricorn trees crashing when other mods bonemeal them.
- Fixed the issue that caused hover-style mounts without a ground style to be rendered useless upon touching the ground on a server.
- Fixed horizontal and vertical collisions with hover-style mounts so they no longer accumulate or retain momentum.
- Fixed NeoForge brewing stand unexpectedly crashing users when shift clicking items within its menu. Well, I suppose all crashes are unexpected. You know what I mean.
- Fixed NPCs switching Pokémon very often during battles.
- Fixed Campfire Pot causing crashes under certain circumstances.
- Fixed Type Gems not being consumed upon use in battles.
- Fixed several Ancient Pokéball's not using the correct capture multiplier.
- Fixed a server warning that could occur when recalling Pokémon.
- Fixed sliding particles incorrectly handling block collision.
- Fixed Full Heal not curing status conditions in battle. Literally it's one job.
- Fixed a rare issue with battles locking up when you are forced to switch, with the switch menu appearing instantly.
- Fixed the combined effects of Pledge moves having broken Showdown message handling and localisation.
- Fixed a very niche issue where structures would spawn in an incorrect location, creating very funky world gen.
- Fixed Galarian Ponyta missing its cry.
- Fixed various log warnings caused by redundant files and sound events.
- Traded Pokémon will now retain the original friendship level when traded back to its OT.
- Tumblestone Clusters now display correctly on maps.
- Fixed removing mulch from berry trees with a shovel not working. That was meant to be a thing.
- Fixed collecting honey from Saccharine Leaf blocks deleting Honey Bottles when the inventory was full.
- Fixed Stripped Saccharine Wood recipe being... not there.
- Fixed some performance issues with a kind of sound event causing lag by attempting to create sounds every tick when out of range of hearing.
- Fixed stat-reducing Aprijuice not being possible to apply on a maxed out Pokémon. Also fixed the possibility of going into negatives.
- Fixed exploit where you could take out the bait or drop your Pokérod with bait to avoid consuming bait, now the bobber will just disappear if you do so.
- Fixed Apricorn and Saccharine boats incorrectly using chest boat models.
- Fixed wild and trainer battle AI refusing to select moves with the `adjacentAlly` target type, even when it's their only option.
- Fixed gilded chests being more accessible than intended.
- Fixed fished up Pokémon not being added as "seen" to the Pokédex.
- Fixed surprised Gimmighoul encounters not being added as "seen" to the Pokédex.
- Fixed a crash involving berry trees that have been world edited.
- Fixed visual desync in multiplayer for players mounting Pokémon outside other players' loaded chunks.
- Fixed Pokémon entities leveled by rare candy not getting stronger as Minecraft entities unless recalled.
- Fixed a freeze during game load that occurred when multiple mods tried to load Cobblemon API classes at the same time.
- Lowered the volume of Blitzle and Zebstrika's cry (shut up!).
- Regional Foods will now prioritise being eaten instead of used for healing Pokémon - shift clicking will use it as healing.
- Resolved z-fighting (texture flickering) on Pokédex Models.
- Restored Ninjask's ability to do barrel rolls.
- Fixed Raichu (male) and Alolan Raichu (both genders) not displaying the correct Partner Cap when Pewter Crunchies are in the cosmetic slot.
- Fixed a crash caused by adding enchanted items to the Resurrection Machine.
- Fixed a crash that could occur when starting a PvN battle with only fainted Pokémon.
- Fixed the Remember Riding Camera config not being respected when dismounting and resolved the incompatibility with the Auto Third Person mod.
- Fixed Full Heal block not dropping Full Heals. Lmao.
- Fixed status cure items not returning an empty bottle when used.
- Fixed Panpour consuming its held item when evolving with a Water Stone.
- Fixed Smoked Tail Curry returning a Wooden Bowl when consumed despite it not being included in the recipe. Free bowls!
- Fixed `/giveallpokemon` not respecting the min and max arguments.
- Fixed the choose starter toast not disappearing when capturing a Pokémon instead of opening the starter selection screen.
- Fixed an issue where certain Sinister Tea seasonings were only applying as instant effects and would not apply over time.
- Long config option labels now scroll instead of overflowing in the configuration menu.
- Fixed some z-fighting and clipping on Dewott and Hisui-Bias Dewott.
- Eggant Berries can now be composted properly on NeoForge.
- Composting chances are now the same on NeoForge as on Fabric.
- Fixed problem where furnaces which had smelted Revival Herbs into Heal Powder in older versions would glitch out on trying to get the experience out of the block.
- Fixed the Battle AI not recognizing Surging Strikes as a multistrike move.
- Fixed Tentacool not using its swim animation when on water surface.
- Fixed Eevee using its left shoulder pose when in battle.
- Fixed Magikarp and Gyarados Jump Pattern resourcepacks replacing shiny textures of addons targeting Magikarp or Gyarados.
- Fixed Combee's pollinated texture overwriting the shiny and female textures.
- Fixed a colour mistake with Dracovish's shiny.
- Fixed Togedemaru's back spikes z-fighting.
- Fixed Sliggoo (+ Hisuian) evolving in the Nether and End where it can't actually rain.
- Corrected the scales, hitbox sizes, and eye heights for Ariados, Cetoddle, Durant, Galvantula, Klink, Lanturn, Lumineon, Mantine, Mantyke, Mudbray, Numel, Staravia, and Torkoal.
- Fixed Torkoal's walk speed not matching its animation. He will no longer move faster than Bunnelby and Buneary. This tortoise would've won.
- Fixed Lanturn T-posing due to missing ground walk and sleep animations.
- Fixed Oshawott and Dewott using their sleep animation in unintended scenarios.
- Fixed Dudunsparce and Maushold always having the same form instead of having the 1 in 100 chance of being different.
- Fixed bird mounts rapidly switching between their flying and gliding animations when flying at low speed.
- Fixed some battles being startable with fainted Pokémon in the initial sendout.
- Fixed random gender selection for forms with strict gender divides (such as Meowstic and Oinkologne) never choosing female (that's sexist).
- Fixed the "Press R to battle" prompt not disappearing after you finish your first battle, at least until you relogged.
- Fixed the composter block being listed as "composer" in the cosmetic items species feature
- Fixed Castform's forms being tagged as introduced in generation 4 instead of 3.
- Fixed Blitzle's base scale being `1` rather than the intended `0.8`.
- Fixed Magnezone's emissive layer for the shiny having the wrong name, thus displaying wrongly.
- Fixed Litleo not blinking.
### Developer
- Added `PokeSnackSpawnerFactory` which allows influence registration on PokeSnack encounters.
- Added `FishingSpawnerFactory` which allows influence registration on fishing encounters.
- Added `BattleFleeAttemptEvent` fired from `PokemonBattle.checkFleeAttempt`, allowing developers to intercept and control flee attempts.
- Tweaked the spawning selector interface to take a bucket function rather than a bucket directly.
- Added a new `cobblemon:height_range` processor type to allow developers to restrict structure-spawning ranges.
- Separated all the functions of MoLangFunctions.kt into their own files.
- Spawn buckets and their base weights are now provided by the spawner, with different base weights for world, fishing, snack, and habitat spawn buckets.
- Removed "SpawnBucket" class in favour of just storing maps of bucket names to weights.
- Fixed nicknames not being applied to Pokémon spawned from `spawn_pool_world` files.
- Added support for `profilePokedexScale`, `profilePokedexTranslation`, `profileSummaryScale`, and `profileSummaryTranslation` in poser files for finer control over profile displays.
- Fixed riding camera offsets defined on Pokémon forms not being applied.
- Marks can now provide aspects.
### Molang & Datapacks
- Added `moveset_builders` datapack folder for different styles of movesets.
- Added `party_pools` datapack folder for defining groups of Pokémon for complex NPC party definitions.
- Added `party_compositions` datapack folder for arranging parties on NPCs that rely on party pools.
- Added `composed_pool` NPC party provider type which combines a party pool with a party composition to create more complex NPC parties.
- Added basic chatter NPC Behaviour.
- Added `q.item.is_enchanted()`.
- Added `q.item.has_enchantment(minecraft:sharpness, 3)`.
- Added `has_chosen_starter` and `get_starter_uuid` as available Molang functions.
- Added `has_tm_move_unlocked`, `unlock_tm_move`, and `lock_tm_move` as available Molang functions for Players.
- Added `marks`, `has_mark`, and `remove_marks` as available Molang functions for Pokémon.
- Added Data Component support for species drops, eg `"components": {"minecraft:custom_model_data": 123}`
- Added the new `sortOrder` field to mark entries, (defaults to 0 if not specified) which controls the order in which marks are rendered on the HUD, with higher numbers being rendered on top of lower numbers.
- Added optional `order` field to starter categories. It will allow explicitly sorting categories in the starter selection screen.
- SpeciesAdditions append vs override now matches the wiki documentation.
- Added `weighted_choice` as a new feature type. It requires setting weights for each choice and allows developers to simplify the process of assigning random aspect choice based on marble chance.
- Added `q.world.spawn_loot_table_items(loot_table_id, x, y, z)` which spawns the items from the loot table at the position. Use type: `minecraft:chest` for the loot table.
- Added `q.pokemon.entity` to access the entity of Pokémon.
- Flamethrower and Seismic Toss had their action effect JSON cleaned up.
- Ride sounds can now be set as exclusive to passengers.
- Ride sounds no longer play when submerged unless specified with a new setting.
- NPC Trainers can now call a `command` animation when issuing a command in battle.
- Added a q.failed function to move action effects.
- Herd spawned Pokémon have their levels controlled differently. The `levelRange` property now acts as a pre-offset clamp instead of a filter, with a new `herdLevelRange` property to do the filter behaviour.
- `q.sound` now accepts three parameters (sound event, volume, and pitch) instead of just the sound event and pitch.
- Added a new layer property that makes a layer scroll in a direction. "scrolling": {"speedU": 0.1, "speedV": 0.1}
- Cleaned up seat data. Removed all now unused fields from seats in all species files. Also made locator seat names explicit in the species files (however, this doesn't break the legacy format)
### Particles
#### New Move Animations
- Blizzard
- Disarming Voice
- Draco Meteor
- Dragon Breath
- Dragon Rage
- Drain Punch
- Fairy Wind
- Fire Fang
- Gust
- Horn Drill
- Hydro Pump
- Ice Fang
- Leafage
- Leaf Storm
- Light Screen
- Night Shade
- Play Rough
- Pyro Ball
- Reflect
- Rock Slide
- Sonic Boom
- Sucker Punch
- Supersonic
- Thunder Fang
#### Tweaks and Fixes (Moves)
- Confusion
- Dragon Claw
- Eruption
- Fire Punch
- Flame Burst
- Flame Charge
- Flamethrower
- Frost Breath
- Hypnosis
- Ice Punch
- Icy Wind
- Mud Sport
- Poison Fang
- Protect
- Psychic
- Quick Attack
- Rage Powder
- Razor Leaf
- Sand Attack
- Scratch
- Shadow Claw
- Sing
- Spore
- String Shot
- Tackle
- Tail Whip
- Thunder
- Thunder Punch
- Thunder Wave
- Water Gun
- Water Pulse
- Water Sport
#### Miscellaneous Particles
- Added Wild Might particles for Alpha Pokémon.
- Updated stat increase and decrease particles.
### Localization
- Updated translations for:
- Japanese
- German
- Spanish
- Ecuadorian Spanish
- Portuguese
- Brazilian Portuguese
- Simplified Chinese
- Traditional Chinese
- Korean
- Russian
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.duck;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
import java.util.Optional;
/**
* Duck that facilitates getting a level key for a given level.
*
* @author dualspiral
* @since August 30th, 2026
*/
public interface MinecraftServerDuck {
Optional<ResourceKey<Level>> cobblemon$getLevelKey(Level level);
}
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.duck;
import net.minecraft.resources.ResourceLocation;
/**
* Duck that facilitates getting a level key that we store on the level.
*
* @author dualspiral
* @since August 30th, 2026
*/
public interface ServerLevelDuck {
ResourceLocation cobblemon$getLevelResourceLocation();
}
@@ -1,54 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.client.multiplayer.ClientPacketListener;
import net.minecraft.network.protocol.game.ClientboundSetPassengersPacket;
import net.minecraft.world.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
@Mixin(ClientPacketListener.class)
public class ClientPacketListenerMixin {
@Shadow private ClientLevel level;
@Inject(method = "handleSetEntityPassengersPacket", at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/world/entity/Entity;hasIndirectPassenger(Lnet/minecraft/world/entity/Entity;)Z", shift = At.Shift.BEFORE), cancellable = true)
private void cobblemon$handlePokemonPassengers(ClientboundSetPassengersPacket packet, CallbackInfo ci) {
Entity entity = this.level.getEntity(packet.getVehicle());
if (entity instanceof PokemonEntity pokemon) {
var passengers = new ArrayList<Entity>();
for (int passenger : packet.getPassengers()) {
passengers.add(this.level.getEntity(passenger));
}
pokemon.getOccupiedSeats().values().stream()
.filter(x -> !passengers.contains(x))
.filter(Objects::nonNull)
.forEach(Entity::stopRiding);
// Mount passengers not yet in the map
var currentPassengers = new ArrayList<>(pokemon.getOccupiedSeats().values());
passengers.stream()
.filter(x -> !currentPassengers.contains(x))
.filter(Objects::nonNull)
.forEach(x -> x.startRiding(pokemon, true));
ci.cancel();
}
}
}
@@ -1,111 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.mixin.accessor.SinglePoolElementAccessor;
import com.cobblemon.mod.common.world.structureprocessors.HeightRangeStructureProcessor;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Holder;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraft.world.level.levelgen.structure.Structure;
import net.minecraft.world.level.levelgen.structure.pools.*;
import net.minecraft.world.level.levelgen.structure.pools.alias.PoolAliasLookup;
import net.minecraft.world.level.levelgen.structure.templatesystem.LiquidSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import java.util.Optional;
@Mixin(JigsawPlacement.class)
public class JigsawPlacementMixin {
@Inject(
method = "addPieces(Lnet/minecraft/world/level/levelgen/structure/Structure$GenerationContext;Lnet/minecraft/core/Holder;Ljava/util/Optional;ILnet/minecraft/core/BlockPos;ZLjava/util/Optional;ILnet/minecraft/world/level/levelgen/structure/pools/alias/PoolAliasLookup;Lnet/minecraft/world/level/levelgen/structure/pools/DimensionPadding;Lnet/minecraft/world/level/levelgen/structure/templatesystem/LiquidSettings;)Ljava/util/Optional;",
at = @At("RETURN"),
cancellable = true
)
private static void onAddPieces(
Structure.GenerationContext context,
Holder<StructureTemplatePool> startPool,
Optional<ResourceLocation> startJigsawName,
int maxDepth,
BlockPos pos,
boolean useExpansionHack,
Optional<Heightmap.Types> projectStartToHeightmap,
int maxDistanceFromCenter,
PoolAliasLookup aliasLookup,
DimensionPadding dimensionPadding,
LiquidSettings liquidSettings,
CallbackInfoReturnable<Optional<Structure.GenerationStub>> cir
) {
Optional<Structure.GenerationStub> result = cir.getReturnValue();
if (result.isEmpty()) {
return;
}
BlockPos spawnPos = result.get().position();
boolean canPlace = cobblemon$canAnyStartElementPlace(context, startPool, spawnPos);
if (canPlace) {
return;
}
cir.setReturnValue(Optional.empty());
}
@Unique
private static boolean cobblemon$canAnyStartElementPlace(
Structure.GenerationContext generationContext,
Holder<StructureTemplatePool> startPool,
BlockPos startPos
) {
for (StructurePoolElement element : startPool.value().templates) {
Optional<HeightRangeStructureProcessor> heightRangeProcessor = cobblemon$getHeightRangeProcessor(element);
if (heightRangeProcessor.isEmpty()) {
return true;
}
HeightRangeStructureProcessor processor = heightRangeProcessor.get();
boolean valid = processor.isValidPlacement(
generationContext.chunkGenerator(),
generationContext.heightAccessor(),
generationContext.randomState(),
startPos
);
if (valid) {
return true;
}
}
return false;
}
@Unique
private static Optional<HeightRangeStructureProcessor> cobblemon$getHeightRangeProcessor(StructurePoolElement element) {
if (!(element instanceof SinglePoolElement)) {
return Optional.empty();
}
StructureProcessorList processorList = ((SinglePoolElementAccessor) element).getProcessors().value();
for (StructureProcessor processor : processorList.list()) {
if (processor instanceof HeightRangeStructureProcessor heightRangeStructureProcessor) {
return Optional.of(heightRangeStructureProcessor);
}
}
return Optional.empty();
}
}
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.duck.MinecraftServerDuck;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import java.util.Map;
import java.util.Optional;
@Mixin(MinecraftServer.class)
public class MinecraftServerMixin implements MinecraftServerDuck {
@Shadow
@Final
private Map<ResourceKey<Level>, ServerLevel> levels;
@Override
public Optional<ResourceKey<Level>> cobblemon$getLevelKey(final Level level) {
return this.levels.entrySet()
.stream()
// Reference equality is intended here, the level we're handed is the same one as in the
// map so we don't need to check value semantics.
.filter(entry -> entry.getValue() == level)
.map(Map.Entry::getKey)
.findFirst();
}
}
@@ -40,6 +40,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.List;
import java.util.LinkedHashMap;
import java.util.Set;
import java.util.function.Consumer;
@@ -114,15 +115,13 @@ public abstract class ServerEntityMixin {
if (currentPassengers.equals(cobblemon$lastSeatPassengers)) return;
cobblemon$lastSeatPassengers = List.copyOf(currentPassengers);
var assignments = new LinkedHashMap<String, Integer>();
pokemon.getOccupiedSeats().forEach((seat, passenger) -> {
if (seat.getLocator() == null) return;
if (passenger == null) return;
cobblemon$broadcast(new ClientboundSeatAssignmentPacket(
passenger.getId(),
pokemon.getId(),
seat.getLocator()
));
assignments.put(seat.getLocator(), passenger.getId());
});
cobblemon$broadcast(new ClientboundSeatAssignmentPacket(pokemon.getId(), assignments));
}
private void cobblemon$broadcast(NetworkPacket<?> packet) {
@@ -8,22 +8,69 @@
package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.duck.MinecraftServerDuck;
import com.cobblemon.mod.common.duck.ServerLevelDuck;
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Holder;
import net.minecraft.core.RegistryAccess;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.util.profiling.ProfilerFiller;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.dimension.DimensionType;
import net.minecraft.world.level.storage.WritableLevelData;
import net.minecraft.world.phys.AABB;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import java.util.List;
import java.util.Optional;
import java.util.function.Supplier;
@Mixin(ServerLevel.class)
public abstract class ServerLevelMixin {
public abstract class ServerLevelMixin extends Level implements ServerLevelDuck {
// Ignored by Mixin, fulfils Java contract
protected ServerLevelMixin(
WritableLevelData levelData,
ResourceKey<Level> dimension,
RegistryAccess registryAccess,
Holder<DimensionType> dimensionTypeRegistration,
Supplier<ProfilerFiller> profiler,
boolean isClientSide,
boolean isDebug,
long biomeZoomSeed,
int maxChainedNeighborUpdates
) {
super(levelData, dimension, registryAccess, dimensionTypeRegistration, profiler, isClientSide, isDebug, biomeZoomSeed, maxChainedNeighborUpdates);
}
@Shadow
public abstract MinecraftServer shadow$getServer();
/**
* Cached to speed up level world key checks every tick.
*/
private ResourceLocation cobblemon$levelResourceLocation;
@Override
public ResourceLocation cobblemon$getLevelResourceLocation() {
if (this.cobblemon$levelResourceLocation == null) {
this.cobblemon$levelResourceLocation = ((MinecraftServerDuck) this.shadow$getServer())
.cobblemon$getLevelKey(this)
.map(ResourceKey::location)
.orElse(null);
}
return this.cobblemon$levelResourceLocation;
}
@Inject(method = "findLightningRod", at = @At(value = "RETURN"), cancellable = true)
private void cobblemon$findLightningRod(BlockPos blockPos, CallbackInfoReturnable<Optional<BlockPos>> ci) {
@@ -15,15 +15,18 @@ import com.cobblemon.mod.common.api.riding.RidingStyle;
import com.cobblemon.mod.common.api.spawning.spawner.PlayerSpawner;
import com.cobblemon.mod.common.api.spawning.spawner.PlayerSpawnerFactory;
import com.cobblemon.mod.common.api.stats.CobblemonStats;
import com.cobblemon.mod.common.duck.ServerLevelDuck;
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity;
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import com.llamalad7.mixinextras.sugar.Local;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.Entity;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.Unique;
@@ -33,9 +36,13 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(ServerPlayer.class)
public abstract class ServerPlayerMixin implements PlayerSpawnerAccessor {
@Shadow
public abstract ServerLevel serverLevel();
@Shadow
@Final
public MinecraftServer server;
@Unique
public PlayerSpawner cobblemon$spawner;
@@ -55,12 +62,9 @@ public abstract class ServerPlayerMixin implements PlayerSpawnerAccessor {
@Inject(method = "tick", at = @At("TAIL"))
private void cobblemon$tickSpawner(CallbackInfo ci) {
if (!Cobblemon.config.getEnableSpawning()) {
return;
} else if (!serverLevel().getGameRules().getBoolean(CobblemonGameRules.DO_POKEMON_SPAWNING)) {
return;
if (cobblemon$canSpawn()) {
getPlayerSpawner().tick();
}
getPlayerSpawner().tick();
}
@Inject(method = "rideTick", at = @At("HEAD"))
@@ -121,4 +125,21 @@ public abstract class ServerPlayerMixin implements PlayerSpawnerAccessor {
return entity;
}
/**
* Gets whether we should spawn Cobblemon entities here.
*
* @return true if we can spawn cobblemon in the current level,
* false otherwise
*/
@SuppressWarnings("resource")
@Unique
private boolean cobblemon$canSpawn() {
return Cobblemon.config.getEnableSpawning() &&
this.serverLevel().getGameRules().getBoolean(CobblemonGameRules.DO_POKEMON_SPAWNING) &&
// intentionally last as this is a more expensive check, even with all the caching
!Cobblemon.config.getWorldSpawningBlocklist().contains(
((ServerLevelDuck) this.serverLevel()).cobblemon$getLevelResourceLocation()
);
}
}
@@ -0,0 +1,103 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.mixin.accessor.SinglePoolElementAccessor;
import com.cobblemon.mod.common.world.structureprocessors.HeightRangeStructureProcessor;
import com.llamalad7.mixinextras.sugar.Local;
import net.minecraft.core.Holder;
import net.minecraft.core.RegistryAccess;
import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.LevelHeightAccessor;
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.biome.BiomeSource;
import net.minecraft.world.level.chunk.ChunkGenerator;
import net.minecraft.world.level.levelgen.RandomState;
import net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece;
import net.minecraft.world.level.levelgen.structure.Structure;
import net.minecraft.world.level.levelgen.structure.StructurePiece;
import net.minecraft.world.level.levelgen.structure.StructureStart;
import net.minecraft.world.level.levelgen.structure.pools.SinglePoolElement;
import net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import java.util.Optional;
import java.util.function.Predicate;
@Mixin(Structure.class)
public abstract class StructureMixin {
/**
* Discards a structure start when any of its pieces carries a {@link HeightRangeStructureProcessor}
* whose range the piece does not fit in.
* Crab Note: We have to make this has to happen here rather than in the processor itself. Terrain adaptation and {@code /locate}
* both read the start, so by the time processors run the terrain has already been generated and the
* structure is already on the map which previously were left behdind when we were trying to make some structures not generate via processor. Now
* Returning {@link StructureStart#INVALID_START} keeps the start from ever existing, which makes sure that weird generation isn't left behind.
*/
@Inject(
method = "generate",
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/levelgen/structure/StructureStart;isValid()Z"),
cancellable = true
)
private void cobblemon$rejectStartsOutsideHeightRange(
RegistryAccess registryAccess, ChunkGenerator chunkGenerator, BiomeSource biomeSource,
RandomState randomState, StructureTemplateManager structureTemplateManager, long seed,
ChunkPos chunkPos, int references, LevelHeightAccessor heightAccessor,
Predicate<Holder<Biome>> validBiome,
CallbackInfoReturnable<StructureStart> cir,
@Local StructureStart structureStart
) {
for (StructurePiece piece : structureStart.getPieces()) {
if (!(piece instanceof PoolElementStructurePiece poolPiece)) {
continue;
}
Optional<HeightRangeStructureProcessor> heightRangeProcessor = cobblemon$getHeightRangeProcessor(poolPiece.getElement());
if (heightRangeProcessor.isEmpty()) {
continue;
}
boolean valid = heightRangeProcessor.get().isValidPlacement(
chunkGenerator,
heightAccessor,
randomState,
piece.getBoundingBox()
);
if (!valid) {
cir.setReturnValue(StructureStart.INVALID_START);
return;
}
}
}
@Unique
private static Optional<HeightRangeStructureProcessor> cobblemon$getHeightRangeProcessor(StructurePoolElement element) {
if (!(element instanceof SinglePoolElement)) {
return Optional.empty();
}
StructureProcessorList processorList = ((SinglePoolElementAccessor) element).getProcessors().value();
for (StructureProcessor processor : processorList.list()) {
if (processor instanceof HeightRangeStructureProcessor heightRangeStructureProcessor) {
return Optional.of(heightRangeStructureProcessor);
}
}
return Optional.empty();
}
}
@@ -20,7 +20,7 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
//This is a yucky hack but better than what we were doing before
// There appears to be a data driven way to do this now, however I am not sure how it works since there is no wiki or anything so yolo
@Mixin(BlockVariantSets.class)
public abstract class AdornRegisterInvoker {
@Final
@@ -133,7 +133,7 @@ open class PokemonBattle(
set(value) { field = value.coerceAtMost(Int.MAX_VALUE) } // go outside
/** The current duration of the battle in seconds. */
val time: Int get() = ticks % 20
val time: Int get() = ticks / 20
var dispatchResult = GO
val dispatches = ConcurrentLinkedDeque<BattleDispatch>()
@@ -65,7 +65,7 @@ class HabitatSpawn {
/** The maximum light level that the Pokémon can spawn in. */
var maxLight: Int? = null
open fun writeToNBT(nbt: CompoundTag) {
fun writeToNBT(nbt: CompoundTag) {
nbt.putString(DataKeys.HABITAT_POOL_SPAWN_SPECIES, species.resourceIdentifier.toString())
nbt.putString(DataKeys.HABITAT_POOL_SPAWN_POSITION_TYPE, spawnablePositionType)
nbt.putFloat(DataKeys.HABITAT_POOL_SPAWN_WEIGHT, weight)
@@ -78,7 +78,7 @@ class HabitatSpawn {
nbt.putString(DataKeys.HABITAT_POOL_SPAWN_BUCKET, bucket)
}
open fun readFromNBT(nbt: CompoundTag) {
fun readFromNBT(nbt: CompoundTag) {
species = PokemonSpecies.getByIdentifier(nbt.getString(DataKeys.HABITAT_POOL_SPAWN_SPECIES).asIdentifierDefaultingNamespace())!!
spawnablePositionType = nbt.getString(DataKeys.HABITAT_POOL_SPAWN_POSITION_TYPE)
weight = nbt.getFloat(DataKeys.HABITAT_POOL_SPAWN_WEIGHT)
@@ -91,7 +91,7 @@ class HabitatSpawn {
bucket = if (nbt.contains(DataKeys.HABITAT_POOL_SPAWN_BUCKET)) nbt.getString(DataKeys.HABITAT_POOL_SPAWN_BUCKET) else "common"
}
open fun encode(buffer: RegistryFriendlyByteBuf) {
fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeResourceLocation(species.resourceIdentifier)
buffer.writeUtf(spawnablePositionType)
buffer.writeFloat(weight)
@@ -104,7 +104,7 @@ class HabitatSpawn {
buffer.writeUtf(bucket)
}
open fun decode(buffer: RegistryFriendlyByteBuf) {
fun decode(buffer: RegistryFriendlyByteBuf) {
species = PokemonSpecies.getByIdentifier(buffer.readResourceLocation())!!
spawnablePositionType = buffer.readUtf()
weight = buffer.readFloat()
@@ -118,7 +118,7 @@ class HabitatSpawn {
}
/** Creates the [PokemonSpawnDetail] that will be used in the spawner. This is done per habitat block. */
open fun createSpawnDetail(habitatBlockEntity: HabitatBlockEntity): PokemonSpawnDetail? {
fun createSpawnDetail(habitatBlockEntity: HabitatBlockEntity): PokemonSpawnDetail? {
val spawnDetail = PokemonSpawnDetail()
// If the habitat block specifies a level range, it restricts how and if this spawn exists
@@ -109,8 +109,10 @@ open class Learnset {
evolutionMoves
}
// We only sync level up moves atm
// Syncs level up, TM, and egg moves.
fun shouldSynchronize(other: Learnset) = other.levelUpMoves != this.levelUpMoves
|| other.tmMoves != this.tmMoves
|| other.eggMoves != this.eggMoves
fun decode(buffer: RegistryFriendlyByteBuf) {
this.levelUpMoves.clear()
@@ -122,6 +124,8 @@ open class Learnset {
}
levelUpMoves[level] = moves
}
decodeMoveList(buffer, this.tmMoves)
decodeMoveList(buffer, this.eggMoves)
}
fun encode(buffer: RegistryFriendlyByteBuf) {
@@ -133,5 +137,21 @@ open class Learnset {
buffer.writeInt(move.num)
}
}
encodeMoveList(buffer, this.tmMoves)
encodeMoveList(buffer, this.eggMoves)
}
private fun decodeMoveList(buffer: RegistryFriendlyByteBuf, list: MutableList<MoveTemplate>) {
list.clear()
repeat(times = buffer.readSizedInt(IntSize.U_SHORT)) {
Moves.getByNumericalId(buffer.readInt())?.let(list::add)
}
}
private fun encodeMoveList(buffer: RegistryFriendlyByteBuf, list: List<MoveTemplate>) {
buffer.writeSizedInt(IntSize.U_SHORT, list.size)
for (move in list) {
buffer.writeInt(move.num)
}
}
}
@@ -40,6 +40,10 @@ import kotlin.math.*
class BirdBehaviour : RidingBehaviour<BirdSettings, BirdState> {
companion object {
val KEY = cobblemonResource("air/bird")
private const val FLY_POSE_SPEED = 0.1
private const val GLIDE_ENTRY_SPEED = 0.19
private const val GLIDE_EXIT_SPEED = 0.13
}
override val key: ResourceLocation = KEY
@@ -49,7 +53,7 @@ class BirdBehaviour : RidingBehaviour<BirdSettings, BirdState> {
}
val poseProvider = PoseProvider<BirdSettings, BirdState>(PoseType.HOVER)
.with(PoseOption(PoseType.FLY) { _, state, _ -> state.rideVelocity.get().z > 0.2 })
.with(PoseOption(PoseType.FLY) { _, state, _ -> state.rideVelocity.get().z > FLY_POSE_SPEED })
val globalBird: BirdSettings
get() = CobblemonRideSettings.bird
@@ -192,21 +196,23 @@ class BirdBehaviour : RidingBehaviour<BirdSettings, BirdState> {
}
// speed up and slow down based on input
if (driver.zza != 0.0f && state.stamina.get() > 0.0 && newVelocity.length() < glideTopSpeed) {
//make sure it can't exceed top speed
val forwardInput = when {
state.stamina.get() == 0.0f -> 0.0
driver.zza > 0 && newVelocity.z > topSpeed -> 0.0
driver.zza < 0 && newVelocity.z < (-topSpeed / 3.0) -> 0.0
else -> driver.zza.sign
}
newVelocity = Vec3(
newVelocity.x,
newVelocity.y,
(newVelocity.z + (accel * forwardInput.toDouble())))
if (driver.zza != 0.0f && state.stamina.get() > 0.0) {
activeInput = true
if (newVelocity.length() < glideTopSpeed) {
//make sure it can't exceed top speed
val forwardInput = when {
state.stamina.get() == 0.0f -> 0.0
driver.zza > 0 && newVelocity.z > topSpeed -> 0.0
driver.zza < 0 && newVelocity.z < (-topSpeed / 3.0) -> 0.0
else -> driver.zza.sign
}
newVelocity = Vec3(
newVelocity.x,
newVelocity.y,
(newVelocity.z + (accel * forwardInput.toDouble())))
}
}
val controller = (vehicle as? OrientationControllable)?.orientationController
@@ -264,11 +270,9 @@ class BirdBehaviour : RidingBehaviour<BirdSettings, BirdState> {
//Check if the ride should be gliding
if (driver.isLocalPlayer) {
if ((activeInput && state.stamina.get() > 0.0) || state.rideVelocity.get().z < 0.2) {
state.gliding.set(false)
} else {
state.gliding.set(true)
}
val powered = activeInput && state.stamina.get() > 0.0
val requiredSpeed = if (state.gliding.get()) GLIDE_EXIT_SPEED else GLIDE_ENTRY_SPEED
state.gliding.set(!powered && newVelocity.z >= requiredSpeed)
}
//air resistance
@@ -193,7 +193,7 @@ class HorseBehaviour : RidingBehaviour<HorseSettings, HorseState> {
val newStam = if (state.sprinting.get()) {
max(0.0f,stam - stamDrainRate)
} else {
min(1.0f,stam + stamDrainRate * 4)
min(1.0f,stam + stamDrainRate * 8) // Need to change this to probably be in seconds eventually? idk something that isn't this magic number.
}
state.stamina.set(newStam.coerceIn(0F, 1F))
@@ -147,7 +147,7 @@ class DolphinBehaviour : RidingBehaviour<DolphinSettings, DolphinState> {
val stamDrainRate = (1.0f / boostTime).toFloat()
val newStam = if (state.boosting.get()) max(0.0f,stam - stamDrainRate)
else (stam + stamDrainRate).coerceIn(0F, 1F)
else (stam + stamDrainRate * 2).coerceIn(0F, 1F)
state.stamina.set(newStam)
}
@@ -12,6 +12,7 @@ import com.cobblemon.mod.common.api.conditional.RegistryLikeCondition
import com.cobblemon.mod.common.api.spawning.MoonPhaseRange
import com.cobblemon.mod.common.api.spawning.TimeRange
import com.cobblemon.mod.common.api.spawning.position.SpawnablePosition
import com.cobblemon.mod.common.block.entity.PokeSnackBlockEntity
import com.cobblemon.mod.common.util.Merger
import com.cobblemon.mod.common.util.math.orMax
import com.cobblemon.mod.common.util.math.orMin
@@ -59,6 +60,7 @@ abstract class SpawningCondition<T : SpawnablePosition> {
var structures: MutableList<Either<ResourceLocation, TagKey<Structure>>>? = null
var isSlimeChunk: Boolean? = null
var markers: MutableList<String>? = null
var isPokeSnack: Boolean? = null
@Transient
var appendages = mutableListOf<AppendageCondition>()
@@ -75,7 +77,9 @@ abstract class SpawningCondition<T : SpawnablePosition> {
}
protected open fun fits(spawnablePosition: T): Boolean {
if (spawnablePosition.position.x < minX.orMin() || spawnablePosition.position.x > maxX.orMax()) {
if (isPokeSnack != null && (spawnablePosition.spawner is PokeSnackBlockEntity.Spawner != isPokeSnack!!)) {
return false
} else if (spawnablePosition.position.x < minX.orMin() || spawnablePosition.position.x > maxX.orMax()) {
return false
} else if (spawnablePosition.position.y < minY.orMin() || spawnablePosition.position.y > maxY.orMax()) {
return false
@@ -32,6 +32,7 @@ import com.cobblemon.mod.common.api.spawning.selection.SpawnSelectionData
class EmptySpawnDetail : SpawnDetail() {
companion object {
val TYPE = "empty"
val EMPTY = EmptySpawnDetail()
}
override val type: String = TYPE
@@ -11,14 +11,19 @@ package com.cobblemon.mod.common.api.spawning.detail
import com.cobblemon.mod.common.Cobblemon.LOGGER
import com.cobblemon.mod.common.api.drop.DropTable
import com.cobblemon.mod.common.api.pokemon.PokemonProperties
import com.cobblemon.mod.common.api.pokemon.PokemonSpecies
import com.cobblemon.mod.common.api.spawning.position.AreaSpawnablePosition
import com.cobblemon.mod.common.api.spawning.position.SpawnablePosition
import com.cobblemon.mod.common.api.spawning.selection.SpawnSelectionData
import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace
import com.cobblemon.mod.common.util.weightedSelection
import com.google.gson.annotations.SerializedName
import net.minecraft.core.registries.Registries
import net.minecraft.resources.ResourceLocation
import net.minecraft.util.Mth.clamp
import net.minecraft.world.item.ItemStack
import net.minecraft.world.item.Items
import kotlin.math.ceil
/**
* A spawn detail that spawns a herd of Pokémon. This relies on the same [PokemonSpawnAction]s as
@@ -36,7 +41,6 @@ import net.minecraft.world.item.Items
class PokemonHerdSpawnDetail : SpawnDetail() {
companion object {
val TYPE = "pokemon-herd"
const val HERD_LEADER = "leader"
}
override val type: String = TYPE
@@ -50,14 +54,14 @@ class PokemonHerdSpawnDetail : SpawnDetail() {
get() = "${id}__LEVEL"
class Herdable {
var pokemon: PokemonProperties = PokemonProperties()
var pokemon = PokemonProperties()
val levelRange: IntRange? = null
var levelRangeOffset: IntRange? = null
val herdLevelRange: IntRange? = null
var dropTable: DropTable? = null
var isLeader: Boolean = false
var isFollower: Boolean = true
var weight: Float = 1F
var isLeader = false
var isFollower = true
var weight = 1F
var maxTimes = 10
var heldItem: ResourceLocation? = null
}
@@ -69,22 +73,23 @@ class PokemonHerdSpawnDetail : SpawnDetail() {
selectionData: SpawnSelectionData
) {
selectionData.removeSpawnDetails { it != this }
selectionData.guaranteedBucket = bucket
selectionData.removeSpawnablePositions { _, pos -> pos.distanceTo(spawnablePosition) < minDistanceBetweenSpawns }
val herdSpawnCount = selectionData.spawnActions.count { it.detail == this } + 1
val lacksPossibleLeader = lacksPossibleLeader(selectionData)
if (herdSpawnCount >= maxHerdSize || getValidHerdMembers(selectionData).isEmpty()) {
if (herdSpawnCount >= maxHerdSize || getValidHerdMembersForRole(selectionData, useLeaderRole = lacksPossibleLeader).isEmpty()) {
// We can't spawn any more in the herd so remove this spawn from the selection pool.
selectionData.removeSpawnDetails { it == this }
}
}
fun lacksPossibleLeader(selectionData: SpawnSelectionData): Boolean {
val level = getOrSetHerdLevel(selectionData)
val herdable = getValidHerdMembers(selectionData)
val herdCounts = getHerdMemberCounts(selectionData)
val leaderIsPossible = herdable.any { it.herdLevelRange?.contains(level) != false && it.isLeader }
val leaderIsPossible = herdable.any { it.isLeader }
val leaderIsSelected = herdCounts.any { it.key?.isLeader == true && it.value > 0 }
return leaderIsPossible && !leaderIsSelected
}
@@ -93,25 +98,42 @@ class PokemonHerdSpawnDetail : SpawnDetail() {
return (selectionData.context[herdLevelKey] as? Int) ?: run {
val level = levelRange.random()
selectionData.context[herdLevelKey] = level
return level
level
}
}
private fun getValidHerdMembersForRole(selectionData: SpawnSelectionData, useLeaderRole: Boolean): List<Herdable> {
return getValidHerdMembers(selectionData).filter { (useLeaderRole && it.isLeader) || (!useLeaderRole && it.isFollower) }
}
override fun createSpawnAction(
spawnablePosition: SpawnablePosition,
bucket: String,
selectionData: SpawnSelectionData
): PokemonSpawnAction {
val validHerdMembers = getValidHerdMembers(selectionData)
var searchedForLeader = false
val herdable = if (lacksPossibleLeader(selectionData)) {
searchedForLeader = true
validHerdMembers.filter { it.isLeader }
} else {
validHerdMembers.filter { it.isFollower }
}.weightedSelection { it.weight } ?: herdablePokemon[0]
): SpawnAction<*> {
val herdable = getValidHerdMembersForRole(
selectionData = selectionData,
useLeaderRole = lacksPossibleLeader(selectionData)
).weightedSelection { it.weight } ?: herdablePokemon[0]
var level = selectionData.context[herdLevelKey] as? Int ?: 1
// Attempt to do more detailed anti-wall-spawn logic. Herd members could spawn in walls because
// we've just been assuming they're 1 block wide (or at least, all in the herd have the same size).
// Some pokemon are not that though.
if (spawnablePosition is AreaSpawnablePosition) {
val species = herdable.pokemon.species?.let { PokemonSpecies.getByIdentifier(it.asIdentifierDefaultingNamespace()) }
if (species != null) {
val height = ceil(species.hitbox.height * species.baseScale).toInt()
val width = ceil(species.hitbox.width * species.baseScale).toInt()
if (!spawnablePosition.hasSpace(width, height)) {
return EmptySpawnAction(spawnablePosition, bucket, EmptySpawnDetail.EMPTY)
}
}
}
level = herdable.levelRange?.let { clamp(level, it.first, it.last) } ?: level
val level = selectionData.context[herdLevelKey] as? Int ?: 1
val levelRange = herdable.levelRangeOffset?.let { offset ->
val min = level + offset.first
val max = level + offset.last
@@ -136,11 +158,7 @@ class PokemonHerdSpawnDetail : SpawnDetail() {
drops = herdable.dropTable,
heldItem = heldItem,
levelRange = levelRange
).also {
if (herdable.isLeader && searchedForLeader) {
it.labels += HERD_LEADER
}
}
)
}
fun getHerdMemberCounts(selectionData: SpawnSelectionData): Map<Herdable?, Int> {
@@ -53,34 +53,39 @@ open class AreaSpawnablePosition(
*/
open fun isSafeSpace(world: ServerLevel, pos: BlockPos, state: BlockState): Boolean = !state.isSolid
fun hasSpace(width: Int, height: Int): Boolean {
val sizeX = width.takeIf { it > 0 } ?: 1
val sizeY = height.takeIf { it > 0 } ?: 1
val minX = floor(position.x + 0.5 - (sizeX - 1) / 2F).toInt() - 1
val maxX = ceil(position.x + 0.5 + (sizeX + 1) / 2F).toInt() + 1
val maxY = ceil(position.y + (sizeY + 1) / 2F).toInt() + 1
val minZ = floor(position.z + 0.5 - (sizeX - 1) / 2F).toInt() - 1
val maxZ = ceil(position.z + 0.5 + (sizeX + 1) / 2F).toInt() + 1
val mutable = BlockPos.MutableBlockPos()
for (x in minX until maxX) {
for (y in (position.y + 1)..maxY) {
for (z in minZ until maxZ) {
val state = zone.getBlockState(mutable.set(x, y, z))
if (!isSafeSpace(world, mutable, state)) {
return false
}
}
}
}
return true
}
override fun postFilter(detail: SpawnDetail): Boolean {
if (!super.postFilter(detail)) {
return false
}
if (detail.width > 1 || detail.height > 1) {
val sizeX = detail.width.takeIf { it > 0 } ?: 1
val sizeY = detail.height.takeIf { it > 0 } ?: 1
val minX = floor(position.x + 0.5 - (sizeX - 1) / 2F).toInt() - 1
val maxX = ceil(position.x + 0.5 + (sizeX + 1) / 2F).toInt() + 1
val maxY = ceil(position.y + (sizeY + 1) / 2F).toInt() + 1
val minZ = floor(position.z + 0.5 - (sizeX - 1) / 2F).toInt() - 1
val maxZ = ceil(position.z + 0.5 + (sizeX + 1) / 2F).toInt() + 1
val mutable = BlockPos.MutableBlockPos()
for (x in minX until maxX) {
for (y in (position.y + 1)..maxY) {
for (z in minZ until maxZ) {
val state = zone.getBlockState(mutable.set(x, y, z))
if (!isSafeSpace(world, mutable, state)) {
return false
}
}
}
}
return hasSpace(detail.width, detail.height)
}
return true
@@ -28,7 +28,7 @@ import java.io.InputStreamReader
* @since July 8th, 2022
*/
class BestSpawnerConfig {
val version = 0
val version = 2
/** Whether an external config will be replaced by an internal one once [version] is higher on the internal. */
val replaceWithNewVersion = true
@SerializedName("spawnablePositionTypeWeights", alternate = ["contextWeights"])
@@ -40,11 +40,11 @@ class BestSpawnerConfig {
)
val worldBuckets = mutableMapOf(
"common" to 94F,
"common" to 94.05F,
"uncommon" to 5F,
"rare" to 0.5F,
"ultra-rare" to 0.2F,
"boss" to 0.3F,
"boss" to 0.25F,
)
val fishingBuckets = mutableMapOf(
@@ -89,6 +89,7 @@ open class FlatSelector : SpawningSelector<FlatSelector.SpawnablePositionSelecti
val spawnablePositions: List<SpawnablePosition>,
val selectingSpawnInformation: MutableMap<String, SpawnablePositionBucketSelectionData>,
): SpawnSelectionData {
override var guaranteedBucket: String? = null
override val spawnActions = mutableListOf<SpawnAction<*>>()
override val context = mutableMapOf<String, Any>()
@@ -101,6 +101,7 @@ open class FlatSpawnablePositionWeightedSelector : SpawningSelector<FlatSpawnabl
val spawner: Spawner,
val spawnablePositions: List<SpawnablePosition>
) : SpawnSelectionData {
override var guaranteedBucket: String? = null
override val spawnActions = mutableListOf<SpawnAction<*>>()
override val context = mutableMapOf<String, Any>()
@@ -21,6 +21,7 @@ import com.cobblemon.mod.common.api.spawning.position.SpawnablePosition
* @since April 21st, 2025
*/
interface SpawnSelectionData {
var guaranteedBucket: String?
val context: MutableMap<String, Any>
val spawnActions: MutableList<SpawnAction<*>>
fun removeSpawnDetails(shouldRemove: (SpawnDetail) -> Boolean)
@@ -28,6 +29,7 @@ interface SpawnSelectionData {
companion object {
val EMPTY = object : SpawnSelectionData {
override var guaranteedBucket: String? = null
override val context: MutableMap<String, Any> = mutableMapOf()
override val spawnActions: MutableList<SpawnAction<*>> = mutableListOf()
override fun removeSpawnDetails(shouldRemove: (SpawnDetail) -> Boolean) {}
@@ -47,7 +47,7 @@ interface SpawningSelector<T : SpawnSelectionData> {
val spawnActions = selectionData.spawnActions
while (spawnActions.size < maxSpawns) {
val bucket = bucketSelector()
val bucket = selectionData.guaranteedBucket ?: bucketSelector()
val spawnAction = selectSpawnAction(
spawner = spawner,
bucket = bucket,
@@ -17,6 +17,7 @@ import com.cobblemon.mod.common.api.spawning.influence.BucketNormalizingInfluenc
import com.cobblemon.mod.common.api.spawning.influence.SpawnBaitInfluence
import com.cobblemon.mod.common.api.spawning.influence.SpawningInfluence
import com.cobblemon.mod.common.api.spawning.rules.SpawnRule
import com.cobblemon.mod.common.block.entity.PokeSnackBlockEntity
import com.cobblemon.mod.common.util.mutableLazy
import net.minecraft.core.BlockPos
import net.minecraft.server.level.ServerLevel
@@ -66,10 +67,10 @@ object PokeSnackSpawnerFactory {
},
)
fun create(ctx: Context): FixedAreaSpawner {
fun create(ctx: Context): PokeSnackBlockEntity.Spawner {
val influences = influenceBuilders.mapNotNull { it(ctx) }
return FixedAreaSpawner(
return PokeSnackBlockEntity.Spawner(
name = ctx.name,
spawnPool = spawnPool,
buckets = Cobblemon.bestSpawner.config.pokeSnackBuckets,
@@ -46,6 +46,7 @@ open class BottomlessStore(override val uuid: UUID) : PokemonStore<BottomlessPos
pokemon.forEachIndexed { index, pokemon ->
pokemon.storeCoordinates.set(StoreCoordinates(this, BottomlessPosition(index)))
}
rebuildPokemonByUuid()
}
override fun saveToNBT(nbt: CompoundTag, registryAccess: RegistryAccess): CompoundTag {
@@ -53,7 +53,7 @@ abstract class PokemonStore<T : StorePosition> : Iterable<Pokemon> {
* Runs initialization logic for this store, knowing that it has just been constructed in a [PokemonStoreFactory].
*
* The minimum of what this function should do is iterate over all the Pokémon in this store and set their store
* coordinates.
* coordinates. Built-in stores then rebuild the UUID index via [rebuildPokemonByUuid].
*
* If this does not get called, or it does not do its job properly, serious de-sync issues may follow.
*/
@@ -99,6 +99,7 @@ abstract class PokemonStore<T : StorePosition> : Iterable<Pokemon> {
setAtPosition(position, pokemon)
pokemon.storeCoordinates.set(StoreCoordinates(this, position))
pokemonByUuid[pokemon.uuid] = pokemon
}
/** Swaps the Pokémon at the specified positions. If one of the spaces is empty, it will simply move the not-null one to that space. */
@@ -147,10 +148,26 @@ abstract class PokemonStore<T : StorePosition> : Iterable<Pokemon> {
pokemon.recall()
pokemon.storeCoordinates.set(null)
setAtPosition(currentPosition.position, null)
pokemonByUuid.remove(pokemon.uuid)
return true
}
operator fun get(uuid: UUID) = find { it.uuid.equals(uuid) }
/** In-memory UUID index. Not serialized; rebuilt by [rebuildPokemonByUuid]. */
private val pokemonByUuid = hashMapOf<UUID, Pokemon>()
/** Gets the [Pokemon] with this UUID, or null if it is not in this store. */
operator fun get(uuid: UUID): Pokemon? = pokemonByUuid[uuid]
/**
* Rebuilds the UUID index from the store's current contents.
*
* Call after load or any structural mutation that does not go through [set] / [remove], such as
* filling slots directly from NBT/JSON or shrinking a PC.
*/
protected fun rebuildPokemonByUuid() {
pokemonByUuid.clear()
forEach { pokemonByUuid[it.uuid] = it }
}
open fun handleInvalidSpeciesNBT(nbt: CompoundTag) {
Cobblemon.LOGGER.error("Failed to read unknown species: ${nbt.getString(DataKeys.POKEMON_SPECIES_IDENTIFIER)}")
@@ -138,6 +138,7 @@ open class PartyStore(override val uuid: UUID) : PokemonStore<PartyPosition>() {
val pokemon = get(slot) ?: continue
pokemon.storeCoordinates.set(StoreCoordinates(this, PartyPosition(slot)))
}
rebuildPokemonByUuid()
}
override fun onPokemonChanged(pokemon: Pokemon) {
@@ -279,7 +280,7 @@ open class PartyStore(override val uuid: UUID) : PokemonStore<PartyPosition>() {
}
}
return result
return result.sortedBy { it.health <= 0 }
}
fun clearParty() {
forEach {
@@ -105,6 +105,7 @@ open class PCStore(
override fun initialize() {
boxes.forEach { it.initialize() }
backupStore.initialize()
rebuildPokemonByUuid()
}
fun relocateEvictedBoxPokemon(pokemon: Pokemon) {
@@ -135,6 +136,7 @@ open class PCStore(
tryRestoreBackedUpPokemon()
}
rebuildPokemonByUuid()
pcChangeObservable.emit(Unit)
}
@@ -142,6 +144,7 @@ open class PCStore(
this.lockedSize = lockNewSize
boxes.removeAll(boxList)
boxList.flatMap { it.asIterable() }.forEach(overflowHandler)
rebuildPokemonByUuid()
pcChangeObservable.emit(Unit)
}
@@ -66,6 +66,8 @@ object CobblemonBiomeTags {
val IS_WARM_OCEAN = create("is_warm_ocean")
@JvmField
val IS_DEEP_DARK = create("is_deep_dark")
@JvmField
val IS_MOUNTAIN = create("is_mountain")
// Has Block tags
@JvmField
@@ -166,7 +166,7 @@ object AIUtility {
"geargrind" to Pair(2, 2),
"twinbeam" to Pair(2, 2),
"twineedle" to Pair(2, 2),
"suringstrikes" to Pair(3, 3),
"surgingstrikes" to Pair(3, 3),
"tripledive" to Pair(3, 3),
"watershuriken" to Pair(3, 3),
@@ -39,7 +39,6 @@ class FaintInstruction(battle: PokemonBattle, val message: BattleMessage) : Inte
battle.dispatchFuture {
val (pnx, _) = message.pnxAndUuid(0) ?: return@dispatchFuture CompletableFuture.completedFuture(Unit)
val pokemon = message.battlePokemon(0, battle) ?: return@dispatchFuture CompletableFuture.completedFuture(Unit)
battle.sendUpdate(BattleFaintPacket(pnx))
val actor = pokemon.actor
pokemon.effectedPokemon.currentHealth = 0
val preamble = if (actor is EntityBackedBattleActor<*>) {
@@ -50,6 +49,8 @@ class FaintInstruction(battle: PokemonBattle, val message: BattleMessage) : Inte
val context = ShowdownInterpreter.getContextFromFaint(faintingPokemon, battle)
preamble.thenAccept {
// Sent after the faint/recall animation so clients don't learn about the KO early
battle.sendUpdate(BattleFaintPacket(pnx))
faintingPokemon.effectedPokemon.currentHealth = 0
faintingPokemon.faintedAt = battle.faintCounter++
faintingPokemon.sendUpdate()
@@ -17,15 +17,8 @@ import com.cobblemon.mod.common.api.events.cooking.PokeSnackSpawnPokemonEvent
import com.cobblemon.mod.common.api.fishing.SpawnBait
import com.cobblemon.mod.common.api.fishing.SpawnBait.Effect
import com.cobblemon.mod.common.api.fishing.SpawnBaitEffects
import com.cobblemon.mod.common.api.spawning.CobblemonSpawnPools
import com.cobblemon.mod.common.api.spawning.SpawnCause
import com.cobblemon.mod.common.api.spawning.detail.EntitySpawnResult
import com.cobblemon.mod.common.api.spawning.detail.PokemonHerdSpawnDetail
import com.cobblemon.mod.common.api.spawning.detail.SpawnAction
import com.cobblemon.mod.common.api.spawning.detail.SpawnDetail
import com.cobblemon.mod.common.api.spawning.influence.BucketMultiplyingInfluence
import com.cobblemon.mod.common.api.spawning.influence.BucketNormalizingInfluence
import com.cobblemon.mod.common.api.spawning.influence.SpawnBaitInfluence
import com.cobblemon.mod.common.api.spawning.detail.*
import com.cobblemon.mod.common.api.spawning.influence.SpawningInfluence
import com.cobblemon.mod.common.api.spawning.position.SpawnablePosition
import com.cobblemon.mod.common.api.spawning.spawner.FixedAreaSpawner
@@ -37,7 +30,6 @@ import com.cobblemon.mod.common.item.components.FoodColourComponent
import com.cobblemon.mod.common.item.components.IngredientComponent
import com.cobblemon.mod.common.net.messages.client.effect.PokeSnackBlockParticlesPacket
import com.cobblemon.mod.common.util.DataKeys
import java.util.UUID
import net.minecraft.core.BlockPos
import net.minecraft.core.HolderLookup
import net.minecraft.nbt.CompoundTag
@@ -51,6 +43,7 @@ import net.minecraft.world.entity.player.Player
import net.minecraft.world.item.ItemStack
import net.minecraft.world.level.block.entity.BlockEntity
import net.minecraft.world.level.block.state.BlockState
import java.util.*
open class PokeSnackBlockEntity(pos: BlockPos, state: BlockState) :
BlockEntity(CobblemonBlockEntities.POKE_SNACK, pos, state), TintBlockEntity,
@@ -63,9 +56,29 @@ open class PokeSnackBlockEntity(pos: BlockPos, state: BlockState) :
const val POKE_SNACK_CRUMBED_ASPECT = "poke_snack_crumbed"
}
class Spawner(
name: String,
spawnPool: SpawnPool,
buckets: Map<String, Float>,
world: ServerLevel,
position: BlockPos,
horizontalRadius: Int,
verticalRadius: Int,
maxPokemonPerChunk: Float
) : FixedAreaSpawner(
name = name,
spawnPool = spawnPool,
buckets = buckets,
world = world,
position = position,
horizontalRadius = horizontalRadius,
verticalRadius = verticalRadius,
maxPokemonPerChunk = maxPokemonPerChunk
)
override var tint: Int? = null
val spawner: FixedAreaSpawner by lazy {
val spawner: Spawner by lazy {
val server = level as ServerLevel
val baitEffects = getBaitEffects()
@@ -278,7 +278,7 @@ class HabitatBlockEntity(pos: BlockPos, state: BlockState) :
override fun injectSpawns(bucket: String, spawnablePosition: SpawnablePosition): List<SpawnDetail>? {
val spawningStyle = spawningStyle
return if (spawningStyle is NaturalHabitatSpawning) {
spawnDetails.filter { it.spawnablePositionType.clazz == spawnablePosition::class.java && it.isSatisfiedBy(spawnablePosition) }
spawnDetails.filter { it.bucket == bucket && it.spawnablePositionType.clazz == spawnablePosition::class.java && it.isSatisfiedBy(spawnablePosition) }
} else {
null
}
@@ -470,7 +470,7 @@ class PokemonClientDelegate : PosableState(), PokemonSideDelegate {
val random = currentEntity.level().random
when (particleData) {
is ParticleData.SnowstormParticle -> {
val locators = particleData.locatorResolver(locatorStates).ifEmpty { listOf("root") }.filter(::isLocatorVisible)
val locators = particleData.locatorResolver(locatorStates).filter(::isLocatorVisible)
if (particleData.chance > random.nextDouble()) {
locators.forEach { locator ->
repeat(particleData.amount) {
@@ -518,15 +518,14 @@ class PokemonClientDelegate : PosableState(), PokemonSideDelegate {
}
}
fun getSeatLocator(passenger: Entity): String {
val seat = this.getEntity().occupiedSeats.entries
fun getSeatLocator(passenger: Entity): String? {
return this.getEntity().occupiedSeats.entries
.firstOrNull { it.value == passenger }?.key
?: throw IllegalArgumentException("Entity is not currently riding a seat")
return seat.locator
?.locator
}
override fun positionRider(passenger: Entity, positionUpdater: MoveFunction) {
val locatorName = getSeatLocator(passenger)
val locatorName = getSeatLocator(passenger) ?: return
val locator = this.locatorStates[locatorName] ?: return
val locatorOffset = locator.matrix.getTranslation(Vector3f())
@@ -66,12 +66,14 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
private val platformShadow = cobblemonResource("textures/gui/pokedex/platform_shadow.png")
private val typeSpacerResource = cobblemonResource("textures/gui/starterselection/type_spacer_single.png")
private val ballResource = cobblemonResource("textures/item/poke_balls/poke_ball.png")
private val unknownResource = cobblemonResource("textures/gui/pokedex/platform_unknown.png")
}
var currentSelection = 0
lateinit var currentCategory: RenderableStarterCategory
private lateinit var modelWidget: ModelWidget
private lateinit var currentPokemon: RenderablePokemon
private var currentPokemon: RenderablePokemon? = null
var ticksElapsed = 0
var currentBallBackgroundFrame = 0
@@ -98,9 +100,9 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
}
currentCategory = categories.first()
currentPokemon = currentCategory.pokemon[currentSelection]
currentPokemon = currentCategory.pokemon[0]
with(currentPokemon) {
with(currentPokemon!!) {
modelWidget = ModelWidget(
pX = x + 6, pY = y + 17,
pWidth = 118, pHeight = 100,
@@ -188,7 +190,7 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
width = 113,
height = 32
)
val typePlatform = getPlatformResource(currentPokemon.form.primaryType)
val typePlatform = currentPokemon?.let { getPlatformResource(it.form.primaryType) }
if (typePlatform != null) {
blitk(
matrixStack = matrices,
@@ -209,6 +211,18 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
scale = 0.5F
)
if (currentPokemon == null) { // Model widget won't render
blitk(
matrixStack = matrices,
texture = unknownResource,
x = (x + 36) / 0.15f,
y = (y + 36) / 0.15f,
width = 390,
height = 444,
scale = 0.15f
)
}
//Base
blitk(
matrixStack = matrices,
@@ -220,23 +234,25 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
)
//Type Icon
TypeIcon(
x = x + 65,
y = y + 120,
type = currentPokemon.form.primaryType,
secondaryType = currentPokemon.form.secondaryType,
centeredX = true
).render(context)
if (currentPokemon != null) {
TypeIcon(
x = x + 65,
y = y + 120,
type = currentPokemon!!.form.primaryType,
secondaryType = currentPokemon!!.form.secondaryType,
centeredX = true
).render(context)
if (currentPokemon.form.secondaryType == null) {
blitk(
matrixStack = matrices,
texture = typeSpacerResource,
x = x + 47,
y = y + 123,
width = 36,
height = 12
)
if (currentPokemon!!.form.secondaryType == null) {
blitk(
matrixStack = matrices,
texture = typeSpacerResource,
x = x + 47,
y = y + 123,
width = 36,
height = 12
)
}
}
//Name
@@ -253,7 +269,7 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
drawScaledText(
context = context,
font = CobblemonResources.DEFAULT_LARGE,
text = currentPokemon.species.translatedName.bold(),
text = currentPokemon?.species?.translatedName?.bold() ?: lang("ui.starter.random").bold(),
x = x + 14,
y = y + 2,
shadow = true
@@ -261,11 +277,13 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
// Pokédex Number
// Add preceding zeroes if Pokédex number is less than 4 digits
var dexNo = currentPokemon.species.nationalPokedexNumber.toString()
while (dexNo.length < 4) {
dexNo = "0$dexNo"
}
dexNo = "#$dexNo"
var dexNo = currentPokemon?.species?.nationalPokedexNumber?.toString()
if (dexNo != null) {
while (dexNo!!.length < 4) {
dexNo = "0$dexNo"
}
dexNo = "#$dexNo"
} else dexNo = "#????"
drawScaledText(
context = context,
@@ -290,10 +308,12 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
//Description Text
val smallTextScale = 0.5F
val textEntry = currentPokemon?.form?.pokedex?.first()?.asTranslated() ?: lang("ui.starter.random_description")
matrices.pushPose()
matrices.scale(smallTextScale, smallTextScale, 1F)
MultiLineLabelK.create(
component = currentPokemon.form.pokedex.first().asTranslated(),
component = textEntry,
width = 114 / smallTextScale,
maxLines = 5
).renderLeftAligned(
@@ -320,8 +340,14 @@ class StarterSelectionScreen(private val categories: List<RenderableStarterCateg
fun selectPokemon(category: RenderableStarterCategory, slot: Int) {
currentCategory = category
currentSelection = slot
currentPokemon = currentCategory.pokemon[currentSelection].also {
modelWidget.pokemon = it
if (currentSelection < currentCategory.pokemon.size) {
currentPokemon = currentCategory.pokemon[currentSelection].also {
modelWidget.pokemon = it
}
modelWidget.shouldRender = true
} else {
currentPokemon = null
modelWidget.shouldRender = false
}
}
@@ -52,6 +52,8 @@ class CategoryList(
private val buttonResource = cobblemonResource("textures/gui/starterselection/starter_selection.png")
private val buttonActiveResource = cobblemonResource("textures/gui/starterselection/starter_selection_active.png")
private val unknownResource = cobblemonResource("textures/gui/pokedex/platform_unknown.png")
const val MARGIN = 4
const val HEADER_HEIGHT = 7
const val BUTTON_SEPERATION = 3
@@ -84,7 +86,8 @@ class CategoryList(
mouseY: Int,
partialTick: Float
) {
val rows = (category.pokemon.size - 1) / 3 + 1
val itemSize = category.pokemon.size + if (category.randomStarter) 1 else 0
val rows = (itemSize - 1) / 3 + 1
val matrices = guiGraphics.pose()
//Header
blitk(
@@ -152,7 +155,7 @@ class CategoryList(
)
//Buttons
for (index in 0..<category.pokemon.size) {
for (index in 0..<itemSize) {
val row = index / 3
val column = index % 3
@@ -173,21 +176,33 @@ class CategoryList(
vOffset = if (hovered) CONTAINER_BUTTON_SIZE else 0
)
matrices.pushPose()
matrices.translate(startX + (CONTAINER_BUTTON_SIZE / 2.0), startY.toDouble() - 6, 0.0)
matrices.scale(3.5F, 3.5F, 1F)
if (index == category.pokemon.size) {
blitk(
matrixStack = matrices,
texture = unknownResource,
x = (startX + 4.5F) / 0.04f,
y = (startY + 3.5F) / 0.04f,
width = 390,
height = 444,
scale = 0.04f
)
} else {
matrices.pushPose()
matrices.translate(startX + (CONTAINER_BUTTON_SIZE / 2.0), startY.toDouble() - 6, 0.0)
matrices.scale(3.5F, 3.5F, 1F)
val state = FloatingState()
state.currentAspects = category.pokemon[index].aspects
drawProfilePokemon(
species = category.pokemon[index].species.resourceIdentifier,
matrixStack = matrices,
rotation = Quaternionf().fromEulerXYZDegrees(Vector3f(13F, 35F, 0F)),
state = state,
scale = 4.5F,
partialTicks = 0F
)
matrices.popPose()
val state = FloatingState()
state.currentAspects = category.pokemon[index].aspects
drawProfilePokemon(
species = category.pokemon[index].species.resourceIdentifier,
matrixStack = matrices,
rotation = Quaternionf().fromEulerXYZDegrees(Vector3f(13F, 35F, 0F)),
state = state,
scale = 4.5F,
partialTicks = 0F
)
matrices.popPose()
}
}
}
@@ -203,7 +218,8 @@ class CategoryList(
}
private fun getButtonHovered(x: Int, y: Int, mouseX: Double, mouseY: Double): Int {
for (index in 0..<category.pokemon.size) {
val itemSize = category.pokemon.size + if (category.randomStarter) 1 else 0
for (index in 0..<itemSize) {
val row = index / 3
val column = index % 3
@@ -36,7 +36,6 @@ class ModelWidget(
): SoundlessWidget(pX, pY, pWidth, pHeight, Component.literal("Summary - ModelWidget")) {
companion object {
var render = true
const val MAX_SECONDS_LOOKING = 6L
}
@@ -59,8 +58,10 @@ class ModelWidget(
var currentYawAndPitch: Pair<Float, Float> = Pair(0f, 0f)
val rotationVector = Vector3f(13F, rotationY, 0F)
var shouldRender = true
override fun renderWidget(context: GuiGraphics, pMouseX: Int, pMouseY: Int, partialTicks: Float) {
if (!render) {
if (!shouldRender) {
return
}
isHovered = pMouseX >= x && pMouseY >= y && pMouseX < x + width && pMouseY < y + height
@@ -1267,6 +1267,19 @@ class TMMachineScreen(containerMenu: TMMachineMenu, val inventory: Inventory, ti
Minecraft.getInstance().soundManager.play(SimpleSoundInstance.forUI(soundEvent, 1.0F))
}
override fun hasClickedOutside(
mouseX: Double,
mouseY: Double,
guiLeft: Int,
guiTop: Int,
mouseButton: Int
): Boolean {
partySlotList.forEach {
if (it.pokemon != null && it.isMouseOver(mouseX, mouseY)) return false
}
return super.hasClickedOutside(mouseX, mouseY, guiLeft, guiTop, mouseButton)
}
class MoveDescriptionWidget(pX: Int, pY: Int, width: Int, height: Int) : ScrollingWidget<MoveDescriptionWidget.TextSlot>(
left = pX,
top = pY - height,
@@ -27,12 +27,13 @@ object SetActiveTMPacketHandler : ServerNetworkPacketHandler<SetActiveTMPacket>
menu.tmMachineEntity?.let { blockEntity ->
blockEntity.activeMove = packet.tm?.moveName?.name ?: ""
blockEntity.setChanged()
player.level().sendBlockUpdated(blockEntity.blockPos, blockEntity.blockState, blockEntity.blockState, Block.UPDATE_CLIENTS)
blockEntity.burnActive = false
blockEntity.burnProgress = 0
blockEntity.setChanged()
player.level().sendBlockUpdated(blockEntity.blockPos, blockEntity.blockState, blockEntity.blockState, Block.UPDATE_CLIENTS)
player.level().players().forEach { thePlayer -> //Update all players with matching menu/blockentity
val tmmMenu = thePlayer.containerMenu as? TMMachineMenu ?: return@forEach
if (tmmMenu.tmMachineEntity == blockEntity) {
@@ -29,6 +29,8 @@ object SetTMMachineContainerDataPacketHandler : ServerNetworkPacketHandler<SetTM
menu.containerData?.set(TMMachineBlockEntity.BURN_PROGRESS_INDEX, 0)
}
menu.tmMachineEntity?.setChanged()
menu.broadcastChanges()
}
}
@@ -16,22 +16,15 @@ import net.minecraft.client.Minecraft
object ClientboundSeatAssignmentPacketHandler : ClientNetworkPacketHandler<ClientboundSeatAssignmentPacket> {
override fun handle(packet: ClientboundSeatAssignmentPacket, client: Minecraft) {
val vehicle = client.level?.getEntity(packet.vehicleEntityId) as? PokemonEntity ?: return
val passenger = client.level?.getEntity(packet.passengerEntityId) ?: return
val seat = vehicle.form.riding.seats.firstOrNull { it.locator == packet.seatLocator } ?: return
// If the passenger was already seated somewhere else then move seats for them if needed.
// It could also be that the client assigned the wrong seat. The server has authority in seating so
// replace in that case too.
val currentSeat = vehicle.occupiedSeats.entries.firstOrNull { it.value == passenger }
if (currentSeat != null) {
if (currentSeat.key == seat) return
vehicle.occupiedSeats.remove(currentSeat.key)
val assignments = packet.seatAssignments.mapNotNull { (locator, entityId) ->
val seat = vehicle.form.riding.seats.firstOrNull { it.locator == locator } ?: return@mapNotNull null
val passenger = client.level?.getEntity(entityId) ?: return@mapNotNull null
seat to passenger
}
vehicle.occupiedSeats[seat] = passenger
if (!vehicle.hasPassenger(passenger)) {
passenger.startRiding(vehicle, true)
vehicle.occupiedSeats.clear()
assignments.forEach { (seat, passenger) ->
vehicle.occupiedSeats[seat] = passenger
}
}
}
@@ -75,7 +75,7 @@ object MountedCameraRenderer {
val state = FloatingState().also { it.currentAspects = vehicle.pokemon.aspects }
val model = getPoser(vehicle.pokemon.species.resourceIdentifier, state)
val locatorName = delegate.getSeatLocator(driver)
val locatorName = delegate.getSeatLocator(driver) ?: return null
val locator = delegate.locatorStates[locatorName] ?: return null
// Get additional offset from poser and add to the eyeHeight offset
@@ -33,7 +33,7 @@ object MountedLivingEntityRenderer {
if (entity.vehicle !is Rideable) return
val matrix = stack.last().pose()
val delegate = pokemon.delegate as PokemonClientDelegate
val locator = delegate.locatorStates[delegate.getSeatLocator(entity)]
val locator = delegate.getSeatLocator(entity)?.let { delegate.locatorStates[it] }
//Positions entity
if (locator != null) {
@@ -1,69 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen1
import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.QuadrupedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class RattataAlolanModel(root: ModelPart) : PokemonPosableModel(root), HeadedFrame, QuadrupedFrame {
override val rootPart = root.registerChildWithAllChildren("rattata")
override val foreLeftLeg= getPart("leg_front_left")
override val foreRightLeg = getPart("leg_front_right")
override val hindLeftLeg = getPart("leg_back_left")
override val hindRightLeg = getPart("leg_back_right")
override val head = getPart("head")
override var portraitScale = 2.2F
override var portraitTranslation = Vec3(-0.2, -1.4, 0.0)
override var profileScale = 1.1F
override var profileTranslation = Vec3(0.0, 0.1, 0.0)
lateinit var sleep: Pose
lateinit var standing: Pose
lateinit var walk: Pose
// override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("rattata", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
animations = arrayOf(bedrock("rattata", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.PROFILE, PoseType.STAND, PoseType.FLOAT, PoseType.PORTRAIT, PoseType.SHOULDER_LEFT, PoseType.SHOULDER_RIGHT),
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("rattata", "ground_idle")
)
)
walk = registerPose(
poseType = PoseType.WALK,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("rattata", "ground_walk")
)
)
}
override fun getFaintAnimation(state: PosableState) = bedrockStateful("rattata", "faint")
}
@@ -1,71 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen1
import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.QuadrupedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class RattataModel(root: ModelPart) : PokemonPosableModel(root), HeadedFrame, QuadrupedFrame {
override val rootPart = root.registerChildWithAllChildren("rattata")
override val foreLeftLeg= getPart("leg_front_left")
override val foreRightLeg = getPart("leg_front_right")
override val hindLeftLeg = getPart("leg_back_left")
override val hindRightLeg = getPart("leg_back_right")
override val head = getPart("head")
override var portraitScale = 2.2F
override var portraitTranslation = Vec3(-0.2, -1.4, 0.0)
override var profileScale = 1.1F
override var profileTranslation = Vec3(0.0, 0.1, 0.0)
lateinit var sleep: Pose
lateinit var standing: Pose
lateinit var walk: Pose
// override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
override fun registerPoses() {
sleep = registerPose(
poseType = PoseType.SLEEP,
animations = arrayOf(bedrock("rattata", "sleep"))
)
val blink = quirk { bedrockStateful("rattata", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.PROFILE, PoseType.STAND, PoseType.FLOAT, PoseType.PORTRAIT, PoseType.SHOULDER_LEFT, PoseType.SHOULDER_RIGHT),
transformTicks = 10,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("rattata", "ground_idle")
)
)
walk = registerPose(
poseType = PoseType.WALK,
transformTicks = 10,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("rattata", "ground_walk")
)
)
}
override fun getFaintAnimation(state: PosableState) = bedrockStateful("rattata", "faint")
}
@@ -12,6 +12,7 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.asExpressionLike
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
@@ -33,6 +34,8 @@ class DusclopsModel (root: ModelPart) : PokemonPosableModel(root) {
lateinit var battleidle: Pose
override fun registerPoses() {
animations["cry"] = "q.bedrock_stateful('squirtle', 'cry')".asExpressionLike()
val blink = quirk { bedrockStateful("dusclops", "blink") }
sleep = registerPose(
@@ -12,6 +12,7 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.asExpressionLike
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
@@ -33,6 +34,7 @@ class DuskullModel (root: ModelPart) : PokemonPosableModel(root) {
lateinit var battleidle: Pose
override fun registerPoses() {
animations["cry"] = "q.bedrock_stateful('duskull', 'cry')".asExpressionLike()
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -1,81 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen5
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class DarumakaModel (root: ModelPart) : PokemonPosableModel(root) {
override val rootPart = root.registerChildWithAllChildren("darumaka")
override var portraitScale = 1.96F
override var portraitTranslation = Vec3(-0.18, -0.84, 0.0)
override var profileScale = 0.76F
override var profileTranslation = Vec3(0.0, 0.57, 0.0)
lateinit var standing: CobblemonPose
lateinit var walk: CobblemonPose
lateinit var sleep: CobblemonPose
lateinit var battleidle: CobblemonPose
override val cryAnimation = CryProvider { bedrockStateful("darumaka", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("darumaka", "blink") }
val quirk = quirk(secondsBetweenOccurrences = 15F to 100F) { bedrockStateful("darumaka", "quirk") }
val quirk2 = quirk(secondsBetweenOccurrences = 20F to 360F) { bedrockStateful("darumaka","quirk2")}
sleep = registerPose(
poseType = PoseType.SLEEP,
animations = arrayOf(bedrock("darumaka", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES,
quirks = arrayOf(blink, quirk, quirk2),
condition = { !it.isBattling },
animations = arrayOf(
bedrock("darumaka", "ground_idle")
)
)
battleidle = registerPose(
poseName = "battle_idle",
poseTypes = PoseType.STATIONARY_POSES,
transformTicks = 10,
quirks = arrayOf(blink, quirk),
condition = { it.isBattling },
animations = arrayOf(
bedrock("darumaka", "battle_idle")
)
)
walk = registerPose(
poseName = "walk",
poseTypes = PoseType.MOVING_POSES,
quirks = arrayOf(blink, quirk),
animations = arrayOf(
bedrock("darumaka", "ground_walk")
)
)
}
// override fun getFaintAnimation(
// pokemonEntity: PokemonEntity,
// state: PosableState<PokemonEntity>
// ) = if (state.isPosedIn(standing, walk)) bedrockStateful("darumaka", "faint") else null
}
@@ -1,118 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen5
import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class DewottHisuiBiasModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, BipedFrame, BimanualFrame {
override val rootPart = root.registerChildWithAllChildren("dewott_hisui_bias")
override val head = getPart("head")
override val rightArm = getPart("arm_right")
override val leftArm = getPart("arm_left")
override val rightLeg = getPart("leg_right")
override val leftLeg = getPart("leg_left")
val scalchop_body_right = getPart("scalchop_skirt_right")
val scalchop_body_left = getPart("scalchop_skirt_left")
val scalchop_right = getPart("scalchop_hand_right")
val scalchop_left = getPart("scalchop_hand_left")
override var portraitScale = 2.0F
override var portraitTranslation = Vec3(-0.15, 0.8, 0.0)
override var profileScale = 0.7F
override var profileTranslation = Vec3(0.0, 0.69, 0.0)
lateinit var battleidle: CobblemonPose
lateinit var sleep: CobblemonPose
lateinit var standing: CobblemonPose
lateinit var walk: CobblemonPose
override val cryAnimation = CryProvider { bedrockStateful("dewott_hisui_bias", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("dewott_hisui_bias", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(bedrock("dewott_hisui_bias", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott_hisui_bias", "ground_idle")
)
)
walk = registerPose(
poseName = "walking",
poseTypes = setOf(PoseType.SWIM, PoseType.WALK),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott_hisui_bias", "ground_walk")
)
)
battleidle = registerPose(
poseName = "battle_idle",
poseTypes = PoseType.STATIONARY_POSES,
transformTicks = 10,
quirks = arrayOf(blink),
condition = { it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = true),
scalchop_left.createTransformation().withVisibility(visibility = true),
scalchop_body_right.createTransformation().withVisibility(visibility = false),
scalchop_body_left.createTransformation().withVisibility(visibility = false)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott_hisui_bias", "ground_idle")
)
)
}
}
@@ -1,118 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen5
import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class DewottModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, BipedFrame, BimanualFrame {
override val rootPart = root.registerChildWithAllChildren("dewott")
override val head = getPart("head")
override val rightArm = getPart("arm_right")
override val leftArm = getPart("arm_left")
override val rightLeg = getPart("leg_right")
override val leftLeg = getPart("leg_left")
val scalchop_body_right = getPart("scalchop_skirt_right")
val scalchop_body_left = getPart("scalchop_skirt_left")
val scalchop_right = getPart("scalchop_hand_right")
val scalchop_left = getPart("scalchop_hand_left")
override var portraitScale = 2.0F
override var portraitTranslation = Vec3(-0.15, 0.8, 0.0)
override var profileScale = 0.7F
override var profileTranslation = Vec3(0.0, 0.69, 0.0)
lateinit var battleidle: Pose
lateinit var sleep: Pose
lateinit var standing: Pose
lateinit var walk: Pose
override val cryAnimation = CryProvider { bedrockStateful("dewott", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("dewott", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(bedrock("dewott", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott", "ground_idle")
)
)
walk = registerPose(
poseName = "walking",
poseTypes = setOf(PoseType.SWIM, PoseType.WALK),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = false),
scalchop_left.createTransformation().withVisibility(visibility = false),
scalchop_body_right.createTransformation().withVisibility(visibility = true),
scalchop_body_left.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott", "ground_walk")
)
)
battleidle = registerPose(
poseName = "battle_idle",
poseTypes = PoseType.STATIONARY_POSES,
transformTicks = 10,
quirks = arrayOf(blink),
condition = { it.isBattling },
transformedParts = arrayOf(
scalchop_right.createTransformation().withVisibility(visibility = true),
scalchop_left.createTransformation().withVisibility(visibility = true),
scalchop_body_right.createTransformation().withVisibility(visibility = false),
scalchop_body_left.createTransformation().withVisibility(visibility = false)
),
animations = arrayOf(
singleBoneLook(),
bedrock("dewott", "ground_idle")
)
)
}
}
@@ -1,112 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen5
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.animation.BimanualSwingAnimation
import com.cobblemon.mod.common.client.render.models.blockbench.animation.BipedWalkAnimation
import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class OshawottHisuiBiasModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, BipedFrame, BimanualFrame {
override val rootPart = root.registerChildWithAllChildren("oshawott_hisui_bias")
override val head = getPart("head")
override val rightArm = getPart("arm_right")
override val leftArm = getPart("arm_left")
override val rightLeg = getPart("leg_right")
override val leftLeg = getPart("leg_left")
val scalchop = getPart("scalchop_hand")
val scalchopbody = getPart("scalchop_torso")
override var portraitScale = 2.0F
override var portraitTranslation = Vec3(-0.2, -0.15, 0.0)
override var profileScale = 0.7F
override var profileTranslation = Vec3(0.0, 0.69, 0.0)
lateinit var battleidle: CobblemonPose
lateinit var sleep: CobblemonPose
lateinit var standing: CobblemonPose
lateinit var walk: CobblemonPose
override val cryAnimation = CryProvider { bedrockStateful("oshawott_hisui_bias", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("oshawott_hisui_bias", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true),
rootPart.createTransformation().addPosition(ModelPartTransformation.Y_AXIS, -7)
),
animations = arrayOf(bedrock("oshawott_hisui_bias", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott_hisui_bias", "ground_idle")
)
)
walk = registerPose(
poseName = "walking",
poseTypes = setOf(PoseType.SWIM, PoseType.WALK),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott_hisui_bias", "ground_idle"),
BipedWalkAnimation(this, periodMultiplier = 0.6F, amplitudeMultiplier = 0.9F),
BimanualSwingAnimation(this, swingPeriodMultiplier = 0.6F, amplitudeMultiplier = 0.9F)
)
)
battleidle = registerPose(
poseName = "battle_idle",
poseTypes = PoseType.STATIONARY_POSES + PoseType.FLOAT,
transformTicks = 10,
quirks = arrayOf(blink),
condition = { it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = true),
scalchopbody.createTransformation().withVisibility(visibility = false)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott_hisui_bias", "ground_idle")
)
)
}
}
@@ -1,112 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen5
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.animation.BimanualSwingAnimation
import com.cobblemon.mod.common.client.render.models.blockbench.animation.BipedWalkAnimation
import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.util.isBattling
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class OshawottModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, BipedFrame, BimanualFrame {
override val rootPart = root.registerChildWithAllChildren("oshawott")
override val head = getPart("head")
override val rightArm = getPart("arm_right")
override val leftArm = getPart("arm_left")
override val rightLeg = getPart("leg_right")
override val leftLeg = getPart("leg_left")
val scalchop = getPart("scalchop_hand")
val scalchopbody = getPart("scalchop_torso")
override var portraitScale = 2.0F
override var portraitTranslation = Vec3(-0.2, -0.15, 0.0)
override var profileScale = 0.7F
override var profileTranslation = Vec3(0.0, 0.69, 0.0)
lateinit var battleidle: CobblemonPose
lateinit var sleep: CobblemonPose
lateinit var standing: CobblemonPose
lateinit var walk: CobblemonPose
override val cryAnimation = CryProvider { bedrockStateful("oshawott", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("oshawott", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true),
rootPart.createTransformation().addPosition(ModelPartTransformation.Y_AXIS, -7)
),
animations = arrayOf(bedrock("oshawott", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott", "ground_idle")
)
)
walk = registerPose(
poseName = "walking",
poseTypes = setOf(PoseType.SWIM, PoseType.WALK),
transformTicks = 10,
quirks = arrayOf(blink),
condition = { !it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = false),
scalchopbody.createTransformation().withVisibility(visibility = true)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott", "ground_idle"),
BipedWalkAnimation(this, periodMultiplier = 0.6F, amplitudeMultiplier = 0.9F),
BimanualSwingAnimation(this, swingPeriodMultiplier = 0.6F, amplitudeMultiplier = 0.9F)
)
)
battleidle = registerPose(
poseName = "battle_idle",
poseTypes = PoseType.STATIONARY_POSES + PoseType.FLOAT,
transformTicks = 10,
quirks = arrayOf(blink),
condition = { it.isBattling },
transformedParts = arrayOf(
scalchop.createTransformation().withVisibility(visibility = true),
scalchopbody.createTransformation().withVisibility(visibility = false)
),
animations = arrayOf(
singleBoneLook(),
bedrock("oshawott", "ground_idle")
)
)
}
}
@@ -225,9 +225,7 @@ object VaryingModelRepository {
inbuilt("butterfree", ::ButterfreeModel)
inbuilt("weedle", ::WeedleModel)
inbuilt("beedrill", ::BeedrillModel)
inbuilt("rattata", ::RattataModel)
inbuilt("raticate", ::RaticateModel)
inbuilt("rattata_alolan", ::RattataAlolanModel)
inbuilt("raticate_alolan", ::RaticateAlolanModel)
inbuilt("krabby", ::KrabbyModel)
inbuilt("paras", ::ParasModel)
@@ -358,8 +356,6 @@ object VaryingModelRepository {
inbuilt("grookey", ::GrookeyModel)
inbuilt("thwackey", ::ThwackeyModel)
inbuilt("rillaboom", ::RillaboomModel)
inbuilt("oshawott", ::OshawottModel)
inbuilt("dewott", ::DewottModel)
inbuilt("samurott", ::SamurottModel)
inbuilt("snivy", ::SnivyModel)
inbuilt("servine", ::ServineModel)
@@ -521,7 +517,6 @@ object VaryingModelRepository {
inbuilt("lilligant", ::LilligantModel)
inbuilt("petilil_hisui_bias", ::PetililHisuiBiasModel)
inbuilt("lilligant_hisuian", ::LilligantHisuianModel)
inbuilt("darumaka", ::DarumakaModel)
inbuilt("cufant", ::CufantModel)
inbuilt("copperajah", ::CopperajahModel)
inbuilt("budew", ::BudewModel)
@@ -553,8 +548,6 @@ object VaryingModelRepository {
inbuilt("morgrem", ::MorgremModel)
inbuilt("grimmsnarl", ::GrimmsnarlModel)
inbuilt("klefki", ::KlefkiModel)
inbuilt("oshawott_hisui_bias", ::OshawottHisuiBiasModel)
inbuilt("dewott_hisui_bias", ::DewottHisuiBiasModel)
inbuilt("samurott_hisuian", ::SamurottHisuianModel)
inbuilt("cyndaquil_hisui_bias", ::CyndaquilHisuiBiasModel)
inbuilt("quilava_hisui_bias", ::QuilavaHisuiBiasModel)
@@ -48,11 +48,12 @@ fun updateEyeTrail(
entityPos: Vec3,
trailPositions: MutableMap<String, ArrayDeque<Pair<Vec3, Long>>>
) {
if ("alpha_eyes" !in aspects) {
val locators = locatorStates.keys.filter { "eye" in it.lowercase() }
if ("alpha_eyes" !in aspects || locators.isEmpty()) {
trailPositions.clear()
return
}
for (locatorName in locatorStates.keys.filter { "eye" in it.lowercase() }) {
for (locatorName in locators) {
val wrapper = locatorStates[locatorName] ?: continue
val pos = wrapper.matrix.getTranslation(Vector3f())
val worldPos = Vec3(
@@ -23,6 +23,7 @@ import com.cobblemon.mod.common.api.text.text
import com.cobblemon.mod.common.api.text.underline
import com.cobblemon.mod.common.api.text.yellow
import com.cobblemon.mod.common.command.argument.SpawnBucketArgumentType
import com.cobblemon.mod.common.duck.ServerLevelDuck
import com.cobblemon.mod.common.util.lang
import com.cobblemon.mod.common.util.permission
import com.cobblemon.mod.common.util.spawner
@@ -54,7 +55,8 @@ object CheckSpawnsCommand {
}
private fun execute(context: CommandContext<CommandSourceStack>, player: ServerPlayer) : Int {
if (!config.enableSpawning) {
if (!config.enableSpawning ||
(player.serverLevel() as ServerLevelDuck).`cobblemon$getLevelResourceLocation`() in config.worldSpawningBlocklist) {
return 0
}
@@ -91,6 +91,9 @@ class CobblemonConfig {
@CobblemonConfigField(Category.Spawning, lang = "enable_spawning", SERVER)
var enableSpawning = true
@CobblemonConfigField(Category.Spawning, lang = "world_spawning_blocklist", SERVER)
var worldSpawningBlocklist = mutableSetOf<ResourceLocation>()
@CobblemonConfigField(Category.Spawning, lang = "minimum_distance_between_entities", SERVER)
var minimumDistanceBetweenEntities = 8.0
@@ -16,16 +16,18 @@ data class StarterCategory(
val name: String,
val order: Int = 0, // fallback for old behavior
val displayName: String,
val pokemon: List<PokemonProperties>
val pokemon: List<PokemonProperties>,
val randomStarter: Boolean = false // Decides if includes random starter
) {
fun asRenderableStarterCategory() = RenderableStarterCategory(name, order, displayName, pokemon.map { it.asRenderablePokemon() })
fun asRenderableStarterCategory() = RenderableStarterCategory(name, order, displayName, pokemon.map { it.asRenderablePokemon() }, randomStarter)
}
data class RenderableStarterCategory(
val name: String,
val order: Int = 0, // fallback for old behavior
val displayName: String,
val pokemon: List<RenderablePokemon>
val pokemon: List<RenderablePokemon>,
val randomStarter: Boolean = false
) {
val displayNameText = displayName.asTranslated()
}
@@ -144,7 +144,8 @@ class StarterConfig {
pokemon = mutableListOf(
PokemonProperties.parse("Pikachu level=10"),
PokemonProperties.parse("Eevee level=10")
)
),
randomStarter = true
)
)
}
@@ -368,7 +368,7 @@ class PokemonServerDelegate : PokemonSideDelegate {
?: entity.mainHandItem
}.copy()
/* Hide items tagged as hidden (If the item is in this list, it will not render) */
.let { if (it.`is`(CobblemonItemTags.HIDDEN_ITEMS)) ItemStack.EMPTY else it}
.let { if (it.`is`(CobblemonItemTags.HIDDEN_ITEMS) || (entity.pokemon.isAlpha && entity.pokemon.isWild())) ItemStack.EMPTY else it}
entity.entityData.set(PokemonEntity.SHOWN_HELD_ITEM, trackedShownItem)
}
@@ -67,11 +67,11 @@ class AlphaLevelMatchingSensor : Sensor<PokemonEntity>(20) {
val strongestPartyLevel = player.party().maxOfOrNull { it.level } ?: return null
val minEvolutionLevel = minimumEvolutionLevel(pokemon)
return when {
strongestPartyLevel < 20 -> strongestPartyLevel + 5
strongestPartyLevel in 31..40 -> strongestPartyLevel + 10
strongestPartyLevel in 51..65 -> strongestPartyLevel + 15
strongestPartyLevel >= 66 -> strongestPartyLevel + 20
else -> strongestPartyLevel
strongestPartyLevel < 21 -> strongestPartyLevel + 4
strongestPartyLevel in 21..30 -> strongestPartyLevel + 8
strongestPartyLevel in 31..45 -> strongestPartyLevel + 12
strongestPartyLevel in 46..65 -> strongestPartyLevel + 16
else -> strongestPartyLevel + 20
}.coerceAtMost(100).coerceAtLeast(minEvolutionLevel)
}
@@ -133,6 +133,7 @@ object AdvancementHandler : EventHandler {
}
Cobblemon.playerDataManager.saveSingle(playerData, PlayerInstancedDataStoreTypes.GENERAL)
CobblemonCriteria.DEFEAT_POKEMON.trigger(player, CountableContext(advancementData.totalBattleVictoryCount))
playerData.sendToPlayer(player)
}
}
}
@@ -150,6 +151,7 @@ object AdvancementHandler : EventHandler {
advancementData.updateTotalPvNBattleVictoryCount()
Cobblemon.playerDataManager.saveSingle(playerData, PlayerInstancedDataStoreTypes.GENERAL)
CobblemonCriteria.WIN_BATTLE.trigger(player, BattleCountableContext(event.battle, advancementData.totalBattleVictoryCount))
playerData.sendToPlayer(player)
}
}
@@ -13,6 +13,7 @@ import com.cobblemon.mod.common.CobblemonCallbacks
import com.cobblemon.mod.common.api.Priority
import com.cobblemon.mod.common.api.events.CobblemonEvents
import com.cobblemon.mod.common.api.molang.MoLangFunctions.asMoLangValue
import com.cobblemon.mod.common.api.molang.MoLangFunctions.moLangFunctionMap
import com.cobblemon.mod.common.platform.events.PlatformEvents
import com.cobblemon.mod.common.util.cobblemonResource
@@ -23,7 +24,7 @@ object CallbackHandler {
fun setup() {
CobblemonEvents.STARTER_CHOSEN.subscribe { CobblemonCallbacks.run(cobblemonResource("starter_chosen"), it.getContext(), it.functions) }
CobblemonEvents.POKEMON_CAPTURED.subscribe { CobblemonCallbacks.run(cobblemonResource("pokemon_captured"), it.context) }
CobblemonEvents.POKEMON_ENTITY_SPAWN.subscribe { CobblemonCallbacks.run(cobblemonResource("pokemon_entity_spawn"), mutableMapOf<String, MoValue>("pokemon_entity" to it.entity.asMoLangValue())) }
CobblemonEvents.POKEMON_ENTITY_SPAWN.subscribe { entity -> CobblemonCallbacks.run(cobblemonResource("pokemon_entity_spawn"), mutableMapOf<String, MoValue>("pokemon_entity" to entity.entity.asMoLangValue()), functions = moLangFunctionMap("pokemon" to { entity.entity.pokemon.struct })) }
CobblemonEvents.BATTLE_VICTORY.subscribe { CobblemonCallbacks.run(cobblemonResource("battle_victory"), it.context) }
CobblemonEvents.POKEDEX_DATA_CHANGED_PRE.subscribe { CobblemonCallbacks.run(cobblemonResource("pokedex_data_changed_pre"), it.getContext(), it.functions) }
CobblemonEvents.POKEDEX_DATA_CHANGED_POST.subscribe { CobblemonCallbacks.run(cobblemonResource("pokedex_data_changed_post"), it.getContext()) }
@@ -8,16 +8,14 @@
package com.cobblemon.mod.common.integration
import com.cobblemon.mod.common.Cobblemon
import juuxel.adorn.block.variant.BlockVariant
import juuxel.adorn.block.variant.CompatBlockVariantSet
import juuxel.adorn.block.variant.BlockVariantSet
class AdornCompatibility : CompatBlockVariantSet() {
class AdornCompatibility: BlockVariantSet {
override fun getWoodVariants(): List<BlockVariant?>? {
return this.createVariants({ BlockVariant.Wood(it) }, "apricorn", "saccharine")
}
override fun getModId(): String? {
return Cobblemon.MODID
val result: MutableList<BlockVariant> = mutableListOf()
result.add(BlockVariant.Wood("cobblemon/apricorn"))
result.add(BlockVariant.Wood("cobblemon/saccharine"))
return result
}
}
@@ -23,23 +23,23 @@ import net.minecraft.network.codec.ByteBufCodecs
import net.minecraft.network.codec.StreamCodec
import net.minecraft.world.item.ItemStack
data class TMMoveComponent(val move: MoveTemplate) {
data class TMMoveComponent(val moveName: String) {
companion object {
// Codec to serialize/deserialize TMMoveComponent
val CODEC: Codec<TMMoveComponent> = RecordCodecBuilder.create { instance ->
instance.group(
Codec.STRING.fieldOf("move").forGetter { it.move.name } // Serialize the move's name
).apply(instance) { moveName -> TMMoveComponent(Moves.getByNameOrDummy(moveName)) }
Codec.STRING.fieldOf("move").forGetter { it.moveName } // Serialize the move's name
).apply(instance) { moveName -> TMMoveComponent(moveName) }
}
val PACKET_CODEC: StreamCodec<ByteBuf, TMMoveComponent> = ByteBufCodecs.fromCodec(CODEC)
fun getTMMove(stack: ItemStack): MoveTemplate? {
return stack.get(CobblemonItemComponents.TM_MOVE)?.move
return stack.get(CobblemonItemComponents.TM_MOVE)?.moveName?.let(Moves::getByNameOrDummy)
}
fun setTMMove(stack: ItemStack, move: MoveTemplate): ItemStack {
stack.set(CobblemonItemComponents.TM_MOVE, TMMoveComponent(move))
stack.set(CobblemonItemComponents.TM_MOVE, TMMoveComponent(move.name))
return stack
}
@@ -58,4 +58,9 @@ data class TMMoveComponent(val move: MoveTemplate) {
}
}
constructor(move: TMMoveComponent): this(move.moveName)
val move: MoveTemplate
get() = Moves.getByNameOrDummy(moveName)
}
@@ -13,8 +13,10 @@ import com.cobblemon.mod.common.api.pokeball.PokeBalls
import com.cobblemon.mod.common.net.messages.client.pokemon.update.SingleUpdatePacket
import com.cobblemon.mod.common.pokemon.Pokemon
import com.cobblemon.mod.common.util.cobblemonResource
import com.cobblemon.mod.common.util.readMap
import com.cobblemon.mod.common.util.readIdentifier
import com.cobblemon.mod.common.util.readString
import com.cobblemon.mod.common.util.writeMap
import com.cobblemon.mod.common.util.writeString
import net.minecraft.network.RegistryFriendlyByteBuf
@@ -25,9 +27,8 @@ import net.minecraft.network.RegistryFriendlyByteBuf
* @since March 31st, 2026
*/
class ClientboundSeatAssignmentPacket(
val passengerEntityId: Int,
val vehicleEntityId: Int,
val seatLocator: String
val seatAssignments: Map<String, Int>
) : NetworkPacket<ClientboundSeatAssignmentPacket> {
override val id = ID
@@ -35,14 +36,12 @@ class ClientboundSeatAssignmentPacket(
val ID = cobblemonResource("seat_assignment")
fun decode(buffer: RegistryFriendlyByteBuf) = ClientboundSeatAssignmentPacket(
buffer.readInt(),
buffer.readInt(),
buffer.readString()
buffer.readMap({ buffer.readString() }, { buffer.readInt() })
)
}
override fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeInt(passengerEntityId)
buffer.writeInt(vehicleEntityId)
buffer.writeString(seatLocator)
buffer.writeMap(seatAssignments, { _, locator -> buffer.writeString(locator) }, { _, entityId -> buffer.writeInt(entityId) })
}
}
@@ -31,6 +31,7 @@ class OpenStarterUIPacket internal constructor(val categories: List<RenderableSt
buffer.writeInt(category.order)
buffer.writeInt(category.pokemon.size)
category.pokemon.forEach { it.saveToBuffer(buffer) }
buffer.writeBoolean(category.randomStarter)
}
}
@@ -48,12 +49,14 @@ class OpenStarterUIPacket internal constructor(val categories: List<RenderableSt
repeat(numProperties) {
renderablePokemon.add(RenderablePokemon.loadFromBuffer(buffer))
}
val randomStarter = buffer.readBoolean()
categories.add(
RenderableStarterCategory(
name = name,
order = order,
displayName = displayName,
pokemon = renderablePokemon
pokemon = renderablePokemon,
randomStarter = randomStarter
)
)
}
@@ -1731,12 +1731,22 @@ open class Pokemon : ShowdownIdentifiable {
}
if (reassess) {
gender = if (form.maleRatio !in 0F..1F) {
Gender.GENDERLESS
} else if (form.maleRatio == 1F || Random.nextFloat() <= form.maleRatio) {
Gender.MALE
val allForms = form.species.forms
val isGenderedForms = allForms.any { it.maleRatio == 1F } && allForms.any { it.maleRatio == 0F }
gender = if (isGenderedForms) {
if (Random.nextBoolean()) {
Gender.FEMALE
} else {
Gender.MALE
}
} else {
Gender.FEMALE
if (form.maleRatio !in 0F..1F) {
Gender.GENDERLESS
} else if (form.maleRatio == 1F || Random.nextFloat() <= form.maleRatio) {
Gender.MALE
} else {
Gender.FEMALE
}
}
}
}
@@ -12,6 +12,7 @@ import com.cobblemon.mod.common.Cobblemon
import com.cobblemon.mod.common.advancement.CobblemonCriteria
import com.cobblemon.mod.common.api.events.CobblemonEvents
import com.cobblemon.mod.common.api.events.starter.StarterChosenEvent
import com.cobblemon.mod.common.api.pokemon.PokemonProperties
import com.cobblemon.mod.common.api.starter.StarterHandler
import com.cobblemon.mod.common.api.storage.player.PlayerInstancedDataStoreTypes
import com.cobblemon.mod.common.api.text.red
@@ -21,6 +22,7 @@ import com.cobblemon.mod.common.net.messages.client.starter.OpenStarterUIPacket
import com.cobblemon.mod.common.util.lang
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules
import net.minecraft.server.level.ServerPlayer
import kotlin.random.Random
open class CobblemonStarterHandler : StarterHandler {
@@ -55,11 +57,15 @@ open class CobblemonStarterHandler : StarterHandler {
val category = getStarterList(player).find { it.name == categoryName } ?: return
if (index < 0 || index >= category.pokemon.size) {
if (index < 0 || index > category.pokemon.size) {
return
}
val properties = if (index == category.pokemon.size) { // means random
getStarterList(player).flatMap { it.pokemon }.random()
} else {
category.pokemon[index]
}
val properties = category.pokemon[index]
val pokemon = properties.create(player)
CobblemonEvents.STARTER_CHOSEN.postThen(StarterChosenEvent(player, properties, pokemon)) {
@@ -97,6 +97,8 @@ object CobblemonPlacedFeatures {
val STRANGE_WARPED_FUNGAL_DWELLINGS = of("habitats/strange_warped_fungal_dwellings")
@JvmField
val VOLCANIC_PLUMES = of("habitats/volcanic_plumes")
@JvmField
val ROCKY_OUTCROPS = of("habitats/rocky_outcrops")
@JvmField
val PREHISTORIC_BIRCH_TREE = of("fossils/prehistoric_birch_tree")
@@ -208,6 +210,7 @@ object CobblemonPlacedFeatures {
Cobblemon.implementation.addFeatureToWorldGen(CRUMBLING_ARCH, GenerationStep.Decoration.UNDERGROUND_DECORATION, BiomeTags.IS_OVERWORLD)
Cobblemon.implementation.addFeatureToWorldGen(DEEP_CRYPT, GenerationStep.Decoration.UNDERGROUND_DECORATION, CobblemonBiomeTags.IS_DEEP_DARK)
Cobblemon.implementation.addFeatureToWorldGen(ROOTED_ARCH, GenerationStep.Decoration.UNDERGROUND_DECORATION, CobblemonBiomeTags.IS_LUSH)
Cobblemon.implementation.addFeatureToWorldGen(ROCKY_OUTCROPS, GenerationStep.Decoration.UNDERGROUND_DECORATION, CobblemonBiomeTags.IS_MOUNTAIN)
}
private fun of(id: String): ResourceKey<PlacedFeature> = ResourceKey.create(Registries.PLACED_FEATURE, cobblemonResource(id))
@@ -17,33 +17,33 @@ import net.minecraft.world.level.LevelHeightAccessor
import net.minecraft.world.level.chunk.ChunkGenerator
import net.minecraft.world.level.levelgen.Heightmap
import net.minecraft.world.level.levelgen.RandomState
import net.minecraft.world.level.levelgen.structure.BoundingBox
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate
/**
* Restricts the height range a structure piece is allowed to generate in, relative to a [HeightReference].
*
* The range is enforced while the structure start is still being built,
* by `StructureMixin`, which gets rid of the entire start when any piece falls outside of its range. Voiding
* blocks here instead would run after terrain adaptation has already deformed the terrain, leaving behind
* random pockets of land and the `/locate` command would incorrectly find a structure that was never placed.
*/
class HeightRangeStructureProcessor(
val minOffset: Int,
val maxOffset: Int,
val reference: HeightReference = HeightReference.SEA_LEVEL
) : StructureProcessor() {
fun isValidPlacement(world: LevelReader, pos: BlockPos): Boolean {
val referenceY = reference.getY(world, pos)
val minY = referenceY + minOffset
val maxY = referenceY + maxOffset
return pos.y in minY..maxY
}
fun isValidPlacement(
chunkGenerator: ChunkGenerator,
heightAccessor: LevelHeightAccessor,
randomState: RandomState,
pos: BlockPos
box: BoundingBox
): Boolean {
val referenceY = reference.getY(chunkGenerator, heightAccessor, randomState, pos)
val minY = referenceY + minOffset
val maxY = referenceY + maxOffset
return pos.y in minY..maxY
val referenceY = reference.getY(chunkGenerator, heightAccessor, randomState, box.center)
return box.minY() in (referenceY + minOffset)..(referenceY + maxOffset)
}
override fun processBlock(
@@ -53,13 +53,7 @@ class HeightRangeStructureProcessor(
originalBlockInfo: StructureTemplate.StructureBlockInfo,
currentBlockInfo: StructureTemplate.StructureBlockInfo,
data: StructurePlaceSettings
): StructureTemplate.StructureBlockInfo? {
return if (isValidPlacement(world, pos)) {
currentBlockInfo
} else {
null
}
}
): StructureTemplate.StructureBlockInfo = currentBlockInfo
override fun getType() = CobblemonProcessorTypes.HEIGHT_RANGE
@@ -74,15 +68,6 @@ class HeightRangeStructureProcessor(
fun getSerializedName(): String = id
@Suppress("DEPRECATION")
fun getY(world: LevelReader, pos: BlockPos): Int {
return if (this == SEA_LEVEL) {
world.seaLevel
} else {
world.getHeight(type ?: Heightmap.Types.WORLD_SURFACE_WG, pos.x, pos.z)
}
}
fun getY(
chunkGenerator: ChunkGenerator,
heightAccessor: LevelHeightAccessor,
@@ -113,4 +98,4 @@ class HeightRangeStructureProcessor(
).apply(instance, ::HeightRangeStructureProcessor)
}
}
}
}
@@ -390,6 +390,14 @@
}
}
}
}
},
"animation.rattata.cry": {
"animation_length": 1,
"sound_effects": {
"0.0417": {
"effect": "pokemon.rattata.cry"
}
}
}
}
}
@@ -1,7 +1,7 @@
{
"format_version": "1.8.0",
"animations": {
"animation.rattata.ground_idle": {
"animation.rattata_alolan.ground_idle": {
"loop": true,
"animation_length": 21.375,
"bones": {
@@ -55,7 +55,7 @@
}
}
},
"animation.rattata.ground_walk": {
"animation.rattata_alolan.ground_walk": {
"loop": true,
"bones": {
"body": {
@@ -124,7 +124,7 @@
}
}
},
"animation.rattata.faint": {
"animation.rattata_alolan.faint": {
"animation_length": 3,
"bones": {
"body": {
@@ -311,7 +311,7 @@
}
}
},
"animation.rattata.mouth_open": {
"animation.rattata_alolan.mouth_open": {
"animation_length": 1.25,
"bones": {
"jaw": {
@@ -333,7 +333,7 @@
}
}
},
"animation.rattata.sleep": {
"animation.rattata_alolan.sleep": {
"loop": true,
"bones": {
"body": {
@@ -390,7 +390,7 @@
}
}
},
"animation.rattata.blink": {
"animation.rattata_alolan.blink": {
"animation_length": 0.1667,
"bones": {
"eyelid_right": {
@@ -407,7 +407,7 @@
}
}
},
"animation.rattata.blink2": {
"animation.rattata_alolan.blink2": {
"animation_length": 0.16667,
"bones": {
"eyelid_right": {
@@ -425,6 +425,14 @@
}
}
}
}
},
"animation.rattata_alolan.cry": {
"animation_length": 1,
"sound_effects": {
"0.0417": {
"effect": "pokemon.rattata_alolan.cry"
}
}
}
}
}
@@ -42,7 +42,7 @@
}
}
},
"animation.sandshrew.cry": {
"animation.sandshrew_alolan.cry": {
"animation_length": 1.2,
"sound_effects": {
"0.04": {
@@ -61,7 +61,7 @@
}
}
},
"animation.sandslash.cry": {
"animation.sandslash_alolan.cry": {
"animation_length": 1.2,
"sound_effects": {
"0.04": {
@@ -679,6 +679,14 @@
"position": [0, -1, 0]
}
}
}
},
"animation.wigglytuff.cry": {
"animation_length": 1.25,
"sound_effects": {
"0.0417": {
"effect": "pokemon.wigglytuff.cry"
}
}
}
}
}
@@ -2630,7 +2630,7 @@
"0.5": [-7.69971, -17.84044, 12.03862]
}
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-2.5-math.sin(q.anim_time*90*8*2)*7", 0, 0]
},
"chest_fluff_left": {
@@ -59,7 +59,7 @@
"rotation": [0, 0, 0],
"position": [0, "0-math.sin(q.anim_time*90*3/2)*0.2", 0]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-15+math.cos(q.anim_time*90*3/2)*1", 0, 0]
}
}
@@ -123,7 +123,7 @@
"rotation": [7.5, 0, 0],
"position": [0, "0-math.sin(q.anim_time*90*2)*0.2", 0]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-37.5+math.cos(q.anim_time*90*2)*1", 0, 0]
}
}
@@ -482,7 +482,7 @@
"thorax": {
"rotation": [0, "0+math.cos(q.anim_time*90*3-120)*4", "0+math.cos(q.anim_time*90*3-120)*3"]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-12.5+math.cos(q.anim_time*90*3*2)*3", "0-math.cos(q.anim_time*90*3-180)*6", "0-math.cos(q.anim_time*90*3)*6"]
}
}
@@ -1532,7 +1532,7 @@
"thorax": {
"rotation": ["22.5-math.cos(q.anim_time*90*9*2-120)*1/2", "0+math.sin(q.anim_time*90*9-120)*4", "0-math.cos(q.anim_time*90*9-60)*4"]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-17.5+math.cos(q.anim_time*90*9*2)*4", "0+math.cos(q.anim_time*90*9-60)*4", 0]
}
}
@@ -1647,7 +1647,7 @@
"thorax": {
"rotation": ["5-math.sin(q.anim_time*90*20)*2-q.r.velocity_y(2)*15", 0, 0]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": ["-7.5+q.r.velocity_y(2)*15", 0, 0]
}
}
@@ -1867,7 +1867,7 @@
"thorax": {
"rotation": ["-37.5-math.cos(q.anim_time*90*3/2-60)*0.5", "0-math.cos(q.anim_time*90*3/2/2-60)*2", 0]
},
"locator_seat1": {
"locator_seat_1": {
"rotation": [-12.5, 0, 0]
}
}
@@ -70,6 +70,201 @@
}
}
},
"animation.lanturn.ground_walk": {
"loop": true,
"animation_length": 1.33333,
"bones": {
"torso": {
"rotation": ["18.5323-1*math.cos(q.anim_time*90*6+30)*-1", "8*math.cos(q.anim_time*90*3+30)*1", "2*math.cos(q.anim_time*90*3+30)*1"],
"position": [0, "-0.1+0.3*math.sin(q.anim_time*90*6+30)*1", 0]
},
"arm_left": {
"rotation": {
"0.0": [27.13972, 17.81489, 54.80802],
"0.5": [-9.78627, -11.33853, 53.65617],
"0.6667": {
"pre": [-11.47, -13.08, 42.11],
"post": [-11.47, -13.08, 42.11],
"lerp_mode": "catmullrom"
},
"0.8333": {
"post": [-8.23014, -10.8395, 27.91971],
"lerp_mode": "catmullrom"
},
"0.9583": {
"post": [-3.82491, -6.18459, 13.68449],
"lerp_mode": "catmullrom"
},
"1.125": {
"post": [0.38257, 5.03012, 2.61807],
"lerp_mode": "catmullrom"
},
"1.3333": [27.13972, 17.81489, 54.80802]
},
"position": {
"0.0": [0.6, -0.2, -0.3],
"0.25": [-0.56, -0.2, -0.7],
"0.5": [-0.63, -0.2, -0.9],
"0.6667": [-0.51, -0.2, -0.65],
"0.8333": [-0.4, -0.2, -0.4],
"1.3333": [0.6, -0.2, -0.3]
}
},
"arm_left2": {
"rotation": {
"0.0": [0, 0, -51],
"0.25": {
"pre": [0, 0, -53.5],
"post": [0, 0, -53.5],
"lerp_mode": "catmullrom"
},
"0.5": {
"post": [0, 0, -48.55],
"lerp_mode": "catmullrom"
},
"0.6667": {
"post": [0, 0, -31.44],
"lerp_mode": "catmullrom"
},
"0.9167": {
"post": [0, 0, 6.71],
"lerp_mode": "catmullrom"
},
"1.0417": {
"post": [0, 0, 25.7],
"lerp_mode": "catmullrom"
},
"1.125": {
"post": [0, 0, 4.89],
"lerp_mode": "catmullrom"
},
"1.25": {
"post": [0, 0, -48.1],
"lerp_mode": "catmullrom"
},
"1.3333": [0, 0, -51]
}
},
"arm_right": {
"rotation": {
"0.0": {
"post": [-11.47, 13.08, -42.11],
"lerp_mode": "catmullrom"
},
"0.1667": {
"post": [-8.23014, 10.8395, -27.91971],
"lerp_mode": "catmullrom"
},
"0.2917": {
"post": [-3.82491, 6.18459, -13.68449],
"lerp_mode": "catmullrom"
},
"0.4583": {
"post": [0.38257, -5.03012, -2.61807],
"lerp_mode": "catmullrom"
},
"0.6667": [27.13972, -17.81489, -54.80802],
"1.1667": [-9.78627, 11.33853, -53.65617],
"1.3333": [-11.47, 13.08, -42.11]
},
"position": {
"0.0": [0.51, -0.2, -0.65],
"0.1667": [0.4, -0.2, -0.4],
"0.6667": [-0.6, -0.2, -0.3],
"0.9167": [0.56, -0.2, -0.7],
"1.1667": [0.63, -0.2, -0.9],
"1.3333": [0.51, -0.2, -0.65]
}
},
"arm_right2": {
"rotation": {
"0.0": {
"post": [0, 0, 31.44],
"lerp_mode": "catmullrom"
},
"0.25": {
"post": [0, 0, -6.71],
"lerp_mode": "catmullrom"
},
"0.375": {
"post": [0, 0, -25.7],
"lerp_mode": "catmullrom"
},
"0.4583": {
"post": [0, 0, -4.89],
"lerp_mode": "catmullrom"
},
"0.5833": {
"post": [0, 0, 48.1],
"lerp_mode": "catmullrom"
},
"0.6667": [0, 0, 51],
"0.9167": {
"pre": [0, 0, 53.5],
"post": [0, 0, 53.5],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 48.55],
"lerp_mode": "catmullrom"
},
"1.3333": {
"post": [0, 0, 31.44],
"lerp_mode": "catmullrom"
}
}
},
"head": {
"rotation": ["-13.4677-1*math.cos(q.anim_time*90*6+30)*-1", "8*math.cos(q.anim_time*90*3+40)*-1", 0]
},
"stem": {
"rotation": ["-0.5*math.sin(q.anim_time*90*6-30)*1", "1-5*math.sin(q.anim_time*90*3-150)*1", "1*math.sin(q.anim_time*90*6-10)*1"]
},
"stem2": {
"rotation": ["50-0.5*math.sin(q.anim_time*90*6-40)*1", 0, 0]
},
"stem3": {
"rotation": ["35-0.5*math.sin(q.anim_time*90*6-80)*1", 0, 0]
},
"stem4": {
"rotation": ["30-1*math.sin(q.anim_time*90*6-100)*1", 0, 0]
},
"stem5": {
"rotation": ["30-0.5*math.sin(q.anim_time*90*6-90)*1", 0, 0]
},
"stem6": {
"rotation": ["30-3*math.sin(q.anim_time*90*6-150)*1", 0, 0]
},
"stem7": {
"rotation": ["-65.75+5*math.sin(q.anim_time*90*6-50)*1", 0, 0],
"position": [0, -0.9, 0]
},
"stem8": {
"rotation": ["-30.75+1*math.sin(q.anim_time*90*6-70)*1", 0, 0]
},
"stem9": {
"rotation": ["-25+1*math.sin(q.anim_time*90*6-100)*1", 0, 0]
},
"stem10": {
"rotation": ["-22.5+5*math.sin(q.anim_time*90*6-120)*1", 0, 0]
},
"tail": {
"rotation": [-20, "5*math.cos(q.anim_time*90*3+50)*-1", 0]
},
"tail2": {
"rotation": [7.5, "5*math.cos(q.anim_time*90*3+70)*-1", 0]
},
"tail3": {
"rotation": [7.5, "5*math.cos(q.anim_time*90*3+90)*-1", 0]
},
"tail4": {
"rotation": [10, "7*math.cos(q.anim_time*90*3+120)*-1", 0]
},
"body": {
"rotation": [0, "8*math.cos(q.anim_time*90*3)*1", 0]
}
}
},
"animation.lanturn.ground_battle_idle": {
"loop": true,
"animation_length": 2.66667,
@@ -1163,6 +1358,82 @@
}
}
},
"animation.lanturn.sleep": {
"loop": true,
"bones": {
"torso": {
"rotation": ["20+0.5*math.sin(q.anim_time*90*1+170)*1", 0, 0],
"position": [0, "-0.3+0.2*math.sin(q.anim_time*90*1-20)*1", 0]
},
"arm_left": {
"rotation": [0, "-0.5-0.5*math.sin(q.anim_time*90*1-20)*1", 58.5],
"position": [0, "0.2-0.2*math.sin(q.anim_time*90*1-20)*1", 0]
},
"arm_left2": {
"rotation": [0, 0, -58]
},
"arm_right": {
"rotation": [0, "0.5-0.5*math.sin(q.anim_time*90*1-20)*-1", -58.5],
"position": [0, "0.2-0.2*math.sin(q.anim_time*90*1-20)*1", 0]
},
"arm_right2": {
"rotation": [0, 0, 58]
},
"head": {
"rotation": ["1-1*math.sin(q.anim_time*90*1+130)*1.5", 0, 0],
"position": [0, 0, -0.6]
},
"eyelid_left": {
"position": [0.1, 0, 0]
},
"eyelid_right": {
"position": [-0.1, 0, 0]
},
"stem": {
"rotation": ["-3*math.sin(q.anim_time*90*1-30)*1", "1-1*math.sin(q.anim_time*90*1-90)*-1", "1*math.sin(q.anim_time*90*1-10)*1"]
},
"stem2": {
"rotation": ["50-0.25*math.sin(q.anim_time*90*1-40)*1", 0, 0]
},
"stem3": {
"rotation": ["35-1*math.sin(q.anim_time*90*1-80)*1", 0, 0]
},
"stem4": {
"rotation": ["30-1*math.sin(q.anim_time*90*1-90)*1", 0, 0]
},
"stem5": {
"rotation": ["30-1*math.sin(q.anim_time*90*1-90)*1", 0, 0]
},
"stem6": {
"rotation": ["30-1*math.sin(q.anim_time*90*1-90)*1", 0, 0]
},
"stem7": {
"rotation": ["-72.5+3*math.sin(q.anim_time*90*1-30)*1", 0, 0],
"position": [0, -0.9, 0]
},
"stem8": {
"rotation": ["-27.5+2*math.sin(q.anim_time*90*1-10)*1", 0, 0]
},
"stem9": {
"rotation": ["-25+1*math.sin(q.anim_time*90*1-15)*1", 0, 0]
},
"stem10": {
"rotation": ["-22.5+2*math.sin(q.anim_time*90*1-30)*1", 0, 0]
},
"tail": {
"rotation": [-20, "0+1*math.sin(q.anim_time*90*1-30)*1", 0]
},
"tail2": {
"rotation": [2.5, "0+1*math.sin(q.anim_time*90*1-50)*1", 0]
},
"tail3": {
"rotation": [15, "1*math.sin(q.anim_time*90*1-60)*1", 0]
},
"tail4": {
"rotation": [5, "0+2*math.sin(q.anim_time*90*1-120)*1", 0]
}
}
},
"animation.lanturn.cry": {
"animation_length": 1.5,
"bones": {
@@ -47,6 +47,14 @@
}
}
}
}
},
"animation.unown.cry": {
"animation_length": 1.25,
"sound_effects": {
"0.0417": {
"effect": "pokemon.unown.cry"
}
}
}
}
}
@@ -334,6 +334,212 @@
}
}
}
}
},
"animation.tyranitar.cry": {
"animation_length": 1.2,
"bones": {
"arm_left": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.2083": {
"post": [-0.22492, 7.46745, 10.26621],
"lerp_mode": "catmullrom"
},
"0.625": {
"post": [-0.22492, 7.46745, 10.26621],
"lerp_mode": "catmullrom"
},
"0.9167": {
"post": [0.1236, -2.46953, -2.31291],
"lerp_mode": "catmullrom"
},
"1.0833": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"arm_left2": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.2083": {
"post": [-0.22492, 7.46745, 10.26621],
"lerp_mode": "catmullrom"
},
"0.625": {
"post": [-0.22492, 7.46745, 10.26621],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0.1236, -2.46953, -2.31291],
"lerp_mode": "catmullrom"
}
}
},
"arm_right": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.2083": {
"post": [-0.22492, -7.46745, -10.26621],
"lerp_mode": "catmullrom"
},
"0.625": {
"post": [-0.22492, -7.46745, -10.26621],
"lerp_mode": "catmullrom"
},
"0.9167": {
"post": [0.1236, 2.46953, 2.31291],
"lerp_mode": "catmullrom"
},
"1.0833": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"arm_right2": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.2083": {
"post": [-0.22492, -7.46745, -10.26621],
"lerp_mode": "catmullrom"
},
"0.625": {
"post": [-0.22492, -7.46745, -10.26621],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0.1236, 2.46953, 2.31291],
"lerp_mode": "catmullrom"
}
}
},
"chest2": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.25": {
"post": [-7.5, 0, 0],
"lerp_mode": "catmullrom"
},
"0.7917": {
"post": [-7.5, 0, 0],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"neck": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.25": {
"post": [-2.5, 0, 0],
"lerp_mode": "catmullrom"
},
"0.7917": {
"post": [-2.5, 0, 0],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"neck2": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.2083": {
"post": [-25, 0, 0],
"lerp_mode": "catmullrom"
},
"0.7917": {
"post": [-18.92, 0, 0],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"head_rotation": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.25": {
"post": [-12.39638, -1.61888, 0],
"lerp_mode": "catmullrom"
},
"0.5833": {
"post": [-1.47437, 0.12898, 0],
"lerp_mode": "catmullrom"
},
"0.7917": {
"post": [-12.5, 0, 0],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
},
"jaw_closed": {
"rotation": {
"0.0": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.25": {
"post": [50, 0, 0],
"lerp_mode": "catmullrom"
},
"0.6667": {
"post": [39.6, 0, 0],
"lerp_mode": "catmullrom"
},
"0.7917": {
"post": [60, 0, 0],
"lerp_mode": "catmullrom"
},
"1.1667": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
}
}
}
},
"sound_effects": {
"0.0417": {
"effect": "pokemon.tyranitar.cry"
}
}
}
}
}
@@ -461,6 +461,14 @@
"position": [0.1, 0, 0]
}
}
}
},
"animation.mawile.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.mawile.cry"
}
}
}
}
}
@@ -64,14 +64,20 @@
"position": {
"0.0": [0.1, 0, -0.1],
"0.125": [0.1, 0, -0.1],
"0.1667": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}
"0.1667": {
"pre": [0.1, 0, -0.1],
"post": [0, 0, 0]
}
}
},
"eyelid_right": {
"position": {
"0.0": [-0.1, 0, -0.1],
"0.125": [-0.1, 0, -0.1],
"0.1667": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}
"0.1667": {
"pre": [-0.1, 0, -0.1],
"post": [0, 0, 0]
}
}
}
}
@@ -103,6 +109,11 @@
"1.5": [0, 0, 0]
}
}
},
"sound_effects": {
"0.0833": {
"effect": "pokemon.electrike.cry"
}
}
},
"animation.electrike.item_hold": {
@@ -83,21 +83,30 @@
"position": {
"0.0": [0.1, 0, 0.1],
"0.125": [0.1, 0, 0.1],
"0.1667": {"pre": [0.1, 0, 0.1], "post": [0, 0, 0]}
"0.1667": {
"pre": [0.1, 0, 0.1],
"post": [0, 0, 0]
}
}
},
"eyelid_right": {
"position": {
"0.0": [-0.1, 0, -0.1],
"0.125": [-0.1, 0, -0.1],
"0.1667": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}
"0.1667": {
"pre": [-0.1, 0, -0.1],
"post": [0, 0, 0]
}
}
},
"eyelid_left": {
"position": {
"0.0": [0.1, 0, -0.1],
"0.125": [0.1, 0, -0.1],
"0.1667": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}
"0.1667": {
"pre": [0.1, 0, -0.1],
"post": [0, 0, 0]
}
}
}
}
@@ -129,6 +138,11 @@
"1.5": [0, 0, 0]
}
}
},
"sound_effects": {
"0.0833": {
"effect": "pokemon.manectric.cry"
}
}
},
"animation.manectric.item_hold": {
@@ -523,6 +523,14 @@
"position": [0, 0, -0.1]
}
}
}
},
"animation.zangoose.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.zangoose.cry"
}
}
}
}
}
@@ -408,6 +408,14 @@
"position": [-0.1, 0, -0.1]
}
}
}
},
"animation.seviper.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.seviper.cry"
}
}
}
}
}
@@ -95,6 +95,14 @@
"position": [0, 0, -0.1]
}
}
},
"animation.shuppet.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.shuppet.cry"
}
}
}
}
}
@@ -404,6 +404,14 @@
"rotation": [1.49371, 3.63717, -24.68117]
}
}
}
},
"animation.banette.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.banette.cry"
}
}
}
}
}
@@ -442,6 +442,14 @@
"scale": ["1-math.sin(q.anim_time*90*1+45)*0.01", "1-math.sin(q.anim_time*90*1+225)*0.005", 1]
}
}
},
"animation.duskull.cry": {
"animation_length": 1.2,
"sound_effects": {
"0.04": {
"effect": "pokemon.duskull.cry"
}
}
}
}
}
@@ -1551,6 +1551,14 @@
"rotation": [0, 0, 67.5]
}
}
},
"animation.dusclops.cry": {
"animation_length": 1.2,
"sound_effects": {
"0.04": {
"effect": "pokemon.dusclops.cry"
}
}
}
}
}
@@ -237,6 +237,14 @@
"position": [0, 0, -0.1]
}
}
}
},
"animation.cherubi.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.cherubi.cry"
}
}
}
}
}
@@ -259,6 +259,14 @@
"position": [0, 0, -0.1]
}
}
}
},
"animation.cherrim_overcast.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.cherrim.cry"
}
}
}
}
}
@@ -370,6 +370,14 @@
"position": [0, 0, -0.1]
}
}
}
},
"animation.cherrim_sunshine.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.cherrim_sunshine.cry"
}
}
}
}
}
@@ -50,10 +50,12 @@
"rotation": ["-15+Math.cos((query.anim_time-0.4) * 90 * 2) * 2", 0, 0]
},
"thigh_right": {
"rotation": [0, 22.5, 0]
"rotation": [0, 22.5, 0],
"position": [0, 0, 0.1]
},
"thigh_left": {
"rotation": [0, -7.5, 0]
"rotation": [0, -7.5, 0],
"position": [0, 0, -0.25]
},
"scalchop_hand_right": {
"position": [2.5, -0.55, 0]
@@ -178,6 +180,12 @@
"1.25": [-7.5, 0, 0],
"1.5": [7.5, 0, 0]
}
},
"skirt_right": {
"rotation": [0, 0, 5]
},
"skirt_left": {
"rotation": [0, 0, -5]
}
}
},
@@ -272,7 +280,5 @@
}
}
}
},
"geckolib_format_version": 2
}
}
@@ -128,6 +128,14 @@
"position": [0, 0, -0.1]
}
}
}
},
"animation.audino.cry": {
"animation_length": 1.5,
"sound_effects": {
"0.0417": {
"effect": "pokemon.audino.cry"
}
}
}
}
}
@@ -814,7 +814,7 @@
}
},
"sound_effects": {
"0.0": {
"0.0417": {
"effect": "pokemon.darumaka.cry"
}
}
@@ -178,7 +178,7 @@
},
"sound_effects": {
"0.125": {
"effect": "joltik_cry"
"effect": "pokemon.joltik.cry"
}
}
},

Some files were not shown because too many files have changed in this diff Show More