Compare commits

...
Author SHA1 Message Date
Slippy 8e3724a623 Lush Cove Adjustments 2024-12-22 11:48:44 -06:00
Slippy 4940afbd81 Merge branch 'main' of https://gitlab.com/cable-mc/cobblemon into Cove-Adjustments 2024-12-22 11:31:58 -06:00
Hiroku d29e471ab4 Merge branch 'ok-fine-heres-a-journey-molang-mr' into 'main'
[1.6 pls] Journey Molang Migration

See merge request cable-mc/cobblemon!1385
2024-12-22 08:10:23 +00:00
Paul 6c1e6677b3 More molang cleanup 2024-12-22 18:03:31 +10:00
Paul aaa7fcee47 Cleaned up particle molang functions, moved reusable particle spawning logic from netcode to ParticleStorm 2024-12-22 18:01:05 +10:00
Hiroku 37b050f2e5 Merge branch 'ihatebugtypes' into 'main'
Ihatebugtypes

Closes #1167, #1201, and #1225

See merge request cable-mc/cobblemon!1369
2024-12-22 06:24:19 +00:00
Hiroku 16ccd6bcc3 Merge branch 'upstream/npcs' into 'main'
Allow for programmatic persistence of npcs

See merge request cable-mc/cobblemon!1388
2024-12-22 06:23:00 +00:00
Paul 8b0d228339 Merge remote-tracking branch 'origin/main' 2024-12-22 12:07:59 +10:00
Paul 5019026472 Further reworked brewing, JEI/EMI compat might exist on Neo now (fabric is impossibru (for now)) 2024-12-22 12:07:48 +10:00
amo ace38ad6be Merge branch 'main' into ok-fine-heres-a-journey-molang-mr 2024-12-21 17:03:47 +00:00
Polymeta 5c885112ef Merge branch '1.6-additional-additions' into 'main'
1.6 additional additions

See merge request cable-mc/cobblemon!1398
2024-12-21 14:23:06 +00:00
Plastered_Crab a37532579e 1.6 additional additions 2024-12-21 14:23:05 +00:00
Segfault Guy 0f751eb732 cleanup 2024-12-21 07:18:41 -05:00
Paul 9840a2758a Fixed everything being medicinal brew. Drink it!!! (fixes #1249) 2024-12-21 22:07:30 +10:00
Paul ad52d1ed5f Fixed busted flowers tag, fixed party check criterion 2024-12-21 21:48:09 +10:00
Paul 74464dc13a Fixed PC block waterlog property not being the right one, causing export issues, closes #1253 2024-12-21 21:33:24 +10:00
Hiroku f280ec8979 Merge branch 'half-slabs' into 'main'
Stonecutter Fixes

Closes #1260

See merge request cable-mc/cobblemon!1399
2024-12-21 05:57:42 +00:00
dhi_holo 25ca0fbd13 Recreate flowers.json
Moved the working flowers.json from being just in items to being a block tag too
2024-12-21 15:25:33 +10:00
dhi_holo 2c8d544088 Tag Fix
Cleans up a tag, removes a recursive tag error, and tweaks a spawn to be valid again.
2024-12-21 15:16:12 +10:00
Segfault Guy 7dbe31d084 Merge remote-tracking branch 'origin/main' into ihatebugtypes 2024-12-20 23:47:30 -05:00
Segfault Guy de05133b31 update licenses 2024-12-20 23:45:45 -05:00
Segfault Guy 3b70b8351a Block battles on evolution. 2024-12-20 23:44:36 -05:00
dhi_holo 784439475a Stonecutter Fixes
Moved the count value from outside the result to inside of it. No idea why it ended up outside, but hey, easy fix. Resolves #1260
2024-12-21 14:22:44 +10:00
Paul 2024ddb4f0 Wrap spawn direction angle within acceptable entity rotation values 2024-12-21 12:37:32 +10:00
Paul ad35be7ddb Added player level range influence to fishing 2024-12-21 10:51:27 +10:00
Paul dbf688fade Merge remote-tracking branch 'origin/lang-updates'
# Conflicts:
#	common/src/main/resources/assets/cobblemon/lang/de_de.json
#	common/src/main/resources/assets/cobblemon/lang/es_mx.json
#	common/src/main/resources/assets/cobblemon/lang/th_th.json
2024-12-21 09:30:37 +10:00
Polymeta 17d3d5f829 Merge branch 'implement_pokemon' into 'main'
This weeks pokemon implementation

Closes #1230 and #1137

See merge request cable-mc/cobblemon!1397
2024-12-20 13:30:37 +00:00
Frank The Farmer fba00c23b4 This weeks pokemon implementation 2024-12-20 13:30:35 +00:00
Hiroku cfe516e086 Merge branch 'RaftClientSyncFix' into 'main'
Fixed client sync issue with platforms. (Clients do not possess accurate behavior data.)

See merge request cable-mc/cobblemon!1394
2024-12-20 10:29:40 +00:00
Polymeta 63d921cb12 Merge branch 'fix-drop-message' into 'main'
Fix 'air dropped to the ground' message when Pokémon are killed in lava and drop no loot

See merge request cable-mc/cobblemon!1395
2024-12-20 09:23:07 +00:00
lion 6acde8c90f Fix 'air dropped to the ground' message when Pokémon are killed in lava and drop no loot 2024-12-20 09:23:07 +00:00
Hiroku 196ce2ab6d Merge branch 'fix-evolution-animation' into 'main'
Fix evolution animation not playing back to back

Closes #1229

See merge request cable-mc/cobblemon!1396
2024-12-20 09:09:12 +00:00
lion 6fb6ea2927 Fix evolution animation not playing back to back 2024-12-20 09:09:12 +00:00
JazzMcNade 538027cb1b Fixed client sync issue with platforms. (Clients do not possess accurate behavior data.) 2024-12-19 17:47:17 -06:00
Paul 51fcc91d88 Fixed blinks not running 2024-12-19 21:24:00 +10:00
Gustavo Felippi Puerari 63c603cc01 Translated using Weblate (Portuguese (Brazil))
Currently translated at 33.9% (2169 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-18 23:02:36 +00:00
Teggy a7406dd321 Translated using Weblate (Spanish)
Currently translated at 98.0% (6267 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es/
2024-12-18 23:02:36 +00:00
Paul 0e1611fd8e Merge remote-tracking branch 'origin/main' 2024-12-18 19:15:35 +10:00
Paul 51e575c6a6 Fixed action effects not playing animations, particles, or sounds in many circumstances. Tweaked spawn direction handling 2024-12-18 19:15:17 +10:00
Test 8789d16a53 replace hardcoded values with attribute for item interaction range 2024-12-17 22:09:12 -05:00
Gustavo Felippi Puerari f7986d5ccf Translated using Weblate (Portuguese (Brazil))
Currently translated at 33.7% (2160 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-18 02:41:45 +00:00
Felipe Bermudes Ormeño c7423408a9 Translated using Weblate (Spanish (Mexico))
Currently translated at 30.6% (1960 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es_MX/
2024-12-18 02:41:44 +00:00
Teggy 52b0c63751 Translated using Weblate (Spanish)
Currently translated at 96.8% (6189 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es/
2024-12-18 02:41:44 +00:00
Polymeta 7ae20ccd60 Merge branch 'scrappy-lang-fix' into 'main'
Updated Scrappy's ability description

See merge request cable-mc/cobblemon!1389
2024-12-17 23:53:29 +00:00
Conan 621b867d14 Updated Scrappy's ability description 2024-12-17 21:46:24 +01:00
chasem-dev b0ea22d220 Allow for programmatic persistence of npcs 2024-12-17 15:19:56 -05:00
amo dfb54b3bc3 brainfart 2024-12-17 01:17:01 +00:00
Polymeta 2928667500 Merge branch '1.6-spawns' into 'main'
Updated recipes for Scope Lens, Wide Lens, and Zoom Lens. Updated spawns....

See merge request cable-mc/cobblemon!1384
2024-12-16 23:50:04 +00:00
Veraxiel 1c528a909c Updated recipes for Scope Lens, Wide Lens, and Zoom Lens. Updated spawns.... 2024-12-16 23:50:04 +00:00
amo 1083e770d0 add player-specific packet molang methods for snowstorm particles & animations 2024-12-16 12:43:15 +00:00
Paul 920f3f114b Merge remote-tracking branch 'origin/main' 2024-12-16 21:08:27 +10:00
Hiroku 9ca5d12f84 Merge branch 'FixInBattleFlightFidgeting' into 'main'
FixInBattleFlightFidgeting

See merge request cable-mc/cobblemon!1383
2024-12-16 09:41:22 +00:00
Hiroku cc9bb528a8 Merge branch 'npc-hitbox' into 'main'
Fixed npcs not being able to take custom hitbox properties

See merge request cable-mc/cobblemon!1381
2024-12-16 09:40:46 +00:00
Paul 1cbd00691f Merge remote-tracking branch 'origin/main' 2024-12-16 19:05:10 +10:00
JazzMcNade f4c847fdd5 Replaced isGrounded with the more reliable isAirborne. Prevented pokemon from currently flying from receiving a raft. 2024-12-16 01:04:46 -06:00
Conan ec6e1403e7 Fixed npcs not being able to take custom hitbox properties 2024-12-16 05:24:26 +01:00
Hiroku 10a4a03a8b Merge branch 'close-battle-gui-with-mouse' into 'main'
Fix battle GUI not closing with mouse keybind

Closes #1093

See merge request cable-mc/cobblemon!1380
2024-12-16 03:06:46 +00:00
lion e0a86f8794 Fix battle GUI not closing with mouse keybind 2024-12-16 03:06:45 +00:00
Paul 767e024ec4 Debug logging of pokemon entity ticking 2024-12-16 09:55:45 +10:00
Gustavo Felippi Puerari 78192c43a7 Translated using Weblate (Portuguese (Brazil))
Currently translated at 33.6% (2148 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-14 18:41:41 +00:00
Segfault Guy 439161c180 Merge remote-tracking branch 'origin/main' into ihatebugtypes 2024-12-13 23:39:22 -05:00
Teggy e2ebb32708 Translated using Weblate (Spanish)
Currently translated at 87.6% (5601 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es/
2024-12-11 15:53:06 +00:00
Segfault Guy b0466447cc Temp fix for missing form langs. 2024-12-10 21:59:39 -05:00
Zack the Ghast 727ff96ff8 Translated using Weblate (Portuguese (Portugal))
Currently translated at 28.9% (1851 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_PT/
2024-12-10 12:41:43 +00:00
Gustavo Felippi Puerari 9307f957b7 Translated using Weblate (Portuguese (Brazil))
Currently translated at 32.6% (2089 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-10 12:41:43 +00:00
Teggy d48978f6a4 Translated using Weblate (Spanish)
Currently translated at 86.5% (5531 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es/
2024-12-10 12:41:42 +00:00
Gustavo Felippi Puerari aca1433595 Translated using Weblate (Portuguese (Brazil))
Currently translated at 30.8% (1969 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-07 03:41:43 +00:00
Teggy 082c382179 Translated using Weblate (Spanish)
Currently translated at 80.4% (5140 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es/
2024-12-07 03:41:42 +00:00
Segfault Guy c2d85a0cdf Battle performance, bugs, and PokemonEntity fixes. 2024-12-05 00:22:20 -05:00
Weblate 7cea5ad69e Update translation files
Updated by "Remove blank strings" add-on in Weblate.

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/
2024-12-04 00:41:50 +00:00
Zack the Ghast 0b9b5ac306 Translated using Weblate (Portuguese (Portugal))
Currently translated at 28.8% (1845 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_PT/
2024-12-04 00:41:46 +00:00
Gustavo Felippi Puerari 8941f3079b Translated using Weblate (Portuguese (Brazil))
Currently translated at 29.1% (1866 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_BR/
2024-12-04 00:41:44 +00:00
Alexis Salgueiro e9a0815ca6 Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-12-04 00:41:41 +00:00
Plastered_Crab db25ebf7f1 Add placeholder type gem blocks (regular and budding) for testing 2024-12-03 13:41:57 -08:00
Zack the Ghast fe48da6277 Translated using Weblate (Portuguese (Portugal))
Currently translated at 27.3% (1750 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_PT/
2024-11-29 09:15:34 +00:00
Mia 12c9c1c295 Translated using Weblate (German)
Currently translated at 88.8% (5679 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/de/
2024-11-29 09:15:33 +00:00
Zack the Ghast 7471b336be Translated using Weblate (Portuguese (Portugal))
Currently translated at 26.9% (1720 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/pt_PT/
2024-11-26 12:15:28 +00:00
Natchakot Chuchokjatuporn 948f299f8f Translated using Weblate (Thai)
Currently translated at 90.1% (5764 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-18 21:41:42 +00:00
Natchakot Chuchokjatuporn 5c075d7d29 Translated using Weblate (Thai)
Currently translated at 88.7% (5671 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-13 22:41:55 +00:00
Weblate 854f02d34f Update translation files
Updated by "Remove blank strings" add-on in Weblate.

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/
2024-11-12 21:41:59 +00:00
Natchakot Chuchokjatuporn a3c3fa12e5 Translated using Weblate (Thai)
Currently translated at 87.1% (5567 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-12 21:41:53 +00:00
Alexis Salgueiro 3527da02a6 Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-12 21:41:48 +00:00
Mia 96f537fa27 Translated using Weblate (German)
Currently translated at 87.5% (5596 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/de/
2024-11-12 21:41:45 +00:00
Natchakot Chuchokjatuporn e9f58df359 Translated using Weblate (Thai)
Currently translated at 84.1% (5381 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-09 21:29:17 +00:00
Adam Idrici 6885569f9e Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-09 21:29:15 +00:00
Alexis Salgueiro 601927406c Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-09 21:29:15 +00:00
Natchakot Chuchokjatuporn 347b0bfa37 Translated using Weblate (Thai)
Currently translated at 81.4% (5206 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-07 23:47:02 +00:00
Alexis Salgueiro efa63b105f Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-07 23:47:01 +00:00
Adam Idrici 18d8c19df7 Translated using Weblate (French)
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-07 23:47:01 +00:00
Natchakot Chuchokjatuporn 8d7c92f30e Translated using Weblate (Thai)
Currently translated at 80.9% (5173 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/th/
2024-11-07 22:41:43 +00:00
Alexis Salgueiro 4e7b7d8d59 Translated using Weblate (French)
Currently translated at 96.6% (6179 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-07 22:41:41 +00:00
Felipe Bermudes Ormeño 1213fc9145 Translated using Weblate (Spanish (Mexico))
Currently translated at 30.5% (1954 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/es_MX/
2024-11-07 22:41:40 +00:00
Adam Idrici 071038dc09 Translated using Weblate (French)
Currently translated at 96.6% (6176 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-04 12:28:48 +00:00
Weblate 2688e37f77 Update translation files
Updated by "Remove blank strings" add-on in Weblate.

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/
2024-11-03 22:31:01 +00:00
阿鱼 e8a9ea1185 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (6391 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/zh_Hans/
2024-11-03 22:30:58 +00:00
Alexis Salgueiro 4770c273f9 Translated using Weblate (French)
Currently translated at 96.3% (6159 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-03 22:30:55 +00:00
Adam Idrici 0e2e42b826 Translated using Weblate (French)
Currently translated at 96.3% (6159 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/fr/
2024-11-03 22:30:54 +00:00
GottvaterNougatKoenig de819828ce Translated using Weblate (German)
Currently translated at 87.5% (5597 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/de/
2024-11-03 22:30:53 +00:00
Mia fed34e9b98 Translated using Weblate (German)
Currently translated at 87.5% (5597 of 6391 strings)

Translation: Cobblemon/Mod
Translate-URL: http://lang.cobblemon.com/projects/cobblemon/mod/de/
2024-11-03 22:30:53 +00:00
809 changed files with 12004 additions and 7411 deletions

No files matched your search

+8
View File
@@ -71,6 +71,7 @@
- Octillery
- Mantine
- Smeargle
- Delibird
#### Gen 3
- Slakoth
@@ -250,6 +251,7 @@
### Model updates for the following Pokémon
- Bulbasaur, Ivysaur, Venusaur
- Charmander, Charmeleon, Charizard
- Caterpie
- Kakuna, Beedrill
- Lapras
- Porygon, Porygon2, Porygon-Z
@@ -285,9 +287,11 @@
- Phantump, Trevenant
- Litten, Torracat, Incineroar
- Popplio, Brionne, Primarina
- Mudbray
- Lurantis
- Scorbunny, Cinderace
- Quaxly
- Skeledirge
- Tatsugiri
### Changes
@@ -343,6 +347,7 @@
- A short jump indicates that you caught the Pokémon.
- Pokémon sent out during battle will spawn facing their opponent.
- Pokémon sent out outside a battle will spawn facing their trainer.
- Wailord is now 25% bigger
### Fixes
- Fixed Ability Patches not reverting Hidden Abilities back to Normal Abilities.
@@ -400,6 +405,8 @@
- Fixed Hisuian Sneasel using Johtonian Sneasel's cry
- Fixed Trevenant t-posing after 8 seconds of sleep.
- Fixed Bewear t-posing for a bit if a wild one fainted.
- Fixed Noctowl's placeholder fly animation.
- Corrected Lotad's kotlin poser to use its own blink animation instead of Charmander's.
- Fixed reviving items throwing an exception when used in battle.
- Fixed messages for Focus Sash, Confusion, Mummy, Ice Face, Own Tempo, and Revive.
- Improve error handling when loading spawn-sets to ensure invalid configurations don't crash the server.
@@ -431,6 +438,7 @@
- Fixed display case not being able to be fed items from underneath.
- Fixed Pokémon battling in water continuously sinking to the bottom.
- Fixed passive healing and wake from faint not disabling when their config values are set to 0.
- Fixed an issue where rebinding the R key to a mouse button prevented players from closing the battle interface using that button.
### Developer
- `SpawnCause` is now an implementation of `SpawningInfluence`.
@@ -54,7 +54,10 @@ import com.cobblemon.mod.common.api.storage.pc.PCStore
import com.cobblemon.mod.common.api.storage.pc.link.PCLinkManager
import com.cobblemon.mod.common.api.storage.player.PlayerInstancedDataStoreManager
import com.cobblemon.mod.common.api.storage.player.PlayerInstancedDataStoreTypes
import com.cobblemon.mod.common.api.storage.player.adapter.*
import com.cobblemon.mod.common.api.storage.player.adapter.DexDataMongoBackend
import com.cobblemon.mod.common.api.storage.player.adapter.DexDataNbtBackend
import com.cobblemon.mod.common.api.storage.player.adapter.PlayerDataJsonBackend
import com.cobblemon.mod.common.api.storage.player.adapter.PlayerDataMongoBackend
import com.cobblemon.mod.common.api.storage.player.factory.CachedPlayerDataStoreFactory
import com.cobblemon.mod.common.api.tags.CobblemonEntityTypeTags
import com.cobblemon.mod.common.api.tags.CobblemonItemTags
@@ -65,16 +68,7 @@ import com.cobblemon.mod.common.battles.BattleSide
import com.cobblemon.mod.common.battles.ShowdownThread
import com.cobblemon.mod.common.battles.actor.PokemonBattleActor
import com.cobblemon.mod.common.battles.pokemon.BattlePokemon
import com.cobblemon.mod.common.command.argument.DexArgumentType
import com.cobblemon.mod.common.command.argument.DialogueArgumentType
import com.cobblemon.mod.common.command.argument.FormArgumentType
import com.cobblemon.mod.common.command.argument.MoveArgumentType
import com.cobblemon.mod.common.command.argument.NPCClassArgumentType
import com.cobblemon.mod.common.command.argument.PartySlotArgumentType
import com.cobblemon.mod.common.command.argument.PokemonPropertiesArgumentType
import com.cobblemon.mod.common.command.argument.PokemonStoreArgumentType
import com.cobblemon.mod.common.command.argument.SpawnBucketArgumentType
import com.cobblemon.mod.common.command.argument.SpeciesArgumentType
import com.cobblemon.mod.common.command.argument.*
import com.cobblemon.mod.common.config.CobblemonConfig
import com.cobblemon.mod.common.config.LastChangedVersion
import com.cobblemon.mod.common.config.constraint.IntConstraint
@@ -94,17 +88,21 @@ import com.cobblemon.mod.common.pokemon.evolution.variants.BlockClickEvolution
import com.cobblemon.mod.common.pokemon.feature.TagSeasonResolver
import com.cobblemon.mod.common.pokemon.helditem.CobblemonHeldItemManager
import com.cobblemon.mod.common.pokemon.properties.AspectPropertyType
import com.cobblemon.mod.common.pokemon.properties.BattleCloneProperty
import com.cobblemon.mod.common.pokemon.properties.FreezeFrameProperty
import com.cobblemon.mod.common.pokemon.properties.HiddenAbilityPropertyType
import com.cobblemon.mod.common.pokemon.properties.NoAIProperty
import com.cobblemon.mod.common.pokemon.properties.UnaspectPropertyType
import com.cobblemon.mod.common.pokemon.properties.UncatchableProperty
import com.cobblemon.mod.common.pokemon.properties.BattleCloneProperty
import com.cobblemon.mod.common.pokemon.properties.tags.PokemonFlagProperty
import com.cobblemon.mod.common.pokemon.stat.CobblemonStatProvider
import com.cobblemon.mod.common.starter.CobblemonStarterHandler
import com.cobblemon.mod.common.trade.TradeManager
import com.cobblemon.mod.common.util.*
import com.cobblemon.mod.common.util.DataKeys
import com.cobblemon.mod.common.util.cobblemonResource
import com.cobblemon.mod.common.util.ifDedicatedServer
import com.cobblemon.mod.common.util.isLaterVersion
import com.cobblemon.mod.common.util.party
import com.cobblemon.mod.common.util.server
import com.cobblemon.mod.common.world.feature.CobblemonPlacedFeatures
import com.cobblemon.mod.common.world.feature.ore.CobblemonOrePlacedFeatures
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules
@@ -116,7 +114,7 @@ import java.io.File
import java.io.FileReader
import java.io.FileWriter
import java.io.PrintWriter
import java.util.*
import java.util.UUID
import kotlin.math.roundToInt
import kotlin.properties.Delegates
import kotlin.reflect.full.memberProperties
@@ -386,8 +384,13 @@ object Cobblemon {
BattleFormat.GEN_9_SINGLES,
BattleSide(PokemonBattleActor(UUID.randomUUID(), BattlePokemon(Pokemon().initialize()), -1F)),
BattleSide(PokemonBattleActor(UUID.randomUUID(), BattlePokemon(Pokemon().initialize()), -1F)),
true
).ifSuccessful { it.mute = true }
false
).ifSuccessful {
it.mute = true
}.ifErrored {
val errors = it.errors.joinToString("\n") { it.javaClass.name }
LOGGER.error("Failed to start dummy Showdown battle: $errors")
}
}
registerEventHandlers()
@@ -276,6 +276,81 @@ object CobblemonBlocks : PlatformRegistry<Registry<Block>, ResourceKey<Registry<
@JvmField
val CHISELED_BLACK_TUMBLESTONE_BRICKS = this.create("chiseled_black_tumblestone_bricks", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_BUG_BLOCK = this.create("gem_bug_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_DARK_BLOCK = this.create("gem_dark_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_DRAGON_BLOCK = this.create("gem_dragon_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ELECTRIC_BLOCK = this.create("gem_electric_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FAIRY_BLOCK = this.create("gem_fairy_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FIGHTING_BLOCK = this.create("gem_fighting_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FIRE_BLOCK = this.create("gem_fire_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FLYING_BLOCK = this.create("gem_flying_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GHOST_BLOCK = this.create("gem_ghost_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GRASS_BLOCK = this.create("gem_grass_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GROUND_BLOCK = this.create("gem_ground_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ICE_BLOCK = this.create("gem_ice_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_NORMAL_BLOCK = this.create("gem_normal_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_POISON_BLOCK = this.create("gem_poison_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_PSYCHIC_BLOCK = this.create("gem_psychic_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ROCK_BLOCK = this.create("gem_rock_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_STEEL_BLOCK = this.create("gem_steel_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_WATER_BLOCK = this.create("gem_water_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_BUG_BUDDING = this.create("gem_bug_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_DARK_BUDDING = this.create("gem_dark_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_DRAGON_BUDDING = this.create("gem_dragon_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ELECTRIC_BUDDING = this.create("gem_electric_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FAIRY_BUDDING = this.create("gem_fairy_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FIGHTING_BUDDING = this.create("gem_fighting_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FIRE_BUDDING = this.create("gem_fire_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_FLYING_BUDDING = this.create("gem_flying_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GHOST_BUDDING = this.create("gem_ghost_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GRASS_BUDDING = this.create("gem_grass_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_GROUND_BUDDING = this.create("gem_ground_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ICE_BUDDING = this.create("gem_ice_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_NORMAL_BUDDING = this.create("gem_normal_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_POISON_BUDDING = this.create("gem_poison_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_PSYCHIC_BUDDING = this.create("gem_psychic_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_ROCK_BUDDING = this.create("gem_rock_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_STEEL_BUDDING = this.create("gem_steel_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val GEM_WATER_BUDDING = this.create("gem_water_budding", Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_BLACK).strength(1.0F).sound(CobblemonSounds.TUMBLESTONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BASEDRUM)))
@JvmField
val FIRE_STONE_BLOCK = this.create("fire_stone_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.FIRE).strength(1.0F).sound(CobblemonSounds.EVOLUTION_STONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BIT).lightLevel{13}))
@JvmField
@@ -1227,6 +1227,80 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
//@JvmField
//val BINDING_SOIL = blockItem("binding_soil", CobblemonBlocks.BINDING_SOIL)
@JvmField
val GEM_BUG_BLOCK = blockItem("gem_bug_block", CobblemonBlocks.GEM_BUG_BLOCK)
@JvmField
val GEM_DARK_BLOCK = blockItem("gem_dark_block", CobblemonBlocks.GEM_DARK_BLOCK)
@JvmField
val GEM_DRAGON_BLOCK = blockItem("gem_dragon_block", CobblemonBlocks.GEM_DRAGON_BLOCK)
@JvmField
val GEM_ELECTRIC_BLOCK = blockItem("gem_electric_block", CobblemonBlocks.GEM_ELECTRIC_BLOCK)
@JvmField
val GEM_FAIRY_BLOCK = blockItem("gem_fairy_block", CobblemonBlocks.GEM_FAIRY_BLOCK)
@JvmField
val GEM_FIGHTING_BLOCK = blockItem("gem_fighting_block", CobblemonBlocks.GEM_FIGHTING_BLOCK)
@JvmField
val GEM_FIRE_BLOCK = blockItem("gem_fire_block", CobblemonBlocks.GEM_FIRE_BLOCK)
@JvmField
val GEM_FLYING_BLOCK = blockItem("gem_flying_block", CobblemonBlocks.GEM_FLYING_BLOCK)
@JvmField
val GEM_GHOST_BLOCK = blockItem("gem_ghost_block", CobblemonBlocks.GEM_GHOST_BLOCK)
@JvmField
val GEM_GRASS_BLOCK = blockItem("gem_grass_block", CobblemonBlocks.GEM_GRASS_BLOCK)
@JvmField
val GEM_GROUND_BLOCK = blockItem("gem_ground_block", CobblemonBlocks.GEM_GROUND_BLOCK)
@JvmField
val GEM_ICE_BLOCK = blockItem("gem_ice_block", CobblemonBlocks.GEM_ICE_BLOCK)
@JvmField
val GEM_NORMAL_BLOCK = blockItem("gem_normal_block", CobblemonBlocks.GEM_NORMAL_BLOCK)
@JvmField
val GEM_POISON_BLOCK = blockItem("gem_poison_block", CobblemonBlocks.GEM_POISON_BLOCK)
@JvmField
val GEM_PSYCHIC_BLOCK = blockItem("gem_psychic_block", CobblemonBlocks.GEM_PSYCHIC_BLOCK)
@JvmField
val GEM_ROCK_BLOCK = blockItem("gem_rock_block", CobblemonBlocks.GEM_ROCK_BLOCK)
@JvmField
val GEM_STEEL_BLOCK = blockItem("gem_steel_block", CobblemonBlocks.GEM_STEEL_BLOCK)
@JvmField
val GEM_WATER_BLOCK = blockItem("gem_water_block", CobblemonBlocks.GEM_WATER_BLOCK)
@JvmField
val GEM_BUG_BUDDING = blockItem("gem_bug_budding", CobblemonBlocks.GEM_BUG_BUDDING)
@JvmField
val GEM_DARK_BUDDING = blockItem("gem_dark_budding", CobblemonBlocks.GEM_DARK_BUDDING)
@JvmField
val GEM_DRAGON_BUDDING = blockItem("gem_dragon_budding", CobblemonBlocks.GEM_DRAGON_BUDDING)
@JvmField
val GEM_ELECTRIC_BUDDING = blockItem("gem_electric_budding", CobblemonBlocks.GEM_ELECTRIC_BUDDING)
@JvmField
val GEM_FAIRY_BUDDING = blockItem("gem_fairy_budding", CobblemonBlocks.GEM_FAIRY_BUDDING)
@JvmField
val GEM_FIGHTING_BUDDING = blockItem("gem_fighting_budding", CobblemonBlocks.GEM_FIGHTING_BUDDING)
@JvmField
val GEM_FIRE_BUDDING = blockItem("gem_fire_budding", CobblemonBlocks.GEM_FIRE_BUDDING)
@JvmField
val GEM_FLYING_BUDDING = blockItem("gem_flying_budding", CobblemonBlocks.GEM_FLYING_BUDDING)
@JvmField
val GEM_GHOST_BUDDING = blockItem("gem_ghost_budding", CobblemonBlocks.GEM_GHOST_BUDDING)
@JvmField
val GEM_GRASS_BUDDING = blockItem("gem_grass_budding", CobblemonBlocks.GEM_GRASS_BUDDING)
@JvmField
val GEM_GROUND_BUDDING = blockItem("gem_ground_budding", CobblemonBlocks.GEM_GROUND_BUDDING)
@JvmField
val GEM_ICE_BUDDING = blockItem("gem_ice_budding", CobblemonBlocks.GEM_ICE_BUDDING)
@JvmField
val GEM_NORMAL_BUDDING = blockItem("gem_normal_budding", CobblemonBlocks.GEM_NORMAL_BUDDING)
@JvmField
val GEM_POISON_BUDDING = blockItem("gem_poison_budding", CobblemonBlocks.GEM_POISON_BUDDING)
@JvmField
val GEM_PSYCHIC_BUDDING = blockItem("gem_psychic_budding", CobblemonBlocks.GEM_PSYCHIC_BUDDING)
@JvmField
val GEM_ROCK_BUDDING = blockItem("gem_rock_budding", CobblemonBlocks.GEM_ROCK_BUDDING)
@JvmField
val GEM_STEEL_BUDDING = blockItem("gem_steel_budding", CobblemonBlocks.GEM_STEEL_BUDDING)
@JvmField
val GEM_WATER_BUDDING = blockItem("gem_water_budding", CobblemonBlocks.GEM_WATER_BUDDING)
private fun blockItem(name: String, block: Block): BlockItem = this.create(name, BlockItem(block, Item.Properties()))
private fun noSettingsItem(name: String): CobblemonItem = this.create(name, CobblemonItem(Item.Properties()))
@@ -26,7 +26,7 @@ class PartyCheckCriterion(
companion object {
val CODEC: Codec<PartyCheckCriterion> = RecordCodecBuilder.create { it.group(
EntityPredicate.ADVANCEMENT_CODEC.optionalFieldOf("player").forGetter(PartyCheckCriterion::playerCtx),
ResourceLocation.CODEC.listOf().optionalFieldOf("id", listOf()).forGetter(PartyCheckCriterion::party)
ResourceLocation.CODEC.listOf().optionalFieldOf("party", listOf()).forGetter(PartyCheckCriterion::party)
).apply(it, ::PartyCheckCriterion) }
}
@@ -44,7 +44,7 @@ class PartyCheckCriterion(
matches.add(it.species.resourceIdentifier)
}
}
return matches.containsAll(party) && matches.size == partyCount
return matches.containsAll(party) && matches.size == party.size
}
}
@@ -61,7 +61,7 @@ open class ItemDropEntry : DropEntry {
if (dropMethod == ItemDropMethod.ON_PLAYER && player != null) {
world.addFreshEntity(ItemEntity(player.level(), player.x, player.y, player.z, stack))
} else if (dropMethod == ItemDropMethod.TO_INVENTORY && player != null) {
} else if (dropMethod == ItemDropMethod.TO_INVENTORY && player != null && !stack.isEmpty) {
val name = stack.hoverName
val count = stack.count
val succeeded = player.addItem(stack)
@@ -74,7 +74,7 @@ abstract class RequestManager<T : ServerPlayerActionRequest> {
?: this.getInboundRequest(receiver.uuid, requestID)
/** Determines whether [player] can receive a [T]. */
open fun isBusy(player: ServerPlayer): Boolean = player.isInBattle() || player.isTrading()
open fun isBusy(player: ServerPlayer): Boolean = player.isInBattle() || player.isTrading() || player.party().find { it.entity?.isBusy == true } != null
/** Determines if the [target] is a valid interaction request target. */
abstract fun isValidInteraction(player: ServerPlayer, target: ServerPlayer): Boolean
@@ -176,7 +176,7 @@ abstract class RequestManager<T : ServerPlayerActionRequest> {
else if (!this.isValidInteraction(player, target ?: request.sender)) // with teams anyone can accept
request.notify(player, true, "ui.interact.failed")
// if sending player is occupied, can't accept response
else if (this.isBusy(request.sender)) // TODO enhancement: allow retries - modify client so we don't remove request when sending acceptance
else if (this.isBusy(request.sender) || this.isBusy(request.receiver)) // TODO enhancement: allow retries - modify client so we don't remove request when sending acceptance
request.notify(player, true, "ui.interact.unavailable")
// if no condition is blocking acceptance, accept
else if (this.canAccept(request))
@@ -38,8 +38,9 @@ import net.minecraft.world.phys.AABB
*/
interface PokemonSelectingItem {
fun use(player: ServerPlayer, stack: ItemStack): InteractionResultHolder<ItemStack> {
val range = player.entityInteractionRange()
val entity = player.level()
.getEntities(player, AABB.ofSize(player.position(), 16.0, 16.0, 16.0))
.getEntities(player, AABB.ofSize(player.position(), range, range, range))
.filter { player.isLookingAt(it, stepDistance = 0.1F) }
.minByOrNull { it.distanceTo(player) } as? PokemonEntity?
@@ -47,6 +47,8 @@ import com.cobblemon.mod.common.api.storage.pc.PCStore
import com.cobblemon.mod.common.api.text.text
import com.cobblemon.mod.common.battles.BattleRegistry
import com.cobblemon.mod.common.battles.actor.PlayerBattleActor
import com.cobblemon.mod.common.client.particle.BedrockParticleOptionsRepository
import com.cobblemon.mod.common.client.particle.ParticleStorm
import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunctions
import com.cobblemon.mod.common.entity.PosableEntity
import com.cobblemon.mod.common.entity.npc.NPCBattleActor
@@ -56,12 +58,15 @@ import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.entity.pokemon.ai.PokemonMoveControl
import com.cobblemon.mod.common.net.messages.client.animation.PlayPosableAnimationPacket
import com.cobblemon.mod.common.net.messages.client.effect.RunPosableMoLangPacket
import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormEntityParticlePacket
import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormParticlePacket
import com.cobblemon.mod.common.pokemon.Pokemon
import com.cobblemon.mod.common.pokemon.Species
import com.cobblemon.mod.common.util.*
import com.mojang.datafixers.util.Either
import java.util.UUID
import kotlin.math.sqrt
import net.minecraft.client.multiplayer.ClientLevel
import net.minecraft.commands.arguments.EntityAnchorArgument
import net.minecraft.core.BlockPos
import net.minecraft.core.Holder
@@ -235,6 +240,31 @@ object MoLangFunctions {
world.addFreshEntity(lightning)
return@put DoubleValue.ONE
}
// q.entity.world.spawn_bedrock_particles(effect, x, y, z, [player]) - sends to everyone nearby or just to the player if they're set.
map.put("spawn_bedrock_particles") { params ->
val particle = params.getString(0).asResource()
val x = params.getDouble(1)
val y = params.getDouble(2)
val z = params.getDouble(3)
val player = params.getOrNull<MoValue>(4)?.let {
if (it is StringValue) world.getPlayerByUUID(UUID.fromString(it.value))
else if (it is ObjectValue<*>) it.obj
else null
} as? ServerPlayer
val pos = Vec3(x, y, z)
if (world !is ClientLevel) {
val packet = SpawnSnowstormParticlePacket(particle, pos)
if (player != null) {
packet.sendToPlayer(player)
} else {
packet.sendToPlayersAround(x, y, z, 64.0, world.dimension())
}
} else {
val effect = BedrockParticleOptionsRepository.getEffect(particle) ?: return@put DoubleValue.ZERO
ParticleStorm.createAtPosition(world, effect, pos).spawn()
}
}
map.put("get_entities_around") { params ->
val x = params.getDouble(0)
val y = params.getDouble(1)
@@ -459,7 +489,42 @@ object MoLangFunctions {
map.put("play_animation") { params ->
val animation = params.getString(0)
val packet = PlayPosableAnimationPacket(entity.id, setOf(animation), emptyList())
val target = params.getStringOrNull(1)
if (target != null) {
val targetPlayer = if (target.asUUID != null) {
entity.level().getPlayerByUUID(target.asUUID!!) as ServerPlayer
} else if (entity.level() is ServerLevel) {
entity.level().server!!.playerList.getPlayerByName(target)
} else {
null
}
if (targetPlayer != null) {
packet.sendToPlayer(targetPlayer)
return@put DoubleValue.ONE
} else {
return@put DoubleValue.ZERO
}
} else {
packet.sendToPlayersAround(entity.x, entity.y, entity.z, 64.0, entity.level().dimension())
return@put DoubleValue.ONE
}
}
}
// q.entity.spawn_bedrock_particles(effect, locator, [player]) - sends to everyone nearby or just to the player if they're set. Locator is necessary even if unused on non-posables.
map.put("spawn_bedrock_particles") { params ->
val particle = params.getString(0).asResource()
val locator = params.getString(1)
val player = params.getOrNull<MoValue>(2)?.let {
if (it is StringValue) entity.level().getPlayerByUUID(UUID.fromString(it.value))
else if (it is ObjectValue<*>) it.obj
else null
} as? ServerPlayer
val packet = SpawnSnowstormEntityParticlePacket(particle, entity.id, listOf(locator))
if (player == null) {
packet.sendToPlayersAround(entity.x, entity.y, entity.z, 64.0, entity.level().dimension())
} else {
packet.sendToPlayer(player)
}
}
map
@@ -36,7 +36,7 @@ class AnimationActionEffectKeyframe : ConditionalActionEffectKeyframe(), EntityC
// Treat them as expressions if possible but otherwise yeah just send them as strings
val animation = animation.map {
try {
it.asExpressionLike().resolveString(context.runtime).takeIf { it != "0.0" } ?: it
it.asExpressionLike().resolveString(context.runtime).takeIf { it != "0" } ?: it
} catch (e: Exception) {
it
}
@@ -42,7 +42,7 @@ class EntityParticlesActionEffectKeyframe : ConditionalActionEffectKeyframe(), E
.flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } }
val effectIdentifier = try {
effect?.asExpressionLike()?.resolveString(context.runtime)?.takeIf { it != "0.0" } ?: effect
effect?.asExpressionLike()?.resolveString(context.runtime)?.takeIf { it != "0" } ?: effect
} catch (e: Exception) {
effect
}?.asIdentifierDefaultingNamespace() ?: return skip()
@@ -35,7 +35,7 @@ class EntitySoundActionEffectKeyframe : ConditionalActionEffectKeyframe(), Entit
.flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } }
val soundIdentifier = try {
sound?.asExpressionLike()?.resolveString(context.runtime)?.takeIf { it != "0.0" } ?: sound
sound?.asExpressionLike()?.resolveString(context.runtime)?.takeIf { it != "0" } ?: sound
} catch (e: Exception) {
sound
}?.asIdentifierDefaultingNamespace() ?: return skip()
@@ -62,9 +62,9 @@ class NPCClass {
fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeString(resourceIdentifier.toString())
buffer.writeCollection(names) { _, v -> buffer.writeText(v) }
buffer.writeFloat(this.hitbox.width)
buffer.writeFloat(this.hitbox.height)
buffer.writeBoolean(this.hitbox.fixed)
buffer.writeFloat(hitbox.width)
buffer.writeFloat(hitbox.height)
buffer.writeBoolean(hitbox.fixed)
battleConfiguration.encode(buffer)
buffer.writeNullable(interaction) { _, value ->
buffer.writeString(value.type)
@@ -22,6 +22,7 @@ import com.cobblemon.mod.common.api.moves.MoveTemplate
import com.cobblemon.mod.common.api.pokemon.PokemonProperties
import com.cobblemon.mod.common.api.pokemon.evolution.requirement.EvolutionRequirement
import com.cobblemon.mod.common.api.tags.CobblemonItemTags
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.item.PokeBallItem
import com.cobblemon.mod.common.net.messages.client.animation.PlayPosableAnimationPacket
import com.cobblemon.mod.common.pokemon.Pokemon
@@ -162,7 +163,7 @@ interface Evolution : EvolutionLike {
evolutionMethod(pokemon)
pokemon.getOwnerPlayer()?.sendSystemMessage(lang("ui.evolve.into", preEvoName, pokemon.species.translatedName))
} else {
pokemonEntity.busyLocks.add("evolving")
pokemonEntity.entityData.set(PokemonEntity.EVOLUTION_STARTED, true)
pokemonEntity.navigation.stop()
pokemonEntity.after(1F) {
evolutionAnimation(pokemonEntity)
@@ -172,7 +173,7 @@ interface Evolution : EvolutionLike {
}
pokemonEntity.after( seconds = 12F ) {
cryAnimation(pokemonEntity)
pokemonEntity.busyLocks.remove("evolving")
pokemonEntity.entityData.set(PokemonEntity.EVOLUTION_STARTED, false)
pokemon.getOwnerPlayer()?.sendSystemMessage(lang("ui.evolve.into", preEvoName, pokemon.species.translatedName))
}
}
@@ -33,6 +33,11 @@ open class PlayerLevelRangeInfluence(
val noPokemonRange: IntRange = 1 .. config.minimumLevelRangeMax,
val recalculationMillis: Long = 5000L
) : SpawningInfluence {
companion object {
/** The internally tuned variation for player level range influences */
val TYPICAL_VARIATION = 5
}
val uuid = player.uuid
var lastCalculatedTime: Long = 0
var previousRange: IntRange = noPokemonRange
@@ -13,6 +13,7 @@ import com.cobblemon.mod.common.api.spawning.CobblemonSpawnRules
import com.cobblemon.mod.common.api.spawning.SpawnerManager
import com.cobblemon.mod.common.api.spawning.detail.SpawnPool
import com.cobblemon.mod.common.api.spawning.influence.PlayerLevelRangeInfluence
import com.cobblemon.mod.common.api.spawning.influence.PlayerLevelRangeInfluence.Companion.TYPICAL_VARIATION
import com.cobblemon.mod.common.api.spawning.influence.RestrictedSpawnBlocksInfluence
import com.cobblemon.mod.common.api.spawning.influence.SpawningInfluence
import com.cobblemon.mod.common.api.spawning.rules.SpawnRule
@@ -42,7 +43,7 @@ object PlayerSpawnerFactory {
var influenceBuilders = mutableListOf<(player: ServerPlayer) -> SpawningInfluence?>({
PlayerLevelRangeInfluence(
it,
variation = 5
variation = TYPICAL_VARIATION
)
}, { RestrictedSpawnBlocksInfluence() })
@@ -30,8 +30,9 @@ abstract class TriggerSpawner<T : SpawnCause>(override val name: String, var spa
private var selector: SpawningSelector = FlatContextWeightedSelector()
override val influences = mutableListOf<SpawningInfluence>()
open fun run(cause: T, world: ServerLevel, pos: BlockPos): CompletableFuture<*>? {
open fun run(cause: T, world: ServerLevel, pos: BlockPos, influences: List<SpawningInfluence> = emptyList()): CompletableFuture<*>? {
val context = parseContext(cause, world, pos) ?: return null
context.influences.addAll(influences)
selector.select(this, listOf(context))?.let { (_, spawn) ->
val action = spawn.doSpawn(context)
action.complete()
@@ -113,16 +113,13 @@ object BattleBuilder {
player2Actor.battleTheme = player1.getBattleTheme()
return if (errors.isEmpty) {
var result: BattleStartResult = errors
BattleRegistry.startBattle(
battleFormat = battleFormat,
side1 = BattleSide(player1Actor),
side2 = BattleSide(player2Actor)
).ifSuccessful {
it.battlePartyStores.addAll(battlePartyStores)
result = SuccessfulBattleStart(it)
}
result
} else {
errors
}
@@ -214,13 +211,12 @@ object BattleBuilder {
return if (errors.isEmpty) {
BattleRegistry.startBattle(
battleFormat = battleFormat,
side1 = BattleSide(playerActors[0], playerActors[1]),
side2 = BattleSide(playerActors[2], playerActors[3])
battleFormat = battleFormat,
side1 = BattleSide(playerActors[0], playerActors[1]),
side2 = BattleSide(playerActors[2], playerActors[3])
).ifSuccessful {
it.battlePartyStores.addAll(battlePartyStores)
}
errors
} else {
errors
}
@@ -287,7 +283,6 @@ object BattleBuilder {
playerActor.battleTheme = pokemonEntity.getBattleTheme()
return if (errors.isEmpty) {
var result: BattleStartResult = errors
BattleRegistry.startBattle(
battleFormat = battleFormat,
side1 = BattleSide(playerActor),
@@ -296,9 +291,7 @@ object BattleBuilder {
if (!cloneParties) {
pokemonEntity.battleId = it.battleId
}
result = SuccessfulBattleStart(it)
}
result
} else {
errors
}
@@ -367,16 +360,13 @@ object BattleBuilder {
playerActor.battleTheme = npcEntity.getBattleTheme()
return if (errors.isEmpty) {
var result: BattleStartResult = errors
BattleRegistry.startBattle(
battleFormat = battleFormat,
side1 = BattleSide(playerActor),
side2 = BattleSide(npcActor)
).ifSuccessful { battle ->
npcEntity.entityData.update(NPCEntity.BATTLE_IDS) { it + battle.battleId }
result = SuccessfulBattleStart(battle)
}
result
} else {
errors
}
@@ -8,6 +8,7 @@
package com.cobblemon.mod.common.battles
import com.cobblemon.mod.common.Cobblemon
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.api.events.CobblemonEvents
import com.cobblemon.mod.common.api.events.battles.BattleStartedPostEvent
@@ -178,19 +179,35 @@ object BattleRegistry {
ShowdownService.service.startBattle(battle, messages.toTypedArray())
}
/**
* Instantiates a new [PokemonBattle] and launches the Showdown service.
*
* @param battleFormat The format to use for the battle.
* @param side1 The first side for the battle.
* @param side2 The second side for the battle.
* @param canPreempt Whether the battle can be blocked by subscribers to [CobblemonEvents.BATTLE_STARTED_PRE].
*
* NOTE: this does NOT validate the [battleFormat] or sides before launching Showdown.
* This creates the battle and hands it off to Showdown - YOU WILL GET ISSUES IF THE BATTLE IS INVALID!
* See [BattleBuilder] functions for how the various types of battles are built and validated.
*/
fun startBattle(
battleFormat: BattleFormat,
side1: BattleSide,
side2: BattleSide,
silent: Boolean = false
canPreempt: Boolean = true
): BattleStartResult {
val battle = PokemonBattle(battleFormat, side1, side2)
if (silent) return SuccessfulBattleStart(battle)
val start: () -> Unit = {
battleMap[battle.battleId] = battle
startShowdown(battle)
}
if (!canPreempt) start().also { return SuccessfulBattleStart(battle) }
val preBattleEvent = BattleStartedPreEvent(battle)
CobblemonEvents.BATTLE_STARTED_PRE.postThen(preBattleEvent) {
battleMap[battle.battleId] = battle
startShowdown(battle)
start()
CobblemonEvents.BATTLE_STARTED_POST.post(BattleStartedPostEvent(battle))
return SuccessfulBattleStart(battle)
}
@@ -69,7 +69,7 @@ object ShowdownInterpreter {
updateInstructionParser["-copyboost"] = { _, _, message, _ -> CopyBoostInstruction(message) }
updateInstructionParser["-crit"] = { _, instructionSet, message, _ -> CritInstruction(message, instructionSet) }
updateInstructionParser["-curestatus"] = { _, _, message, _ -> CureStatusInstruction(message) }
updateInstructionParser["detailschange"] = { _, _, message, _ -> DetailsChangeInstruction(message) }
updateInstructionParser["detailschange"] = { _, _, message, _ -> FormeChangeInstruction(message) }
updateInstructionParser["-endability"] = { _, _, message, _ -> EndAbilityInstruction(message) }
updateInstructionParser["-end"] = { _, _, message, _ -> EndInstruction(message) }
updateInstructionParser["-enditem"] = { _, _, message, _ -> EndItemInstruction(message) }
@@ -78,6 +78,7 @@ object ShowdownInterpreter {
updateInstructionParser["-fieldactivate"] = { _, _, message, _ -> FieldActivateInstruction(message) }
updateInstructionParser["-fieldend"] = { _, _, message, _ -> FieldEndInstruction(message) }
updateInstructionParser["-fieldstart"] = { _, _, message, _ -> FieldStartInstruction(message) }
updateInstructionParser["-formechange"] = { _, _, message, _ -> FormeChangeInstruction(message) }
updateInstructionParser["-hitcount"] = { _, _, message, _ -> HitCountInstruction(message) }
updateInstructionParser["-immune"] = { _, _, message, _ -> ImmuneInstruction(message) }
updateInstructionParser["-invertboost"] = { _, _, message, _ -> InvertBoostInstruction(message) }
@@ -1,34 +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.battles.interpreter.instructions
import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction
import com.cobblemon.mod.common.util.battleLang
/**
* Format: |detailschange|POKEMON|DETAILS|HP STATUS
*
* POKEMON has changed formes permanently (i.e. Mega Evolution) to DETAILS.
* @author Segfault Guy
* @since September 10th, 2023
*/
class DetailsChangeInstruction(val message: BattleMessage): InterpreterInstruction {
override fun invoke(battle: PokemonBattle) {
val battlePokemon = message.battlePokemon(0, battle) ?: return
val formName = message.argumentAt(1)?.split(',')?.get(0)?.substringAfter('-')?.lowercase() ?: return
battle.dispatchWaiting {
val pokemonName = battlePokemon.getName()
battle.broadcastChatMessage(battleLang("detailschange.$formName", pokemonName))
battle.majorBattleActions[battlePokemon.uuid] = message
}
}
}
@@ -0,0 +1,48 @@
/*
* 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.battles.interpreter.instructions
import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.battles.ShowdownInterpreter
import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction
import com.cobblemon.mod.common.util.battleLang
/**
* Format: |-formechange|POKEMON|SPECIES|HP STATUS or |detailschange|POKEMON|DETAILS|HP STATUS
*
* POKEMON has temporarily (-formechange) or permanently (detailschange) changed form to SPECIES/DETAILS.
* @author Segfault Guy
* @since December 9th, 2024
*/
class FormeChangeInstruction(val message: BattleMessage): InterpreterInstruction {
override fun invoke(battle: PokemonBattle) {
val battlePokemon = message.battlePokemon(0, battle) ?: return
val details = message.argumentAt(1)?.split(',')?.get(0)?.lowercase() ?: return
val speciesName = details.substringBefore('-')
val formName = details.substringAfterLast('-').ifBlank { speciesName }
val typeKey = if (message.id == "detailschange") "permanent" else "temporary"
ShowdownInterpreter.broadcastOptionalAbility(battle, message.effect(), battlePokemon)
battle.dispatchWaiting {
battle.minorBattleActions[battlePokemon.uuid] = message
val pokemonName = battlePokemon.getName()
val lang = when(formName) {
"busted", "hero", "complete" -> return@dispatchWaiting
"school", "wishiwashi", "meteor", "minior" -> battleLang("formechange.$formName", pokemonName)
speciesName -> battleLang("formechange.default.temporary.end", pokemonName)
else -> battleLang("formechange.default.$typeKey", pokemonName, formName)
}
battle.broadcastChatMessage(lang)
}
}
}
@@ -55,7 +55,6 @@ class PCBlock(properties: Properties): BaseEntityBlock(properties), SimpleWaterl
val CODEC = simpleCodec(::PCBlock)
val PART = EnumProperty.create("part", PCPart::class.java)
val ON = BooleanProperty.create("on")
val WATERLOGGED = BooleanProperty.create("waterlogged")
val NATURAL = BooleanProperty.create("natural")
private val NORTH_AABB_TOP = Shapes.or(
@@ -235,7 +234,7 @@ class PCBlock(properties: Properties): BaseEntityBlock(properties), SimpleWaterl
@Deprecated("Deprecated in Java")
override fun isPathfindable(
blockState: BlockState?,
blockState: BlockState,
pathComputationType: PathComputationType
): Boolean = false
@@ -17,9 +17,9 @@ import net.minecraft.world.item.alchemy.Potions
object BrewingRecipes {
val recipes: List<Triple<CobblemonIngredient, CobblemonIngredient, Item>> by lazy {
val recipes: List<Triple<CobblemonIngredient, Item, Item>> by lazy {
listOf(
Triple(CobblemonPotionIngredient(Potions.WATER), CobblemonItemIngredient(CobblemonItems.MEDICINAL_LEEK), CobblemonItems.MEDICINAL_BREW),
Triple(CobblemonPotionIngredient(Potions.WATER), CobblemonItems.MEDICINAL_LEEK, CobblemonItems.MEDICINAL_BREW),
convert(CobblemonItems.MEDICINAL_BREW, CobblemonItems.LEPPA_BERRY, CobblemonItems.ETHER),
convert(CobblemonItems.MEDICINAL_BREW, CobblemonItems.HOPO_BERRY, CobblemonItems.ELIXIR),
convert(CobblemonItems.MEDICINAL_BREW, CobblemonItems.ORAN_BERRY, CobblemonItems.POTION),
@@ -50,8 +50,8 @@ object BrewingRecipes {
)
}
private fun convert(input: Item, ingredient: Item, output: Item): Triple<CobblemonIngredient, CobblemonIngredient, Item> {
return Triple(CobblemonItemIngredient(input), CobblemonItemIngredient(ingredient), output)
private fun convert(input: Item, ingredient: Item, output: Item): Triple<CobblemonIngredient, Item, Item> {
return Triple(CobblemonItemIngredient(input), ingredient, output)
}
}
@@ -184,15 +184,16 @@ class BattleGUI : Screen(battleLang("gui.title")), CobblemonRenderable {
override fun charTyped(chr: Char, modifiers: Int): Boolean {
if (chr.toString().equals(PartySendBinding.boundKey().displayName.string, ignoreCase = true) && CobblemonClient.battleOverlay.opacity == BattleOverlay.MAX_OPACITY && PartySendBinding.canAction()) {
val battle = CobblemonClient.battle ?: return false
battle.minimised = !battle.minimised
PartySendBinding.actioned()
return true
return minimizeBattle()
}
return super.charTyped(chr, modifiers)
}
override fun mouseClicked(mouseX: Double, mouseY: Double, button: Int): Boolean {
if (button == PartySendBinding.boundKey().value && CobblemonClient.battleOverlay.opacity == BattleOverlay.MAX_OPACITY && PartySendBinding.canAction()) {
return minimizeBattle()
}
val battle = CobblemonClient.battle
if (battle?.spectating == true && specBackButton.isHovered(mouseX, mouseY)) {
RemoveSpectatorPacket(battle.battleId).sendToServer()
@@ -200,4 +201,11 @@ class BattleGUI : Screen(battleLang("gui.title")), CobblemonRenderable {
}
return super.mouseClicked(mouseX, mouseY, button)
}
private fun minimizeBattle(): Boolean {
val battle = CobblemonClient.battle ?: return false
battle.minimised = !battle.minimised
PartySendBinding.actioned()
return true
}
}
@@ -8,64 +8,18 @@
package com.cobblemon.mod.common.client.net.effect
import com.bedrockk.molang.runtime.MoLangRuntime
import com.cobblemon.mod.common.api.molang.MoLangFunctions
import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup
import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler
import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient
import com.cobblemon.mod.common.client.particle.BedrockParticleOptionsRepository
import com.cobblemon.mod.common.client.particle.ParticleStorm
import com.cobblemon.mod.common.client.render.MatrixWrapper
import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.entity.PosableEntity
import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormEntityParticlePacket
import net.minecraft.client.Minecraft
import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.LivingEntity
object SpawnSnowstormEntityParticleHandler : ClientNetworkPacketHandler<SpawnSnowstormEntityParticlePacket> {
override fun handle(packet: SpawnSnowstormEntityParticlePacket, client: Minecraft) {
val world = Minecraft.getInstance().level ?: return
val effect = BedrockParticleOptionsRepository.getEffect(packet.effectId) ?: return
val entity = world.getEntity(packet.entityId)
if (entity is PosableEntity) {
val state = entity.delegate as PosableState
val locators = packet.locator.firstNotNullOfOrNull { state.getMatchingLocators(it).takeIf { it.isNotEmpty() } } ?: return
val matrixWrappers = locators.mapNotNull { state.locatorStates[it] }
matrixWrappers.forEach { matrixWrapper ->
val particleRuntime = MoLangRuntime().setup().setupClient()
particleRuntime.environment.query.addFunction("entity") { state.runtime.environment.query }
val storm = ParticleStorm(
effect = effect,
matrixWrapper = matrixWrapper,
world = world,
runtime = particleRuntime,
sourceVelocity = { entity.deltaMovement },
sourceAlive = { !entity.isRemoved },
sourceVisible = { !entity.isInvisible },
entity = entity
)
storm.spawn()
}
} else if (entity is LivingEntity) {
val matrixWrapper = MatrixWrapper()
matrixWrapper.updateFunction = { it.updatePosition(entity.position()) }
val particleRuntime = MoLangRuntime().setup().setupClient()
particleRuntime.environment.query.addFunction("entity") { params -> MoLangFunctions.entityFunctions.flatMap { it(entity).map { it.key to it.value } } }
val storm = ParticleStorm(
effect = effect,
matrixWrapper = matrixWrapper,
world = world,
runtime = particleRuntime,
sourceVelocity = { entity.deltaMovement },
sourceAlive = { !entity.isRemoved },
sourceVisible = { !entity.isInvisible },
entity = entity
)
storm.spawn()
}
val entity = world.getEntity(packet.entityId) as? LivingEntity ?: return
ParticleStorm.createAtEntity(world, effect, entity, packet.locator).forEach(ParticleStorm::spawn)
}
}
@@ -11,21 +11,13 @@ package com.cobblemon.mod.common.client.net.effect
import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler
import com.cobblemon.mod.common.client.particle.BedrockParticleOptionsRepository
import com.cobblemon.mod.common.client.particle.ParticleStorm
import com.cobblemon.mod.common.client.render.MatrixWrapper
import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormParticlePacket
import net.minecraft.client.Minecraft
import com.mojang.blaze3d.vertex.PoseStack
object SpawnSnowstormParticleHandler : ClientNetworkPacketHandler<SpawnSnowstormParticlePacket> {
override fun handle(packet: SpawnSnowstormParticlePacket, client: Minecraft) {
val wrapper = MatrixWrapper()
val matrix = PoseStack()
matrix.translate(packet.position.x, packet.position.y, packet.position.z)
// matrix.multiply(YP.rotationDegrees(packet.yawDegrees))
// matrix.multiply(NEGATIVE_X.rotationDegrees(packet.pitchDegrees))
wrapper.updateMatrix(matrix.last().pose())
val world = Minecraft.getInstance().level ?: return
val effect = BedrockParticleOptionsRepository.getEffect(packet.effectId) ?: return
ParticleStorm(effect, wrapper, world).spawn()
ParticleStorm.createAtPosition(world, effect, packet.position).spawn()
}
}
@@ -10,15 +10,20 @@ package com.cobblemon.mod.common.client.particle
import com.bedrockk.molang.runtime.MoLangRuntime
import com.bedrockk.molang.runtime.value.DoubleValue
import com.cobblemon.mod.common.api.molang.MoLangFunctions
import com.cobblemon.mod.common.api.molang.MoLangFunctions.asMoLangValue
import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup
import com.cobblemon.mod.common.api.snowstorm.BedrockParticleOptions
import com.cobblemon.mod.common.api.snowstorm.ParticleEmitterAction
import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient
import com.cobblemon.mod.common.client.render.MatrixWrapper
import com.cobblemon.mod.common.client.render.SnowstormParticle
import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.entity.PosableEntity
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.particle.SnowstormParticleOptions
import com.cobblemon.mod.common.util.math.geometry.transformDirection
import com.mojang.blaze3d.vertex.PoseStack
import net.minecraft.client.Minecraft
import net.minecraft.client.multiplayer.ClientLevel
import net.minecraft.client.particle.NoRenderParticle
@@ -26,6 +31,8 @@ import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.player.Player
import net.minecraft.world.phys.Vec3
import kotlin.random.Random
import net.minecraft.world.entity.LivingEntity
import net.minecraft.world.level.Level
/**
* An instance of a bedrock particle effect.
@@ -95,6 +102,56 @@ class ParticleStorm(
companion object {
var contextStorm: ParticleStorm? = null
fun createAtPosition(world: ClientLevel, effect: BedrockParticleOptions, position: Vec3): ParticleStorm {
val wrapper = MatrixWrapper()
val matrix = PoseStack()
matrix.translate(position.x, position.y, position.z)
wrapper.updateMatrix(matrix.last().pose())
return ParticleStorm(effect, wrapper, world)
}
/**
* Creates multiple potentially, because in the case of posable entities if multiple locators match, it repeats the effect.
*/
fun createAtEntity(world: ClientLevel, effect: BedrockParticleOptions, entity: LivingEntity, locator: Collection<String> = emptySet()): List<ParticleStorm> {
if (entity is PosableEntity) {
val state = entity.delegate as PosableState
val locators = locator.firstNotNullOfOrNull { state.getMatchingLocators(it).takeIf { it.isNotEmpty() } } ?: return emptyList()
val matrixWrappers = locators.mapNotNull { state.locatorStates[it] }
return matrixWrappers.map { matrixWrapper ->
val particleRuntime = MoLangRuntime().setup().setupClient()
particleRuntime.environment.query.addFunction("entity") { state.runtime.environment.query }
ParticleStorm(
effect = effect,
matrixWrapper = matrixWrapper,
world = world,
runtime = particleRuntime,
sourceVelocity = { entity.deltaMovement },
sourceAlive = { !entity.isRemoved },
sourceVisible = { !entity.isInvisible },
entity = entity
)
}
} else {
val matrixWrapper = MatrixWrapper()
matrixWrapper.updateFunction = { it.updatePosition(entity.position()) }
val particleRuntime = MoLangRuntime().setup().setupClient()
particleRuntime.environment.query.addFunction("entity") { params -> MoLangFunctions.entityFunctions.flatMap { it(entity).map { it.key to it.value } } }
return listOf(
ParticleStorm(
effect = effect,
matrixWrapper = matrixWrapper,
world = world,
runtime = particleRuntime,
sourceVelocity = { entity.deltaMovement },
sourceAlive = { !entity.isRemoved },
sourceVisible = { !entity.isInvisible },
entity = entity
)
)
}
}
}
val particleEffect = SnowstormParticleOptions(effect)
@@ -8,6 +8,7 @@
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen2
import com.cobblemon.mod.common.client.render.models.blockbench.animation.WingFlapIdleAnimation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BiWingedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
@@ -61,7 +62,11 @@ class NoctowlModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, B
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("noctowl", "ground_idle")
WingFlapIdleAnimation(this,
flapFunction = sineFunction(verticalShift = -10F.toRadians(), period = 0.9F, amplitude = 0.8F),
timeVariable = { state, _, _ -> state.animationSeconds },
axis = ModelPartTransformation.Y_AXIS
)
)
)
fly = registerPose(
@@ -70,7 +75,11 @@ class NoctowlModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, B
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("noctowl", "ground_idle")
WingFlapIdleAnimation(this,
flapFunction = sineFunction(verticalShift = -10F.toRadians(), period = 0.9F, amplitude = 0.8F),
timeVariable = { state, _, _ -> state.animationSeconds },
axis = ModelPartTransformation.Y_AXIS
)
)
)
walk = registerPose(
@@ -44,7 +44,7 @@ class LotadModel (root: ModelPart) : PokemonPosableModel(root), QuadrupedFrame {
val wateroffset = -2
override fun registerPoses() {
val blink = quirk { bedrockStateful("charmander", "blink") }
val blink = quirk { bedrockStateful("lotad", "blink") }
standing = registerPose(
poseName = "standing",
@@ -59,6 +59,10 @@ class SimpleQuirk(
private fun applyAnimations(state: PosableState, data: SimpleQuirkData) {
val (primary, stateful) = animations(state).partition { it is PrimaryAnimation }
data.animations.addAll(stateful)
// We hit these to 'start' them (mainly to set the startedSeconds) but we don't need to do that for the primaryAnimation
// because state.addPrimaryAnimation does that for us. We don't technically add these stateful animations to the state
// so if not for this line, nothing would set the start time.
stateful.forEach { it.start(state) }
if (primary.isNotEmpty()) {
val primaryAnimation = primary.first() as PrimaryAnimation
data.primaryAnimation = primaryAnimation
@@ -24,6 +24,8 @@ import com.cobblemon.mod.common.api.spawning.BestSpawner
import com.cobblemon.mod.common.api.spawning.SpawnBucket
import com.cobblemon.mod.common.api.spawning.detail.EntitySpawnResult
import com.cobblemon.mod.common.api.spawning.fishing.FishingSpawnCause
import com.cobblemon.mod.common.api.spawning.influence.PlayerLevelRangeInfluence
import com.cobblemon.mod.common.api.spawning.influence.PlayerLevelRangeInfluence.Companion.TYPICAL_VARIATION
import com.cobblemon.mod.common.api.text.red
import com.cobblemon.mod.common.client.sound.EntitySoundTracker
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
@@ -180,7 +182,7 @@ class PokeRodFishingBobberEntity(type: EntityType<out PokeRodFishingBobberEntity
}
fun chooseAdjustedSpawnBucket(buckets: List<SpawnBucket>, luckOfTheSeaLevel: Int): SpawnBucket {
val baseIncreases = listOf(2.5F, 1.0F, 0.6F) // Base increases for the first three buckets beyond the first
val baseIncreases = listOf(2.5F, 0.5F, 0.2F) // Base increases for the first three buckets beyond the first
val adjustedWeights = buckets.mapIndexed { index, bucket ->
if (index == 0) {
// Placeholder, will be recalculated
@@ -687,7 +689,12 @@ class PokeRodFishingBobberEntity(type: EntityType<out PokeRodFishingBobberEntity
)
val result = spawner.run(spawnCause, level() as ServerLevel, position().toBlockPos())
val result = spawner.run(
cause = spawnCause,
world = level() as ServerLevel,
pos = position().toBlockPos(),
influences = listOf(PlayerLevelRangeInfluence(player as ServerPlayer, TYPICAL_VARIATION))
)
if (result == null) {
// This has a chance to fail, if the position has no suitability for a fishing context
@@ -70,6 +70,7 @@ import net.minecraft.world.InteractionResult
import net.minecraft.world.damagesource.DamageSource
import net.minecraft.world.entity.AgeableMob
import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.EntityDimensions
import net.minecraft.world.entity.Pose
import net.minecraft.world.entity.ai.Brain
import net.minecraft.world.entity.ai.attributes.AttributeSupplier
@@ -101,6 +102,8 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
brain = makeBrain(brainDynamic ?: makeEmptyBrainDynamic())
}
}
this.refreshDimensions()
}
val level: Int
@@ -108,6 +111,8 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
var skill: Int? = null // range from 0 - 5
var hitbox: EntityDimensions? = null
var party: NPCPartyStore? = null
var isMovable: Boolean? = null
@@ -342,6 +347,14 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
it.putByteArray(DataKeys.NPC_PLAYER_TEXTURE_TEXTURE, playerTexture.texture)
})
}
val hitbox = hitbox
if (hitbox != null) {
nbt.put(DataKeys.NPC_HITBOX, CompoundTag().also {
it.putFloat(DataKeys.NPC_HITBOX_WIDTH, hitbox.width)
it.putFloat(DataKeys.NPC_HITBOX_HEIGHT, hitbox.height)
it.putBoolean(DataKeys.NPC_HITBOX_FIXED, hitbox.fixed)
})
}
val isMovable = isMovable
if (isMovable != null) {
nbt.putBoolean(DataKeys.NPC_IS_MOVABLE, isMovable)
@@ -361,9 +374,6 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
return nbt
}
override fun hasCustomName() = true
override fun isCustomNameVisible() = true
override fun load(nbt: CompoundTag) {
npc = NPCClasses.getByIdentifier(ResourceLocation.parse(nbt.getString(DataKeys.NPC_CLASS))) ?: NPCClasses.classes.first()
entityData.set(LEVEL, nbt.getInt(DataKeys.NPC_LEVEL).takeIf { it != 0 } ?: 1)
@@ -396,7 +406,17 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
this.isInvulnerable = if (nbt.contains(DataKeys.NPC_IS_INVULNERABLE)) nbt.getBoolean(DataKeys.NPC_IS_INVULNERABLE) else null
this.isLeashable = if (nbt.contains(DataKeys.NPC_IS_LEASHABLE)) nbt.getBoolean(DataKeys.NPC_IS_LEASHABLE) else null
this.allowProjectileHits = if (nbt.contains(DataKeys.NPC_ALLOW_PROJECTILE_HITS)) nbt.getBoolean(DataKeys.NPC_ALLOW_PROJECTILE_HITS) else null
this.hitbox = if (nbt.contains(DataKeys.NPC_HITBOX)) {
val hitboxNBT = nbt.getCompound(DataKeys.NPC_HITBOX)
val width = hitboxNBT.getFloat(DataKeys.NPC_HITBOX_WIDTH)
val height = hitboxNBT.getFloat(DataKeys.NPC_HITBOX_HEIGHT)
val fixed = hitboxNBT.getBoolean(DataKeys.NPC_HITBOX_FIXED)
if (fixed) EntityDimensions.fixed(width, height) else EntityDimensions.scalable(width, height)
} else {
null
}
updateAspects()
}
@@ -426,9 +446,14 @@ class NPCEntity(world: Level) : AgeableMob(CobblemonEntities.NPC, world), Npc, P
updateAspects()
}
override fun isPersistenceRequired() = !npc.canDespawn
override fun hasCustomName() = true
override fun getDefaultDimensions(pose: Pose) = npc.hitbox
override fun isCustomNameVisible() = true
override fun isPersistenceRequired(): Boolean {
return super.isPersistenceRequired() || !npc.canDespawn
}
override fun getDimensions(pose: Pose): EntityDimensions = hitbox ?: npc.hitbox
override fun isPushable(): Boolean {
return isMovable ?: npc.isMovable
@@ -47,6 +47,7 @@ import com.cobblemon.mod.common.api.types.ElementalTypes
import com.cobblemon.mod.common.battles.BagItems
import com.cobblemon.mod.common.battles.BattleBuilder
import com.cobblemon.mod.common.battles.BattleRegistry
import com.cobblemon.mod.common.battles.SuccessfulBattleStart
import com.cobblemon.mod.common.block.entity.PokemonPastureBlockEntity
import com.cobblemon.mod.common.client.entity.PokemonClientDelegate
import com.cobblemon.mod.common.entity.PlatformType
@@ -78,21 +79,14 @@ import com.cobblemon.mod.common.pokemon.ai.FormPokemonBehaviour
import com.cobblemon.mod.common.pokemon.evolution.variants.ItemInteractionEvolution
import com.cobblemon.mod.common.pokemon.feature.StashHandler
import com.cobblemon.mod.common.pokemon.properties.UncatchableProperty
import com.cobblemon.mod.common.util.DataKeys
import com.cobblemon.mod.common.util.getBitForByte
import com.cobblemon.mod.common.util.giveOrDropItemStack
import com.cobblemon.mod.common.util.isPokemonEntity
import com.cobblemon.mod.common.util.lang
import com.cobblemon.mod.common.util.party
import com.cobblemon.mod.common.util.playSoundServer
import com.cobblemon.mod.common.util.setBitForByte
import com.cobblemon.mod.common.util.toNbtList
import com.cobblemon.mod.common.util.*
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules
import com.mojang.serialization.Codec
import java.util.EnumSet
import java.util.Optional
import java.util.UUID
import java.util.concurrent.CompletableFuture
import kotlin.math.roundToInt
import net.minecraft.core.BlockPos
import net.minecraft.core.registries.BuiltInRegistries
import net.minecraft.core.registries.Registries
@@ -178,8 +172,10 @@ open class PokemonEntity(
@JvmStatic val FRIENDSHIP = SynchedEntityData.defineId(PokemonEntity::class.java, EntityDataSerializers.INT)
@JvmStatic val FREEZE_FRAME = SynchedEntityData.defineId(PokemonEntity::class.java, EntityDataSerializers.FLOAT)
@JvmStatic val CAUGHT_BALL = SynchedEntityData.defineId(PokemonEntity::class.java, EntityDataSerializers.STRING)
@JvmStatic val EVOLUTION_STARTED = SynchedEntityData.defineId(PokemonEntity::class.java, EntityDataSerializers.BOOLEAN)
const val BATTLE_LOCK = "battle"
const val EVOLUTION_LOCK = "evolving"
fun createAttributes(): AttributeSupplier.Builder = LivingEntity.createLivingAttributes()
.add(Attributes.FOLLOW_RANGE)
@@ -214,6 +210,8 @@ open class PokemonEntity(
/** The player that caused this Pokémon to faint. */
var killer: ServerPlayer? = null
val isEvolving: Boolean
get() = entityData.get(EVOLUTION_STARTED)
var evolutionEntity: GenericBedrockEntity? = null
var ticksLived = 0
@@ -321,11 +319,12 @@ open class PokemonEntity(
builder.define(LABEL_LEVEL, 1)
builder.define(HIDE_LABEL, false)
builder.define(UNBATTLEABLE, false)
builder.define(SPAWN_DIRECTION, level().random.nextFloat() * 360F)
builder.define(SPAWN_DIRECTION, ((level().random.nextFloat() * 360F - 180F) * 1000).toInt() / 1000F)
builder.define(COUNTS_TOWARDS_SPAWN_CAP, true)
builder.define(FRIENDSHIP, 0)
builder.define(FREEZE_FRAME, -1F)
builder.define(CAUGHT_BALL, "")
builder.define(EVOLUTION_STARTED, false)
}
override fun onSyncedDataUpdated(data: EntityDataAccessor<*>) {
@@ -355,6 +354,15 @@ open class PokemonEntity(
busyLocks.remove(BATTLE_LOCK)
}
}
EVOLUTION_STARTED -> {
if (isEvolving) {
busyLocks.remove(EVOLUTION_LOCK)
busyLocks.add(EVOLUTION_LOCK)
} else {
busyLocks.remove(EVOLUTION_LOCK)
}
}
}
}
@@ -387,16 +395,17 @@ open class PokemonEntity(
}
override fun tick() {
this.clampRotationsAsNecessary()
super.tick()
if (isBattling) {
// Deploy a platform if a non-wild Pokemon is touching water but not underwater.
// This can't be done in the BattleMovementGoal as the sleep goal will override it.
if (ticksLived > 5 && platform == PlatformType.NONE
&& this.ownerUUID != null
// Clients also don't seem to have correct info about behavior
if (!level().isClientSide && ticksLived > 5 && platform == PlatformType.NONE
&& ownerUUID != null
&& isInWater && !isUnderWater
&& !exposedForm.behaviour.moving.swim.canBreatheUnderwater && !exposedForm.behaviour.moving.swim.canWalkOnWater) {
&& !exposedForm.behaviour.moving.swim.canBreatheUnderwater && !exposedForm.behaviour.moving.swim.canWalkOnWater
&& !getBehaviourFlag(PokemonBehaviourFlag.FLYING)) {
platform = PlatformType.getPlatformTypeForPokemon((exposedForm))
}
} else {
@@ -418,14 +427,11 @@ open class PokemonEntity(
}
delegate.tick(this)
ticksLived++
if (this.ticksLived % 20 == 0) {
//this.updateEyeHeight()
}
if (ticksLived <= 20) {
clearRestriction()
val spawnDirection = entityData.get(SPAWN_DIRECTION).coerceIn(-360F, 360F).takeIf { it.isFinite() } ?: 0F
yBodyRot = spawnDirection
val spawnDirection = entityData.get(SPAWN_DIRECTION).takeIf { it.isFinite() } ?: 0F
yBodyRot = (spawnDirection * 1000F).toInt() / 1000F
}
if (this.tethering != null && !this.tethering!!.box.contains(this.x, this.y, this.z)) {
@@ -973,6 +979,8 @@ open class PokemonEntity(
return false
} else if (health <= 0F || isDeadOrDying) {
return false
} else if (player.isPartyBusy()) {
return false
}
return true
@@ -1428,9 +1436,8 @@ open class PokemonEntity(
if (!canBattle(player)) {
return false
}
var isSuccessful = false
BattleBuilder.pve(player, this).ifSuccessful { isSuccessful = true }
return isSuccessful
val lead = player.party().firstOrNull { it.entity != null }?.uuid
return BattleBuilder.pve(player, this, lead) is SuccessfulBattleStart
}
/**
@@ -1572,24 +1579,5 @@ open class PokemonEntity(
override fun resolveEntityScan(): LivingEntity {
return this
}
}
private fun clampRotationsAsNecessary() {
// this.yRotO = this.clampRotationIfNecessary("yRot0", this.yRotO)
// this.yRot = this.clampRotationIfNecessary("yRot", this.yRot)
// this.xRotO = this.clampRotationIfNecessary("xRot0", this.xRotO)
// this.xRot = this.clampRotationIfNecessary("xRot", this.xRot)
// this.yHeadRot = this.clampRotationIfNecessary("yHeadRot", this.yHeadRot)
// this.yBodyRot = this.clampRotationIfNecessary("yBodyRot", this.yBodyRot)
// this.yHeadRotO = this.clampRotationIfNecessary("yHeadRotO", this.yHeadRotO)
// this.yBodyRotO = this.clampRotationIfNecessary("yBodyRotO", this.yBodyRotO)
}
private fun clampRotationIfNecessary(name: String, input: Float) : Float {
if (!(input >= -9999F && input <= 9999F)) {
Cobblemon.LOGGER.warn("Invalid entity rotation: $name $input (${this.pokemon.species.resourceIdentifier})")
return Math.clamp(input, -180F, 180F)
}
return input
}
}
@@ -50,7 +50,7 @@ class PokemonInBattleMovementGoal(val entity: PokemonEntity, val range: Int) : G
entity.navigation.moveTo(battlePos!!.x, battlePos!!.y, battlePos!!.z, 1.0)
hasMovedToPos = true
}
if (entity.ticksLived > 1 && !entity.onGround() && !entity.getBehaviourFlag(PokemonBehaviourFlag.FLYING)) {
if (entity.ticksLived > 1 && !entity.getBehaviourFlag(PokemonBehaviourFlag.FLYING) && entity.navigation.isAirborne(entity.level(), entity.blockPosition())) {
// Let flyers fly in battle if they're in the air
entity.setBehaviourFlag(PokemonBehaviourFlag.FLYING, true)
}
@@ -86,7 +86,8 @@ class PokedexItem(val type: PokedexType): CobblemonItem(Item.Properties().stacks
remainingUseTicks: Int
) {
// Check if the player is interacting with a Pokémon
val entity = world.getEntities(user, AABB.ofSize(user.position(), 11.0, 11.0, 11.0))
val range = if (user is Player) user.entityInteractionRange() else 5.0
val entity = world.getEntities(user, AABB.ofSize(user.position(), range, range, range))
.filter { user.isLookingAt(it, stepDistance = 0.1F) }
.minByOrNull { it.distanceTo(user) } as? PokemonEntity?
@@ -228,6 +228,44 @@ object CobblemonItemGroups {
entries.accept(CobblemonItems.DARK_GEM)
entries.accept(CobblemonItems.STEEL_GEM)
entries.accept(CobblemonItems.FAIRY_GEM)
entries.accept(CobblemonItems.GEM_NORMAL_BLOCK)
entries.accept(CobblemonItems.GEM_FIRE_BLOCK)
entries.accept(CobblemonItems.GEM_WATER_BLOCK)
entries.accept(CobblemonItems.GEM_GRASS_BLOCK)
entries.accept(CobblemonItems.GEM_ELECTRIC_BLOCK)
entries.accept(CobblemonItems.GEM_ICE_BLOCK)
entries.accept(CobblemonItems.GEM_FIGHTING_BLOCK)
entries.accept(CobblemonItems.GEM_POISON_BLOCK)
entries.accept(CobblemonItems.GEM_GROUND_BLOCK)
entries.accept(CobblemonItems.GEM_FLYING_BLOCK)
entries.accept(CobblemonItems.GEM_PSYCHIC_BLOCK)
entries.accept(CobblemonItems.GEM_BUG_BLOCK)
entries.accept(CobblemonItems.GEM_ROCK_BLOCK)
entries.accept(CobblemonItems.GEM_GHOST_BLOCK)
entries.accept(CobblemonItems.GEM_DRAGON_BLOCK)
entries.accept(CobblemonItems.GEM_DARK_BLOCK)
entries.accept(CobblemonItems.GEM_STEEL_BLOCK)
entries.accept(CobblemonItems.GEM_FAIRY_BLOCK)
entries.accept(CobblemonItems.GEM_NORMAL_BUDDING)
entries.accept(CobblemonItems.GEM_FIRE_BUDDING)
entries.accept(CobblemonItems.GEM_WATER_BUDDING)
entries.accept(CobblemonItems.GEM_GRASS_BUDDING)
entries.accept(CobblemonItems.GEM_ELECTRIC_BUDDING)
entries.accept(CobblemonItems.GEM_ICE_BUDDING)
entries.accept(CobblemonItems.GEM_FIGHTING_BUDDING)
entries.accept(CobblemonItems.GEM_POISON_BUDDING)
entries.accept(CobblemonItems.GEM_GROUND_BUDDING)
entries.accept(CobblemonItems.GEM_FLYING_BUDDING)
entries.accept(CobblemonItems.GEM_PSYCHIC_BUDDING)
entries.accept(CobblemonItems.GEM_BUG_BUDDING)
entries.accept(CobblemonItems.GEM_ROCK_BUDDING)
entries.accept(CobblemonItems.GEM_GHOST_BUDDING)
entries.accept(CobblemonItems.GEM_DRAGON_BUDDING)
entries.accept(CobblemonItems.GEM_DARK_BUDDING)
entries.accept(CobblemonItems.GEM_STEEL_BUDDING)
entries.accept(CobblemonItems.GEM_FAIRY_BUDDING)
}
private fun blockEntries(displayContext: ItemDisplayParameters, entries: Output) {
@@ -13,7 +13,4 @@ import net.minecraft.core.particles.ParticleOptions
class SnowstormParticleOptions(val effect: BedrockParticleOptions) : ParticleOptions {
override fun getType() = CobblemonParticles.SNOWSTORM_PARTICLE_TYPE
companion object {
}
}
@@ -153,6 +153,7 @@ import net.minecraft.world.level.block.SweetBerryBushBlock
import net.minecraft.world.level.block.WitherRoseBlock
import net.minecraft.world.phys.Vec3
import kotlin.math.*
import net.minecraft.util.Mth
enum class OriginalTrainerType : StringRepresentable {
NONE, PLAYER, NPC;
@@ -648,7 +649,7 @@ open class Pokemon : ShowdownIdentifiable {
if (!spawnYaw.isFinite()) {
spawnYaw = 0.0
}
it.entityData.set(PokemonEntity.SPAWN_DIRECTION, spawnYaw.toFloat())
it.entityData.set(PokemonEntity.SPAWN_DIRECTION, Mth.wrapDegrees(spawnYaw.toFloat()))
}
if (owner != null) {
level.playSoundServer(owner.position(), CobblemonSounds.POKE_BALL_THROW, volume = 0.6F)
@@ -983,12 +984,12 @@ open class Pokemon : ShowdownIdentifiable {
fun clone(newUUID: Boolean = true): Pokemon {
// NBT is faster, ops type doesn't really matter
val encoded = CODEC.encodeStart(NbtOps.INSTANCE, this).orThrow
if (newUUID) {
NbtOps.INSTANCE.set(encoded, DataKeys.POKEMON_UUID, StringTag.valueOf(UUID.randomUUID().toString()))
NbtOps.INSTANCE.remove(encoded, DataKeys.TETHERING_ID)
}
val result = CODEC.decode(NbtOps.INSTANCE, encoded).orThrow.first
result.isClient = this.isClient
if (newUUID) {
result.uuid = UUID.randomUUID()
result.tetheringId = null
}
return result
}
@@ -219,6 +219,10 @@ object DataKeys {
const val NPC_IS_INVULNERABLE = "IsInvulnerable"
const val NPC_IS_LEASHABLE = "IsLeashable"
const val NPC_ALLOW_PROJECTILE_HITS = "AllowProjectileHits"
const val NPC_HITBOX = "Hitbox"
const val NPC_HITBOX_WIDTH = "Width"
const val NPC_HITBOX_HEIGHT = "Height"
const val NPC_HITBOX_FIXED = "Fixed"
// PokemonProperties
const val ELEMENTAL_TYPE = "ElementalType"
@@ -174,6 +174,7 @@ fun List<Expression>.resolveInt(runtime: MoLangRuntime, context: Map<String, MoV
fun List<Expression>.resolveBoolean(runtime: MoLangRuntime, context: Map<String, MoValue> = runtime.contextOrEmpty) = resolveDouble(runtime, context) == 1.0
fun List<Expression>.resolveObject(runtime: MoLangRuntime, context: Map<String, MoValue> = runtime.contextOrEmpty) = resolve(runtime, context) as ObjectValue<*>
fun <T : MoValue> MoParams.getOrNull(index: Int) = if (params.size > index) get<T>(index) else null
fun MoParams.getStringOrNull(index: Int) = if (params.size > index) getString(index) else null
fun MoParams.getDoubleOrNull(index: Int) = if (params.size > index) getDouble(index) else null
fun MoParams.getBooleanOrNull(index: Int) = if (params.size > index) getDouble(index) == 1.0 else null
@@ -19,6 +19,8 @@ import com.cobblemon.mod.common.api.reactive.Observable.Companion.filter
import com.cobblemon.mod.common.api.reactive.Observable.Companion.takeFirst
import com.cobblemon.mod.common.battles.BattleRegistry
import com.cobblemon.mod.common.battles.TeamManager
import com.cobblemon.mod.common.client.CobblemonClient
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.item.PokedexItem
import com.cobblemon.mod.common.platform.events.PlatformEvents
import com.cobblemon.mod.common.pokemon.Pokemon
@@ -408,6 +410,14 @@ fun Player.giveOrDropItemStack(stack: ItemStack, playSound: Boolean = true) {
/** Retrieves the battle theme associated with this player, or the default PVP theme if null. */
fun ServerPlayer.getBattleTheme() = Cobblemon.playerDataManager.getGenericData(this).battleTheme?.let { BuiltInRegistries.SOUND_EVENT.get(it) } ?: CobblemonSounds.PVP_BATTLE
/** Checks if any [PokemonEntity]s belonging to a player's party has any busy locks. */
fun Player.isPartyBusy() =
if (this.level().isClientSide)
CobblemonClient.storage.myParty.find { it?.entity?.isBusy == true } != null
else
Cobblemon.storage.getParty(this.uuid, this.registryAccess()).find { it?.entity?.isBusy == true } != null
fun Player.isUsingPokedex() = isUsingItem &&
((mainHandItem.item is PokedexItem && usedItemHand == InteractionHand.MAIN_HAND) ||
(offhandItem.item is PokedexItem && usedItemHand == InteractionHand.OFF_HAND))
(offhandItem.item is PokedexItem && usedItemHand == InteractionHand.OFF_HAND))
@@ -2,7 +2,7 @@
"format_version": "1.8.0",
"animations": {
"animation.evolution.evolution": {
"animation_length": 18.45833,
"animation_length": 12.0,
"bones": {
"root_part": {
"rotation": {
@@ -85,7 +85,7 @@
"num_particles": 1
},
"minecraft:emitter_lifetime_once": {
"active_time": 15
"active_time": 12
},
"minecraft:emitter_lifetime_events": {
"creation_event": "event_sparkle",
@@ -0,0 +1,80 @@
{
"format_version": "1.8.0",
"animations": {
"animation.delibird.ground_idle": {
"loop": true,
"bones": {
"arm_left": {
"rotation": [0, 0, 37.5]
},
"arm_left2": {
"rotation": [0, 0, 17.5]
},
"arm_left3": {
"rotation": [0, 0, 35]
},
"arm_right": {
"rotation": [12.56853, 12.27659, -43.64293]
},
"arm_right2": {
"rotation": [0, -15, 0]
},
"arm_right3": {
"rotation": [0, -10, 0]
},
"head": {
"rotation": [0, 0, 0]
},
"tail3": {
"rotation": [0, 0, -20]
},
"tail4": {
"rotation": [-6.51543, 39.8173, -4.18273]
},
"leg_left": {
"rotation": [0, -20, 0]
},
"foot_left": {
"rotation": [0, -17.5, 0]
},
"leg_right": {
"rotation": [0, 15, 0]
},
"foot_right": {
"rotation": [0, 22.5, 0]
},
"tail5": {
"rotation": [0, 30, -12.5]
},
"tail6": {
"rotation": [5.082, 12.45269, 1.96903]
},
"tail7": {
"rotation": [7.62353, 7.24305, 1.95155]
},
"tail_end": {
"rotation": [27.5, 0, 0]
}
}
},
"animation.delibird.blink": {
"animation_length": 0.1667,
"bones": {
"eyelid_left": {
"position": {
"0.0": [0, 0, -0.1],
"0.125": [0, 0, -0.1],
"0.1667": [0, 0, 0]
}
},
"eyelid_right": {
"position": {
"0.0": [0, 0, -0.1],
"0.125": [0, 0, -0.1],
"0.1667": [0, 0, 0]
}
}
}
}
}
}
@@ -11,7 +11,7 @@
"rotation": [37.5, 10, 0.00001]
},
"neck2": {
"rotation": [-32.75616, -8.17884, 5.42386]
"rotation": ["-32.7562+Math.cos((query.anim_time-0.6) * 90 * 1) * 4", -8.17884, 5.42386]
},
"neck3": {
"rotation": [-17.5, 0, 0]
@@ -20,7 +20,7 @@
"rotation": [-10, 0, 0]
},
"head_angle": {
"rotation": [27.5, 0, 0]
"rotation": ["27.5+Math.cos((query.anim_time-0.8) * 90 * 1) * -6", 0, 0]
},
"ear_left": {
"rotation": [0, 0, 7.5]
@@ -47,7 +47,7 @@
"rotation": [29.8359, 0.59944, -31.49325]
},
"segment3": {
"rotation": [0, 0, 42.5]
"rotation": [0, 0, "42.5+Math.cos((query.anim_time) * 90 * 1) * 1"]
},
"segment4": {
"rotation": [-12.5, 0, 40]
@@ -59,13 +59,13 @@
"rotation": [27.81308, -5.7287, 46.31672]
},
"segment7": {
"rotation": [24.15616, 7.47099, 40.01878]
"rotation": ["24.1562+Math.cos((query.anim_time-0.2) * 90 * 1) * -4", "7.471+Math.cos((query.anim_time-0.6) * 90 * 1) * -4", 40.01878]
},
"segment8": {
"rotation": [-10, 0, 30]
},
"segment9": {
"rotation": [-10, 0, 22.5]
"rotation": ["-10+Math.cos((query.anim_time-1) * 90 * 1) * -4", 0, 22.5]
},
"neck_leaves": {
"rotation": [-2.5, 0, 0]
@@ -133,10 +133,10 @@
"position": [0, -3, "-13+Math.cos((query.anim_time) * 90 * 2) * 1"]
},
"neck": {
"rotation": [17.5, 0, 0]
"rotation": [10, 0, 0]
},
"neck2": {
"rotation": [-35, 0, 0]
"rotation": ["-35+math.cos((query.anim_time-0.3) * 90 * 2) * +12.5", 0, 0]
},
"arm_left": {
"rotation": [24.51604, -45.05075, 57.20219]
@@ -157,7 +157,7 @@
"rotation": [0, 0, -52.5]
},
"neck3": {
"rotation": [-2.5, 0, 0]
"rotation": ["-2.5+Math.cos((query.anim_time-0.3) * 90 * 2) * -5", 0, 0]
},
"neck_leaves": {
"rotation": [-7.5, 0, 0]
@@ -166,7 +166,7 @@
"rotation": [20, 0, 0]
},
"head_angle": {
"rotation": [17.5, 0, 0]
"rotation": ["12.5+Math.cos((query.anim_time-0.5) * 90 * 2) * 5", 0, 0]
},
"ear_left": {
"rotation": [-5, 0, 7.5]
@@ -215,6 +215,12 @@
},
"segment9": {
"rotation": [0, 0, "math.sin(q.anim_time*90*4-460)*5"]
},
"neck_leave_left2_rotation": {
"rotation": ["4+Math.cos((query.anim_time-0.3) * 90 * 2) * -5", 0, 0]
},
"neck_leave_right2_rotation": {
"rotation": ["4+Math.cos((query.anim_time-0.3) * 90 * 2) * -5", 0, 0]
}
}
},
@@ -4,36 +4,112 @@
"animation.braixen.ground_idle": {
"loop": true,
"bones": {
"torso": {
"rotation": [2.5, 0, 0]
"torso_bottom": {
"rotation": ["-math.sin(q.anim_time*90*2.5-45)*0.75", 0, 0]
},
"neck": {
"rotation": ["10-math.sin(q.anim_time*90*2.5)*2", 0, 0]
},
"head": {
"rotation": ["2.5+math.sin(q.anim_time*90*2.5+45)*2", 0, 0]
},
"ear_ruff_right": {
"rotation": [0, 5, "-1-math.sin(q.anim_time*90*2.5+45)*1"]
},
"ear_ruff_right2": {
"rotation": [0, 10, "-math.sin(q.anim_time*90*2.5)*1"]
},
"ear_ruff_right3": {
"rotation": [0, 10, "-math.sin(q.anim_time*90*2.5-45)*1"]
},
"ear_ruff_left": {
"rotation": [0, -2.5, "1+math.sin(q.anim_time*90*2.5+45)*1"]
},
"ear_ruff_left2": {
"rotation": [0, -10, "math.sin(q.anim_time*90*2.5)*1"]
},
"ear_ruff_left3": {
"rotation": [0, -10, "math.sin(q.anim_time*90*2.5-45)*1"]
},
"arm_right": {
"rotation": [-1.56101, "12.3977-math.sin(q.anim_time*90*2.5+45)", -55.15982]
},
"arm_right2": {
"rotation": [-3.88714, -27.24513, 8.44236]
},
"arm_left": {
"rotation": [-1.465, "-12.404+math.sin(q.anim_time*90*2.5+45)*2", 55.14094]
},
"arm_left2": {
"rotation": [-6.31274, 31.94715, -11.80868]
},
"tail": {
"rotation": ["5+math.sin(q.anim_time*90*2.5)*2", "math.sin(q.anim_time*90*1.25-90)*4", "math.sin(q.anim_time*90*1.25-90)*2"],
"position": [0, 0, 0.5]
},
"stick_tail": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*1.25-45)*4"]
},
"tail2": {
"rotation": [0, 0, "math.sin(q.anim_time*90*1.25-45)*4"]
},
"tail3": {
"rotation": ["math.sin(q.anim_time*90*2.5-90)*2", 0, 0]
},
"tail4": {
"rotation": ["math.sin(q.anim_time*90*2.5-135)*2", 0, 0]
},
"finger_index_right": {
"rotation": [0, 0, -15]
},
"finger_middle_right": {
"rotation": [0, 0, -10]
},
"finger_ring_right": {
"rotation": [0, 0, -5]
},
"finger_index_left": {
"rotation": [0, 0, 15]
},
"finger_middle_left": {
"rotation": [0, 0, 10]
},
"finger_ring_left": {
"rotation": [0, 0, 5]
},
"waist": {
"rotation": [-5, 0, 0]
},
"chest": {
"rotation": [2.5, 0, 0]
},
"arm_left": {
"rotation": [0, -17.5, 57.5]
},
"arm_left2": {
"rotation": [-8.89674, 26.12797, -19.56838]
},
"hand_left": {
"rotation": [0, 0, -15]
"rotation": [0, 0, -7.5]
},
"neck": {
"rotation": [-5, 0, 0]
"finger_front_left": {
"rotation": [0, 0, 25]
},
"head": {
"rotation": [12.5, 0, 0]
"finger_back_left": {
"rotation": [0, 0, 22.5]
},
"tail": {
"hand_right": {
"rotation": [0, 0, 7.5]
},
"finger_front_right": {
"rotation": [0, 0, -25]
},
"finger_back_right": {
"rotation": [0, 0, -22.5]
},
"stick_hand": {
"scale": 0
},
"ear_ruff_shock_left": {
"scale": 0
},
"ear_ruff_shock_right": {
"scale": 0
},
"skirt_front2": {
"rotation": [5, 0, 0]
},
"stick_tail": {
"rotation": [-10, 0, 0]
},
"leg_left": {
"rotation": [0.88045, -9.96156, -5.07673]
},
@@ -49,77 +125,8 @@
"leg_right3": {
"rotation": [0.00039, 5.00185, -5.99069]
},
"finger_front_left": {
"rotation": [9.99527, 9.84653, 30.20756]
},
"finger_back_left": {
"rotation": [-4.26175, -9.05478, 25.33761]
},
"finger_middle_left": {
"rotation": [0, 0, 27.5]
},
"arm_right": {
"rotation": [0, 17.5, -57.5]
},
"arm_right2": {
"rotation": [-8.89674, -26.12797, 19.56838]
},
"hand_right": {
"rotation": [0, 0, 15]
},
"finger_front_right": {
"rotation": [9.99527, -9.84653, -30.20756]
},
"finger_middle_right": {
"rotation": [0, 0, -27.5]
},
"finger_back_right": {
"rotation": [-4.26175, 9.05478, -25.33761]
},
"ear_ruff_left2": {
"rotation": [0, -7.5, 0]
},
"ear_ruff_left3": {
"rotation": [0, -7.5, 0]
},
"ear_ruff_left4": {
"rotation": [0, -7.5, 0]
},
"skirt_front2": {
"rotation": [-2.5, 0, 0]
},
"foot_right": {
"rotation": [1, 0, 0]
},
"ear_ruff_left": {
"rotation": [0, -7.5, 0]
},
"ear_ruff_right": {
"rotation": [0, 7.5, 0]
},
"ear_ruff_right2": {
"rotation": [0, 7.5, 0]
},
"ear_ruff_right3": {
"rotation": [0, 7.5, 0]
},
"ear_ruff_right4": {
"rotation": [0, 7.5, 0]
},
"stick_hand": {
"scale": 0
},
"skirt_front_left": {
"rotation": [0, 0, 10]
},
"skirt_front_right": {
"rotation": [0, 0, -10]
},
"ear_ruff_shock_left": {
"scale": 0
},
"ear_ruff_shock_right": {
"scale": 0
}
}
},
@@ -267,6 +274,141 @@
}
}
},
"animation.braixen.ground_walk": {
"loop": true,
"bones": {
"torso_bottom": {
"rotation": ["2.5-math.sin(q.anim_time*90*10-45)*1", 0, 0]
},
"neck": {
"rotation": ["10-math.sin(q.anim_time*90*10)*2", "-math.sin(q.anim_time*90*5)*5", 0]
},
"head": {
"rotation": ["-17.5+math.sin(q.anim_time*90*10+45)*2", 0, 0]
},
"arm_right": {
"rotation": [0, "0+math.sin(q.anim_time*90*5+45)*10", "-40+math.abs(math.sin(q.anim_time*90*5)*10)"]
},
"arm_right2": {
"rotation": [0, "-20+math.sin(q.anim_time*90*5)*10", 25]
},
"arm_left": {
"rotation": [0, "0+math.sin(q.anim_time*90*5+45)*10", "40-math.abs(math.sin(q.anim_time*90*5)*10)"]
},
"arm_left2": {
"rotation": [0, "20+math.sin(q.anim_time*90*5)*10", -25]
},
"tail": {
"rotation": ["10+math.sin(q.anim_time*90*10)*2", "math.sin(q.anim_time*90*5-90)*8", "math.sin(q.anim_time*90*5-90)*2"],
"position": [0, 0, 0.5]
},
"stick_tail": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*5-45)*6"]
},
"tail2": {
"rotation": [0, 0, "math.sin(q.anim_time*90*5-45)*8"]
},
"tail3": {
"rotation": ["math.sin(q.anim_time*90*10-90)*4", 0, 0]
},
"tail4": {
"rotation": ["math.sin(q.anim_time*90*10-135)*4", 0, 0]
},
"body": {
"rotation": [10, 0, 0],
"position": [0, "math.abs(math.sin(q.anim_time*90*5-15)*1)", 2]
},
"torso_top": {
"rotation": ["-math.sin(q.anim_time*90*10)*0.5", "math.sin(q.anim_time*90*5)*2", 0]
},
"chest": {
"rotation": [0, "math.sin(q.anim_time*90*5)*4", 0]
},
"ear_right_main": {
"rotation": [0, 17.5, 0]
},
"ear_ruff_right": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*10+45)*2"]
},
"ear_ruff_right2": {
"rotation": [0, 22.5, "-math.sin(q.anim_time*90*10)*2"]
},
"ear_ruff_right3": {
"rotation": [0, 10, "-math.sin(q.anim_time*90*10-45)*2"]
},
"ear_left_main": {
"rotation": [0, -17.5, 0]
},
"ear_ruff_left": {
"rotation": [0, 0, "math.sin(q.anim_time*90*10+45)*2"]
},
"ear_ruff_left2": {
"rotation": [0, -20, "math.sin(q.anim_time*90*10)*2"]
},
"ear_ruff_left3": {
"rotation": [0, -10, "math.sin(q.anim_time*90*10-45)*2"]
},
"leg_right": {
"rotation": ["-math.sin(q.anim_time*90*5-90)*15", 0, 0],
"position": [0, "math.clamp(math.sin(q.anim_time*90*5+90*0)*1.5,0,180)", 0]
},
"leg_right2": {
"rotation": ["-math.sin(q.anim_time*90*5-135)*15", 0, 0]
},
"leg_right3": {
"rotation": ["math.clamp(math.sin(q.anim_time*90*5-180)*25,-180,5)", 0, 0]
},
"leg_right4": {
"rotation": ["-math.clamp(math.sin(q.anim_time*90*5-180)*25,-90,0)", 0, 0]
},
"leg_left": {
"rotation": ["math.sin(q.anim_time*90*5-90)*15", 0, 0],
"position": [0, "math.clamp(-math.sin(q.anim_time*90*5+90*0)*1.5,0,180)", 0]
},
"leg_left2": {
"rotation": ["math.sin(q.anim_time*90*5-135)*15", 0, 0]
},
"leg_left3": {
"rotation": ["-math.clamp(math.sin(q.anim_time*90*5-180)*25,-5,180)", 0, 0]
},
"leg_left4": {
"rotation": ["math.clamp(math.sin(q.anim_time*90*5-180)*25,0,90)", 0, 0]
},
"hand_left": {
"rotation": [0, 0, -5]
},
"finger_middle_left": {
"rotation": [0, 0, 7.5]
},
"finger_back_left": {
"rotation": [0, 0, 22.5]
},
"hand_right": {
"rotation": [0, 0, 5]
},
"finger_middle_right": {
"rotation": [0, 0, -7.5]
},
"finger_back_right": {
"rotation": [0, 0, -22.5]
},
"stick_hand": {
"scale": 0
},
"ear_ruff_shock_left": {
"scale": 0
},
"ear_ruff_left4": {
"rotation": [0, 12.5, 0]
},
"ear_ruff_shock_right": {
"scale": 0
},
"ear_ruff_right4": {
"rotation": [0, -12.5, 0]
}
}
},
"animation.braixen.blink": {
"animation_length": 0.1667,
"bones": {
@@ -286,6 +428,52 @@
}
}
},
"animation.braixen.cry": {
"animation_length": 1,
"bones": {
"head": {
"rotation": {
"0.0": [0, 0, 0],
"0.0417": [-2.05, 0, 0],
"0.0833": [-2.7, 0, 0],
"0.1667": [4, 0, 0],
"0.2083": [3.72, 0, 0],
"0.375": [-2.38, 0, 0],
"0.4167": [-2.7, 0, 0],
"0.5": [-2.4, 0, 0],
"0.6667": [-0.3, 0, 0],
"0.75": [0, 0, 0]
}
},
"jaw": {
"rotation": {
"0.0": [0, 0, 0],
"0.0417": [27.2, 0, 0],
"0.0833": [30, 0, 0],
"0.1667": [19, 0, 0],
"0.2083": [17.65, 0, 0],
"0.3333": [57.56, 0, 0],
"0.375": [60, 0, 0],
"0.4167": [56.99, 0, 0],
"0.7083": [4.23, 0, 0],
"0.7917": [0, 0, 0]
}
},
"fangs": {
"position": {
"0.0": [0, 0, 0],
"0.0417": [0, -0.5, 0],
"0.625": [0, -0.5, 0],
"0.6667": [0, 0, 0]
}
}
},
"sound_effects": {
"0.0": {
"effect": "pokemon.braixen.cry"
}
}
},
"animation.braixen.surprise_hair": {
"loop": true,
"bones": {
@@ -402,7 +590,7 @@
}
}
},
"animation.braixen.recoil": {
"animation.braixen.hurt": {
"loop": true,
"bones": {
"eyelid_recoil_left": {
@@ -412,154 +600,6 @@
"position": [-0.1, 0, -0.1]
}
}
},
"animation.braixen.ground_walk_old": {
"loop": true,
"bones": {
"torso_bottom": {
"rotation": ["2.5-math.sin(q.anim_time*90*10-45)*1", 0, 0]
},
"neck": {
"rotation": ["10-math.sin(q.anim_time*90*10)*2", "-math.sin(q.anim_time*90*5)*5", 0]
},
"head": {
"rotation": ["-17.5+math.sin(q.anim_time*90*10+45)*2", 0, 0]
},
"arm_right": {
"rotation": [0, "0+math.sin(q.anim_time*90*5+45)*10", "-40+math.abs(math.sin(q.anim_time*90*5)*10)"]
},
"arm_right2": {
"rotation": [0, "-20+math.sin(q.anim_time*90*5)*10", 25]
},
"arm_left": {
"rotation": [0, "0+math.sin(q.anim_time*90*5+45)*10", "40-math.abs(math.sin(q.anim_time*90*5)*10)"]
},
"arm_left2": {
"rotation": [0, "20+math.sin(q.anim_time*90*5)*10", -25]
},
"tail": {
"rotation": ["10+math.sin(q.anim_time*90*10)*2", "math.sin(q.anim_time*90*5-90)*8", "math.sin(q.anim_time*90*5-90)*2"],
"position": [0, 0, 0.5]
},
"stick_tail": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*5-45)*6"]
},
"tail2": {
"rotation": [0, 0, "math.sin(q.anim_time*90*5-45)*8"]
},
"tail3": {
"rotation": ["math.sin(q.anim_time*90*10-90)*4", 0, 0]
},
"tail4": {
"rotation": ["math.sin(q.anim_time*90*10-135)*4", 0, 0]
},
"body": {
"rotation": [10, 0, 0],
"position": [0, "0.5+math.abs(math.sin(q.anim_time*90*5-45)*1)", 2]
},
"torso_top": {
"rotation": ["-math.sin(q.anim_time*90*10)*0.5", "math.sin(q.anim_time*90*5)*2", 0]
},
"chest": {
"rotation": [0, "math.sin(q.anim_time*90*5)*4", 0]
},
"ear_right_main": {
"rotation": [0, 17.5, 0]
},
"ear_ruff_right": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*10+45)*2"]
},
"ear_ruff_right2": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*10)*2"]
},
"ear_ruff_right3": {
"rotation": [0, 0, "-math.sin(q.anim_time*90*10-45)*2"]
},
"ear_left_main": {
"rotation": [0, -17.5, 0]
},
"ear_ruff_left": {
"rotation": [0, 0, "math.sin(q.anim_time*90*10+45)*2"]
},
"ear_ruff_left2": {
"rotation": [0, 0, "math.sin(q.anim_time*90*10)*2"]
},
"ear_ruff_left3": {
"rotation": [0, 0, "math.sin(q.anim_time*90*10-45)*2"]
},
"leg_right": {
"rotation": ["-math.sin(q.anim_time*90*5-90)*15", 0, 0],
"position": [0, "math.clamp(math.sin(q.anim_time*90*5+90*0)*1.5,0,180)", 0]
},
"leg_right2": {
"rotation": ["-math.sin(q.anim_time*90*5-135)*15", 0, 0]
},
"leg_right3": {
"rotation": ["math.clamp(math.sin(q.anim_time*90*5-180)*25,-180,5)", 0, 0]
},
"leg_right4": {
"rotation": ["-math.clamp(math.sin(q.anim_time*90*5-180)*25,-90,0)", 0, 0]
},
"leg_left": {
"rotation": ["math.sin(q.anim_time*90*5-90)*15", 0, 0],
"position": [0, "math.clamp(-math.sin(q.anim_time*90*5+90*0)*1.5,0,180)", 0]
},
"leg_left2": {
"rotation": ["math.sin(q.anim_time*90*5-135)*15", 0, 0]
},
"leg_left3": {
"rotation": ["-math.clamp(math.sin(q.anim_time*90*5-180)*25,-5,180)", 0, 0]
},
"leg_left4": {
"rotation": ["math.clamp(math.sin(q.anim_time*90*5-180)*25,0,90)", 0, 0]
}
}
},
"animation.braixen.cry": {
"animation_length": 1,
"bones": {
"head": {
"rotation": {
"0.0": [0, 0, 0],
"0.0417": [-2.05, 0, 0],
"0.0833": [-2.7, 0, 0],
"0.1667": [4, 0, 0],
"0.2083": [3.72, 0, 0],
"0.375": [-2.38, 0, 0],
"0.4167": [-2.7, 0, 0],
"0.5": [-2.4, 0, 0],
"0.6667": [-0.3, 0, 0],
"0.75": [0, 0, 0]
}
},
"jaw": {
"rotation": {
"0.0": [0, 0, 0],
"0.0417": [27.2, 0, 0],
"0.0833": [30, 0, 0],
"0.1667": [19, 0, 0],
"0.2083": [17.65, 0, 0],
"0.3333": [57.56, 0, 0],
"0.375": [60, 0, 0],
"0.4167": [56.99, 0, 0],
"0.7083": [4.23, 0, 0],
"0.7917": [0, 0, 0]
}
},
"fangs": {
"position": {
"0.0": [0, 0, 0],
"0.0417": [0, -0.5, 0],
"0.625": [0, -0.5, 0],
"0.6667": [0, 0, 0]
}
}
},
"sound_effects": {
"0.0": {
"effect": "pokemon.braixen.cry"
}
}
}
}
}
@@ -5,7 +5,7 @@
"description": {
"identifier": "geometry.caterpie",
"texture_width": 64,
"texture_height": 32,
"texture_height": 64,
"visible_bounds_width": 4,
"visible_bounds_height": 2.5,
"visible_bounds_offset": [0, 0.75, 0]
@@ -23,62 +23,62 @@
{
"name": "head",
"parent": "body",
"pivot": [0, 5, -6.25],
"pivot": [0, 5.25, -6.25],
"cubes": [
{"origin": [-4, 2, -12.25], "size": [8, 7, 6], "uv": [0, 0]},
{"origin": [-2, 2.25, -13.5], "size": [4, 3, 2], "pivot": [0, 3.75, -12.5], "rotation": [22.5, 0, 0], "uv": [28, 3]},
{"origin": [-4.5, 5.75, -12.5], "size": [9, 3, 0], "pivot": [0, 7.25, -12.5], "rotation": [10, 0, 0], "uv": [22, 0]}
{"origin": [-4, 2.25, -12.25], "size": [8, 7, 7], "uv": [0, 0]},
{"origin": [-2, 2.5, -13.5], "size": [4, 3, 2], "pivot": [0, 4, -12.5], "rotation": [22.5, 0, 0], "uv": [24, 30]},
{"origin": [-4.5, 6, -12.5], "size": [9, 4, 0], "pivot": [0, 7.5, -12.5], "rotation": [10, 0, 0], "uv": [30, 0]}
]
},
{
"name": "eyes",
"parent": "head",
"pivot": [0, 6.25, -10]
"pivot": [0, 6.5, -10]
},
{
"name": "eye_right",
"parent": "eyes",
"pivot": [-4.015, 6.25, -10],
"pivot": [-3.815, 5.95, -9.55],
"cubes": [
{"origin": [-4.02, 5.25, -11], "size": [0, 2, 2], "uv": [60, 0], "mirror": true},
{"origin": [-4.01, 4.75, -11.5], "size": [0, 3, 3], "uv": [0, -3], "mirror": true}
{"origin": [-3.82, 4.95, -10.55], "size": [0, 2, 2], "inflate": 0.2, "uv": [41, 37]},
{"origin": [-3.81, 4.45, -11.05], "size": [0, 3, 3], "inflate": 0.2, "uv": [33, 36]}
]
},
{
"name": "eyelid_right",
"parent": "eye_right",
"pivot": [-3.42, 6.25, -10],
"pivot": [-3.22, 5.95, -9.55],
"cubes": [
{"origin": [-3.92, 4.75, -11.5], "size": [1, 3, 3], "inflate": 0.01, "uv": [32, 16], "mirror": true}
{"origin": [-3.73, 4.45, -11.05], "size": [1, 3, 3], "inflate": 0.2, "uv": [0, 40]}
]
},
{
"name": "eye_left",
"parent": "eyes",
"pivot": [4.015, 6.25, -10],
"pivot": [3.815, 5.95, -9.55],
"cubes": [
{"origin": [4.02, 5.25, -11], "size": [0, 2, 2], "uv": [60, -2]},
{"origin": [4.01, 4.75, -11.5], "size": [0, 3, 3], "uv": [0, 0]}
{"origin": [3.82, 4.95, -10.55], "size": [0, 2, 2], "inflate": 0.2, "uv": [41, 31]},
{"origin": [3.81, 4.45, -11.05], "size": [0, 3, 3], "inflate": 0.2, "uv": [25, 36]}
]
},
{
"name": "eyelid_left",
"parent": "eye_left",
"pivot": [3.42, 6.25, -10],
"pivot": [3.22, 5.95, -9.55],
"cubes": [
{"origin": [2.92, 4.75, -11.5], "size": [1, 3, 3], "inflate": 0.01, "uv": [20, 13]}
{"origin": [2.73, 4.45, -11.05], "size": [1, 3, 3], "inflate": 0.2, "uv": [8, 40]}
]
},
{
"name": "body_segment",
"parent": "body",
"pivot": [0, 5, -6.25],
"pivot": [0, 5, -5.25],
"cubes": [
{"origin": [-3.5, 1, -7.25], "size": [7, 7, 6], "uv": [0, 13]},
{"origin": [-3.51, 3.5, -5.25], "size": [0, 3, 3], "uv": [32, 19], "mirror": true},
{"origin": [-3.52, 4, -4.75], "size": [0, 2, 2], "uv": [42, 0], "mirror": true},
{"origin": [3.51, 3.5, -5.25], "size": [0, 3, 3], "uv": [38, 19]},
{"origin": [3.52, 4, -4.75], "size": [0, 2, 2], "uv": [60, 2]}
{"origin": [-3.5, 1, -7.25], "size": [7, 7, 7], "uv": [0, 14]},
{"origin": [-3.51, 3.5, -4.25], "size": [0, 3, 3], "uv": [42, 4]},
{"origin": [-3.52, 4, -3.75], "size": [0, 2, 2], "uv": [36, 30]},
{"origin": [3.51, 3.5, -4.25], "size": [0, 3, 3], "uv": [20, 43]},
{"origin": [3.52, 4, -3.75], "size": [0, 2, 2], "uv": [46, 29]}
]
},
{
@@ -86,7 +86,7 @@
"parent": "body_segment",
"pivot": [-2.25, 1, -3.25],
"cubes": [
{"origin": [-3.25, 0, -4.25], "size": [2, 1, 2], "uv": [23, 26]}
{"origin": [-3.25, 0, -4.25], "size": [2, 1, 2], "uv": [44, 22]}
]
},
{
@@ -94,80 +94,88 @@
"parent": "body_segment",
"pivot": [2.25, 1, -3.25],
"cubes": [
{"origin": [1.25, 0, -4.25], "size": [2, 1, 2], "uv": [40, 13]}
{"origin": [1.25, 0, -4.25], "size": [2, 1, 2], "uv": [32, 43]}
]
},
{
"name": "body_segment2",
"parent": "body_segment",
"pivot": [0, 4, -1.25],
"pivot": [0, 4, -0.25],
"cubes": [
{"origin": [-3, 1.02, -2.25], "size": [6, 6, 6], "uv": [40, 0]},
{"origin": [-3.01, 3, -0.25], "size": [0, 3, 3], "uv": [32, 22], "mirror": true},
{"origin": [-3.02, 3.5, 0.25], "size": [0, 2, 2], "uv": [42, -2], "mirror": true},
{"origin": [3.01, 3, -0.25], "size": [0, 3, 3], "uv": [38, 22]},
{"origin": [3.02, 3.5, 0.25], "size": [0, 2, 2], "uv": [42, 2]}
{"origin": [-3, 1.02, -1.25], "size": [6, 6, 6], "uv": [0, 28]},
{"origin": [-3.01, 3, 0.75], "size": [0, 3, 3], "uv": [26, 43]},
{"origin": [-3.02, 3.5, 1.25], "size": [0, 2, 2], "uv": [46, 10]},
{"origin": [3.01, 3, 0.75], "size": [0, 3, 3], "uv": [40, 42]},
{"origin": [3.02, 3.5, 1.25], "size": [0, 2, 2], "uv": [4, 46]}
]
},
{
"name": "foot_right2",
"parent": "body_segment2",
"pivot": [-2, 1, 1.75],
"pivot": [-2, 1, 2.75],
"cubes": [
{"origin": [-3, 0, 0.75], "size": [2, 1, 2], "uv": [37, 16]}
{"origin": [-3, 0, 1.75], "size": [2, 1, 2], "uv": [38, 11]}
]
},
{
"name": "foot_left2",
"parent": "body_segment2",
"pivot": [2, 1, 1.75],
"pivot": [2, 1, 2.75],
"cubes": [
{"origin": [1, 0, 0.75], "size": [2, 1, 2], "uv": [40, 19]}
{"origin": [1, 0, 1.75], "size": [2, 1, 2], "uv": [30, 11]}
]
},
{
"name": "tail",
"parent": "body_segment2",
"pivot": [0, 5, 3.75],
"pivot": [0, 5, 4.75],
"cubes": [
{"origin": [-2.5, 1, 3.75], "size": [5, 4, 4], "uv": [46, 12]},
{"origin": [-2.51, 2.5, 4.75], "size": [0, 2, 2], "uv": [0, 11], "mirror": true},
{"origin": [-2.52, 3, 5.25], "size": [0, 1, 1], "uv": [40, 4], "mirror": true},
{"origin": [2.51, 2.5, 4.75], "size": [0, 2, 2], "uv": [44, 20]},
{"origin": [2.52, 3, 5.25], "size": [0, 1, 1], "uv": [40, 1]}
{"origin": [-2.5, 1, 4.75], "size": [5, 4, 4], "uv": [28, 14]},
{"origin": [-2.51, 2.5, 5.75], "size": [0, 2, 2], "uv": [12, 46]},
{"origin": [-2.52, 3, 6.25], "size": [0, 1, 1], "uv": [22, 40]},
{"origin": [2.51, 2.5, 5.75], "size": [0, 2, 2], "uv": [44, 25]},
{"origin": [2.52, 3, 6.25], "size": [0, 1, 1], "uv": [24, 28]}
]
},
{
"name": "tail2",
"parent": "tail",
"pivot": [0, 3, 7.75],
"pivot": [0, 3, 8.75],
"cubes": [
{"origin": [-2, 1, 7.75], "size": [4, 4, 4], "uv": [48, 20]},
{"origin": [-2.01, 2.25, 8.75], "size": [0, 2, 2], "uv": [0, 13], "mirror": true},
{"origin": [-2.02, 2.75, 9.25], "size": [0, 1, 1], "uv": [40, -1], "mirror": true},
{"origin": [2.01, 2.25, 8.75], "size": [0, 2, 2], "uv": [44, 22]},
{"origin": [2.02, 2.75, 9.25], "size": [0, 1, 1], "uv": [40, 2]}
{"origin": [-2, 1, 8.75], "size": [4, 4, 4], "uv": [28, 22]},
{"origin": [-2.01, 2.25, 9.75], "size": [0, 2, 2], "uv": [46, 14]},
{"origin": [-2.02, 2.75, 10.25], "size": [0, 1, 1], "uv": [32, 46]},
{"origin": [2.01, 2.25, 9.75], "size": [0, 2, 2], "uv": [0, 46]},
{"origin": [2.02, 2.75, 10.25], "size": [0, 1, 1], "uv": [26, 28]}
]
},
{
"name": "tail3",
"parent": "tail2",
"pivot": [0, 2.5, 11.75],
"pivot": [0, 2.5, 12.75],
"cubes": [
{"origin": [-1, 1, 11.75], "size": [2, 3, 4], "uv": [28, 8]},
{"origin": [-1.01, 1.5, 13], "size": [0, 2, 2], "uv": [0, 15], "mirror": true},
{"origin": [-1.02, 2, 13.5], "size": [0, 1, 1], "uv": [40, 0], "mirror": true},
{"origin": [1.01, 1.5, 13], "size": [0, 2, 2], "uv": [44, 24]},
{"origin": [1.02, 2, 13.5], "size": [0, 1, 1], "uv": [40, 3]}
{"origin": [-1, 1, 12.75], "size": [2, 3, 4], "uv": [30, 4]},
{"origin": [-1.01, 1.5, 14], "size": [0, 2, 2], "uv": [46, 18]},
{"origin": [-1.02, 2, 14.5], "size": [0, 1, 1], "uv": [46, 33]},
{"origin": [1.01, 1.5, 14], "size": [0, 2, 2], "uv": [8, 46]},
{"origin": [1.02, 2, 14.5], "size": [0, 1, 1], "uv": [20, 40]}
]
},
{
"name": "tail4",
"parent": "tail3",
"pivot": [0, 2.5, 14],
"pivot": [0, 2.5, 16.75],
"rotation": [-90, 0, 0],
"cubes": [
{"origin": [0, 3.75, 13], "size": [0, 7, 2], "uv": [27, 17]}
{"origin": [0, 2.5, 16.25], "size": [0, 1, 1], "uv": [17, 40]}
]
},
{
"name": "tail5",
"parent": "tail4",
"pivot": [0, 3.5, 16.75],
"cubes": [
{"origin": [-1, 3.5, 15.75], "size": [2, 5, 2], "uv": [3, 51]}
]
}
]
@@ -0,0 +1,583 @@
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.delibird",
"texture_width": 128,
"texture_height": 64,
"visible_bounds_width": 3,
"visible_bounds_height": 3.5,
"visible_bounds_offset": [0, 1.25, 0]
},
"bones": [
{
"name": "delibird",
"pivot": [0, 0, 0]
},
{
"name": "body",
"parent": "delibird",
"pivot": [0, 7.1, 0]
},
{
"name": "torso",
"parent": "body",
"pivot": [0, 1.6, 0],
"cubes": [
{"origin": [-6.5, 1.6, -5], "size": [13, 10, 10], "uv": [0, 41]},
{"origin": [-1, 2.6, -5.01], "size": [2, 2, 0], "uv": [36, 46]}
]
},
{
"name": "chest",
"parent": "torso",
"pivot": [0, 11.6, 3.5],
"cubes": [
{"origin": [-5.5, 11.1, -4], "size": [11, 6, 8], "uv": [36, 25]}
]
},
{
"name": "beard",
"parent": "chest",
"pivot": [0, 17.1, -4],
"rotation": [-25, 0, 0],
"cubes": [
{"origin": [-3.5, 11.1, -4], "size": [7, 6, 3], "uv": [0, 13]}
]
},
{
"name": "beard1_left",
"parent": "beard",
"pivot": [3.5, 14.1, -4],
"cubes": [
{"origin": [3.5, 11.1, -4], "size": [2, 6, 0], "uv": [20, 6]}
]
},
{
"name": "beard1_right",
"parent": "beard",
"pivot": [-3.5, 14.1, -4],
"cubes": [
{"origin": [-5.5, 11.1, -4], "size": [2, 6, 0], "uv": [24, 6], "mirror": true}
]
},
{
"name": "beard2",
"parent": "beard",
"pivot": [0, 11.1, -4],
"rotation": [30, 0, 0],
"cubes": [
{"origin": [-2.5, 7.1, -4], "size": [5, 4, 3], "uv": [20, 16]}
]
},
{
"name": "beard2_left",
"parent": "beard2",
"pivot": [2.5, 9.1, -4],
"cubes": [
{"origin": [2.5, 7.1, -4], "size": [2, 4, 0], "uv": [20, 12]}
]
},
{
"name": "beard2_right",
"parent": "beard2",
"pivot": [-2.5, 9.1, -4],
"cubes": [
{"origin": [-4.5, 7.1, -4], "size": [2, 4, 0], "uv": [24, 12], "mirror": true}
]
},
{
"name": "beard3",
"parent": "beard2",
"pivot": [0, 7.1, -4],
"rotation": [7.5, 0, 0],
"cubes": [
{"origin": [-2.5, 4.1, -4], "size": [5, 3, 0], "uv": [34, 25]}
]
},
{
"name": "arms",
"parent": "chest",
"pivot": [0, 11.6, 3.5]
},
{
"name": "arm_left",
"parent": "arms",
"pivot": [5, 15.1, 0],
"cubes": [
{"origin": [4, 13.1, -2.5], "size": [6, 3, 5], "inflate": 0.01, "uv": [106, 39]}
]
},
{
"name": "arm_left2",
"parent": "arm_left",
"pivot": [10, 16.1, 2],
"cubes": [
{"origin": [10, 13.1, -2], "size": [3, 3, 4], "uv": [46, 54]}
]
},
{
"name": "arm_left3",
"parent": "arm_left2",
"pivot": [13, 15.6, 1.5],
"cubes": [
{"origin": [13, 13.6, -1.5], "size": [2, 2, 3], "uv": [0, 8]}
]
},
{
"name": "arm_right",
"parent": "arms",
"pivot": [-5, 15.1, 0],
"cubes": [
{"origin": [-10, 13.1, -2.5], "size": [6, 3, 5], "inflate": 0.01, "uv": [106, 47], "mirror": true}
]
},
{
"name": "arm_right2",
"parent": "arm_right",
"pivot": [-10, 16.1, 2],
"cubes": [
{"origin": [-13, 13.1, -2], "size": [3, 3, 4], "uv": [36, 39], "mirror": true}
]
},
{
"name": "arm_right3",
"parent": "arm_right2",
"pivot": [-13, 15.6, 1.5],
"cubes": [
{"origin": [-15, 13.6, -1.5], "size": [2, 2, 3], "uv": [10, 8], "mirror": true}
]
},
{
"name": "neck",
"parent": "chest",
"pivot": [0.5, 17.1, 0],
"cubes": [
{"origin": [-3.5, 16.6, -2.5], "size": [7, 2, 5], "uv": [104, 55]}
]
},
{
"name": "head",
"parent": "neck",
"pivot": [0.25, 17.6, 0],
"cubes": [
{"origin": [-4.5, 17.1, -4.5], "size": [9, 9, 9], "uv": [0, 23]},
{"origin": [-5, 17.1, -4.5], "size": [10, 4, 9], "inflate": 0.01, "uv": [56, 6]}
]
},
{
"name": "eyes",
"parent": "head",
"pivot": [0.25, 22.1, -4.5]
},
{
"name": "eye_outline_left",
"parent": "eyes",
"pivot": [2.5, 21.1, -4.52],
"cubes": [
{"origin": [0.5, 19.1, -4.52], "size": [4, 4, 0], "uv": [8, 0]}
]
},
{
"name": "eye_left",
"parent": "eye_outline_left",
"pivot": [2.2, 21.1, -4.53],
"cubes": [
{"origin": [0.8, 19.6, -4.63], "size": [3, 3, 1], "inflate": -0.1, "uv": [8, 4]}
]
},
{
"name": "pupil_left",
"parent": "eye_left",
"pivot": [1.5, 21.1, -4.54],
"cubes": [
{"origin": [0.6, 20.1, -4.69], "size": [2, 2, 1], "inflate": -0.15, "uv": [16, 3]}
]
},
{
"name": "pupil_left2",
"parent": "pupil_left",
"pivot": [1.2, 21.1, -4.55],
"cubes": [
{"origin": [0.9, 20.6, -4.6], "size": [1, 1, 1], "inflate": -0.05, "uv": [22, 2]}
]
},
{
"name": "eyelid_left",
"parent": "eye_left",
"pivot": [2.2, 21.1, -3.94],
"cubes": [
{"origin": [0.7, 19.6, -4.45], "size": [3, 3, 1], "inflate": 0.01, "uv": [28, 9]}
]
},
{
"name": "eye_outline_right",
"parent": "eyes",
"pivot": [-2.5, 21.1, -4.52],
"cubes": [
{"origin": [-4.5, 19.1, -4.52], "size": [4, 4, 0], "uv": [0, 0], "mirror": true}
]
},
{
"name": "eye_right",
"parent": "eye_outline_right",
"pivot": [-2.2, 21.1, -4.53],
"cubes": [
{"origin": [-3.8, 19.6, -4.63], "size": [3, 3, 1], "inflate": -0.1, "uv": [0, 4], "mirror": true}
]
},
{
"name": "pupil_right",
"parent": "eye_right",
"pivot": [-1.5, 21.1, -4.54],
"cubes": [
{"origin": [-2.6, 20.1, -4.69], "size": [2, 2, 1], "inflate": -0.15, "uv": [16, 0], "mirror": true}
]
},
{
"name": "pupil_right2",
"parent": "pupil_right",
"pivot": [-1.2, 21.1, -4.55],
"cubes": [
{"origin": [-1.9, 20.6, -4.6], "size": [1, 1, 1], "inflate": -0.05, "uv": [22, 0], "mirror": true}
]
},
{
"name": "eyelid_right",
"parent": "eye_right",
"pivot": [-2.2, 21.1, -3.94],
"cubes": [
{"origin": [-3.7, 19.6, -4.45], "size": [3, 3, 1], "inflate": 0.01, "uv": [28, 5], "mirror": true}
]
},
{
"name": "beak",
"parent": "head",
"pivot": [0, 20.65, -4.5],
"rotation": [6, 0, 0],
"cubes": [
{"origin": [-1.5, 18.75, -7], "size": [3, 2, 3], "inflate": -0.09, "uv": [52, 2]},
{"origin": [-1, 18.75, -8.8], "size": [2, 2, 2], "inflate": -0.09, "uv": [47, 1]}
]
},
{
"name": "jaw",
"parent": "beak",
"pivot": [0, 19.25, -4.5],
"cubes": [
{"origin": [-1.5, 18.25, -7], "size": [3, 1, 3], "inflate": -0.1, "uv": [48, 7]},
{"origin": [-1, 18.25, -8.8], "size": [2, 1, 2], "inflate": -0.1, "uv": [57, 7]}
]
},
{
"name": "head_fur",
"parent": "head",
"pivot": [4, 21.1, 4.5]
},
{
"name": "head_fur_left",
"parent": "head_fur",
"pivot": [5, 21.1, -1.5],
"rotation": [0, 20, 0],
"cubes": [
{"origin": [5, 17.1, -1.5], "size": [0, 4, 3], "uv": [48, 8]}
]
},
{
"name": "head_fur_left2",
"parent": "head_fur",
"pivot": [5, 21.1, 1.5],
"rotation": [0, 20, 0],
"cubes": [
{"origin": [5, 17.1, 1.5], "size": [0, 4, 3], "uv": [61, -3]}
]
},
{
"name": "head_fur_right",
"parent": "head_fur",
"pivot": [-5, 21.1, -1.5],
"rotation": [0, -20, 0],
"cubes": [
{"origin": [-5, 17.1, -1.5], "size": [0, 4, 3], "uv": [54, 8], "mirror": true}
]
},
{
"name": "head_fur_right2",
"parent": "head_fur",
"pivot": [-5, 21.1, 1.5],
"rotation": [0, -20, 0],
"cubes": [
{"origin": [-5, 17.1, 1.5], "size": [0, 4, 3], "uv": [67, -3], "mirror": true}
]
},
{
"name": "head_fur_left_top",
"parent": "head_fur",
"pivot": [4.5, 21.6, -1.5],
"rotation": [0, 20, 0],
"cubes": [
{"origin": [4.5, 21.6, -1.5], "size": [0, 3, 3], "uv": [73, -3]}
]
},
{
"name": "head_fur_right_top",
"parent": "head_fur",
"pivot": [-4.5, 21.6, -1.5],
"rotation": [0, -20, 0],
"cubes": [
{"origin": [-4.5, 21.6, -1.5], "size": [0, 3, 3], "uv": [73, 0], "mirror": true}
]
},
{
"name": "head_fur_back",
"parent": "head_fur",
"pivot": [0, 23.1, 4.5],
"rotation": [-70, 0, 0],
"cubes": [
{"origin": [-5, 23.1, 4.5], "size": [10, 0, 3], "uv": [33, 16]}
]
},
{
"name": "head_fur_back2",
"parent": "head_fur",
"pivot": [0, 20.1, 4.5],
"rotation": [-70, 0, 0],
"cubes": [
{"origin": [-5.5, 20.1, 4.5], "size": [11, 0, 3], "uv": [33, 19]}
]
},
{
"name": "head_fur_back3",
"parent": "head_fur",
"pivot": [0, 17.1, 4.1],
"rotation": [-70, 0, 0],
"cubes": [
{"origin": [-5.5, 17.1, 4.1], "size": [11, 0, 3], "uv": [33, 22]}
]
},
{
"name": "head_fur_front_left",
"parent": "head",
"pivot": [0, 24.1, -4.5],
"rotation": [1, 0, 0]
},
{
"name": "head_fur_front_left_rotation",
"parent": "head_fur_front_left",
"pivot": [0, 24.1, -4.5],
"rotation": [0, 0, 45],
"cubes": [
{"origin": [0, 24.1, -4.5], "size": [4, 5, 0], "uv": [27, 0]}
]
},
{
"name": "head_fur_front_left2",
"parent": "head_fur_front_left_rotation",
"pivot": [0, 29.1, -4.5],
"rotation": [-45, 0, 0],
"cubes": [
{"origin": [-3, 29.1, -4.5], "size": [7, 5, 0], "uv": [58, 19]}
]
},
{
"name": "head_fur_front_left3",
"parent": "head_fur_front_left2",
"pivot": [4, 34.1, -4.5],
"rotation": [-20, 0, 0],
"cubes": [
{"origin": [-2, 34.1, -4.5], "size": [6, 3, 0], "uv": [36, 10]}
]
},
{
"name": "head_fur_front_right",
"parent": "head",
"pivot": [0, 24.1, -4.5],
"rotation": [1, 0, 0]
},
{
"name": "head_fur_front_right_rotation",
"parent": "head_fur_front_right",
"pivot": [0, 24.1, -4.5],
"rotation": [0, 0, -45],
"cubes": [
{"origin": [-4, 24.1, -4.5], "size": [4, 5, 0], "uv": [35, 0], "mirror": true}
]
},
{
"name": "head_fur_front_right2",
"parent": "head_fur_front_right_rotation",
"pivot": [0, 29.1, -4.5],
"rotation": [-45, 0, 0],
"cubes": [
{"origin": [-4, 29.1, -4.5], "size": [7, 5, 0], "uv": [36, 5], "mirror": true}
]
},
{
"name": "head_fur_front_right3",
"parent": "head_fur_front_right2",
"pivot": [-4, 34.1, -4.5],
"rotation": [-20, 0, 0],
"cubes": [
{"origin": [-4, 34.1, -4.5], "size": [6, 3, 0], "uv": [36, 13], "mirror": true}
]
},
{
"name": "tail",
"parent": "torso",
"pivot": [0, 4.6, 4.5],
"rotation": [-15, 0, 0],
"cubes": [
{"origin": [-1.5, 3.1, 3.5], "size": [3, 3, 3], "uv": [100, 33]}
]
},
{
"name": "tail2",
"parent": "tail",
"pivot": [0, 4.6, 5.5],
"cubes": [
{"origin": [-2.5, 2.1, 5.5], "size": [5, 5, 3], "uv": [73, 19]}
]
},
{
"name": "tail3",
"parent": "tail2",
"pivot": [0, 4.1, 7.5],
"rotation": [12.5, 0, 0],
"cubes": [
{"origin": [-3.5, 1.1, 7.5], "size": [9, 8, 7], "inflate": 0.01, "uv": [85, 0]}
]
},
{
"name": "tail4",
"parent": "tail3",
"pivot": [5.5, 4.6, 14],
"cubes": [
{"origin": [5.5, 1.6, 8], "size": [5, 7, 6], "uv": [89, 15]}
]
},
{
"name": "tail5",
"parent": "tail4",
"pivot": [10.5, 5.1, 13],
"rotation": [0, -90, 0],
"cubes": [
{"origin": [6.5, 2.6, 10], "size": [4, 5, 4], "uv": [111, 15]}
]
},
{
"name": "tail6",
"parent": "tail5",
"pivot": [8.5, 5.1, 10],
"cubes": [
{"origin": [7, 3.6, 6], "size": [3, 3, 5], "uv": [83, 28]}
]
},
{
"name": "tail7",
"parent": "tail6",
"pivot": [8.5, 5.1, 6],
"cubes": [
{"origin": [7.5, 4.1, 0], "size": [2, 2, 7], "uv": [80, 36]}
]
},
{
"name": "tail_end",
"parent": "tail7",
"pivot": [8.5, 5.1, 1],
"cubes": [
{"origin": [7, 3.6, -2], "size": [3, 3, 3], "uv": [91, 37]}
]
},
{
"name": "tail_end_left",
"parent": "tail_end",
"pivot": [10, 5.1, -2],
"rotation": [0, -15, 0],
"cubes": [
{"origin": [10, 2.6, -7], "size": [0, 5, 5], "uv": [114, 19]}
]
},
{
"name": "tail_end_right",
"parent": "tail_end",
"pivot": [7, 5.1, -2],
"rotation": [0, 12.5, 0],
"cubes": [
{"origin": [7, 2.6, -7], "size": [0, 5, 5], "uv": [114, 24]}
]
},
{
"name": "tail_end_top",
"parent": "tail_end",
"pivot": [8.5, 6.6, -2],
"cubes": [
{"origin": [6, 6.6, -7], "size": [5, 0, 5], "pivot": [8.5, 6.6, -2], "rotation": [-15, 0, 0], "uv": [89, 28]}
]
},
{
"name": "tail_end_bottom",
"parent": "tail_end",
"pivot": [8.5, 3.6, -2],
"rotation": [15, 0, 0],
"cubes": [
{"origin": [6, 3.6, -7], "size": [5, 0, 5], "uv": [99, 28]}
]
},
{
"name": "legs",
"parent": "body",
"pivot": [0, 5.1, 0]
},
{
"name": "leg_left",
"parent": "legs",
"pivot": [4.5, 7.1, 0],
"cubes": [
{"origin": [1.5, 1.1, -4], "size": [6, 7, 8], "uv": [66, 46]}
]
},
{
"name": "foot_left",
"parent": "leg_left",
"pivot": [4.5, 1.1, 0],
"cubes": [
{"origin": [3, 0.1, -3.5], "size": [3, 1, 6], "inflate": 0.01, "uv": [86, 45]}
]
},
{
"name": "toe_left",
"parent": "foot_left",
"pivot": [6, 0.1, -3],
"cubes": [
{"origin": [3, 0.1, -5], "size": [3, 0, 2], "uv": [65, 25]}
]
},
{
"name": "leg_right",
"parent": "legs",
"pivot": [-4.5, 7.1, 0],
"cubes": [
{"origin": [-7.5, 1.1, -4], "size": [6, 7, 8], "uv": [46, 39], "mirror": true}
]
},
{
"name": "foot_right",
"parent": "leg_right",
"pivot": [-4.5, 1.1, 0],
"cubes": [
{"origin": [-6, 0.1, -3.5], "size": [3, 1, 6], "inflate": 0.01, "uv": [88, 56], "mirror": true}
]
},
{
"name": "toe_right",
"parent": "foot_right",
"pivot": [-6, 0.1, -3],
"cubes": [
{"origin": [-6, 0.1, -5], "size": [3, 0, 2], "uv": [65, 27], "mirror": true}
]
}
]
}
]
}
@@ -324,7 +324,7 @@
"name": "head_correction",
"parent": "head",
"pivot": [0, 6.2, -15],
"rotation": [-90, 0, 0]
"rotation": [0, 0, 0]
},
{
"name": "head_ai",
@@ -335,6 +335,7 @@
"name": "head_angle",
"parent": "head_ai",
"pivot": [0, 6.5, -16],
"rotation": [-90, 0, 0],
"cubes": [
{"origin": [-3.5, 2.49, -22], "size": [7, 7, 7], "uv": [0, 0]}
]
@@ -32,16 +32,16 @@
},
"sleep": {
"poseTypes": ["SLEEP"],
"animations": ["q.bedrock('raichu_alolan', 'ground_sleep')"]
"isTouchingWater": false,
"animations": ["q.bedrock('raichu_alolan', 'sleep')"]
},
"surface_sleep": {
"poseTypes": ["SLEEP"],
"isTouchingWater": true,
"animations": [
"q.look('head')",
"q.bedrock('raichu_alolan', 'ground_sleep')"
"q.bedrock('raichu_alolan', 'sleep')"
],
"quirks": ["q.bedrock_quirk('raichu_alolan', 'blink')"],
"transformedParts": [
{
"part": "body",
@@ -0,0 +1,53 @@
{
"portraitScale": 1.61,
"portraitTranslation": [0, 0.74, 0],
"profileScale": 0.52,
"profileTranslation": [0, 1, 0],
"rootBone": "delibird",
"poses": {
"standing": {
"poseTypes": [
"STAND",
"NONE",
"FLOAT",
"PORTRAIT",
"PROFILE"
],
"animations": [
"q.look('head')",
"q.bedrock('delibird', 'ground_idle')"
],
"quirks": [
"q.bedrock_quirk('delibird', 'blink')"
]
},
"walking": {
"poseTypes": [
"WALK",
"SWIM"
],
"animations": [
"q.look('head')",
"q.bedrock('delibird', 'ground_idle')",
"q.biped_walk(0.85, 0.75, 'leg_left', 'leg_right')"
],
"quirks": [
"q.bedrock_quirk('delibird', 'blink')"
]
},
"flying": {
"poseTypes": [
"FLY",
"HOVER"
],
"animations": [
"q.sine_wing_flap(0.7, 0.4, 25, 'z', 'arm_right3', 'arm_right')",
"q.look('head')",
"q.bedrock('delibird', 'ground_idle')"
],
"quirks": [
"q.bedrock_quirk('delibird', 'blink')"
]
}
}
}
@@ -11,12 +11,12 @@
"standing": {
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"isBattle": false,
"animations": ["q.look('head')", "q.bedrock('snivy', 'ground_idle')"],
"animations": ["q.look('head_ai')", "q.bedrock('snivy', 'ground_idle')"],
"quirks": ["q.bedrock_quirk('snivy', 'blink')"]
},
"walking": {
"poseTypes": ["WALK"],
"animations": ["q.look('head')", "q.bedrock('snivy', 'ground_walk')"],
"animations": ["q.look('head_ai')", "q.bedrock('snivy', 'ground_walk')"],
"quirks": ["q.bedrock_quirk('snivy', 'blink')"]
},
"sleep": {
@@ -11,12 +11,12 @@
"standing": {
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"isBattle": false,
"animations": ["q.look('head')", "q.bedrock('servine', 'ground_idle')"],
"animations": ["q.look('head_ai')", "q.bedrock('servine', 'ground_idle')"],
"quirks": ["q.bedrock_quirk('servine', 'blink')"]
},
"walking": {
"poseTypes": ["WALK"],
"animations": ["q.look('head')", "q.bedrock('servine', 'ground_idle')"],
"animations": ["q.look('head_ai')", "q.bedrock('servine', 'ground_idle')"],
"quirks": ["q.bedrock_quirk('servine', 'blink')"]
},
"sleep": {
@@ -8,15 +8,41 @@
"cry": "q.bedrock_stateful('serperior', 'cry')"
},
"poses": {
"water_surface": {
"poseTypes": [
"STAND"
],
"isTouchingWater": true,
"animations": [
"q.look('head')",
"q.bedrock('serperior', 'ground_walk')"
],
"quirks": ["q.bedrock_quirk('serperior', 'blink')"]
},
"standing": {
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"poseTypes": [
"STAND",
"NONE",
"PORTRAIT",
"PROFILE"
],
"isBattle": false,
"animations": ["q.look('head')", "q.bedrock('serperior', 'ground_idle')"],
"animations": [
"q.look('head')",
"q.bedrock('serperior', 'ground_idle')"
],
"quirks": ["q.bedrock_quirk('serperior', 'blink')"]
},
"walking": {
"poseTypes": ["WALK"],
"animations": ["q.look('head')", "q.bedrock('serperior', 'ground_walk')"],
"poseTypes": [
"WALK",
"FLOAT",
"SWIM"
],
"animations": [
"q.look('head')",
"q.bedrock('serperior', 'ground_walk')"
],
"quirks": ["q.bedrock_quirk('serperior', 'blink')"]
},
"sleep": {
@@ -27,7 +27,7 @@
"poseTypes": ["WALK", "SWIM"],
"animations": [
"q.look('head')",
"q.bedrock('braixen', 'ground_walk_old')"
"q.bedrock('braixen', 'ground_walk')"
],
"quirks": ["q.bedrock_quirk('braixen', 'blink')"],
"transformedParts": [
@@ -27,7 +27,7 @@
"poseTypes": ["WALK", "SWIM"],
"animations": [
"q.look('head')",
"q.bedrock('delphox', 'ground_walk_old')"
"q.bedrock('delphox', 'ground_walk')"
],
"quirks": ["q.bedrock_quirk('delphox', 'blink')"],
"transformedParts": [
@@ -9,8 +9,17 @@
"texture": "cobblemon:textures/pokemon/0004_charmander/charmander.png",
"layers": [
{
"name": "glow",
"texture": "cobblemon:textures/pokemon/0004_charmander/charmander_emissive.png",
"name": "flame",
"texture": {
"frames": [
"cobblemon:textures/pokemon/0004_charmander/charmander_flame1.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_flame2.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_flame3.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_flame4.png"
],
"fps": 10,
"loop": true
},
"emissive": true,
"translucent": true
}
@@ -21,8 +30,17 @@
"texture": "cobblemon:textures/pokemon/0004_charmander/charmander_shiny.png",
"layers": [
{
"name": "glow",
"texture": "cobblemon:textures/pokemon/0004_charmander/charmander_shiny_emissive.png",
"name": "flame",
"texture": {
"frames": [
"cobblemon:textures/pokemon/0004_charmander/charmander_shiny_flame1.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_shiny_flame2.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_shiny_flame3.png",
"cobblemon:textures/pokemon/0004_charmander/charmander_shiny_flame4.png"
],
"fps": 10,
"loop": true
},
"emissive": true,
"translucent": true
}
@@ -9,8 +9,17 @@
"texture": "cobblemon:textures/pokemon/0005_charmeleon/charmeleon.png",
"layers": [
{
"name": "glow",
"texture": "cobblemon:textures/pokemon/0005_charmeleon/charmeleon_emissive.png",
"name": "flame",
"texture": {
"frames": [
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_flame1.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_flame2.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_flame3.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_flame4.png"
],
"fps": 10,
"loop": true
},
"emissive": true,
"translucent": true
}
@@ -21,8 +30,17 @@
"texture": "cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny.png",
"layers": [
{
"name": "glow",
"texture": "cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny_emissive.png",
"name": "flame",
"texture": {
"frames": [
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny_flame1.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny_flame2.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny_flame3.png",
"cobblemon:textures/pokemon/0005_charmeleon/charmeleon_shiny_flame4.png"
],
"fps": 10,
"loop": true
},
"emissive": true,
"translucent": true
}
@@ -0,0 +1,17 @@
{
"species": "cobblemon:delibird",
"order": 0,
"variations": [
{
"aspects": [],
"poser": "cobblemon:delibird",
"model": "cobblemon:delibird.geo",
"texture": "cobblemon:textures/pokemon/0225_delibird/delibird.png",
"layers": []
},
{
"aspects": ["shiny"],
"texture": "cobblemon:textures/pokemon/0225_delibird/delibird_shiny.png"
}
]
}
@@ -14,14 +14,14 @@
"model": "cobblemon:whiscash_nero.geo",
"texture": "cobblemon:textures/pokemon/0340_whiscash/whiscash_nero.png"
},
{
"aspects": ["shiny"],
"texture": "cobblemon:textures/pokemon/0340_whiscash/whiscash_shiny.png"
},
{
"aspects": ["whiscash_nero", "shiny"],
"model": "cobblemon:whiscash_nero.geo",
"texture": "cobblemon:textures/pokemon/0340_whiscash/whiscash_nero_shiny.png"
},
{
"aspects": ["shiny"],
"texture": "cobblemon:textures/pokemon/0340_whiscash/whiscash_shiny.png"
}
]
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_bug_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_bug_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_dark_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_dark_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_dragon_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_dragon_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_electric_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_electric_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fairy_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fairy_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fighting_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fighting_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fire_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_fire_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_flying_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_flying_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ghost_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ghost_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_grass_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_grass_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ground_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ground_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ice_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_ice_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_normal_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_normal_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_poison_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_poison_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_psychic_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_psychic_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_rock_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_rock_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_steel_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_steel_budding"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_water_block"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "cobblemon:block/gem_water_budding"
}
}
}
@@ -490,14 +490,14 @@
"block.cobblemon.large_budding_black_tumblestone": "Große Schwarzglanzsteinknospe",
"block.cobblemon.black_tumblestone_cluster": "Schwarzglanzsteinhaufen",
"block.cobblemon.black_tumblestone_block": "Schwarzglanzsteinblock",
"cobblemon.overflow_no_pc": "Deine Party war voll und du hast keinen PC!",
"cobblemon.overflow_no_space": "Deine und %1$s Party war voll!",
"cobblemon.overflow_to_pc": "Deine Party war voll! %1$s wurde zu %2$s hinzugefügt.",
"cobblemon.overflow_no_pc": "Dein Team war voll und du hast keinen PC!",
"cobblemon.overflow_no_space": "Deine und %1$s Team war voll!",
"cobblemon.overflow_to_pc": "Dein Team war voll! %1$s wurde zu %2$s hinzugefügt.",
"cobblemon.your_pc": "Dein PC",
"cobblemon.command.pokespawn.invalid-pokemon": "Ungültiger Pokémon Name",
"cobblemon.command.pokespawn.invalid-move": "Ungültige Attacke",
"cobblemon.command.clearparty.nonethere": "Es sind keine Pokémon in %1$s's Party.",
"cobblemon.command.clearparty.cleared": "%1$s's Party wurde gelöscht.",
"cobblemon.command.clearparty.nonethere": "Es sind keine Pokémon in %1$s's Team.",
"cobblemon.command.clearparty.cleared": "%1$s's Team wurde gelöscht.",
"cobblemon.command.clearpc.cleared": "%1$s's PC wurde gelöscht.",
"cobblemon.command.dialogue.invalid-dialogue": "Invalid dialogue identifier",
"cobblemon.ui.generic.yes": "Ja",
@@ -563,8 +563,8 @@
"cobblemon.ui.interact.trade": "Tauschen",
"cobblemon.ui.interact.battle": "Kämpfen",
"cobblemon.ui.interact.mount.shoulder": "Schulter",
"key.cobblemon.upshiftparty": "Party Auswahl nach oben",
"key.cobblemon.downshiftparty": "Party Auswahl nach unten",
"key.cobblemon.upshiftparty": "Team Auswahl nach oben",
"key.cobblemon.downshiftparty": "Team Auswahl nach unten",
"key.cobblemon.hideparty": "Team-UI Verstecken",
"key.cobblemon.throwpartypokemon": "Pokémon rauswerfen",
"key.cobblemon.pokenavigator": "PokéNav öffnen",
@@ -591,11 +591,11 @@
"cobblemon.subtitle.fossilmachine.unprotected": "Fossil-Restaurator-Schutz deaktiviert",
"cobblemon.subtitle.fossilmachine.assemble": "Fossil-Restaurator erstellt",
"cobblemon.healingmachine.alreadyinuse": "Dieser Heiler wird bereits benutzt!",
"cobblemon.healingmachine.nopokemon": "Kein Pokémon in deiner Party benötigt heilung!",
"cobblemon.healingmachine.nopokemon": "Kein Pokémon in deinem Team benötigt heilung!",
"cobblemon.healingmachine.alreadyhealed": "Deine Pokémon werden schon geheilt!",
"cobblemon.healingmachine.healing": "Deine Pokémon werden geheilt!",
"cobblemon.healingmachine.healed": "Deine Pokemon wurden geheilt!",
"cobblemon.healingmachine.notenoughcharge": "Diese Maschine braucht %s mehr Ladungen zum heilen deiner Party!",
"cobblemon.healingmachine.notenoughcharge": "Diese Maschine braucht %s mehr Ladungen zum heilen deines Teams!",
"cobblemon.healingmachine.inbattle": "Du kannst keine Heilmaschine im Kampf benutzen!",
"cobblemon.healingmachine.alreadyhealing": "Dein Pokémonteam ist bereits in einem anderen Heiler!",
"cobblemon.pc.inbattle": "Du kannst keinen PC im Kampf benutzen!",
@@ -779,7 +779,7 @@
"cobblemon.command.pokemonedit": "%2$s' %1$s editiert.",
"cobblemon.command.teach": "%2$s's %1$s hat %3$s gelernt.",
"cobblemon.command.teach.already_knows": "%1$s kennt %2$s bereits!",
"cobblemon.command.healpokemon.heal": "%1$s's Party wurde komplett geheilt.",
"cobblemon.command.healpokemon.heal": "%1$s's Team wurde komplett geheilt.",
"cobblemon.command.friendship": "%1$s hat %2$s Freundschaftpunkte.",
"cobblemon.command.givepokemon.nospecies": "Fehler: Du musst einen Pokémonnamen oder 'random' angeben",
"cobblemon.command.spawnpokemon.nospecies": "Fehler: Du musst entweder ein Pokémon oder 'random' angeben",
@@ -791,7 +791,7 @@
"cobblemon.command.pokebox.box_is_full": "Box %1$s dieses Spielers ist voll.",
"cobblemon.command.pokebox.storage_is_full": "Der Speicher dieses Spielers ist voll.",
"cobblemon.command.pokebox.last_pokemon": "Der letzte Pokémon dieses Spielers wurde nicht an den PC geschickt.",
"cobblemon.command.pokemonrestart": "%1$s's Party und PC wurden gelöscht.",
"cobblemon.command.pokemonrestart": "%1$s's Team und PC wurden gelöscht.",
"advancements.cobblemon.root": "Die Welt von Cobblemon!",
"advancements.cobblemon.root.description": "Wähle ein Starterpokémon und beginne ein neues Abenteuer",
"advancements.cobblemon.obtain_leftovers": "Reduzieren, Wiederverwenden, Recyceln!",
@@ -875,7 +875,7 @@
"advancements.cobblemon.use_candy": "Süßer Zahn",
"advancements.cobblemon.use_candy.description": "Verwende ein beliebiges EP-Bonbon auf einem Pokémon",
"advancements.cobblemon.own_zangoose_seviper": "Freunde widerwillen",
"advancements.cobblemon.own_zangoose_seviper.description": "Habe gleichzeitig einen Zangoose und Seviper in deiner Party",
"advancements.cobblemon.own_zangoose_seviper.description": "Habe gleichzeitig einen Zangoose und Seviper in deinem Team",
"advancements.cobblemon.obtain_fossil": "Befrage das Fossil",
"advancements.cobblemon.obtain_fossil.description": "Discover a fossil buried in ancient ruins",
"advancements.cobblemon.evolve_gholdengo_netherite": "Bedeck dich mit Schrott",
@@ -1822,7 +1822,7 @@
"cobblemon.ability.neuroforce": "Zerebralmacht",
"cobblemon.ability.neuroforce.desc": "Erhöht die Stärke von sehr effektiven Attacken.",
"cobblemon.ability.neutralizinggas": "Reaktionsgas",
"cobblemon.ability.neutralizinggas.desc": "Solange ein Pokémon mit der Fähigkeit Reaktionsgas am Kampf beteiligt ist, werden die Fähigkeiten aller anderen Pokémon unterdrückt oder aufgehoben.",
"cobblemon.ability.neutralizinggas.desc": "Solange das Pokémon am Kampf beteiligt ist, werden die Fähigkeiten aller anderen Pokémon unterdrückt oder aufgehoben.",
"cobblemon.ability.noguard": "Schildlos",
"cobblemon.ability.noguard.desc": "Alle Attacken des oder auf das Pokémon gelingen aufgrund seiner deckungslosen Kampftaktik.",
"cobblemon.ability.normalize": "Regulierung",
@@ -6225,5 +6225,13 @@
"cobblemon.ui.pokedex.info.form.bluestriped": "Blau gestreift",
"cobblemon.ui.pokedex.info.form.vivillon-wings-archipelago": "Archipel",
"cobblemon.ui.pokedex.info.form.vivillon-wings-continental": "Kontinental",
"cobblemon.ui.pokedex.info.form.whitestriped": "Weiß gestreift"
"cobblemon.ui.pokedex.info.form.whitestriped": "Weiß gestreift",
"cobblemon.ui.pokedex.info.form.shulker": "Shulker",
"cobblemon.ui.pokedex.info.form.zen_mode": "Trance-Modus",
"cobblemon.subtitle.pokemon.shiny_ambient": "Wildes Schillerndes Pokémon glitzert!",
"cobblemon.battle.error.no_party": "%1$s hat kein Pokémon Team verfügbar.",
"cobblemon.ability.embodyaspectcornerstone": "Erinnerungskraft - Fundamentmaske",
"cobblemon.ability.embodyaspecthearthflame": "Erinnerungskraft - Ofenmaske",
"cobblemon.ability.embodyaspectteal": "Erinnerungskraft - Türkisgrüne Maske",
"cobblemon.ability.embodyaspectwellspring": "Erinnerungskraft - Brunnenmaske"
}
@@ -2005,6 +2005,7 @@
"cobblemon.battle.end.illusion": "%1$s's illusion wore off!",
"cobblemon.battle.end.neutralizinggas": "The effects of the neutralizing gas wore off!",
"cobblemon.battle.end.stockpile": "%1$s's stockpiled effect wore off!",
"cobblemon.battle.end.infestation": "%1$s was freed from Infestation!",
"cobblemon.battle.block.sweetveil": "%1$s can't fall asleep due to a veil of sweetness!",
"cobblemon.battle.block.uproar": "But the uproar kept %1$s awake!",
@@ -2141,9 +2142,15 @@
"cobblemon.battle.terastallize": "%1$s has Terastallized into the %2$s-type!",
"cobblemon.battle.detailschange.mega": "%1$s is reacting to the Key Stone!",
"cobblemon.battle.detailschange.noice": "%1$s transformed!",
"cobblemon.battle.detailschange.eiscue": "%1$s transformed!",
"cobblemon.battle.formechange.default.permanent": "%1$s transformed into its %2$s form!",
"cobblemon.battle.formechange.default.temporary": "%1$s changed to its %2$s form!",
"cobblemon.battle.formechange.default.temporary.ended": "%1$s changed to its base form.",
"cobblemon.battle.formechange.mega": "%1$s is reacting to the Key Stone!",
"cobblemon.battle.formechange.ash": "%1$s became Ash-Greninja!",
"cobblemon.battle.formechange.school": "%1$s formed a school!",
"cobblemon.battle.formechange.wishiwashi": "%1$s stopped schooling!",
"cobblemon.battle.formechange.meteor": "%1$s shielded itself.",
"cobblemon.battle.formechange.minior": "%1$s stopped shielding itself.",
"cobblemon.battle.mega": "%1$s has Mega Evolved!",
@@ -6770,7 +6777,7 @@
"cobblemon.ability.schooling": "Schooling",
"cobblemon.ability.schooling.desc": "When it has a lot of HP, the Pokémon forms a powerful school. It stops schooling when its HP is low.",
"cobblemon.ability.scrappy": "Scrappy",
"cobblemon.ability.scrappy.desc": "The Pokémon can hit Ghost-type Pokémon with Normal- and Fighting-type moves.",
"cobblemon.ability.scrappy.desc": "The Pokémon can hit Ghost-type Pokémon with Normal- and Fighting-type moves. It also grants immunity to Intimidate.",
"cobblemon.ability.screencleaner": "Screen Cleaner",
"cobblemon.ability.screencleaner.desc": "When the Pokémon enters a battle, the effects of Light Screen, Reflect, and Aurora Veil are nullified for both opposing and ally Pokémon.",
"cobblemon.ability.seedsower": "Seed Sower",
Loaded 100 of 809 files, more files were not shown because too many files have changed in this diff. Show more