Compare commits

...
Author SHA1 Message Date
Landon Wills 96a9eeb7d3 Things and stuff 2025-11-20 05:51:59 -05:00
Landon Wills 273b520c0b Shave iterations off of node type checks 2025-11-20 02:13:27 -05:00
JazzMcNade bf6fab3936 Only check for nearby danger nodes if the hitbox is small 2025-11-19 23:18:11 -06:00
Paul 58c6ea0269 Following the owner should not be so aggressive. Path cooldown, and consider hitbox when deciding if it needs to start walking closer 2025-11-19 19:16:42 +10:00
Paul 034bd2eec6 Only use strict walking pathing when the hitbox is small 2025-11-19 19:16:02 +10:00
Polymeta a24be04d68 Merge branch 'ihatebugtypes1.7' into 'main'
sacrificing Bugsy for the sake of the release

Closes #1771 and #1768

See merge request cable-mc/cobblemon!2000
2025-11-19 07:32:27 +00:00
Segfault Guy 0d878d57b7 Merge remote-tracking branch 'origin/main' into ihatebugtypes1.7 2025-11-19 00:55:42 -05:00
Paul 08880e2294 Fixed instance of check for diagonal validation on non pokemon 2025-11-19 12:52:20 +10:00
Paul 1c45654930 Update the changed-default root variables on 1.7 installation 2025-11-19 12:33:36 +10:00
Hiroku dae3acb5a0 Merge branch 'i-dont-know-what-to-call-this-branch' into 'main'
Small fixes

See merge request cable-mc/cobblemon!2007
2025-11-19 02:30:20 +00:00
Hiroku 7bb6f8a12e Merge branch 'damage-formula' into 'main'
Add attack to damage formula

See merge request cable-mc/cobblemon!2011
2025-11-19 02:18:25 +00:00
lion b25f3ca3f6 Add attack to damage formula 2025-11-19 02:18:25 +00:00
Hiroku 610b762188 Merge branch 'nut-rition' into 'main'
Food Tweaks

See merge request cable-mc/cobblemon!2010
2025-11-19 02:00:41 +00:00
Hiroku c4c954c898 Merge branch 'Meta&Jet-fixes' into 'main'
Metagross fix and Jet handling tweak.

See merge request cable-mc/cobblemon!2009
2025-11-19 01:49:19 +00:00
Segfault Guy 10b70a0e3f Merge remote-tracking branch 'origin/main' into ihatebugtypes1.7 2025-11-18 20:20:46 -05:00
Segfault Guy af437f9d3e Merge branch 'ihatebugtypes1.7' of https://gitlab.com/cable-mc/cobblemon into ihatebugtypes1.7 2025-11-18 20:14:21 -05:00
Segfault Guy ca5a96e979 Fix berry chomp sfx not playing for unrestricted berries when full. 2025-11-18 20:11:02 -05:00
dhi_holo a2936ebcff Berry Reorganisation
Reordered berries as Vera requested
2025-11-19 11:10:15 +10:00
Carmendar 81e5d830c6 Metagross walks once more & Jet handling expression tweak. 2025-11-18 18:38:02 -06:00
dhi_holo 4b09714ed5 Merge branch 'main' into nut-rition 2025-11-19 10:27:33 +10:00
Polymeta fa4a4c7e51 Merge branch 'farming-simulator-2025' into 'main'
Allow villagers to plant hearty rice

See merge request cable-mc/cobblemon!2008
2025-11-19 00:25:29 +00:00
dhi_holo 493b8bbecf Seasoning Tweaks
values are now what they should be, hopefully
2025-11-19 10:23:56 +10:00
Guilherme Pereira 9b519daff1 allow villagers to plant hearty rice 2025-11-18 21:02:10 -03:00
Guilherme Pereira a5ba3e7084 buff roots 2025-11-18 19:23:38 -03:00
Guilherme Pereira 6d2d146543 sync combat behaviour 2025-11-18 19:17:13 -03:00
Landon 22d93cb92c Merge branch 'navigator-performance' into 'main'
Performance optimizations for pathfinding

See merge request cable-mc/cobblemon!2006
2025-11-18 18:41:03 +00:00
Paul 5281dbd81c Performance optimizations for pathfinding 2025-11-19 03:02:52 +10:00
Segfault Guy 8b863070fe addressing MR comments 2025-11-18 11:20:07 -05:00
Paul da1064772d Fixed rattata cry crash 2025-11-19 01:59:00 +10:00
Landon 8ca1957a60 Merge branch 'ai-scrape' into 'main'
Scraped AI and Behaviors

See merge request cable-mc/cobblemon!1994
2025-11-18 12:51:11 +00:00
lion cbab2b7e5c Scraped AI and Behaviors 2025-11-18 12:51:10 +00:00
Landon c47bd604d5 Merge branch 'wrong-land-shark' into 'main'
Prevent sharpedo from trying to swim on land

See merge request cable-mc/cobblemon!2003
2025-11-18 12:21:59 +00:00
Polymeta 63776ca7a0 added missing food colours and remove debug annotation
Signed-off-by: Polymeta <40173118+Polymeta@users.noreply.github.com>
2025-11-18 11:56:32 +00:00
Polymeta c66c7170f6 Merge branch 'juice-tweaks' into 'main'
Fixed apricorn stat changes only applying when points are already assigned to that stat, adjusted flavour floor

See merge request cable-mc/cobblemon!2004
2025-11-18 10:00:03 +00:00
Paul fb0bfb2d19 Merge remote-tracking branch 'origin/main' 2025-11-18 19:42:15 +10:00
Landon 0d87de157a Merge branch 'implement_pokemon' into 'main'
Implemplemenation

See merge request cable-mc/cobblemon!2002
2025-11-18 09:35:33 +00:00
Paul 4189da0cc7 Merge remote-tracking branch 'origin/main' 2025-11-18 19:33:17 +10:00
Paul 662ccdc268 Removed unrefined sinister tea seasonings 2025-11-18 19:29:54 +10:00
Hiroku 6779995680 Merge branch 'evo_particles_fix' into 'main'
Claire Obscure Particles: Expedition 33

See merge request cable-mc/cobblemon!1997
2025-11-18 09:26:28 +00:00
Landon c4b6cc7c00 Merge branch 'slowpoke-dex-fix' into 'main'
Fixed some dex display issues and fixed slowpoke appearance in dex

See merge request cable-mc/cobblemon!2001
2025-11-18 09:24:09 +00:00
Paul 07ef404518 Fixed apricorn stat changes only applying when points are already assigned to that stat, adjusted flavour floor 2025-11-18 19:13:04 +10:00
Landon Wills 4c8a8351ac Prevent sharpedo from trying to swim on land 2025-11-18 04:06:57 -05:00
Carmendar 17f5ed03d0 poser/species tweaks. 2025-11-18 02:46:11 -06:00
Paul a3d3c987bc Fixed some dex display issues and fixed slowpoke appearance in dex 2025-11-18 18:34:46 +10:00
Carmendar 6db0567f03 Merge branch 'main' into implement_pokemon 2025-11-18 02:02:32 -06:00
Segfault Guy 3e89499588 Fix SocketShowdownService and custom showdown data registration. 2025-11-18 02:09:39 -05:00
Segfault Guy 7982034964 Fix missing optional ability activation langs. 2025-11-18 02:02:19 -05:00
Segfault Guy 4a1e0020f7 remove redundant bag item 2025-11-18 01:10:12 -05:00
Segfault Guy 3c1486e45b Implement volatile status curing berries and patch fullness conflict with restoration berries. 2025-11-18 00:36:11 -05:00
dhi_holo c49eed3aaf Initial value tweaks 2025-11-18 14:59:28 +10:00
Tyzillion 1d158ae12c Evolution obscure particles fixed. 2025-11-17 23:10:58 -05:00
Guilherme Pereira d20673d9bf fix pokemon not being able to enter boats 2025-11-17 21:32:30 -03:00
FrankTheFarmer 4634dc7539 Fixed both stunfisks using portrait pose when in water 2025-11-18 09:56:52 +10:00
FrankTheFarmer c2db648d25 Tweaked Rayqwayqway's poser 2025-11-18 08:59:33 +10:00
FrankTheFarmer 76f1ace6b7 Fixed scovillain's cry interpolation 2025-11-18 08:51:15 +10:00
violet 4aa1b804bc Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2025-11-17 17:25:32 -05:00
violet 233d27413d poser tweaks to tynamo, ribombee, and cutiefly 2025-11-17 17:25:24 -05:00
FrankTheFarmer 05621ccb51 Merge branch 'main' into implement_pokemon 2025-11-18 08:13:24 +10:00
FrankTheFarmer 8e7a2a0356 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2025-11-17 19:29:51 +10:00
FrankTheFarmer 7657cf4f73 Fixed Dragapult spinning rapidly after every physical attack 2025-11-17 19:28:59 +10:00
Carmendar a559737106 Merge branch 'main' into implement_pokemon 2025-11-16 23:27:00 -06:00
FrankTheFarmer 8dd62269ed Updated delphox animations 2025-11-17 08:03:29 +10:00
FrankTheFarmer 77490783e4 Swampert model tweak to fix its look animation 2025-11-16 15:51:10 +10:00
FrankTheFarmer ed28c70c5a Tweaked Meganium's profile data to look better in the dex 2025-11-16 15:50:40 +10:00
FrankTheFarmer 3f71584a6e Clamped Shelmet's look range to stop clipping with the shell. 2025-11-16 14:55:31 +10:00
FrankTheFarmer 4f09e56510 Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2025-11-16 14:54:36 +10:00
FrankTheFarmer b534183a50 Clamped Sandaconda's look range and stopped it from using the donut to look 2025-11-16 14:54:27 +10:00
Carmendar 56ea6c7161 Merge branch 'main' into implement_pokemon 2025-11-15 22:48:16 -06:00
FrankTheFarmer 976c94cb6b Puppy and Icecream changelog 2025-11-16 12:48:28 +10:00
FrankTheFarmer 422154e4c7 Tweaked Eevee's shoulder positioning 2025-11-16 12:46:38 +10:00
FrankTheFarmer 71fabbd245 Added placeholder shoulder animations to Alcremie 2025-11-16 11:45:07 +10:00
Carmendar fa0f29b085 Merge branch 'main' into implement_pokemon 2025-11-15 18:57:34 -06:00
FrankTheFarmer 12de6750de Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon 2025-11-16 10:19:01 +10:00
FrankTheFarmer 4e1b9785a0 Stupid fish assets updated 🔵🔴⚪ 2025-11-16 10:18:53 +10:00
RedGenesectNinja 2f2de32493 Implemented the updated textures for Slowpoke and Galarian Slowpoke 2025-11-15 18:09:39 -06:00
FrankTheFarmer a38b68ce23 Added translucent culling to flygon's resolver to fix goggle z fighting 2025-11-16 09:49:09 +10:00
FrankTheFarmer 7d605f8bf9 Updated flygon's animation to fix the static legs in the ground idle 2025-11-16 09:48:46 +10:00
FrankTheFarmer 75134f41e3 Fixed flygon's look animation to use the proper head_ai bone 2025-11-16 09:48:20 +10:00
Segfault Guy d1a99608a5 Fix SwapInstruction not updating party positions. 2025-11-11 22:10:50 -05:00
433 changed files with 3336 additions and 2324 deletions

No files matched your search

+3
View File
@@ -530,6 +530,7 @@
- Updated Evolution Stone Block light levels
- Added light levels to Evolution Stone Ores. These levels are reduced versions of the full blocks light levels
- Added a steps counter to the summary screen for Pokémon that require walking a certain number of steps to evolve.
- Reordered berries in the creative tab
### Fixes
- Fixed game crashing when removing national pokedex using datapacks
@@ -620,10 +621,12 @@
- The Corphish line will now sink in water.
- Fixed the "use all berry bait" achievement not being progressed
- Fixed bobber hook and berry sprouts texture sizes causing mipmap issues.
- Fixed Ally Switch not updating party positions.
- Fixed head locator not taking into account scale for positioning.
- Fixed Pokémon step counts not being saved when recalling them to a Pokéball or reentering the world.
- Fixed NPC pokémon not being linked to their NPC, which previously caused NPC pokémon to be catchable.
- Fixed an uncommon error caused by scanning a pokémon on a player's shoulder.
- Fixed Alcremie and Eevee clipping into the player head when shoulder mounted
- Fixed a case where spawning could fail and log warnings when nothing wrong was happening.
### Developer
@@ -11,23 +11,19 @@ package com.cobblemon.mod.common.mixin;
import com.cobblemon.mod.common.block.HeartyGrainsBlock;
import com.llamalad7.mixinextras.sugar.Local;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.WorldGenLevel;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.DoublePlantBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.DoubleBlockHalf;
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.SimpleBlockFeature;
import net.minecraft.world.level.levelgen.feature.configurations.SimpleBlockConfiguration;
import org.spongepowered.asm.mixin.Debug;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(SimpleBlockFeature.class)
@Debug(export = true, print = true)
public class SimpleBlockFeatureMixin {
//this mixin inserts the logic needed to ensure that when hearty grains are of a certain age, they place with the upper block too
//similarly to what the doubleblock logic is here
@@ -35,7 +35,6 @@ import com.cobblemon.mod.common.item.berry.HealingBerryItem
import com.cobblemon.mod.common.item.berry.PPRestoringBerryItem
import com.cobblemon.mod.common.item.berry.PortionHealingBerryItem
import com.cobblemon.mod.common.item.berry.StatusCuringBerryItem
import com.cobblemon.mod.common.item.berry.VolatileCuringBerryItem
import com.cobblemon.mod.common.item.interactive.PonigiriItem
import com.cobblemon.mod.common.item.food.SinisterTeaItem
import com.cobblemon.mod.common.item.interactive.*
@@ -393,23 +392,23 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
val TASTY_TAIL = create("tasty_tail", foodItem(3, 0.3f))
@JvmField
val PEWTER_CRUNCHIES = regionalFoodItem("pewter_crunchies", 64, 7, 0.343f, false)
val PEWTER_CRUNCHIES = regionalFoodItem("pewter_crunchies", 64, 7, 0.3f, false)
@JvmField
val RAGE_CANDY_BAR = regionalFoodItem("rage_candy_bar", 64, 8, 0.2f, false)
@JvmField
val LAVA_COOKIE = regionalFoodItem("lava_cookie", 64, 2, 0.3f, false)
@JvmField
val OLD_GATEAU = regionalFoodItem("old_gateau", 64, 9, 0.1335f, false)
val OLD_GATEAU = regionalFoodItem("old_gateau", 64, 9, 0.1f, false)
@JvmField
val CASTELIACONE = regionalFoodItem("casteliacone", 64, 5, 0.28f, false)
val CASTELIACONE = regionalFoodItem("casteliacone", 64, 5, 0.3f, false)
@JvmField
val LUMIOSE_GALETTE = regionalFoodItem("lumiose_galette", 64, 4, 0.4f, false)
@JvmField
val BIG_MALASADA = regionalFoodItem("big_malasada", 64, 7, 0.343f, false)
val BIG_MALASADA = regionalFoodItem("big_malasada", 64, 7, 0.3f, false)
@JvmField
val SMOKED_TAIL_CURRY = regionalFoodItem("smoked_tail_curry", 64, 10, 0.6f, false, ItemStack(Items.BOWL, 1))
@JvmField
val JUBILIFE_MUFFIN = regionalFoodItem("jubilife_muffin", 64, 8, 0.2f, false)
val JUBILIFE_MUFFIN = regionalFoodItem("jubilife_muffin", 64, 7, 0.3f, false)
@JvmField
val OPEN_FACED_SANDWICH = regionalFoodItem("open_faced_sandwich", 64, 13, 0.5f, false)
@@ -431,7 +430,7 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
val CANDIED_APPLE = create("candied_apple", CobblemonItem(Properties().stacksTo(64)
.food(FoodProperties.Builder()
.nutrition(6)
.saturationModifier(0.2335F)
.saturationModifier(0.2F)
.usingConvertsTo(Items.STICK)
.build())))
@JvmField
@@ -510,19 +509,43 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
private val berries = mutableMapOf<ResourceLocation, BerryItem>()
// Plants
@JvmField val ORAN_BERRY = berryItem("oran", HealingBerryItem(CobblemonBlocks.ORAN_BERRY) { CobblemonMechanics.berries.oranRestoreAmount })
@JvmField val CHERI_BERRY = berryItem("cheri", StatusCuringBerryItem(CobblemonBlocks.CHERI_BERRY, Statuses.PARALYSIS))
@JvmField val CHESTO_BERRY = berryItem("chesto", StatusCuringBerryItem(CobblemonBlocks.CHESTO_BERRY, Statuses.SLEEP))
@JvmField val PECHA_BERRY = berryItem("pecha", StatusCuringBerryItem(CobblemonBlocks.PECHA_BERRY, Statuses.POISON, Statuses.POISON_BADLY))
@JvmField val RAWST_BERRY = berryItem("rawst", StatusCuringBerryItem(CobblemonBlocks.RAWST_BERRY, Statuses.BURN))
@JvmField val ASPEAR_BERRY = berryItem("aspear", StatusCuringBerryItem(CobblemonBlocks.ASPEAR_BERRY, Statuses.FROZEN))
@JvmField val PERSIM_BERRY = berryItem("persim", VolatileCuringBerryItem(CobblemonBlocks.PERSIM_BERRY, "confusion"))
@JvmField val EGGANT_BERRY = berryItem("eggant", VolatileCuringBerryItem(CobblemonBlocks.EGGANT_BERRY, "attract"))
@JvmField val LEPPA_BERRY = berryItem("leppa", PPRestoringBerryItem(CobblemonBlocks.LEPPA_BERRY) { CobblemonMechanics.berries.ppRestoreAmount })
@JvmField val ORAN_BERRY = berryItem("oran", HealingBerryItem(CobblemonBlocks.ORAN_BERRY) { CobblemonMechanics.berries.oranRestoreAmount })
@JvmField val PERSIM_BERRY = berryItem("persim", StatusCuringBerryItem(CobblemonBlocks.PERSIM_BERRY, Statuses.CONFUSE))
@JvmField val LUM_BERRY = berryItem("lum", StatusCuringBerryItem(CobblemonBlocks.LUM_BERRY, *(Statuses.getPersistentStatuses().toTypedArray() + Statuses.CONFUSE)))
@JvmField val SITRUS_BERRY = berryItem("sitrus", HealingBerryItem(CobblemonBlocks.SITRUS_BERRY) { CobblemonMechanics.berries.sitrusHealAmount })
@JvmField val EGGANT_BERRY = berryItem("eggant", StatusCuringBerryItem(CobblemonBlocks.EGGANT_BERRY, Statuses.ATTRACT))
@JvmField val FIGY_BERRY = berryItem("figy", PortionHealingBerryItem(CobblemonBlocks.FIGY_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val WIKI_BERRY = berryItem("wiki", PortionHealingBerryItem(CobblemonBlocks.WIKI_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val MAGO_BERRY = berryItem("mago", PortionHealingBerryItem(CobblemonBlocks.MAGO_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val AGUAV_BERRY = berryItem("aguav", PortionHealingBerryItem(CobblemonBlocks.AGUAV_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val IAPAPA_BERRY = berryItem("iapapa", PortionHealingBerryItem(CobblemonBlocks.IAPAPA_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val RAZZ_BERRY = berryItem("razz", CobblemonBlocks.RAZZ_BERRY)
@JvmField val BLUK_BERRY = berryItem("bluk", CobblemonBlocks.BLUK_BERRY)
@JvmField val NANAB_BERRY = berryItem("nanab", CobblemonBlocks.NANAB_BERRY)
@JvmField val WEPEAR_BERRY = berryItem("wepear", CobblemonBlocks.WEPEAR_BERRY)
@JvmField val PINAP_BERRY = berryItem("pinap", CobblemonBlocks.PINAP_BERRY)
@JvmField val POMEG_BERRY = berryItem("pomeg", FriendshipRaisingBerryItem(CobblemonBlocks.POMEG_BERRY, Stats.HP))
@JvmField val KELPSY_BERRY = berryItem("kelpsy", FriendshipRaisingBerryItem(CobblemonBlocks.KELPSY_BERRY, Stats.ATTACK))
@JvmField val QUALOT_BERRY = berryItem("qualot", FriendshipRaisingBerryItem(CobblemonBlocks.QUALOT_BERRY, Stats.DEFENCE))
@JvmField val HONDEW_BERRY = berryItem("hondew", FriendshipRaisingBerryItem(CobblemonBlocks.HONDEW_BERRY, Stats.SPECIAL_ATTACK))
@JvmField val GREPA_BERRY = berryItem("grepa", FriendshipRaisingBerryItem(CobblemonBlocks.GREPA_BERRY, Stats.SPECIAL_DEFENCE))
@JvmField val TAMATO_BERRY = berryItem("tamato", FriendshipRaisingBerryItem(CobblemonBlocks.TAMATO_BERRY, Stats.SPEED))
@JvmField val TOUGA_BERRY = berryItem("touga", CobblemonBlocks.TOUGA_BERRY)
@JvmField val CORNN_BERRY = berryItem("cornn", CobblemonBlocks.CORNN_BERRY)
@JvmField val MAGOST_BERRY = berryItem("magost", CobblemonBlocks.MAGOST_BERRY)
@JvmField val RABUTA_BERRY = berryItem("rabuta", CobblemonBlocks.RABUTA_BERRY)
@JvmField val NOMEL_BERRY = berryItem("nomel", CobblemonBlocks.NOMEL_BERRY)
@JvmField val SPELON_BERRY = berryItem("spelon", CobblemonBlocks.SPELON_BERRY)
@JvmField val PAMTRE_BERRY = berryItem("pamtre", CobblemonBlocks.PAMTRE_BERRY)
@JvmField val WATMEL_BERRY = berryItem("watmel", CobblemonBlocks.WATMEL_BERRY)
@JvmField val DURIN_BERRY = berryItem("durin", CobblemonBlocks.DURIN_BERRY)
@JvmField val BELUE_BERRY = berryItem("belue", CobblemonBlocks.BELUE_BERRY)
@JvmField val OCCA_BERRY = berryItem("occa", CobblemonBlocks.OCCA_BERRY)
@JvmField val PASSHO_BERRY = berryItem("passho", CobblemonBlocks.PASSHO_BERRY)
@JvmField val WACAN_BERRY = berryItem("wacan", CobblemonBlocks.WACAN_BERRY)
@@ -540,35 +563,6 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
@JvmField val COLBUR_BERRY = berryItem("colbur", CobblemonBlocks.COLBUR_BERRY)
@JvmField val BABIRI_BERRY = berryItem("babiri", CobblemonBlocks.BABIRI_BERRY)
@JvmField val CHILAN_BERRY = berryItem("chilan", CobblemonBlocks.CHILAN_BERRY)
@JvmField val ROSELI_BERRY = berryItem("roseli", CobblemonBlocks.ROSELI_BERRY)
@JvmField val LEPPA_BERRY = berryItem("leppa", PPRestoringBerryItem(CobblemonBlocks.LEPPA_BERRY) { CobblemonMechanics.berries.ppRestoreAmount })
@JvmField val LUM_BERRY = berryItem("lum", StatusCuringBerryItem(CobblemonBlocks.LUM_BERRY))
@JvmField val FIGY_BERRY = berryItem("figy", PortionHealingBerryItem(CobblemonBlocks.FIGY_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val WIKI_BERRY = berryItem("wiki", PortionHealingBerryItem(CobblemonBlocks.WIKI_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val MAGO_BERRY = berryItem("mago", PortionHealingBerryItem(CobblemonBlocks.MAGO_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val AGUAV_BERRY = berryItem("aguav", PortionHealingBerryItem(CobblemonBlocks.AGUAV_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val IAPAPA_BERRY = berryItem("iapapa", PortionHealingBerryItem(CobblemonBlocks.IAPAPA_BERRY, true) { CobblemonMechanics.berries.portionHealRatio })
@JvmField val SITRUS_BERRY = berryItem("sitrus", HealingBerryItem(CobblemonBlocks.SITRUS_BERRY) { CobblemonMechanics.berries.sitrusHealAmount })
@JvmField val TOUGA_BERRY = berryItem("touga", CobblemonBlocks.TOUGA_BERRY)
@JvmField val CORNN_BERRY = berryItem("cornn", CobblemonBlocks.CORNN_BERRY)
@JvmField val MAGOST_BERRY = berryItem("magost", CobblemonBlocks.MAGOST_BERRY)
@JvmField val RABUTA_BERRY = berryItem("rabuta", CobblemonBlocks.RABUTA_BERRY)
@JvmField val NOMEL_BERRY = berryItem("nomel", CobblemonBlocks.NOMEL_BERRY)
@JvmField val ENIGMA_BERRY = berryItem("enigma", CobblemonBlocks.ENIGMA_BERRY)
@JvmField val POMEG_BERRY = berryItem("pomeg", FriendshipRaisingBerryItem(CobblemonBlocks.POMEG_BERRY, Stats.HP))
@JvmField val KELPSY_BERRY = berryItem("kelpsy", FriendshipRaisingBerryItem(CobblemonBlocks.KELPSY_BERRY, Stats.ATTACK))
@JvmField val QUALOT_BERRY = berryItem("qualot", FriendshipRaisingBerryItem(CobblemonBlocks.QUALOT_BERRY, Stats.DEFENCE))
@JvmField val HONDEW_BERRY = berryItem("hondew", FriendshipRaisingBerryItem(CobblemonBlocks.HONDEW_BERRY, Stats.SPECIAL_ATTACK))
@JvmField val GREPA_BERRY = berryItem("grepa", FriendshipRaisingBerryItem(CobblemonBlocks.GREPA_BERRY, Stats.SPECIAL_DEFENCE))
@JvmField val TAMATO_BERRY = berryItem("tamato", FriendshipRaisingBerryItem(CobblemonBlocks.TAMATO_BERRY, Stats.SPEED))
@JvmField val SPELON_BERRY = berryItem("spelon", CobblemonBlocks.SPELON_BERRY)
@JvmField val PAMTRE_BERRY = berryItem("pamtre", CobblemonBlocks.PAMTRE_BERRY)
@JvmField val WATMEL_BERRY = berryItem("watmel", CobblemonBlocks.WATMEL_BERRY)
@JvmField val DURIN_BERRY = berryItem("durin", CobblemonBlocks.DURIN_BERRY)
@JvmField val BELUE_BERRY = berryItem("belue", CobblemonBlocks.BELUE_BERRY)
@JvmField val KEE_BERRY = berryItem("kee", CobblemonBlocks.KEE_BERRY)
@JvmField val MARANGA_BERRY = berryItem("maranga", CobblemonBlocks.MARANGA_BERRY)
@JvmField val HOPO_BERRY = berryItem("hopo", PPRestoringBerryItem(CobblemonBlocks.HOPO_BERRY) { CobblemonMechanics.berries.ppRestoreAmount })
@JvmField val LIECHI_BERRY = berryItem("liechi", CobblemonBlocks.LIECHI_BERRY)
@JvmField val GANLON_BERRY = berryItem("ganlon", CobblemonBlocks.GANLON_BERRY)
@JvmField val SALAC_BERRY = berryItem("salac", CobblemonBlocks.SALAC_BERRY)
@@ -576,10 +570,15 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
@JvmField val APICOT_BERRY = berryItem("apicot", CobblemonBlocks.APICOT_BERRY)
@JvmField val LANSAT_BERRY = berryItem("lansat", CobblemonBlocks.LANSAT_BERRY)
@JvmField val STARF_BERRY = berryItem("starf", CobblemonBlocks.STARF_BERRY)
@JvmField val ENIGMA_BERRY = berryItem("enigma", CobblemonBlocks.ENIGMA_BERRY)
@JvmField val MICLE_BERRY = berryItem("micle", CobblemonBlocks.MICLE_BERRY)
@JvmField val CUSTAP_BERRY = berryItem("custap", CobblemonBlocks.CUSTAP_BERRY)
@JvmField val JABOCA_BERRY = berryItem("jaboca", CobblemonBlocks.JABOCA_BERRY)
@JvmField val ROWAP_BERRY = berryItem("rowap", CobblemonBlocks.ROWAP_BERRY)
@JvmField val ROSELI_BERRY = berryItem("roseli", CobblemonBlocks.ROSELI_BERRY)
@JvmField val KEE_BERRY = berryItem("kee", CobblemonBlocks.KEE_BERRY)
@JvmField val MARANGA_BERRY = berryItem("maranga", CobblemonBlocks.MARANGA_BERRY)
@JvmField val HOPO_BERRY = berryItem("hopo", PPRestoringBerryItem(CobblemonBlocks.HOPO_BERRY) { CobblemonMechanics.berries.ppRestoreAmount })
@JvmField val BERRY_JUICE = this.create("berry_juice", BerryJuiceItem())
@@ -70,15 +70,7 @@ class CobblemonWanderControl(
.addFunction("set_allow_air") { params -> allowAir = params.getBooleanOrNull(0) ?: false }
.addFunction("set_path_cooldown_ticks") { params -> pathCooldownTicks = params.getDoubleOrNull(0)?.toInt() ?: (20 * 5) }
.addFunction("set_wander_speed") { params -> wanderSpeed = params.getDoubleOrNull(0)?.toFloat() ?: 0.35F }
.addFunction("reset") {
center = null
allowLand = false
allowWater = false
allowAir = false
pathCooldownTicks = 20 * 5
wanderSpeed = 0.35F
maxAttempts = 4
}
.addFunction("reset") { reset() }
fun isSuitable(position: BlockPos): Boolean {
val center = center ?: return true
@@ -87,5 +79,15 @@ class CobblemonWanderControl(
val suitable = distance >= center.minRange && distance <= center.maxRange
return suitable
}
fun reset() {
center = null
allowLand = false
allowWater = false
allowAir = false
pathCooldownTicks = 20 * 5
wanderSpeed = 0.35F
maxAttempts = 4
}
}
@@ -0,0 +1,60 @@
/*
* 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.api.ai.config.task
import com.cobblemon.mod.common.CobblemonMemories
import com.cobblemon.mod.common.api.ai.BehaviourConfigurationContext
import com.cobblemon.mod.common.api.ai.CobblemonWanderControl
import com.cobblemon.mod.common.api.npc.configuration.MoLangConfigVariable
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.util.getMemorySafely
import net.minecraft.server.level.ServerLevel
import net.minecraft.world.entity.LivingEntity
import net.minecraft.world.entity.ai.behavior.BehaviorControl
import net.minecraft.world.entity.ai.behavior.OneShot
/**
* Runs at priority zero to do the basics of setting up the wander control for any later wander
* tasks to reference.
*
* @author Hiroku
* @since November 19th, 2025
*/
class PokemonWanderControlTaskConfig : SingleTaskConfig {
override fun getVariables(entity: LivingEntity, behaviourConfigurationContext: BehaviourConfigurationContext) = emptyList<MoLangConfigVariable>()
override fun createTask(
entity: LivingEntity,
behaviourConfigurationContext: BehaviourConfigurationContext
): BehaviorControl<in LivingEntity> {
behaviourConfigurationContext.addMemories(CobblemonMemories.WANDER_CONTROL)
return object : OneShot<LivingEntity>() {
override fun trigger(serverLevel: ServerLevel, livingEntity: LivingEntity, l: Long): Boolean {
if (entity !is PokemonEntity) {
return false
}
val wanderControl = entity.brain.getMemorySafely(CobblemonMemories.WANDER_CONTROL).orElse(null)
?: CobblemonWanderControl()
wanderControl.reset()
wanderControl.allowLand = (entity.behaviour.moving.walk.canWalk && !entity.behaviour.moving.walk.avoidsLand) || entity.behaviour.moving.fly.canFly
wanderControl.allowWater = entity.behaviour.moving.swim.canSwimInWater && !entity.behaviour.moving.swim.avoidsWater
wanderControl.allowAir = entity.behaviour.moving.fly.canFly && !entity.behaviour.moving.walk.canWalk
wanderControl.wanderSpeed = 0.35F
entity.brain.setMemory(CobblemonMemories.WANDER_CONTROL, wanderControl)
return true
}
}
}
}
@@ -63,6 +63,7 @@ interface TaskConfig {
cobblemonResource("switch_pokemon_from_battle") to SwitchFromPokemonBattleTaskConfig::class.java,
cobblemonResource("go_to_healing_machine") to GoToHealingMachineTaskConfig::class.java,
cobblemonResource("heal_using_healing_machine") to HealUsingHealingMachineTaskConfig::class.java,
cobblemonResource("pokemon_wander_control") to PokemonWanderControlTaskConfig::class.java,
cobblemonResource("all_of") to AllOfTaskConfig::class.java,
cobblemonResource("attack_angry_at") to AttackAngryAtTaskConfig::class.java,
cobblemonResource("move_to_attack_target") to MoveToAttackTargetTaskConfig::class.java,
@@ -17,6 +17,7 @@ import com.cobblemon.mod.common.api.ai.config.BehaviourConfig
import com.cobblemon.mod.common.api.ai.config.task.TaskConfig
import com.cobblemon.mod.common.api.conditional.RegistryLikeCondition
import com.cobblemon.mod.common.api.data.JsonDataRegistry
import com.cobblemon.mod.common.api.data.ShowdownIdentifiable
import com.cobblemon.mod.common.api.drop.DropEntry
import com.cobblemon.mod.common.api.drop.ItemDropMethod
import com.cobblemon.mod.common.api.entity.EntityDimensionsAdapter
@@ -313,11 +314,11 @@ object PokemonSpecies : JsonDataRegistry<Species> {
val result = mutableMapOf<String, String>()
this.species.forEach {species ->
val baseSpecies = ShowdownSpecies(species, null)
result[baseSpecies.name] = this.gson.toJson(baseSpecies)
result[ShowdownIdentifiable.REGEX.replace(baseSpecies.name, "")] = this.gson.toJson(baseSpecies)
species.forms.forEach { form ->
if (form != species.standardForm) {
val formSpecies = ShowdownSpecies(species, form)
result[formSpecies.name] = this.gson.toJson(formSpecies)
result[ShowdownIdentifiable.REGEX.replace(formSpecies.name, "")] = this.gson.toJson(formSpecies)
}
}
}
@@ -117,8 +117,6 @@ class RidingController(
}
private fun canTransitionToLand(): Boolean {
val hasLandController = entity.pokemon.riding.behaviours?.get(RidingStyle.LAND) != null
if (!hasLandController) return false
if ((entity.isUnderWater)) return false
if ((entity.isEyeInFluid(FluidTags.WATER) || entity.isEyeInFluid(FluidTags.LAVA))) return false
return entity.onGround()
@@ -215,13 +215,12 @@ object ShowdownInterpreter {
}
fun broadcastOptionalAbility(battle: PokemonBattle, effect: Effect?, pokemon: BattlePokemon) {
if (effect == null) return
if (effect == null || effect.type != Effect.Type.ABILITY) return
broadcastAbility(battle, effect, pokemon)
}
// Broadcasts a generic lang to notify players of ability activations (effects are broadcasted separately)
fun broadcastAbility(battle: PokemonBattle, effect: Effect, pokemon: BattlePokemon) {
if (effect.type != Effect.Type.ABILITY) return
battle.dispatchWaiting(0.5F) {
val lang = battleLang("ability.generic", pokemon.getName(), effect.typelessData).yellow()
battle.broadcastChatMessage(lang)
@@ -38,7 +38,9 @@ class SwapInstruction(val message: BattleMessage, val instructionSet: Instructio
if (activeBattlePokemonB != null) {
val pnxB = activeBattlePokemonB.getPNX()
val (actorB, activePokemonB) = battle.getActorAndActiveSlotFromPNX(pnxB)
// Swap references of the 2 pokemon
// update party positions
actor.pokemonList.swap(actor.activePokemon.indexOf(activePokemonA), actor.activePokemon.indexOf(activeBattlePokemonB))
// swap active references
actor.activePokemon.swap((pnxA[2] - 'a'), (pnxB[2] - 'a'))
val posA = activePokemonA.getSendOutPosition() ?: activePokemonA.position?.second
@@ -10,11 +10,8 @@ package com.cobblemon.mod.common.battles.runner.socket
import com.cobblemon.mod.common.Cobblemon
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.api.pokemon.PokemonSpecies
import com.cobblemon.mod.common.battles.ShowdownInterpreter
import com.cobblemon.mod.common.battles.runner.ShowdownService
import com.cobblemon.mod.common.pokemon.FormData
import com.cobblemon.mod.common.pokemon.Species
import com.google.gson.Gson
import com.google.gson.JsonArray
import java.io.BufferedReader
@@ -24,6 +21,7 @@ import java.net.InetAddress
import java.net.Socket
import java.nio.charset.Charset
import java.util.UUID
import kotlin.text.replace
/**
* Mediator service for communicating between the Cobblemon Minecraft mod and Cobblemon showdown service via
@@ -102,7 +100,7 @@ class SocketShowdownService(val host: String = "localhost", val port: Int = 1846
}
override fun sendRegistryData(data: Map<String, String>, type: String) {
data.forEach { (_, value) -> sendRegistryEntry(value, type) }
data.forEach { (key, value) -> sendRegistryEntry(key, value, type) }
// The code for sending bulk data is commented out below, because:
// 1) while debugging it's useful to have individual entries, and socket is only used for debug atm
// 2) the species JSONs are way too big to be handled as one line on the JS side (maybe both sides?)
@@ -118,6 +116,12 @@ class SocketShowdownService(val host: String = "localhost", val port: Int = 1846
acknowledge { Cobblemon.LOGGER.error("Failed to send $type data to Showdown: $data") }*/
}
fun sendRegistryEntry(key: String, data: String, type: String) {
val payload = data.replace(Regex("[\r\n]+"), " ")
writer.write(">receiveEntry $type $key $payload")
acknowledge { Cobblemon.LOGGER.error("Failed to send $type data to Showdown: $payload") }
}
override fun sendRegistryEntry(data: String, type: String) {
val payload = data.replace(Regex("[\r\n]+"), " ")
writer.write(">receiveEntry $type $payload")
@@ -200,6 +200,7 @@ class EntriesScrollingWidget(val pX: Int, val pY: Int, val setPokedexEntry: (Pok
if (firstVisibleShiny) {
aspectsToDraw.add("shiny")
}
state.currentAspects = aspectsToDraw
matrices.pushPose()
matrices.translate(startPosX + (SCROLL_SLOT_SIZE / 2.0), startPosY + 1.0, 0.0)
matrices.scale(2.5F, 2.5F, 1F)
@@ -645,6 +645,8 @@ class PokemonInfoWidget(val pX: Int, val pY: Int, val updateForm: (PokedexForm)
aspects.addAll(variationButtons.filter { it.isVisible() }.mapNotNull { it.getAspect() })
currentEntry?.displayAspects?.let { aspects += it }
renderablePokemon = RenderablePokemon(species, aspects).also { recalculatePoses(it) }
updateForm.invoke(visibleForms[selectedFormIndex])
@@ -36,7 +36,7 @@ class RattataAlolanModel(root: ModelPart) : PokemonPosableModel(root), HeadedFra
lateinit var standing: Pose
lateinit var walk: Pose
override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
// override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
override fun registerPoses() {
val blink = quirk { bedrockStateful("rattata", "blink")}
@@ -36,7 +36,7 @@ class RattataModel(root: ModelPart) : PokemonPosableModel(root), HeadedFrame, Qu
lateinit var standing: Pose
lateinit var walk: Pose
override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
// override val cryAnimation = CryProvider { bedrockStateful("rattata", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -25,7 +25,7 @@ class MeganiumModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame {
override var portraitTranslation = Vec3(-0.7, 2.4, 0.0)
override var profileScale = 0.43F
override var profileTranslation = Vec3(0.0, 1.0, 0.0)
override var profileTranslation = Vec3(0.0, 1.12, 0.0)
lateinit var standing: Pose
lateinit var walking: Pose
@@ -1,98 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen8
import com.cobblemon.mod.common.client.render.models.blockbench.PosableState
import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.entity.PoseType.Companion.UI_POSES
import net.minecraft.client.model.geom.ModelPart
import net.minecraft.world.phys.Vec3
class AlcremieModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, BimanualFrame {
override val rootPart = root.registerChildWithAllChildren("alcremie")
override val head = getPart("head")
override val rightArm = getPart("arm_right")
override val leftArm = getPart("arm_left")
override var portraitScale = 2.14F
override var portraitTranslation = Vec3(-0.25, -0.31, 0.0)
override var profileScale = 0.54F
override var profileTranslation = Vec3(0.0, 0.88, 0.0)
lateinit var sleep: Pose
lateinit var standing: Pose
lateinit var walk: Pose
lateinit var shoulderLeft: Pose
lateinit var shoulderRight: Pose
val shoulderOffset = 5.5
override fun registerPoses() {
val blink = quirk { bedrockStateful("alcremie", "blink")}
sleep = registerPose(
poseName = "sleep",
poseType = PoseType.SLEEP,
animations = arrayOf(bedrock("alcremie", "sleep"))
)
standing = registerPose(
poseName = "standing",
poseTypes = UI_POSES + PoseType.STATIONARY_POSES,
transformTicks = 10,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("alcremie", "ground_idle")
)
)
walk = registerPose(
poseName = "walk",
poseTypes = PoseType.MOVING_POSES,
transformTicks = 5,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("alcremie", "ground_walk")
)
)
shoulderLeft = registerPose(
poseType = PoseType.SHOULDER_LEFT,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("alcremie", "shoulder_left")
),
transformedParts = arrayOf(
rootPart.createTransformation().addPosition(ModelPartTransformation.X_AXIS, shoulderOffset)
)
)
shoulderRight = registerPose(
poseType = PoseType.SHOULDER_RIGHT,
quirks = arrayOf(blink),
animations = arrayOf(
singleBoneLook(),
bedrock("alcremie", "shoulder_right")
),
transformedParts = arrayOf(
rootPart.createTransformation().addPosition(ModelPartTransformation.X_AXIS, -shoulderOffset)
)
)
}
override fun getFaintAnimation(state: PosableState) = if (state.isNotPosedIn(sleep)) bedrockStateful("alcremie", "faint") else null
}
@@ -337,7 +337,6 @@ object VaryingModelRepository {
inbuilt("nacli", :: NacliModel)
inbuilt("naclstack", :: NaclstackModel)
inbuilt("garganacl", ::GarganaclModel)
inbuilt("alcremie", :: AlcremieModel)
inbuilt("milcery", :: MilceryModel)
inbuilt("turtwig", :: TurtwigModel)
inbuilt("grotle", :: GrotleModel)
@@ -223,10 +223,12 @@ class CobblemonConfig {
var appleLeftoversChance = 0.025
@CobblemonConfigField(Category.World, lang = "max_roots_in_area", SERVER)
var maxRootsInArea = 5
@LastChangedVersion("1.7.0")
var maxRootsInArea = 9
@CobblemonConfigField(Category.World, lang = "big_root_propagation_chance", SERVER)
var bigRootPropagationChance = 0.1
@LastChangedVersion("1.7.0")
var bigRootPropagationChance = 0.5
@CobblemonConfigField(Category.World, lang = "energy_root_chance", SERVER)
var energyRootChance = 0.25
@@ -22,7 +22,6 @@ import net.minecraft.world.entity.ai.memory.WalkTarget
import net.minecraft.world.entity.ai.util.DefaultRandomPos
import net.minecraft.world.level.pathfinder.Path
import net.minecraft.world.level.pathfinder.PathType
import net.minecraft.world.level.pathfinder.WalkNodeEvaluator
import net.minecraft.world.phys.Vec3
class FollowWalkTargetTask(
@@ -1218,8 +1218,8 @@ open class PokemonEntity(
}
private fun showInteractionWheel(player: ServerPlayer, itemStack: ItemStack) {
val canRide = ifRidingAvailableSupply(false) { behaviour, settings, state ->;
if (!this.canRide(player)) return@ifRidingAvailableSupply false;
val canRide = ifRidingAvailableSupply(false) { behaviour, settings, state ->
if (platform != PlatformType.NONE) return@ifRidingAvailableSupply false
if (tethering != null) return@ifRidingAvailableSupply false;
if (seats.isEmpty()) return@ifRidingAvailableSupply false;
if ((owner as? ServerPlayer)?.isInBattle() == true) return@ifRidingAvailableSupply false;
@@ -2127,8 +2127,8 @@ open class PokemonEntity(
*/
private fun createSidedPokemon(): Pokemon = Pokemon().apply { isClient = this@PokemonEntity.level().isClientSide }
override fun canRide(entity: Entity): Boolean {
return platform == PlatformType.NONE && super.canRide(entity) && seats.isNotEmpty()
override fun canRide(vehicle: Entity): Boolean {
return platform == PlatformType.NONE && super.canRide(vehicle) && occupiedSeats.isEmpty()
}
// Takes in a requested stat type with a base minimum and base maximum and returns the interpolated
@@ -8,11 +8,11 @@
package com.cobblemon.mod.common.entity.pokemon
import com.cobblemon.mod.common.CobblemonMemories
import com.bedrockk.molang.runtime.struct.QueryStruct
import com.bedrockk.molang.runtime.value.DoubleValue
import com.bedrockk.molang.runtime.value.MoValue
import com.cobblemon.mod.common.Cobblemon
import com.cobblemon.mod.common.CobblemonMemories
import com.cobblemon.mod.common.CobblemonSounds
import com.cobblemon.mod.common.OrientationControllable
import com.cobblemon.mod.common.api.entity.PokemonSender
@@ -30,12 +30,8 @@ import com.cobblemon.mod.common.entity.PoseType
import com.cobblemon.mod.common.pokemon.Pokemon
import com.cobblemon.mod.common.pokemon.activestate.ActivePokemonState
import com.cobblemon.mod.common.pokemon.activestate.SentOutState
import com.cobblemon.mod.common.util.asUUID
import com.cobblemon.mod.common.util.getIsSubmerged
import com.cobblemon.mod.common.util.getMemorySafely
import com.cobblemon.mod.common.util.*
import com.cobblemon.mod.common.util.math.geometry.toRadians
import com.cobblemon.mod.common.util.playSoundServer
import com.cobblemon.mod.common.util.update
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules
import net.minecraft.network.chat.Component
import net.minecraft.network.syncher.EntityDataAccessor
@@ -49,12 +45,7 @@ import net.minecraft.world.level.pathfinder.PathType
import org.joml.Matrix3f
import org.joml.Vector3f
import java.util.*
import kotlin.math.ceil
import kotlin.math.min
import kotlin.math.pow
import kotlin.math.round
import kotlin.math.roundToInt
import kotlin.math.sqrt
import kotlin.math.*
/** Handles purely server logic for a Pokémon */
class PokemonServerDelegate : PokemonSideDelegate {
@@ -111,6 +102,9 @@ class PokemonServerDelegate : PokemonSideDelegate {
val (armour, toughness) = this.defenceToArmourCurve(pokemon.defence)
entity.getAttribute(Attributes.ARMOR)?.baseValue = armour
entity.getAttribute(Attributes.ARMOR_TOUGHNESS)?.baseValue = toughness
val attackDamage = this.attackToDamageCurve(pokemon.attack).toDouble()
entity.getAttribute(Attributes.ATTACK_DAMAGE)?.baseValue = attackDamage
}
/**
@@ -150,6 +144,29 @@ class PokemonServerDelegate : PokemonSideDelegate {
return armour to toughness
}
/**
* Applies inverse scaling so weaker and starter Pokémon can more easily catch up in damage,
* while preventing high-Attack Pokémon from scaling out of control.
*
* A graph of this formula can be seen here: https://www.desmos.com/calculator/vcrpdcrbhd
*
* Examples:
* - Lv. 1 Happiny (5 Attack) → 0.5 hearts
* - Lv. 10 Charmander (16 Attack) → 1.5 hearts
* - Lv. 20 Mankey (35 Attack) → 2.5 hearts
* - Lv. 40 Vespiquen (79 Attack) → 3.5 hearts
* - Lv. 60 Rhydon (176 Attack) → 5 hearts
* - Lv. 100 Adamant Slaking with full Attack IVs/EVs (460 Attack)
* → 7.5 hearts (same as an Iron Golem)
*/
fun attackToDamageCurve(attack: Int): Int {
val damage = when {
attack < 10 -> 1
else -> ceil(sqrt((attack - 10).toDouble().pow(0.875))).toInt()
}
return damage.coerceAtLeast(1)
}
/**
* Update Minecraft-side Health (i.e. hearts) based on the Pokémon's current HP value
@@ -9,6 +9,7 @@
package com.cobblemon.mod.common.entity.pokemon.ai.tasks
import com.bedrockk.molang.Expression
import com.cobblemon.mod.common.CobblemonMemories
import com.cobblemon.mod.common.api.molang.MoLangFunctions.asMostSpecificMoLangValue
import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.util.mainThreadRuntime
@@ -17,6 +18,7 @@ import com.cobblemon.mod.common.util.resolveFloat
import com.cobblemon.mod.common.util.resolveInt
import com.cobblemon.mod.common.util.withQueryValue
import kotlin.math.abs
import kotlin.math.ceil
import net.minecraft.core.BlockPos
import net.minecraft.util.RandomSource
import net.minecraft.world.entity.Entity
@@ -44,20 +46,24 @@ object MoveToOwnerTask {
if (!condition) {
return@Trigger false
}
val teleportDistance = mainThreadRuntime.resolveFloat(teleportDistance)
val maxDistance = mainThreadRuntime.resolveFloat(maxDistance)
val speedMultiplier = mainThreadRuntime.resolveFloat(speedMultiplier)
val completionRange = mainThreadRuntime.resolveInt(completionRange)
if (entity.distanceTo(owner) > teleportDistance) {
val horizontalHitboxRadius = maxOf(entity.boundingBox.xsize, entity.boundingBox.zsize) / 2
if (entity.distanceTo(owner) - horizontalHitboxRadius > teleportDistance) {
if (tryTeleport(entity, owner)) {
entity.brain.eraseMemory(MemoryModuleType.LOOK_TARGET)
entity.brain.eraseMemory(MemoryModuleType.WALK_TARGET)
}
return@Trigger true
} else if (entity.distanceTo(owner) > maxDistance && it.tryGet(walkTarget).isEmpty) {
} else if (entity.distanceTo(owner) - horizontalHitboxRadius > maxDistance && it.tryGet(walkTarget).isEmpty && !entity.brain.hasMemoryValue(CobblemonMemories.PATH_COOLDOWN)) {
entity.brain.setMemoryWithExpiry(CobblemonMemories.PATH_COOLDOWN, true, 60L)
entity.brain.setMemory(MemoryModuleType.LOOK_TARGET, EntityTracker(owner, true))
entity.brain.setMemory(MemoryModuleType.WALK_TARGET, WalkTarget(owner, speedMultiplier, completionRange))
entity.brain.setMemory(MemoryModuleType.WALK_TARGET, WalkTarget(owner, speedMultiplier, maxOf(completionRange, ceil(horizontalHitboxRadius).toInt()) - 1))
return@Trigger true
}
return@Trigger false
@@ -8,7 +8,7 @@
package com.cobblemon.mod.common.item.berry
import com.cobblemon.mod.common.CobblemonSounds
import com.cobblemon.mod.common.api.battles.interpreter.BattleContext
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.api.battles.model.actor.BattleActor
import com.cobblemon.mod.common.api.item.PokemonSelectingItem
@@ -35,14 +35,24 @@ class StatusCuringBerryItem(block: BerryBlock, vararg val status: Status): Berry
override val bagItem = object : BagItem {
override val itemName: String get() = "item.cobblemon.${this@StatusCuringBerryItem.berry()!!.identifier.path}"
override val returnItem = Items.AIR
override fun canUse(stack: ItemStack, battle: PokemonBattle, target: BattlePokemon) = canUseOnPokemon(stack, target.effectedPokemon)
override fun canUse(stack: ItemStack, battle: PokemonBattle, target: BattlePokemon) = canUseOnBattlePokemon(stack, target)
override fun getShowdownInput(actor: BattleActor, battlePokemon: BattlePokemon, data: String?) = "cure_status${status.takeIf { it.isNotEmpty() }?.let { " ${it.joinToString(separator = " ") { it.showdownName } }" } ?: "" }"
}
// check for whether a berry can cure a persistent status
override fun canUseOnPokemon(stack: ItemStack, pokemon: Pokemon) = pokemon.status?.let { it.status in status || status.isEmpty() } == true &&
pokemon.currentHealth > 0 &&
super.canUseOnPokemon(stack, pokemon)
// check for whether a berry can cure a volatile or persistent status in battle
override fun canUseOnBattlePokemon(stack: ItemStack, battlePokemon: BattlePokemon): Boolean {
battlePokemon.contextManager.get(BattleContext.Type.VOLATILE)?.map { it.id }?.let { volatiles -> // TODO ContextManager is deprecated
if (status.find { it.showdownName in volatiles } != null)
return true
}
return this.canUseOnPokemon(stack, battlePokemon.effectedPokemon)
}
override fun applyToPokemon(
player: ServerPlayer,
stack: ItemStack,
@@ -51,8 +61,6 @@ class StatusCuringBerryItem(block: BerryBlock, vararg val status: Status): Berry
return if (canUseOnPokemon(stack, pokemon)) {
pokemon.feedPokemon(1)
pokemon.status = null
pokemon.entity?.playSound(CobblemonSounds.BERRY_EAT, 1F, 1F)
stack.consume(1, player)
InteractionResultHolder.success(stack)
} else {
@@ -1,46 +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.item.berry
import com.cobblemon.mod.common.CobblemonSounds
import com.cobblemon.mod.common.api.battles.model.PokemonBattle
import com.cobblemon.mod.common.api.battles.model.actor.BattleActor
import com.cobblemon.mod.common.api.item.PokemonSelectingItem
import com.cobblemon.mod.common.battles.pokemon.BattlePokemon
import com.cobblemon.mod.common.block.BerryBlock
import com.cobblemon.mod.common.item.battle.BagItem
import com.cobblemon.mod.common.pokemon.Pokemon
import net.minecraft.world.item.ItemStack
import net.minecraft.server.level.ServerPlayer
import net.minecraft.world.InteractionResultHolder
import net.minecraft.world.item.Items
/**
* A type of berry that cures a volatile status.
*
* @author Hiroku
* @since August 4th, 2023
*/
class VolatileCuringBerryItem(block: BerryBlock, val volatileStatus: String): BerryItem(block), PokemonSelectingItem {
override val bagItem = object : BagItem {
override val itemName: String get() = "item.cobblemon.${berry()!!.identifier.path}"
override val returnItem = Items.AIR
override fun canUse(stack: ItemStack, battle: PokemonBattle, target: BattlePokemon) = true // When we track volatiles, can check for confusion
override fun getShowdownInput(actor: BattleActor, battlePokemon: BattlePokemon, data: String?) = "cure_volatile $volatileStatus"
}
override fun canUseOnPokemon(stack: ItemStack, pokemon: Pokemon) = false
override fun applyToPokemon(player: ServerPlayer, stack: ItemStack, pokemon: Pokemon) = null
override fun interactGeneral(player: ServerPlayer, stack: ItemStack) = InteractionResultHolder.pass(stack)
override fun applyToBattlePokemon(player: ServerPlayer, stack: ItemStack, battlePokemon: BattlePokemon) {
super.applyToBattlePokemon(player, stack, battlePokemon)
player.playSound(CobblemonSounds.BERRY_EAT, 1F, 1F)
}
}
@@ -29,18 +29,22 @@ class FoodColourComponent(
val PACKET_CODEC: StreamCodec<ByteBuf, FoodColourComponent> = ByteBufCodecs.fromCodec(CODEC)
private val COLORS = mapOf<DyeColor, Int>(
DyeColor.RED to FastColor.ARGB32.color(255, 255, 175, 215),
DyeColor.WHITE to FastColor.ARGB32.color(255, 255, 255, 255),
DyeColor.ORANGE to FastColor.ARGB32.color(255, 255, 195, 175),
DyeColor.YELLOW to FastColor.ARGB32.color(255, 255, 225, 175),
DyeColor.LIME to FastColor.ARGB32.color(255, 205, 255, 175),
DyeColor.GREEN to FastColor.ARGB32.color(255, 175, 255, 180),
DyeColor.CYAN to FastColor.ARGB32.color(255, 135, 235, 215),
DyeColor.LIGHT_BLUE to FastColor.ARGB32.color(255, 120, 195, 235),
DyeColor.BLUE to FastColor.ARGB32.color(255, 120, 165, 255),
DyeColor.PURPLE to FastColor.ARGB32.color(255, 145, 145, 255),
DyeColor.MAGENTA to FastColor.ARGB32.color(255, 175, 140, 255),
DyeColor.LIGHT_BLUE to FastColor.ARGB32.color(255, 120, 195, 235),
DyeColor.YELLOW to FastColor.ARGB32.color(255, 255, 225, 175),
DyeColor.PINK to FastColor.ARGB32.color(255, 225, 160, 255),
DyeColor.WHITE to FastColor.ARGB32.color(255, 255, 255, 255)
DyeColor.LIME to FastColor.ARGB32.color(255, 205, 255, 175),
DyeColor.GRAY to FastColor.ARGB32.color(255, 71, 79, 82),
DyeColor.LIGHT_GRAY to FastColor.ARGB32.color(255, 157, 157, 151),
DyeColor.CYAN to FastColor.ARGB32.color(255, 135, 235, 215),
DyeColor.PURPLE to FastColor.ARGB32.color(255, 145, 145, 255),
DyeColor.BLUE to FastColor.ARGB32.color(255, 120, 165, 255),
DyeColor.BROWN to FastColor.ARGB32.color(255, 131, 84, 50),
DyeColor.GREEN to FastColor.ARGB32.color(255, 175, 255, 180),
DyeColor.RED to FastColor.ARGB32.color(255, 255, 175, 215),
DyeColor.BLACK to FastColor.ARGB32.color(255, 0, 0, 0)
)
}
@@ -15,6 +15,7 @@ import com.cobblemon.mod.common.api.cooking.Seasonings
import com.cobblemon.mod.common.api.riding.stats.RidingStat
import com.cobblemon.mod.common.item.AprijuiceItem
import com.cobblemon.mod.common.item.components.RideBoostsComponent
import com.cobblemon.mod.common.util.removeIf
import net.minecraft.world.item.ItemStack
/**
@@ -54,11 +55,18 @@ object RideBoostsSeasoningProcessor : SeasoningProcessor {
val statBoosts = mutableMapOf<RidingStat, Int>()
flavours.forEach { (flavour, value) ->
val ridingStat = RidingStat.getByFlavour(flavour) ?: return@forEach
val pointsFromFlavour = mechanic.statPointFlavourThresholds.filter { value >= it.key }.maxOf { it.value }
val pointsFromApricorn = apricornStatEffects[ridingStat] ?: 0
val totalBoost = pointsFromFlavour + pointsFromApricorn
statBoosts[ridingStat] = totalBoost
val pointsFromFlavour = mechanic.statPointFlavourThresholds.filter { value >= it.key }.maxOfOrNull { it.value } ?: 0
statBoosts[ridingStat] = pointsFromFlavour
}
RidingStat.entries.forEach { ridingStat ->
val pointsFromApricorn = apricornStatEffects[ridingStat] ?: 0
if (pointsFromApricorn != 0) {
statBoosts[ridingStat] = (statBoosts[ridingStat] ?: 0) + pointsFromApricorn
}
}
statBoosts.removeIf { it.value == 0 }
result.set(CobblemonItemComponents.RIDE_BOOST, RideBoostsComponent(statBoosts))
}
}
@@ -965,13 +965,7 @@ open class Pokemon : ShowdownIdentifiable {
}
fun feedPokemon(feedCount: Int, playSound: Boolean = true) {
// if it is already full we don't need to do anything (this will likely only ever happen when feeding in battle since we check for fullness already anyways elsewhere)
if (isFull()) {
return
}
this.currentFullness = (this.currentFullness + feedCount).coerceIn(0, this.getMaxFullness())
// play sounds from the entity
// play sounds from the entity first (itemstack is consumed outside of this function)
if (this.entity != null && playSound) {
val fullnessPercent = ((this.currentFullness).toFloat() / (this.getMaxFullness()).toFloat()) * (.5f)
@@ -983,6 +977,14 @@ open class Pokemon : ShowdownIdentifiable {
}
}
// if it is already full we don't need to do anything
// TODO this can happen when feeding in battle since we are temporarily ignoring fullness checks for pp/hp/status berries
if (isFull()) {
return
}
this.currentFullness = (this.currentFullness + feedCount).coerceIn(0, this.getMaxFullness())
// pokemon was fed the first berry so we should reset their metabolism cycle so there is no inconsistencies
if (this.currentFullness == 1) {
this.resetMetabolismCycle()
@@ -247,6 +247,7 @@ class Species : ClientDataSynchronizer<Species>, ShowdownIdentifiable {
buffer.writeCollection(this.forms) { _, form -> form.encode(buffer) }
buffer.writeIdentifier(this.battleTheme)
buffer.writeCollection(this.features) { pb, feature -> pb.writeString(feature) }
this.behaviour.encode(buffer)
buffer.writeNullable(this.lightingData) { pb, data ->
pb.writeInt(data.lightLevel)
pb.writeEnumConstant(data.liquidGlowMode)
@@ -285,6 +286,7 @@ class Species : ClientDataSynchronizer<Species>, ShowdownIdentifiable {
this.battleTheme = buffer.readIdentifier()
this.features.clear()
this.features += buffer.readList { pb -> pb.readString() }
this.behaviour = PokemonBehaviour.decode(buffer)
this.lightingData = buffer.readNullable { pb -> LightingData(pb.readInt(), pb.readEnumConstant(LightingData.LiquidGlowMode::class.java)) }
this.drops.decode(buffer)
this.abilities = AbilityPool().also { pool ->
@@ -10,6 +10,7 @@ package com.cobblemon.mod.common.pokemon.ai
import com.bedrockk.molang.runtime.value.DoubleValue
import com.cobblemon.mod.common.api.molang.ObjectValue
import net.minecraft.network.RegistryFriendlyByteBuf
class CombatBehaviour {
var willDefendSelf = false
@@ -24,4 +25,24 @@ class CombatBehaviour {
it.addFunction("will_defend_owner") { DoubleValue(willDefendOwner) }
it.addFunction("fights_melee") { DoubleValue(fightsMelee) }
}
fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeBoolean(willDefendSelf)
buffer.writeBoolean(willFlee)
buffer.writeBoolean(willDefendOwner)
buffer.writeBoolean(fightsMelee)
}
companion object {
fun decode(buffer: RegistryFriendlyByteBuf): CombatBehaviour {
val decodedCombatBehaviour = CombatBehaviour()
decodedCombatBehaviour.willDefendSelf = buffer.readBoolean()
decodedCombatBehaviour.willFlee = buffer.readBoolean()
decodedCombatBehaviour.willDefendOwner = buffer.readBoolean()
decodedCombatBehaviour.fightsMelee = buffer.readBoolean()
return decodedCombatBehaviour
}
}
}
@@ -35,6 +35,7 @@ import net.minecraft.world.phys.Vec3
import java.util.*
import java.util.function.Predicate
import kotlin.math.max
import net.minecraft.world.level.block.state.BlockState
/**
@@ -47,6 +48,7 @@ import kotlin.math.max
*/
class OmniPathNodeMaker : NodeEvaluator() {
private val nodePosToType: Long2ObjectMap<PathType> = Long2ObjectOpenHashMap()
private val nodePosToState: Long2ObjectMap<BlockState> = Long2ObjectOpenHashMap()
var canPathThroughFire: Boolean = false
@@ -55,11 +57,17 @@ class OmniPathNodeMaker : NodeEvaluator() {
override fun prepare(cachedWorld: PathNavigationRegion, entity: Mob) {
super.prepare(cachedWorld, entity)
nodePosToType.clear()
nodePosToState.clear()
}
override fun done() {
super.done()
nodePosToType.clear()
nodePosToState.clear()
}
fun PathfindingContext.getCachedBlockState(pos: BlockPos): BlockState {
return nodePosToState.computeIfAbsent(pos.asLong()) { getBlockState(pos) }
}
override fun getTarget(x: Double, y: Double, z: Double): Target {
@@ -269,7 +277,9 @@ class OmniPathNodeMaker : NodeEvaluator() {
// Borrowed from WalkNodeEvaluator, specifically here for things that don't use the
// PokemonMoveControl such as NPCs, to prevent them from being caught on upward diagonals
private fun isDiagonalValidForNonPokemon(root: Node, xNode: Node?, zNode: Node?): Boolean {
if (this.mob.moveControl == PokemonMoveControl) return true
if (this.mob.moveControl is PokemonMoveControl) {
return true
}
if (zNode != null && xNode != null && zNode.y <= root.y && xNode.y <= root.y) {
if (xNode.type != PathType.WALKABLE_DOOR && zNode.type != PathType.WALKABLE_DOOR) {
val bl = zNode.type == PathType.FENCE && xNode.type == PathType.FENCE && this.mob.bbWidth
@@ -302,10 +312,14 @@ class OmniPathNodeMaker : NodeEvaluator() {
val upIsOpen = mob.canFit(node.asBlockPos().above())
val d = getFloorLevel(BlockPos(node.x, node.y, node.z))
// Hitbox thing looks confusing but if the hitbox volume is more than like, 5, it starts getting pretty
// fucking slow to use the findAcceptedNodeWalk function
val strictlyWalkPathing = !canFly() && !mob.isInWater && mob.boundingBox.size < MAX_HITBOX_SIZE_FOR_WALKING
// Non-diagonal surroundings in 3d space
for (direction in Direction.entries) {
var pathNode: Node?
if (mob.isInWater || canFly()) {
if (!strictlyWalkPathing) {
pathNode = this.getNode(node.x + direction.stepX, node.y + direction.stepY, node.z + direction.stepZ)
?: continue
} else {
@@ -332,7 +346,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
val x = node.x + direction.stepX + direction2.stepX
val z = node.z + direction.stepZ + direction2.stepZ
var pathNode2: Node?
if (mob.isInWater || canFly()) {
if (!strictlyWalkPathing) {
pathNode2 = this.getNode(x, node.y, z) ?: continue
} else {
pathNode2 = findAcceptedNodeWalk(
@@ -357,7 +371,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
successors[i++] = pathNode2
}
}
if (canFly() || mob.isInWater) {
if (!strictlyWalkPathing) {
// Upward non-diagonals
for (direction in Direction.Plane.HORIZONTAL.iterator()) {
var pathNode2: Node? = null
@@ -389,7 +403,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
// Downward non-diagonals
for (direction in Direction.Plane.HORIZONTAL.iterator()) {
connectingBlockPos.set(node.asBlockPos().offset(direction.normal))
val blockState = currentContext.getBlockState(connectingBlockPos)
val blockState = currentContext.getCachedBlockState(connectingBlockPos)
val traversableByTangent = blockState.isPathfindable(PathComputationType.AIR)
val pathNode2 = getNode(node.x + direction.stepX, node.y - 1, node.z + direction.stepZ) ?: continue
if (hasNotVisited(pathNode2, node) && traversableByTangent) {
@@ -494,11 +508,8 @@ class OmniPathNodeMaker : NodeEvaluator() {
override fun getPathType(pfContext: PathfindingContext, x: Int, y: Int, z: Int): PathType {
val pos = BlockPos(x, y, z)
val below = BlockPos(x, y - 1, z)
val blockState = pfContext.getBlockState(pos)
val blockStateBelow = pfContext.getBlockState(below)
val isWater = blockState.fluidState.`is`(FluidTags.WATER)
val isLava = blockState.fluidState.`is`(FluidTags.LAVA)
val canBreatheUnderFluid = canSwimUnderFluid(blockState.fluidState)
val blockState = pfContext.getCachedBlockState(pos)
val blockStateBelow = pfContext.getCachedBlockState(below)
/*
* There are a lot of commented out pairs of checks here. I was experimenting with how to simultaneously
@@ -511,41 +522,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
* It seems to work now but nothing works forever so my other attempts are here for reference.
*/
var figuredNode = if (blockState.`is`(BlockTags.FENCES) || blockState.`is`(BlockTags.WALLS)) {
PathType.FENCE
} else if (blockStateBelow.block is FenceGateBlock) {
if (blockStateBelow.getValue(FenceGateBlock.OPEN)) {
PathType.OPEN
} else {
PathType.FENCE
}
} else if (isWater && !canSwimInWater() && canBreatheUnderFluid && blockState.isPathfindable(PathComputationType.LAND) ) {
if (pfContext.getPathTypeFromState(pos.x, pos.y - 1, pos.z) == PathType.BLOCKED) {
PathType.WALKABLE
} else {
PathType.OPEN
}
} else if (isLava && canSwimInLava()) {
PathType.LAVA
} else if (isWater) {
PathType.WATER
// This breaks lifting off from snow layers and carpets
// } else if (blockState.canPathfindThrough(world, pos, NavigationType.LAND) && !blockStateBelow.canPathfindThrough(world, below, NavigationType.AIR)) {
// PathType.WALKABLE
// } else if (blockState.canPathfindThrough(world, pos, NavigationType.AIR) && blockStateBelow.canPathfindThrough(world, below, NavigationType.AIR)) {
// PathType.OPEN
} else if (blockState.`is`(BlockTags.TRAPDOORS) || blockState.`is`(Blocks.LILY_PAD) || blockState.`is`(Blocks.BIG_DRIPLEAF)) {
PathType.TRAPDOOR
} else if (blockState.isPathfindable(PathComputationType.LAND)) {
PathType.OPEN
// This breaks walking up slabs
// } else if (blockState.canPathfindThrough(world, pos, NavigationType.LAND) && blockStateBelow.isSideSolid(world, below, Direction.UP, SideShapeType.FULL)) {
// PathType.WALKABLE
// } else if (blockState.canPathfindThrough(world, pos, NavigationType.AIR) && !blockStateBelow.isSideSolid(world, below, Direction.UP, SideShapeType.FULL)) {
// PathType.OPEN
} else if (blockState.`is`(BlockTags.LEAVES) && blockState.block == CobblemonBlocks.SACCHARINE_LEAVES && canPathThroughLeaves()) {
return PathType.OPEN
} else PathType.BLOCKED
var figuredNode = getFiguredNode(pfContext, blockState, blockStateBelow, pos)
if (figuredNode == PathType.OPEN && pos.y >= pfContext.level().getMinBuildHeight() + 1) {
val var10000: PathType = when (pfContext.getPathTypeFromState(pos.x, pos.y - 1, pos.z)) {
@@ -559,10 +536,19 @@ class OmniPathNodeMaker : NodeEvaluator() {
PathType.FENCE -> {
if (canFly())
PathType.BLOCKED
else {
if (mob.boundingBox.size < MAX_HITBOX_SIZE_FOR_WALKING)
WalkNodeEvaluator.checkNeighbourBlocks(pfContext, pos.x, pos.y, pos.z, PathType.WALKABLE)
else
PathType.WALKABLE
}
}
else -> {
if (mob.boundingBox.size < MAX_HITBOX_SIZE_FOR_WALKING)
WalkNodeEvaluator.checkNeighbourBlocks(pfContext, pos.x, pos.y, pos.z, PathType.WALKABLE)
else
WalkNodeEvaluator.checkNeighbourBlocks(pfContext, pos.x, pos.y, pos.z, PathType.WALKABLE)
PathType.WALKABLE
}
else -> WalkNodeEvaluator.checkNeighbourBlocks(pfContext, pos.x, pos.y, pos.z, PathType.WALKABLE)
}
figuredNode = var10000
}
@@ -570,14 +556,47 @@ class OmniPathNodeMaker : NodeEvaluator() {
return adjustNodeType(pfContext, canOpenDoors, canPassDoors, below, figuredNode)
}
private fun getFiguredNode(pfContext: PathfindingContext, blockState: BlockState, blockStateBelow: BlockState, pos: BlockPos): PathType {
if (blockState.`is`(BlockTags.FENCES) || blockState.`is`(BlockTags.WALLS)) {
return PathType.FENCE
} else if (blockStateBelow.block is FenceGateBlock) {
if (blockStateBelow.getValue(FenceGateBlock.OPEN)) {
return PathType.OPEN
} else {
return PathType.FENCE
}
} else if (blockState.`is`(BlockTags.TRAPDOORS) || blockState.`is`(Blocks.LILY_PAD) || blockState.`is`(Blocks.BIG_DRIPLEAF)) {
return PathType.TRAPDOOR
} else if (blockState.isPathfindable(PathComputationType.LAND)) {
return PathType.OPEN
} else if (blockState.`is`(BlockTags.LEAVES) && blockState.block == CobblemonBlocks.SACCHARINE_LEAVES && canPathThroughLeaves()) {
return PathType.OPEN
}
else if (blockState.fluidState.`is`(FluidTags.LAVA) && canSwimInLava()) {
return PathType.LAVA
} else if (blockState.fluidState.`is`(FluidTags.WATER)) {
if (!canSwimInWater() && canSwimUnderFluid(blockState.fluidState) && blockState.isPathfindable(PathComputationType.LAND)) {
if (pfContext.getPathTypeFromState(pos.x, pos.y - 1, pos.z) == PathType.BLOCKED) {
return PathType.WALKABLE
} else {
return PathType.OPEN
}
}
return PathType.WATER
}
return PathType.BLOCKED
}
override fun getPathTypeOfMob(pfContext: PathfindingContext, x: Int, y: Int, z: Int, mob: Mob): PathType {
val set = EnumSet.noneOf(PathType::class.java)
val sizeX = (mob.boundingBox.maxX - mob.boundingBox.minX).toInt() + 1
val sizeY = (mob.boundingBox.maxY - mob.boundingBox.minY).toInt() + 1
val sizeZ = (mob.boundingBox.maxZ - mob.boundingBox.minZ).toInt() + 1
// TODO -- This is experimental code to see if this is meaningful. We should clean this up later when time permits.
val returnedEarlyPathType = mutableListOf<PathType>()
val type = findNearbyNodeTypes(
pfContext, x, y, z, sizeX, sizeY, sizeZ, canOpenDoors, canPassDoors, set, PathType.BLOCKED,
BlockPos(x, y, z)
pfContext, x, y, z, sizeX, sizeY, sizeZ, canOpenDoors, canPassDoors, set, PathType.BLOCKED, BlockPos(x, y, z), returnedEarlyPathType
)
if (PathType.LEAVES in set) {
@@ -592,20 +611,20 @@ class OmniPathNodeMaker : NodeEvaluator() {
} else if (PathType.DANGER_OTHER in set) {
return PathType.DANGER_OTHER
}
return if (PathType.FENCE in set) {
PathType.FENCE
} else if (PathType.UNPASSABLE_RAIL in set) {
return if (PathType.UNPASSABLE_RAIL in set) {
PathType.UNPASSABLE_RAIL
} else if (PathType.DAMAGE_OTHER in set) {
PathType.DAMAGE_OTHER
} else {
val result = returnedEarlyPathType.firstOrNull()
if (result != null) {
return result
}
var pathType2: PathType = PathType.BLOCKED
val nearbyTypeIterator = set.iterator()
while (nearbyTypeIterator.hasNext()) {
val nearbyType = nearbyTypeIterator.next()
if (mob.getPathfindingMalus(nearbyType) < 0) {
return nearbyType
}
// The || is because we prefer WALKABLE where possible - OPEN is legit but if there's either OPEN or WALKABLE then WALKABLE is better since land pokes can read that.
if (mob.getPathfindingMalus(nearbyType) > mob.getPathfindingMalus(pathType2) || nearbyType == PathType.WALKABLE) {
pathType2 = nearbyType
@@ -633,7 +652,8 @@ class OmniPathNodeMaker : NodeEvaluator() {
canEnterOpenDoors: Boolean,
nearbyTypes: EnumSet<PathType>,
type: PathType,
pos: BlockPos
pos: BlockPos,
returnedEarlyPathType: MutableList<PathType>
): PathType {
var type = type
for (i in 0 until sizeX) {
@@ -649,6 +669,18 @@ class OmniPathNodeMaker : NodeEvaluator() {
}
}
nearbyTypes.add(currentType)
when (currentType) {
PathType.FENCE -> return type
PathType.LEAVES -> return type
PathType.DAMAGE_CAUTIOUS -> return type
PathType.UNPASSABLE_RAIL -> return type
PathType.DAMAGE_OTHER -> return type
else -> {}
}
if (mob.getPathfindingMalus(currentType) < 0) {
returnedEarlyPathType.add(currentType)
return currentType
}
}
}
}
@@ -662,7 +694,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
pos: BlockPos,
type: PathType
): PathType {
val blockState = pfContext.getBlockState(pos)
val blockState = pfContext.getCachedBlockState(pos)
val block = blockState.block
if (blockState.`is`(Blocks.CACTUS) || blockState.`is`(Blocks.SWEET_BERRY_BUSH)) {
@@ -681,7 +713,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
PathType.WALKABLE_DOOR
} else if (type == PathType.DOOR_OPEN && !canEnterOpenDoors) {
PathType.BLOCKED
} else if (type == PathType.RAIL && block !is BaseRailBlock && pfContext.getBlockState(pos.below()).block !is BaseRailBlock) {
} else if (type == PathType.RAIL && block !is BaseRailBlock && pfContext.getCachedBlockState(pos.below()).block !is BaseRailBlock) {
PathType.UNPASSABLE_RAIL
} else if (type == PathType.LEAVES) {
if (blockState.block === CobblemonBlocks.SACCHARINE_LEAVES && canPathThroughLeaves()) {
@@ -692,6 +724,10 @@ class OmniPathNodeMaker : NodeEvaluator() {
} else type
}
companion object {
const val MAX_HITBOX_SIZE_FOR_WALKING = 1.6F
}
fun canWalk(): Boolean {
return if (this.mob is OmniPathingEntity) {
(this.mob as OmniPathingEntity).canWalk()
@@ -717,6 +753,7 @@ class OmniPathNodeMaker : NodeEvaluator() {
}
fun canSwimUnderFluid(fluidState: FluidState): Boolean {
if (fluidState.isEmpty) return false
return if (this.mob is OmniPathingEntity) {
(this.mob as OmniPathingEntity).canSwimUnderFluid(fluidState)
} else {
@@ -10,6 +10,7 @@ package com.cobblemon.mod.common.pokemon.ai
import com.bedrockk.molang.runtime.value.DoubleValue
import com.cobblemon.mod.common.api.molang.ObjectValue
import net.minecraft.network.RegistryFriendlyByteBuf
/**
* Collection of all AI properties definable at the species level of a Pokémon.
@@ -17,20 +18,20 @@ import com.cobblemon.mod.common.api.molang.ObjectValue
* @author Hiroku
* @since July 15th, 2022
*/
open class PokemonBehaviour {
val resting = RestBehaviour()
var moving = MoveBehaviour()
val idle = IdleBehaviour()
val fireImmune = false
val dampensVibrations = false
val entityInteract = EntityBehaviour()
val lightningHit = ThunderstruckBehaviour()
val blockInteract = BlockBehavior()
val combat = CombatBehaviour()
val herd = HerdBehaviour()
val characteristicRainbow = false
val itemInteract = ItemBehavior()
open class PokemonBehaviour(
val resting: RestBehaviour = RestBehaviour(),
var moving: MoveBehaviour = MoveBehaviour(),
val idle: IdleBehaviour = IdleBehaviour(),
val fireImmune: Boolean = false,
val dampensVibrations: Boolean = false,
val entityInteract: EntityBehaviour = EntityBehaviour(),
val lightningHit: ThunderstruckBehaviour = ThunderstruckBehaviour(),
val blockInteract: BlockBehavior = BlockBehavior(),
val combat: CombatBehaviour = CombatBehaviour(),
val herd: HerdBehaviour = HerdBehaviour(),
val characteristicRainbow: Boolean = false,
val itemInteract: ItemBehavior = ItemBehavior(),
) {
@Transient
val struct = ObjectValue<PokemonBehaviour>(this).also {
it.addFunction("resting") { resting.struct }
@@ -44,4 +45,18 @@ open class PokemonBehaviour {
it.addFunction("herd") { herd.struct }
it.addFunction("item_interact") { itemInteract.struct }
}
fun encode(buffer: RegistryFriendlyByteBuf) {
combat.encode(buffer)
}
companion object {
fun decode(buffer: RegistryFriendlyByteBuf): PokemonBehaviour {
val combat = CombatBehaviour.decode(buffer)
val decodedPokemonBehaviour = PokemonBehaviour(combat = combat)
return decodedPokemonBehaviour
}
}
}
@@ -12,14 +12,15 @@ import com.cobblemon.mod.common.CobblemonItems
import net.minecraft.world.item.Item
object VillagerGatherableItems {
val villagerGatherableItems = setOf<Item> (
CobblemonItems.BLUE_MINT_SEEDS,
CobblemonItems.CYAN_MINT_SEEDS,
CobblemonItems.GREEN_MINT_SEEDS,
CobblemonItems.PINK_MINT_SEEDS,
CobblemonItems.RED_MINT_SEEDS,
CobblemonItems.REVIVAL_HERB,
CobblemonItems.WHITE_MINT_SEEDS,
CobblemonItems.VIVICHOKE_SEEDS,
val villagerGatherableItems = setOf<Item>(
CobblemonItems.BLUE_MINT_SEEDS,
CobblemonItems.CYAN_MINT_SEEDS,
CobblemonItems.GREEN_MINT_SEEDS,
CobblemonItems.PINK_MINT_SEEDS,
CobblemonItems.RED_MINT_SEEDS,
CobblemonItems.REVIVAL_HERB,
CobblemonItems.WHITE_MINT_SEEDS,
CobblemonItems.VIVICHOKE_SEEDS,
CobblemonItems.HEARTY_GRAINS,
)
}
@@ -1,86 +1,67 @@
{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "cobblemon:evo_obscuring",
"basic_render_parameters": {
"material": "particles_blend",
"texture": "textures/particles/generic/smoke/glowingsmoke_cyan"
}
},
"components": {
"minecraft:emitter_local_space": {
"position": true,
"rotation": true
},
"minecraft:emitter_rate_instant": {
"num_particles": "math.clamp(350 * math.max(q.entity_size, 1), 10, 600)"
},
"minecraft:emitter_lifetime_once": {
"active_time": 5
},
"minecraft:emitter_shape_sphere": {
"radius": "math.clamp(q.entity_size,0.5,2) * 3 / (q.entity_scale * (q.entity_scale < 1 ? 1.5 : 1.2))",
"surface_only": true,
"direction": "inwards"
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 5
},
"minecraft:particle_initial_spin": {
"rotation": "math.random_integer(1,4) * 90"
},
"minecraft:particle_initial_speed": "math.clamp(q.entity_size,0.5,2) * 10",
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [
"math.random(-1,1) * q.entity_scale",
"math.random(-1,1) * q.entity_scale",
"math.random(-1,1) * q.entity_scale"
],
"linear_drag_coefficient": 6
},
"minecraft:particle_appearance_billboard": {
"size": [
"0.175 * math.clamp(q.entity_size,1,2) * 1.5",
"0.175 * math.clamp(q.entity_size,1,2) * 1.5"
],
"facing_camera_mode": "rotate_xyz",
"uv": {
"texture_width": 8,
"texture_height": 48,
"flipbook": {
"base_UV": [
0,
40
],
"size_UV": [
8,
8
],
"step_UV": [
0,
-8
],
"frames_per_second": 3,
"max_frame": 6
}
}
},
"minecraft:particle_appearance_tinting": {
"color": {
"interpolant": "v.particle_random_4",
"gradient": {
"0.0": "#FFFFFFFF",
"0.22": "#FFCCFFFC",
"0.56": "#FFDCE5FE",
"0.77": "#FFFADDFE",
"1.0": "#FF86FBFF"
}
}
},
"cobblemon:emitter_space": {
"scaling": "entity"
}
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "cobblemon:evo_obscuring",
"basic_render_parameters": {
"material": "particles_blend",
"texture": "textures/particles/generic/smoke/glowingsmoke_cyan"
}
},
"components": {
"minecraft:emitter_local_space": {
"position": true,
"rotation": true
},
"minecraft:emitter_rate_instant": {
"num_particles": "math.clamp(350 * math.max(q.entity_size, 1), 10, 600) * (q.entity_size >= 2 ? 3 : 1.2)"
},
"minecraft:emitter_lifetime_once": {
"active_time": 5
},
"minecraft:emitter_shape_sphere": {
"radius": "(math.clamp(q.entity_radius,0.1,3) * 3 / (q.entity_scale + (q.entity_scale <= 1 ? 0.3 : (q.entity_scale >= 1.79 ? 0.1 : 0.9))))",
"surface_only": true,
"direction": "inwards"
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 5
},
"minecraft:particle_initial_spin": {
"rotation": "math.random_integer(1,4) * 90"
},
"minecraft:particle_initial_speed": "math.clamp(q.entity_size,0.5,2) * (q.entity_size >= 2 ? 5 : 10)",
"minecraft:particle_motion_dynamic": {
"linear_acceleration": ["math.random(-1,1) * q.entity_size", "math.random(-1,1) * q.entity_size", "math.random(-1,1) * q.entity_size"],
"linear_drag_coefficient": "(q.entity_size >= 1.79 ? 18 : (q.entity_size <= 0.5 ? 8 : 10.5))"
},
"minecraft:particle_appearance_billboard": {
"size": ["0.175 * math.clamp(q.entity_size,1,2) * 1.5", "0.175 * math.clamp(q.entity_size,1,2) * 1.5"],
"facing_camera_mode": "rotate_xyz",
"uv": {
"texture_width": 8,
"texture_height": 48,
"flipbook": {
"base_UV": [0, 40],
"size_UV": [8, 8],
"step_UV": [0, -8],
"frames_per_second": 3,
"max_frame": 6
}
}
},
"minecraft:particle_appearance_tinting": {
"color": {
"interpolant": "v.particle_random_4",
"gradient": {
"0.0": "#FFFFFFFF",
"0.22": "#FFCCFFFC",
"0.56": "#FFDCE5FE",
"0.77": "#FFFADDFE",
"1.0": "#FF86FBFF"
}
}
}
}
}
}
@@ -296,101 +296,47 @@
"eyelid_left": {
"position": {
"0.125": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [0.1, 0, 0]
},
"0.3333": {
"pre": [0.1, 0, 0],
"post": [0, 0, 0]
},
"1.4167": {
"pre": [0, 0, 0],
"post": [0, 0, 0]
},
"1.4583": {
"pre": [0, 0, 0],
"post": [0.1, 0, 0]
},
"1.625": {
"pre": [0.1, 0, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [0.1, 0, 0]},
"0.3333": {"pre": [0.1, 0, 0], "post": [0, 0, 0]},
"1.4167": [0, 0, 0],
"1.4583": {"pre": [0, 0, 0], "post": [0.1, 0, 0]},
"1.625": {"pre": [0.1, 0, 0], "post": [0, 0, 0]}
}
},
"mouth_closed": {
"position": {
"0.0": [0, 0, 0],
"0.3333": {
"pre": [0, 0, 0],
"post": [0, 0.1, 0]
},
"1.4583": {
"pre": [0, 0.1, 0],
"post": [0, 0, 0]
}
"0.3333": {"pre": [0, 0, 0], "post": [0, 0.1, 0]},
"1.4583": {"pre": [0, 0.1, 0], "post": [0, 0, 0]}
}
},
"mouth_open": {
"position": {
"0.0": [0, 0, 0],
"0.5417": {
"pre": [0, 0, 0],
"post": [0, -0.1, 0]
},
"0.7917": {
"pre": [0, -0.1, 0],
"post": [0, 0, 0]
},
"1.4583": {
"pre": [0, 0, 0],
"post": [0, 0, 0]
}
"0.5417": {"pre": [0, 0, 0], "post": [0, -0.1, 0]},
"0.7917": {"pre": [0, -0.1, 0], "post": [0, 0, 0]},
"1.4583": [0, 0, 0]
}
},
"mouth_happy": {
"position": {
"0.0": [0, 0, 0],
"1.0417": {
"pre": [0, 0, 0],
"post": [0, -0.1, 0]
},
"1.4583": {
"pre": [0, -0.1, 0],
"post": [0, 0, 0]
}
"1.0417": {"pre": [0, 0, 0], "post": [0, -0.1, 0]},
"1.4583": {"pre": [0, -0.1, 0], "post": [0, 0, 0]}
}
},
"mouth_o": {
"position": {
"0.0": [0, 0, 0],
"0.3333": {
"pre": [0, 0, 0],
"post": [0, -0.1, 0]
},
"0.5417": {
"pre": [0, -0.1, 0],
"post": [0, 0, 0]
},
"0.7917": {
"pre": [0, 0, 0],
"post": [0, -0.1, 0.075]
},
"1.0417": {
"pre": [0, -0.1, 0.075],
"post": [0, 0, 0]
}
"0.3333": {"pre": [0, 0, 0], "post": [0, -0.1, 0]},
"0.5417": {"pre": [0, -0.1, 0], "post": [0, 0, 0]},
"0.7917": {"pre": [0, 0, 0], "post": [0, -0.1, 0.075]},
"1.0417": {"pre": [0, -0.1, 0.075], "post": [0, 0, 0]}
},
"scale": {
"0.75": [1, 1, 1],
"0.7917": {
"pre": [1, 1, 1],
"post": [1.25, 1, 0.75]
},
"1.0417": {
"pre": [1.25, 1, 0.75],
"post": [1, 1, 1]
}
"0.7917": {"pre": [1, 1, 1], "post": [1.25, 1, 0.75]},
"1.0417": {"pre": [1.25, 1, 0.75], "post": [1, 1, 1]}
}
},
"tail": {
@@ -680,26 +626,11 @@
"eyelid_right": {
"position": {
"0.125": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [-0.1, 0, 0]
},
"0.3333": {
"pre": [-0.1, 0, 0],
"post": [0, 0, 0]
},
"1.4167": {
"pre": [0, 0, 0],
"post": [0, 0, 0]
},
"1.4583": {
"pre": [0, 0, 0],
"post": [-0.1, 0, 0]
},
"1.625": {
"pre": [-0.1, 0, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [-0.1, 0, 0]},
"0.3333": {"pre": [-0.1, 0, 0], "post": [0, 0, 0]},
"1.4167": [0, 0, 0],
"1.4583": {"pre": [0, 0, 0], "post": [-0.1, 0, 0]},
"1.625": {"pre": [-0.1, 0, 0], "post": [0, 0, 0]}
}
},
"antenna_left": {
@@ -970,17 +901,17 @@
"animation_length": 4,
"bones": {
"torso": {
"rotation": ["40+math.sin(q.anim_time*90*2)*1", "0+math.sin(q.anim_time*90*1)*-1", "0+math.sin(q.anim_time*90*1)*2"],
"position": [0, "math.cos(q.anim_time*90*2)*+0.8", "math.cos(q.anim_time*90*2)*+0.9"]
"rotation": ["40+math.sin(q.anim_time*90*2)*0.5", "0+math.sin(q.anim_time*90*1)*-1", "0+math.sin(q.anim_time*90*1)*2"],
"position": [0, "0+math.cos(q.anim_time*90*2)*0.1", "0+math.cos(q.anim_time*90*2)*0.2"]
},
"neck": {
"rotation": ["-5+math.sin(q.anim_time*90*2-120)*1", 0, 0]
"rotation": ["-5+math.sin(q.anim_time*90*2-120)*3", 0, "0+math.sin(q.anim_time*90*1)*-3"]
},
"neck2": {
"rotation": ["8+math.sin(q.anim_time*90*2-150)*2", 0, 0]
"rotation": ["8+math.sin(q.anim_time*90*2-90)*-3", 0, 0]
},
"neck3": {
"rotation": ["10+math.sin(q.anim_time*90*2-180)*2", 0, 0]
"rotation": ["10+math.sin(q.anim_time*90*2+90)*3", 0, 0]
},
"head_angle": {
"rotation": [15, 0, 0]
@@ -1078,58 +1009,60 @@
"rotation": [0, 0, -45]
},
"leg_left": {
"rotation": [-5, -10, 0]
"rotation": ["math.cos(q.anim_time*90*2)*-2", -10, 0],
"position": [0, "0+math.cos(q.anim_time*90*2)*-0.14", "0+math.cos(q.anim_time*90*2)*0.29"]
},
"leg_left2": {
"rotation": [5, -7.5, 0]
"rotation": ["5+math.cos(q.anim_time*90*2)*3", -7.5, 0]
},
"foot_left": {
"rotation": [0, -2.5, 0]
"rotation": ["0+math.cos(q.anim_time*90*2)*2", -2.5, 0]
},
"foot_left2": {
"rotation": [0, 0, 0]
"rotation": ["-5+math.cos(q.anim_time*90*2)*-3", 0, 0]
},
"leg_right": {
"rotation": [-5, 10, 0]
"rotation": ["math.cos(q.anim_time*90*2)*-2", 10, 0],
"position": [0, "0+math.cos(q.anim_time*90*2)*-0.14", "0+math.cos(q.anim_time*90*2)*0.29"]
},
"leg_right2": {
"rotation": [5, 7.5, 0]
"rotation": ["5+math.cos(q.anim_time*90*2)*3", 7.5, 0]
},
"foot_right": {
"rotation": [0, 2.5, 0]
"rotation": ["0+math.cos(q.anim_time*90*2)*2", 2.5, 0]
},
"foot_right2": {
"rotation": [0, 0, 0]
"rotation": ["-5+math.cos(q.anim_time*90*2)*-3", 0, 0]
},
"antenna_left": {
"rotation": ["0+math.sin(q.anim_time*90*2-120)*-2", 5, 0]
"rotation": ["0+math.sin(q.anim_time*90*2-120)*-1", 5, 0]
},
"antenna_left2": {
"rotation": ["-10+math.sin(q.anim_time*90*2-150)*-3", 0, 0]
"rotation": ["-10+math.sin(q.anim_time*90*2-150)*-2", 0, 0]
},
"antenna_left3": {
"rotation": ["-15+math.sin(q.anim_time*90*2-180)*-5", 0, 0]
"rotation": ["-15+math.sin(q.anim_time*90*2-180)*-3", 0, 0]
},
"antenna_right": {
"rotation": ["0+math.sin(q.anim_time*90*2-120)*-2", -5, 0]
"rotation": ["0+math.sin(q.anim_time*90*2-120)*-1", -5, 0]
},
"antenna_right2": {
"rotation": ["-10+math.sin(q.anim_time*90*2-150)*-3", 0, 0]
"rotation": ["-10+math.sin(q.anim_time*90*2-150)*-2", 0, 0]
},
"antenna_right3": {
"rotation": ["-15+math.sin(q.anim_time*90*2-180)*-5", 0, 0]
"rotation": ["-15+math.sin(q.anim_time*90*2-180)*-3", 0, 0]
},
"wing_left": {
"rotation": [10, "-40+math.sin(q.anim_time*90*4)*2", 17.5]
"rotation": [10, "-40+math.sin(q.anim_time*90*2)*2", 17.5]
},
"wing_left2": {
"rotation": [0, "15+math.sin(q.anim_time*90*4-60)*4", 0]
"rotation": [0, "15+math.sin(q.anim_time*90*2-60)*4", 0]
},
"wing_right": {
"rotation": [10, "40+math.sin(q.anim_time*90*4)*-2", -17.5]
"rotation": [10, "40+math.sin(q.anim_time*90*2)*-2", -17.5]
},
"wing_right2": {
"rotation": [0, "-15+math.sin(q.anim_time*90*4-60)*-4", 0]
"rotation": [0, "-15+math.sin(q.anim_time*90*2-60)*-4", 0]
},
"tail_fins": {
"rotation": ["17.5+math.sin(q.anim_time*90*2-270)*-13", "0+math.sin(q.anim_time*90*1-240)*-20", 0]
@@ -1147,11 +1080,10 @@
"rotation": ["math.sin(q.anim_time*90*2-270)*-5-5", 0, 0]
},
"head": {
"rotation": ["-50+math.sin(q.anim_time*90*2-90)*-2", 0, 0]
"rotation": ["-50+math.sin(q.anim_time*90*2-30)*3", 0, 0]
},
"locator_seat_1": {
"rotation": [40.5, 0, 0],
"position": [0, 0, 0]
"body": {
"position": [0, "0+math.cos(q.anim_time*90*2)*0.2", 0]
}
}
},
@@ -98,15 +98,19 @@
"right_eyelid": {
"position": {
"0.0": [-0.1, 0, 0],
"0.125": [-0.1, 0, 0],
"0.1667": {"pre": [-0.1, 0, 0], "post": [0, 0, 0]}
"0.1667": {
"pre": [-0.1, 0, 0],
"post": [0, 0, 0]
}
}
},
"left_eyelid": {
"position": {
"0.0": [0.1, 0, 0],
"0.125": [0.1, 0, 0],
"0.1667": {"pre": [0.1, 0, 0], "post": [0, 0, 0]}
"0.1667": {
"pre": [0.1, 0, 0],
"post": [0, 0, 0]
}
}
}
}
@@ -144,13 +144,19 @@
}
},
"animation.basculin_whitestripe.blink": {
"loop": true,
"animation_length": 0.1667,
"bones": {
"right_eyelid": {
"position": [-0.1, 0, 0]
"position": {
"0.0": [-0.1, 0, 0],
"0.1667": {"pre": [-0.1, 0, 0], "post": [0, 0, 0]}
}
},
"left_eyelid": {
"position": [0.1, 0, 0]
"position": {
"0.0": [0.1, 0, 0],
"0.1667": {"pre": [0.1, 0, 0], "post": [0, 0, 0]}
}
}
}
}
@@ -508,7 +508,7 @@
}
},
"animation.alcremie.blink": {
"animation_length": 0.20833,
"animation_length": 0.2083,
"bones": {
"eyelid_right": {
"position": {
@@ -526,68 +526,16 @@
}
}
},
"animation.alcremie.shoulder_left": {
"loop": true,
"bones": {
"torso_top": {
"rotation": [0, -7.5, 0],
"position": [-0.25, "0+Math.cos((query.anim_time) * 90 * 1) * 0.2", 0.5]
},
"head": {
"rotation": [0, 7.5, 0],
"position": [0, "-0.25+Math.cos((query.anim_time-0.5) * 90 * 1) * 0.2", 0]
},
"mouth_closed": {
"position": [0, 0, -0.075]
},
"head_top": {
"rotation": [0, 0, "Math.cos((query.anim_time-0.8) * 90 * 1) * 5"]
},
"head_top2": {
"rotation": [0, 0, "Math.cos((query.anim_time-1.2) * 90 * 1) * 5"]
},
"head_top3": {
"rotation": [0, 0, "Math.cos((query.anim_time-1.6) * 90 * 1) * 5"]
},
"hair_right": {
"rotation": [0, 0, "Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5"]
},
"hair_left": {
"rotation": [0, 0, "-(Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5)"]
},
"arm_right": {
"rotation": [123.74471, 15.08807, -138.56862]
},
"arm_right2": {
"rotation": [0, 0, 12.5]
},
"arm_left": {
"rotation": [104.8731, 1.65204, 126.61304]
},
"torso_right": {
"rotation": [0, 0, 0]
},
"torso_bottom_front": {
"rotation": [50, 0, 0]
},
"torso_left": {
"rotation": [0, 0, 50]
},
"torso_bottom_back": {
"rotation": [-50, 0, 0]
}
}
},
"animation.alcremie.shoulder_right": {
"loop": true,
"bones": {
"torso_top": {
"rotation": [0, 7.5, 0],
"rotation": [2.49992, -7.48589, -0.65242],
"position": [0.25, "0+Math.cos((query.anim_time) * 90 * 1) * 0.2", 0.5]
},
"head": {
"rotation": [0, -7.5, 0],
"position": [0, "-0.25+Math.cos((query.anim_time-0.5) * 90 * 1) * 0.2", 0]
"rotation": [2.49, -1.65, -2.03],
"position": [0.08147, "-0.3226+Math.cos((query.anim_time-0.5) * 90 * 1) * 0.2", -0.93086]
},
"head_top": {
"rotation": [0, 0, "Math.cos((query.anim_time-0.8) * 90 * 1) * 5"]
@@ -599,36 +547,135 @@
"rotation": [0, 0, "Math.cos((query.anim_time-1.6) * 90 * 1) * 5"]
},
"hair_right": {
"rotation": [0, 0, "Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5"]
"rotation": [-17.93, 12.39, "-19.2271+Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5"]
},
"hair_left": {
"rotation": [0, 0, "-(Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5)"]
},
"arm_right": {
"rotation": [-68.33966, -1.52081, -135.54152],
"rotation": [-50.00569, -2.38634, -142.02008],
"position": [0, 0.5, 0]
},
"arm_right2": {
"rotation": [0, 0, 0]
},
"arm_left": {
"rotation": [-48.67855, -9.54429, 143.31858],
"position": [-0.28049, -0.25, -0.21523]
"rotation": [-55.49285, 1.12399, 151.97801],
"position": [-0.60663, -0.4933, -0.51004]
},
"torso_right": {
"rotation": [0, 0, -50]
},
"torso_bottom_front": {
"rotation": [50, 0, 0]
"rotation": [125, 0, 0]
},
"torso_left": {
"rotation": [0, 0, 0]
"rotation": [0, 0, 47.5]
},
"torso_bottom_back": {
"rotation": [-50, 0, 0]
"rotation": [-35, 0, 0],
"position": [0, 0, 0]
},
"mouth_closed": {
"position": [0, 0, -0.075]
},
"body": {
"rotation": [0, 0, 7.5],
"position": [0, 0, 0]
},
"elbow_left": {
"rotation": [0, 0, 0]
},
"torso_bottom": {
"rotation": [-62.54884, -14.88141, -5.56091],
"position": [0, 0.62876, -1.04335]
}
}
},
"animation.alcremie.shoulder_right_test": {
"loop": true,
"bones": {
"alcremie": {
"position": [3.75, -2.75, -1.25],
"scale": 0.5
}
}
},
"animation.alcremie.shoulder_left": {
"loop": true,
"bones": {
"torso_top": {
"rotation": [2.49992, 7.48589, 0.65242],
"position": [-0.25, "0+Math.cos((query.anim_time) * 90 * 1) * 0.2", 0.5]
},
"head": {
"rotation": [2.49, 1.65, 2.03],
"position": [-0.08147, "-0.3226+Math.cos((query.anim_time-0.5) * 90 * 1) * 0.2", -0.93086]
},
"head_top": {
"rotation": [0, 0, "Math.cos((query.anim_time-0.8) * 90 * 1) * 5"]
},
"head_top2": {
"rotation": [0, 0, "Math.cos((query.anim_time-1.2) * 90 * 1) * 5"]
},
"head_top3": {
"rotation": [0, 0, "Math.cos((query.anim_time-1.6) * 90 * 1) * 5"]
},
"hair_right": {
"rotation": [0, 0, "(Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5)"]
},
"hair_left": {
"rotation": [-17.93, -12.39, "19.2271-Math.cos((query.anim_time-0.8) * 90 * 1) * 2.5"]
},
"arm_right": {
"rotation": [-55.49285, -1.12399, -151.97801],
"position": [0.60663, -0.4933, -0.51004]
},
"arm_right2": {
"rotation": [0, 0, 0]
},
"arm_left": {
"rotation": [-50.00569, 2.38634, 142.02008],
"position": [0, 0.5, 0]
},
"torso_right": {
"rotation": [0, 0, -47.5]
},
"torso_bottom_front": {
"rotation": [125, 0, 0]
},
"torso_left": {
"rotation": [0, 0, 50]
},
"torso_bottom_back": {
"rotation": [-35, 0, 0],
"position": [0, 0, 0]
},
"mouth_closed": {
"position": [0, 0, -0.075]
},
"body": {
"rotation": [0, 0, -7.5],
"position": [0, 0, 0]
},
"elbow_right": {
"rotation": [0, 0, 0]
},
"elbow_left": {
"rotation": [0, 0, 0]
},
"torso_bottom": {
"rotation": [-62.54884, 14.88141, 5.56091],
"position": [0, 0.62876, -1.04335]
}
}
},
"animation.alcremie.shoulder_left_test": {
"loop": true,
"bones": {
"alcremie": {
"position": [-9.75, -2.75, -1.25],
"scale": 0.5
}
}
}
@@ -1140,7 +1140,7 @@
}
},
"animation.dragapult.physical": {
"animation_length": 3,
"animation_length": 3.5,
"bones": {
"body": {
"rotation": [-8.58579, 0, 0],
@@ -16,6 +16,9 @@
"tongue_right4": {
"rotation": [-45, 0, 0]
},
"head_angle_left": {
"rotation": [27.5, 5, -25]
},
"leaves_left_bottom": {
"rotation": ["12.5+math.sin(q.anim_time*90*2-240)*8", 0, 0]
},
@@ -43,6 +46,9 @@
"neck_left3": {
"rotation": ["20-math.sin(q.anim_time*90*2-240)*2", 0, 0]
},
"head_angle_right": {
"rotation": [27.5, -5, 25]
},
"leg_left": {
"rotation": ["-45+math.sin(q.anim_time*90*2)*8", -45, 0],
"position": ["math.sin(q.anim_time*90*2)/4", "-0.1+math.sin(q.anim_time*90*2)*0.9", "-math.sin(q.anim_time*90*2)/4"]
@@ -156,12 +162,6 @@
},
"leaves_left_top": {
"rotation": ["-25-math.sin(q.anim_time*90*2-210)*8", 0, 0]
},
"head_right": {
"rotation": [27.5, -5, 25]
},
"head_left": {
"rotation": [27.5, 5, -25]
}
}
},
@@ -678,125 +678,62 @@
"eye_inner_right": {
"position": {
"0.0": [0, 0, 0],
"1.6667": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"2.6667": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
},
"3.8333": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"4.0": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"1.6667": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"2.6667": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]},
"3.8333": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"4.0": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_sad_inner_right": {
"position": {
"0.0": [0, 0, 0],
"2.6667": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"3.8333": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"2.6667": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"3.8333": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_right": {
"position": {
"0.0": [0, 0, 0],
"3.8333": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"4.0": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"3.8333": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"4.0": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_inner_right": {
"position": {
"0.0": [0, 0, 0],
"1.6667": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"2.6667": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"1.6667": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"2.6667": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_outer_right": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [0.25, -0.25, 0]
},
"1.875": {
"pre": [0.25, -0.25, 0],
"post": [0.1, -0.1, 0]
},
"2.6667": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
},
"3.8333": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"4.0": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [0.25, -0.25, 0]},
"1.875": {"pre": [0.25, -0.25, 0], "post": [0.1, -0.1, 0]},
"2.6667": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]},
"3.8333": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"4.0": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_sad_outer_right": {
"position": {
"0.0": [0, 0, 0],
"2.6667": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"3.8333": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"2.6667": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"3.8333": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_right": {
"position": {
"0.0": [0, 0, 0],
"3.8333": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"4.0": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"3.8333": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"4.0": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_outer_right": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"2.6667": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"2.6667": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"neck_left": {
@@ -980,125 +917,62 @@
"eye_outer_left": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"2.6667": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
},
"3.8333": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"4.0": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"2.6667": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]},
"3.8333": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"4.0": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_sad_outer_left": {
"position": {
"0.0": [0, 0, 0],
"2.6667": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"3.8333": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"2.6667": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"3.8333": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_left": {
"position": {
"0.0": [0, 0, 0],
"3.8333": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"4.0": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"3.8333": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"4.0": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_outer_left": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"2.6667": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
},
"3.8333": {
"pre": [0, 0, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"2.6667": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]},
"3.8333": {"pre": [0, 0, 0], "post": [0, 0, 0]}
}
},
"eye_inner_left": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"2.6667": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
},
"3.8333": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"4.0": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"2.6667": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]},
"3.8333": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"4.0": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_sad_inner_left": {
"position": {
"0.0": [0, 0, 0],
"2.6667": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"3.8333": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"2.6667": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"3.8333": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_left": {
"position": {
"0.0": [0, 0, 0],
"3.8333": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"4.0": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"3.8333": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"4.0": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_inner_left": {
"position": {
"0.0": [0, 0, 0],
"1.7083": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"2.6667": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"1.7083": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"2.6667": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
}
}
@@ -1119,6 +993,9 @@
"tongue_right4": {
"rotation": [-45, 0, 0]
},
"head_angle_left": {
"rotation": [27.5, 5, -25]
},
"leaves_left_bottom": {
"rotation": ["15-math.sin(q.anim_time*90*16/3-150)*8", 0, 0]
},
@@ -1139,7 +1016,7 @@
"rotation": ["25-math.sin(q.anim_time*90*16/3-180)*12", 0, 0]
},
"neck_right": {
"rotation": ["40+math.sin(q.anim_time*90*16/3-90)*6", "45+math.sin(q.anim_time*90*8/3-210)*12", "-7.5-math.sin(q.anim_time*90*16/3-180)*6"]
"rotation": ["40+math.sin(q.anim_time*90*16/3-90)*6", "52.5+math.sin(q.anim_time*90*8/3-210)*12", "-7.5-math.sin(q.anim_time*90*16/3-180)*6"]
},
"neck_left": {
"rotation": ["40+math.sin(q.anim_time*90*16/3-90)*6", "-52.5+math.sin(q.anim_time*90*8/3-180)*16", "7.5+math.sin(q.anim_time*90*16/3-180)*6"]
@@ -1147,6 +1024,9 @@
"neck_left3": {
"rotation": ["25-math.sin(q.anim_time*90*16/3-180)*12", 0, 0]
},
"head_angle_right": {
"rotation": [27.5, -5, 25]
},
"leg_left": {
"rotation": {
"0.0": {
@@ -1423,10 +1303,10 @@
"position": [0, "-math.sin(q.anim_time*90*16/3)/2", 0]
},
"head_right": {
"rotation": [2.5, "NaN-math.sin(q.anim_time*90*8/3-180)*8", "47.5+math.sin(q.anim_time*90*8/3-240)*16"]
"rotation": [-25, "NaN-math.sin(q.anim_time*90*8/3-180)*8", "25+math.sin(q.anim_time*90*8/3-240)*16"]
},
"head_left": {
"rotation": [0, "-12.5-math.sin(q.anim_time*90*8/3-180)*8", "-50+math.sin(q.anim_time*90*8/3-240)*16"]
"rotation": [-25, "-math.sin(q.anim_time*90*8/3-180)*8", "-25+math.sin(q.anim_time*90*8/3-240)*16"]
},
"toe_left": {
"rotation": {
@@ -1496,6 +1376,9 @@
"tongue_right4": {
"rotation": [-45, 0, 0]
},
"head_angle_left": {
"rotation": [27.5, 5, -25]
},
"leaves_left_bottom": {
"rotation": ["22.5+math.sin(q.anim_time*90*32/3-60)*12", 0, 0]
},
@@ -1523,6 +1406,9 @@
"neck_left3": {
"rotation": ["20+math.sin(q.anim_time*90*32/3-90)*6", 0, 0]
},
"head_angle_right": {
"rotation": [27.5, -5, 25]
},
"leg_left": {
"rotation": {
"0.0": [-45, -27.5, 0],
@@ -1768,10 +1654,10 @@
"rotation": ["-math.sin(q.anim_time*90*32/3)*6", "math.sin(q.anim_time*90*16/3)*16", "-math.sin(q.anim_time*90*16/3-30)*20"]
},
"head_right": {
"rotation": ["15+math.sin(q.anim_time*90*32/3-180)*16", "-17.5+math.sin(q.anim_time*90*16/3-180)*8", 15]
"rotation": ["-25+math.sin(q.anim_time*90*32/3-180)*16", "-17.5+math.sin(q.anim_time*90*16/3-180)*8", 15]
},
"head_left": {
"rotation": ["math.sin(q.anim_time*90*32/3-180)*16", "17.5+math.sin(q.anim_time*90*16/3-180)*8", -40]
"rotation": ["-25+math.sin(q.anim_time*90*32/3-180)*16", "17.5+math.sin(q.anim_time*90*16/3-180)*8", -15]
},
"toe_left": {
"rotation": {
@@ -1840,6 +1726,9 @@
"tongue_right4": {
"rotation": ["-45-math.sin(q.anim_time*90*8-90)*8", 0, 0]
},
"head_angle_left": {
"rotation": [27.5, 5, -25]
},
"leaves_left_bottom": {
"rotation": ["22.5-math.sin(q.anim_time*90*2-90)*8", 0, 0]
},
@@ -1867,6 +1756,9 @@
"neck_left3": {
"rotation": ["52.5-math.sin(q.anim_time*90*2-270)*6", 0, 0]
},
"head_angle_right": {
"rotation": [27.5, -5, 25]
},
"leg_left": {
"rotation": ["-45+math.sin(q.anim_time*90*2)*4", -70, 0],
"position": ["-0.5+math.sin(q.anim_time*90*2)/5", "-0.2+math.sin(q.anim_time*90*2)/2.2", "3-math.sin(q.anim_time*90*2)/12"]
@@ -1972,10 +1864,10 @@
"rotation": ["10-math.sin(q.anim_time*90*2-150)*2", 10, 0]
},
"head_right": {
"rotation": ["-25+math.sin(q.anim_time*90*2+90)*12", 25, 7.5]
"rotation": ["-55+math.sin(q.anim_time*90*2+90)*12", 7.5, -10]
},
"head_left": {
"rotation": ["20-math.sin(q.anim_time*90*2-30)*8", "-25-math.sin(q.anim_time*90*2-30)*4", "-25+math.sin(q.anim_time*90*2-30)*4"]
"rotation": ["-22.5-math.sin(q.anim_time*90*2-30)*8", "-25-math.sin(q.anim_time*90*2-30)*4", "math.sin(q.anim_time*90*2-30)*4"]
},
"leaves_right_top": {
"rotation": ["-17.5+math.sin(q.anim_time*90*2-30)*8", 0, 0]
@@ -1992,7 +1884,7 @@
}
},
"animation.scovillain.recoil": {
"animation_length": 0.9583,
"animation_length": 1,
"bones": {
"torso": {
"rotation": {
@@ -2163,11 +2055,6 @@
"head_right": {
"rotation": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [-14.29, 0, -20],
"post": [-14.29, 0, -20],
"lerp_mode": "catmullrom"
},
"0.2917": [-25, 0, 0],
"0.4583": {
"pre": [-25, -22.5, -22.5],
@@ -2188,37 +2075,25 @@
"eye_inner_right": {
"position": {
"0.0": [-0.1, -0.1, 0],
"0.8333": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.8333": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_inner_right": {
"position": {
"0.0": [0.1, 0.1, 0],
"0.8333": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.8333": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_outer_right": {
"position": {
"0.0": [0.1, -0.1, 0],
"0.8333": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.8333": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_outer_right": {
"position": {
"0.0": [-0.1, 0.1, 0],
"0.8333": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.8333": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"jaw_right2": {
@@ -2272,8 +2147,7 @@
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"0.875": [0, 0, 0],
"0.9583": [0, 0, 0]
"0.875": [0, 0, 0]
}
},
"neck_left3": {
@@ -2303,11 +2177,6 @@
"head_left": {
"rotation": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [-16.67, 0, 35],
"post": [-16.67, 0, 35],
"lerp_mode": "catmullrom"
},
"0.25": [-25, 0, 0],
"0.3333": {
"pre": [-25, 0, 0],
@@ -2328,37 +2197,25 @@
"eye_outer_left": {
"position": {
"0.0": [-0.1, -0.1, 0],
"0.7083": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.7083": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_outer_left": {
"position": {
"0.0": [0.1, 0.1, 0],
"0.7083": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.7083": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_inner_left": {
"position": {
"0.0": [0.1, -0.1, 0],
"0.7083": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.7083": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_hurt_inner_left": {
"position": {
"0.0": [-0.1, 0.1, 0],
"0.7083": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.7083": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"jaw_left2": {
@@ -2507,111 +2364,51 @@
"eye_inner_right": {
"position": {
"0.0": [0, 0, 0],
"0.125": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"0.25": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
},
"1.5": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"1.75": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"0.25": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]},
"1.5": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"1.75": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_angry_inner_right": {
"position": {
"0.0": [0, 0, 0],
"0.25": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"1.75": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.25": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"1.75": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_right": {
"position": {
"0.0": [0, 0, 0],
"0.125": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"0.25": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
},
"1.5": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"1.75": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"0.25": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]},
"1.5": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"1.75": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_outer_right": {
"position": {
"0.0": [0, 0, 0],
"0.125": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"0.25": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
},
"1.5": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"1.75": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"0.25": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]},
"1.5": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"1.75": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyebrow_angry_outer_right": {
"position": {
"0.0": [0, 0, 0],
"0.25": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"1.75": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.25": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"1.75": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_right": {
"position": {
"0.0": [0, 0, 0],
"0.125": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"0.25": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
},
"1.5": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"1.75": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"0.25": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]},
"1.5": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"1.75": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"tongue_right": {
@@ -2694,7 +2491,12 @@
"0.9167": {
"post": [-7.5, 0, 0],
"lerp_mode": "catmullrom"
}
},
"2.25": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"2.5": [0, 0, 0]
}
},
"jaw_right_tip": {
@@ -2716,7 +2518,12 @@
"0.9167": {
"post": [5, 0, 0],
"lerp_mode": "catmullrom"
}
},
"2.25": {
"post": [0, 0, 0],
"lerp_mode": "catmullrom"
},
"2.5": [0, 0, 0]
}
},
"neck_left": {
@@ -2808,95 +2615,47 @@
"eye_outer_left": {
"position": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"0.2917": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
},
"1.0": {
"pre": [0, 0, 0],
"post": [-0.1, -0.1, 0]
},
"2.0": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"0.2917": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]},
"1.0": {"pre": [0, 0, 0], "post": [-0.1, -0.1, 0]},
"2.0": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_left": {
"position": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"0.2917": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"0.2917": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_happy_outer_left": {
"position": {
"0.0": [0, 0, 0],
"1.0": {
"pre": [0, 0, 0],
"post": [0.1, 0.1, 0]
},
"2.0": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"1.0": {"pre": [0, 0, 0], "post": [0.1, 0.1, 0]},
"2.0": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_inner_left": {
"position": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"0.2917": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
},
"1.0": {
"pre": [0, 0, 0],
"post": [0.1, -0.1, 0]
},
"2.0": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"0.2917": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]},
"1.0": {"pre": [0, 0, 0], "post": [0.1, -0.1, 0]},
"2.0": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_left": {
"position": {
"0.0": [0, 0, 0],
"0.1667": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"0.2917": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.1667": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"0.2917": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_happy_inner_left": {
"position": {
"0.0": [0, 0, 0],
"1.0": {
"pre": [0, 0, 0],
"post": [-0.1, 0.1, 0]
},
"2.0": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"1.0": {"pre": [0, 0, 0], "post": [-0.1, 0.1, 0]},
"2.0": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"jaw_left2": {
@@ -3576,53 +3335,29 @@
"eye_outer_right": {
"position": {
"0.0": [0.1, -0.1, 0],
"0.125": {
"pre": [0.1, -0.1, 0],
"post": [0.1, -0.1, 0]
},
"0.1667": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0.1, -0.1, 0], "post": [0.1, -0.1, 0]},
"0.1667": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_right": {
"position": {
"0.0": [-0.1, 0.1, 0],
"0.125": {
"pre": [-0.1, 0.1, 0],
"post": [-0.1, 0.1, 0]
},
"0.1667": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [-0.1, 0.1, 0], "post": [-0.1, 0.1, 0]},
"0.1667": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_inner_right": {
"position": {
"0.0": [-0.1, -0.1, 0],
"0.125": {
"pre": [-0.1, -0.1, 0],
"post": [-0.1, -0.1, 0]
},
"0.1667": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [-0.1, -0.1, 0], "post": [-0.1, -0.1, 0]},
"0.1667": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_right": {
"position": {
"0.0": [0.1, 0.1, 0],
"0.125": {
"pre": [0.1, 0.1, 0],
"post": [0.1, 0.1, 0]
},
"0.1667": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0.1, 0.1, 0], "post": [0.1, 0.1, 0]},
"0.1667": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
}
}
@@ -3633,53 +3368,29 @@
"eye_outer_left": {
"position": {
"0.0": [-0.1, -0.1, 0],
"0.125": {
"pre": [-0.1, -0.1, 0],
"post": [-0.1, -0.1, 0]
},
"0.1667": {
"pre": [-0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [-0.1, -0.1, 0], "post": [-0.1, -0.1, 0]},
"0.1667": {"pre": [-0.1, -0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_outer_left": {
"position": {
"0.0": [0.1, 0.1, 0],
"0.125": {
"pre": [0.1, 0.1, 0],
"post": [0.1, 0.1, 0]
},
"0.1667": {
"pre": [0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0.1, 0.1, 0], "post": [0.1, 0.1, 0]},
"0.1667": {"pre": [0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eyelid_inner_left": {
"position": {
"0.0": [-0.1, 0.1, 0],
"0.125": {
"pre": [-0.1, 0.1, 0],
"post": [-0.1, 0.1, 0]
},
"0.1667": {
"pre": [-0.1, 0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [-0.1, 0.1, 0], "post": [-0.1, 0.1, 0]},
"0.1667": {"pre": [-0.1, 0.1, 0], "post": [0, 0, 0]}
}
},
"eye_inner_left": {
"position": {
"0.0": [0.1, -0.1, 0],
"0.125": {
"pre": [0.1, -0.1, 0],
"post": [0.1, -0.1, 0]
},
"0.1667": {
"pre": [0.1, -0.1, 0],
"post": [0, 0, 0]
}
"0.125": {"pre": [0.1, -0.1, 0], "post": [0.1, -0.1, 0]},
"0.1667": {"pre": [0.1, -0.1, 0], "post": [0, 0, 0]}
}
}
}
@@ -3713,14 +3424,6 @@
"position": [0, 0, "47-q.anim_time*90*0.7"]
}
}
},
"animation.scovillain.scaletest": {
"loop": true,
"bones": {
"scovillain": {
"scale": 0.6
}
}
}
}
}
@@ -7,8 +7,8 @@
"texture_width": 256,
"texture_height": 128,
"visible_bounds_width": 6,
"visible_bounds_height": 4,
"visible_bounds_offset": [0, 1, 0]
"visible_bounds_height": 5,
"visible_bounds_offset": [0, 1.5, 0]
},
"bones": [
{
@@ -252,7 +252,7 @@
"name": "head_correction",
"parent": "head",
"pivot": [0, 14.25, -14],
"rotation": [-42.5, 0, 0]
"rotation": [50, 0, 0]
},
{
"name": "head_ai",
@@ -263,6 +263,7 @@
"name": "head_angle",
"parent": "head_ai",
"pivot": [0, 14.25, -15],
"rotation": [-92.5, 0, 0],
"cubes": [
{"origin": [-7, 3.5, -21.5], "size": [14, 15, 6], "inflate": 0.01, "uv": [0, 0]},
{"origin": [-7, 10.5, -15.5], "size": [14, 8, 3], "inflate": 0.01, "uv": [40, 0]},
@@ -7,8 +7,8 @@
"texture_width": 64,
"texture_height": 64,
"visible_bounds_width": 4,
"visible_bounds_height": 2.5,
"visible_bounds_offset": [0, 0.75, 0]
"visible_bounds_height": 3.5,
"visible_bounds_offset": [0, 1.25, 0]
},
"bones": [
{
@@ -95,8 +95,8 @@
"rotation": [5, 0, 0],
"cubes": [
{"origin": [-3.5, 6.5, -12.25], "size": [7, 7, 8], "inflate": 0.01, "uv": [28, 18]},
{"origin": [3.515, 5.5, -8.35], "size": [0, 2, 2], "inflate": 0.01, "pivot": [3.5, 6.5, -7.35], "rotation": [45, 0, 0], "uv": [18, 60]},
{"origin": [-3.515, 5.5, -8.35], "size": [0, 2, 2], "inflate": 0.01, "pivot": [-3.5, 6.5, -7.35], "rotation": [45, 0, 0], "uv": [14, 60]},
{"origin": [3.515, 5.5, -8.35], "size": [0, 2, 2], "inflate": 0.01, "pivot": [3.5, 6.5, -7.35], "rotation": [45, 0, 0], "uv": [23, 27]},
{"origin": [-3.515, 5.5, -8.35], "size": [0, 2, 2], "inflate": 0.01, "pivot": [-3.5, 6.5, -7.35], "rotation": [45, 0, 0], "uv": [5, 23]},
{"origin": [-3.5, 10.5, -11.25], "size": [7, 2, 3], "inflate": 0.05, "uv": [40, 48]}
]
},
@@ -200,8 +200,8 @@
"parent": "left_eye",
"pivot": [3.5125, 9.5, -9.75],
"cubes": [
{"origin": [3.515, 8, -10.75], "size": [0, 3, 2], "inflate": 0.01, "uv": [18, 53]},
{"origin": [3.52, 9, -10.25], "size": [0, 1, 1], "inflate": 0.01, "uv": [19, 57]}
{"origin": [3.51, 8, -10.75], "size": [0, 3, 2], "inflate": 0.01, "uv": [18, 53]},
{"origin": [3.515, 9, -10.25], "size": [0, 1, 1], "inflate": 0.01, "uv": [19, 57]}
]
},
{
@@ -264,8 +264,8 @@
"rotation": [-12.5, 0, 0],
"cubes": [
{"origin": [-3.5, 0.5, -12.7], "size": [7, 5, 9], "inflate": 0.02, "uv": [0, 24]},
{"origin": [3.51, 3.9, -7], "size": [0, 2, 2], "pivot": [3.5, 6.4, -6.25], "rotation": [45, 0, 0], "uv": [0, -2]},
{"origin": [-3.5, 3.9, -7], "size": [0, 2, 2], "pivot": [-3.5, 6.4, -6.25], "rotation": [45, 0, 0], "uv": [6, 6]}
{"origin": [3.51, 3.9, -7], "size": [0, 2, 2], "pivot": [3.5, 6.4, -6.25], "rotation": [45, 0, 0], "uv": [23, 29]},
{"origin": [-3.5, 3.9, -7], "size": [0, 2, 2], "pivot": [-3.5, 6.4, -6.25], "rotation": [45, 0, 0], "uv": [5, 25]}
]
},
{
@@ -142,7 +142,7 @@
"parent": "right_eye",
"pivot": [-3.41, 8.5, -8.5],
"cubes": [
{"origin": [-3.41, 6.5, -10], "size": [1, 5, 3], "inflate": 0.02, "uv": [26, 2]}
{"origin": [-3.415, 6.5, -10], "size": [1, 5, 3], "inflate": 0.02, "uv": [26, 2]}
]
},
{
@@ -8,12 +8,12 @@
"seat_1": [0, 0.45, 0]
},
"thirdPersonCameraOffset": {
"seat_1": [0, 0.45, 0.5],
"seat_1_reverse": [0, 0.45, 0]
"seat_1": [0, 1, 1],
"seat_1_reverse": [0, 1, 0]
},
"thirdPersonCameraOffsetNoViewBobbing": {
"seat_1": [0, 0.45, 0],
"seat_1_reverse": [0, 0.45, 0]
"seat_1": [0, 1, 1],
"seat_1_reverse": [0, 1, 0]
},
"animations": {
"cry": "q.bedrock_stateful('charizard', 'cry')",
@@ -38,6 +38,44 @@
"quirks": [
"q.bedrock_quirk('eevee', 'blink')"
]
},
"shoulder_left": {
"poseName": "shoulder_left",
"poseTypes": [
"SHOULDER_LEFT"
],
"animations": [
"q.look('head')",
"q.bedrock('eevee', 'ground_idle')"
],
"quirks": [
"q.bedrock_quirk('eevee', 'blink')"
],
"transformedParts": [
{
"part": "body",
"position": [5, 0, 0]
}
]
},
"shoulder_right": {
"poseName": "shoulder_right",
"poseTypes": [
"SHOULDER_RIGHT"
],
"animations": [
"q.look('head')",
"q.bedrock('eevee', 'ground_idle')"
],
"quirks": [
"q.bedrock_quirk('eevee', 'blink')"
],
"transformedParts": [
{
"part": "body",
"position": [-5, 0, 0]
}
]
}
}
}
@@ -8,12 +8,12 @@
"seat_1": [0, 0.45, 0]
},
"thirdPersonCameraOffset": {
"seat_1": [0, 0.4, 0.5],
"seat_1_reverse": [0, 0.4, 0.5]
"seat_1": [0, 1, 1],
"seat_1_reverse": [0, 1, 0.5]
},
"thirdPersonCameraOffsetNoViewBobbing": {
"seat_1": [0, 0.4, 0.5],
"seat_1_reverse": [0, 0.4, 0.5]
"seat_1": [0, 1, 1],
"seat_1_reverse": [0, 1, 0.5]
},
"animations": {
"cry": "q.bedrock_stateful('flygon', 'cry')"
@@ -22,7 +22,7 @@
"standing": {
"poseTypes": ["STAND", "FLOAT", "NONE", "PORTRAIT", "PROFILE"],
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'ground_idle')"
],
"quirks": [
@@ -33,7 +33,7 @@
"poseTypes": ["WALK", "SWIM"],
"condition": "q.has_entity ? !q.is_sprinting : 1.0",
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'ground_walk')",
{
"condition": "q.is_ridden",
@@ -46,7 +46,7 @@
"poseTypes": ["WALK", "SWIM"],
"condition": "q.has_entity ? q.is_sprinting : 0.0",
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'ground_run')",
{
"condition": "q.is_ridden",
@@ -58,7 +58,7 @@
"hover": {
"poseTypes": ["HOVER"],
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'air_idle')"
],
"quirks": [
@@ -69,7 +69,7 @@
"poseTypes": ["FLY"],
"condition": "!q.is_gliding",
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'air_fly')",
{
"condition": "q.is_ridden",
@@ -84,7 +84,7 @@
"poseTypes": ["FLY"],
"condition": "q.is_gliding",
"animations": [
"q.look('head')",
"q.look('head_ai')",
"q.bedrock('flygon', 'air_glide')",
"q.bedrock('flygon', 'ride_dive')",
{
@@ -2,7 +2,7 @@
"portraitScale": 1.11,
"portraitTranslation": [-1.66,4.48,0],
"profileScale": 0.25,
"profileTranslation": [0,1.5,0],
"profileTranslation": [0,1.5,-10],
"rootBone": "rayquaza",
"animations": {},
"poses": {
@@ -10,7 +10,6 @@
"poses": {
"standing": {
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"isBattle": true,
"animations": ["q.look('head')", "q.bedrock('tynamo', 'ground_idle')"],
"quirks": ["q.bedrock_quirk('tynamo', 'blink')"]
},
@@ -23,13 +22,19 @@
"quirks": ["q.bedrock_quirk('tynamo', 'blink')"]
},
"float": {
"poseTypes": ["FLOAT"],
"animations": ["q.bedrock('tynamo', 'ground_idle')"],
"poseTypes": ["FLOAT", "HOVER"],
"animations": [
"q.pitch_tilt('body')",
"q.bedrock('tynamo', 'ground_idle')"
],
"quirks": ["q.bedrock_quirk('tynamo', 'blink')"]
},
"swim": {
"poseTypes": ["SWIM"],
"animations": ["q.bedrock('tynamo', 'ground_idle')"],
"poseTypes": ["SWIM", "FLY"],
"animations": [
"q.pitch_tilt('body')",
"q.bedrock('tynamo', 'ground_idle')"
],
"quirks": ["q.bedrock_quirk('tynamo', 'blink')"]
}
}
@@ -13,7 +13,7 @@
"PROFILE"
],
"animations": [
"q.look('head_ai')",
"q.look('head_ai', 0.5, 0.4)",
"q.bedrock('shelmet', 'ground_idle')"
],
"quirks": [
@@ -25,7 +25,7 @@
"WALK","SWIM"
],
"animations": [
"q.look('head_ai')",
"q.look('head_ai', 0.5, 0.4)",
"q.biped_walk(0.66, 0.6, 'leg_left', 'leg_right')",
"q.bedrock('shelmet', 'ground_idle')"
],
@@ -22,7 +22,7 @@
]
},
"standing": {
"poseTypes": ["STAND", "NONE", "PROFILE"],
"poseTypes": ["STAND", "FLOAT", "SWIM", "NONE", "PROFILE"],
"isBattle": false,
"animations": [
"q.bedrock('stunfisk', 'ground_idle')"
@@ -22,7 +22,7 @@
]
},
"standing": {
"poseTypes": ["STAND", "NONE", "PROFILE"],
"poseTypes": ["STAND", "FLOAT", "SWIM", "NONE", "PROFILE"],
"isBattle": false,
"animations": [
"q.bedrock('stunfisk_galarian', 'ground_idle')"
@@ -10,14 +10,26 @@
},
"poses": {
"standing": {
"poseTypes": ["STAND", "FLOAT", "HOVER", "NONE", "PORTRAIT", "PROFILE"],
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"animations": [
"q.bedrock('cutiefly', 'ground_idle')"
]
},
"walking": {
"poseTypes": ["WALK"],
"animations": [
"q.bedrock('cutiefly', 'ground_walk')"
]
},
"hover": {
"poseTypes": ["HOVER", "FLOAT"],
"animations": [
"q.pitch_tilt('body', 0.22)",
"q.bedrock('cutiefly', 'ground_idle')"
]
},
"walking": {
"poseTypes": ["WALK", "SWIM", "FLY"],
"fly": {
"poseTypes": ["FLY", "SWIM"],
"animations": [
"q.pitch_tilt('body', 0.22)",
"q.bedrock('cutiefly', 'ground_walk')"
@@ -10,19 +10,31 @@
},
"poses": {
"standing": {
"poseTypes": ["STAND", "FLOAT", "HOVER", "NONE", "PORTRAIT", "PROFILE"],
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
"animations": [
"q.look('head', 1, 1, 15, -25, 15, -25)",
"q.look('scarf', 1, 1, 15, -25, 15, -25)",
"q.pitch_tilt('body', 0.22)",
"q.bedrock('ribombee', 'ground_idle')"
]
},
"walking": {
"poseTypes": ["WALK", "SWIM", "FLY"],
"poseTypes": ["WALK"],
"animations": [
"q.look('head', 1, 1, 0, 0, 45, -45)",
"q.look('scarf', 1, 1, 0, 0, 45, -45)",
"q.bedrock('ribombee', 'ground_walk')"
]
},
"hover": {
"poseTypes": ["HOVER", "FLOAT"],
"animations": [
"q.pitch_tilt('body', 0.22)",
"q.bedrock('ribombee', 'ground_idle')"
]
},
"fly": {
"poseTypes": ["FLY", "SWIM"],
"animations": [
"q.pitch_tilt('body', 0.22)",
"q.bedrock('ribombee', 'ground_walk')"
]
@@ -9,16 +9,16 @@
"seat_2": [0, 0.45, 0]
},
"thirdPersonCameraOffset": {
"seat_1": [0, 0.75, 1.5],
"seat_1_reverse": [0, 0.37, 0.5],
"seat_2": [0, 0.75, 1.5],
"seat_2_reverse": [0, 0.37, 0.5]
"seat_1": [0, 1, 1.5],
"seat_1_reverse": [0, 1, 0.5],
"seat_2": [0, 1, 1.5],
"seat_2_reverse": [0, 1, 0.5]
},
"thirdPersonCameraOffsetNoViewBobbing": {
"seat_1": [0, 0.75, 1.5],
"seat_1_reverse": [0, 0.37, 0.5],
"seat_2": [0, 0.75, 1.5],
"seat_2_reverse": [0, 0.37, 0.5]
"seat_1": [0, 1, 1.5],
"seat_1_reverse": [0, 1, 0.5],
"seat_2": [0, 1, 1.5],
"seat_2_reverse": [0, 1, 0.5]
},
"animations": {
"cry": "q.bedrock_stateful('corviknight', 'cry')",
@@ -11,7 +11,7 @@
"standing": {
"poseTypes": ["STAND", "FLOAT", "NONE", "PORTRAIT", "PROFILE"],
"animations": [
"q.look('neck')",
"q.look('head', 0.6, 0.6)",
"q.bedrock('sandaconda', 'ground_idle')"
],
"quirks": ["q.bedrock_quirk('sandaconda', 'blink')"]
@@ -19,6 +19,7 @@
"walking": {
"poseTypes": ["WALK", "SWIM"],
"animations": [
"q.look('head', 0.6, 0.6)",
"q.bedrock('sandaconda', 'ground_idle')"
],
"quirks": ["q.bedrock_quirk('sandaconda', 'blink')"]
@@ -0,0 +1,89 @@
{
"portraitScale": 2.14,
"portraitTranslation": [-0.25, -0.31, 0],
"profileScale": 0.54,
"profileTranslation": [0, 0.88, 0],
"rootBone": "alcremie",
"poses": {
"sleep": {
"poseName": "sleep",
"poseTypes": [
"SLEEP"
],
"animations": [
"q.bedrock('alcremie', 'sleep')"
]
},
"standing": {
"poseName": "standing",
"poseTypes": [
"PROFILE",
"PORTRAIT",
"STAND",
"FLOAT",
"NONE"
],
"animations": [
"q.look('head')",
"q.bedrock('alcremie', 'ground_idle')"
],
"transformTicks": 10,
"quirks": [
"q.bedrock_quirk('alcremie', 'blink')"
]
},
"walk": {
"poseName": "walk",
"poseTypes": [
"WALK",
"SWIM"
],
"animations": [
"q.look('head')",
"q.bedrock('alcremie', 'ground_walk')"
],
"transformTicks": 5,
"quirks": [
"q.bedrock_quirk('alcremie', 'blink')"
]
},
"shoulder_left": {
"poseName": "shoulder_left",
"poseTypes": [
"SHOULDER_LEFT"
],
"animations": [
"q.look('head')",
"q.bedrock('alcremie', 'shoulder_left')"
],
"quirks": [
"q.bedrock_quirk('alcremie', 'blink')"
],
"transformedParts": [
{
"part": "body",
"position": [15, 2.75, -1.25]
}
]
},
"shoulder_right": {
"poseName": "shoulder_right",
"poseTypes": [
"SHOULDER_RIGHT"
],
"animations": [
"q.look('head')",
"q.bedrock('alcremie', 'shoulder_right')"
],
"quirks": [
"q.bedrock_quirk('alcremie', 'blink')"
],
"transformedParts": [
{
"part": "body",
"position": [-15, 2.75, -1.25]
}
]
}
}
}
@@ -18,7 +18,7 @@
"animations": {
"cry": "q.bedrock_stateful('dragapult', 'cry')",
"recoil": "q.bedrock_stateful('dragapult', 'recoil')",
"physical": "q.bedrock_primary('dragapult', 'physical', q.curve('symmetrical_wide'))",
"physical": "q.bedrock_primary('dragapult', 'physical', q.curve('symmetrical'))",
"special": "q.bedrock_primary('dragapult', 'special', q.curve('symmetrical_wide'))"
},
"poses": {
@@ -73,7 +73,7 @@
"poseTypes": ["STAND"],
"isBattle": false,
"isTouchingWater": false,
"condition": "!q.in_air && q.is_standing_on_blocks(2, 'minecraft:sand', 'minecraft:red_sand')",
"condition": "!q.in_air && !q.is_ridden && q.is_standing_on_blocks(2, 'minecraft:sand', 'minecraft:red_sand')",
"animations": [
"q.bedrock('orthworm', 'sand_idle')"
],
@@ -11,7 +11,8 @@
{
"name": "eyes",
"texture": "cobblemon:textures/pokemon/0330_flygon/flygon_transparency.png",
"translucent": true
"translucent": true,
"translucent_cull": true
}
]
},
@@ -22,7 +23,8 @@
{
"name": "eyes",
"texture": "cobblemon:textures/pokemon/0330_flygon/flygon_transparency_shiny.png",
"translucent": true
"translucent": true,
"translucent_cull": true
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

@@ -8,22 +8,25 @@
{
use(battle, pokemon, itemId, data) {
var statuses = [];
var shouldCure = true;
if (data.length > 0) {
shouldCure = false;
for (const status of data) {
if (pokemon.status == status) {
shouldCure = true;
}
const curedVolatiles = [];
var shouldCureNonvolatile = false;
for (const status of data) {
if (pokemon.status == status) {
shouldCureNonvolatile = true;
}
else if (pokemon.volatiles[status]) {
curedVolatiles.push(status);
}
}
if (shouldCure) {
if (shouldCureNonvolatile) {
pokemon.cureStatus(true);
}
if (data.length == 0) {
pokemon.removeVolatile('confusion');
if (curedVolatiles.length != 0) {
for (const volatile of curedVolatiles) {
pokemon.removeVolatile(volatile);
}
}
}
}
@@ -1,13 +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/.
*/
{
use(battle, pokemon, itemId, data) {
pokemon.removeVolatile(data[0]);
}
}
@@ -31,12 +31,7 @@
"type": "add_tasks_to_activity",
"activity": "minecraft:idle",
"tasksByPriority": {
"0": [
{
"type": "cobblemon:run_script",
"script": "cobblemon:pokemon_wander_control"
}
]
"0": [ "pokemon_wander_control" ]
}
}
]
@@ -1,7 +1,7 @@
{
"id": "cobblemon:slowpoke-galar",
"speciesId": "cobblemon:slowpoke",
"displayAspects": [],
"displayAspects": ["regrown-tail-1", "regrown-tail-2","regrown-tail-3"],
"conditionAspects": [],
"forms": [
{
@@ -1,7 +1,7 @@
{
"id": "cobblemon:slowpoke",
"speciesId": "cobblemon:slowpoke",
"displayAspects": [],
"displayAspects": ["regrown-tail-1", "regrown-tail-2","regrown-tail-3"],
"conditionAspects": [],
"forms": [
{
@@ -30,7 +30,7 @@
}
},
"statPointFlavourThresholds": {
"1": 1,
"15": 1,
"35": 2,
"45": 3,
"55": 4,
@@ -1,8 +0,0 @@
t.wander_control = q.entity.get_wander_control_memory();
t.wander_control.reset();
t.wander_control.set_allow_land((q.entity.behaviour.moving.walk.can_walk && !q.entity.behaviour.moving.walk.avoids_land) || (!q.entity.behaviour.moving.walk.can_walk && q.entity.behaviour.moving.fly.can_fly));
t.wander_control.set_allow_water(q.entity.behaviour.moving.swim.can_swim_in_water && !q.entity.behaviour.moving.swim.avoids_water);
t.wander_control.set_allow_air(q.entity.behaviour.moving.fly.can_fly && !q.entity.behaviour.moving.walk.can_walk);
t.wander_control.set_walk_speed(0.35);
@@ -4,7 +4,7 @@
"deccelRate": "0.005",
"minSpeedFactor": "0.50",
"handlingYawExpr": "q.get_ride_stats('SKILL', 'AIR', 50.0, 25.0)",
"handlingExpr": "q.get_ride_stats('SKILL', 'AIR', 90.0, 10.0)",
"handlingExpr": "q.get_ride_stats('SKILL', 'AIR', 80.0, 10.0)",
"speedExpr": "q.get_ride_stats('SPEED', 'AIR', 24.0, 4.0)",
"accelerationExpr": "q.get_ride_stats('ACCELERATION', 'AIR', 2.0, 8.0)",
"jumpExpr": "q.get_ride_stats('JUMP', 'AIR', 2.0, 1.0)",
@@ -2,7 +2,7 @@
"ingredient": "minecraft:beef",
"colour": "brown",
"food": {
"hunger": 8,
"hunger": 4,
"saturation": 6.4
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:brown_mushroom",
"colour": "brown",
"food": {
"hunger": 3,
"hunger": 2,
"saturation": 1.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:carrot",
"colour": "orange",
"food": {
"hunger": 3,
"hunger": 2,
"saturation": 1.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:chicken",
"colour": "brown",
"food": {
"hunger": 6,
"hunger": 3,
"saturation": 3.6
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:cod",
"colour": "brown",
"food": {
"hunger": 5,
"hunger": 3,
"saturation": 3
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:dried_kelp",
"colour": "gray",
"food": {
"hunger": 2,
"hunger": 1,
"saturation": 0.3
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:egg",
"colour": "white",
"food": {
"hunger": 3,
"saturation": 0.9
"hunger": 2,
"saturation": 1.2
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:golden_carrot",
"colour": "yellow",
"food": {
"hunger": 6,
"hunger": 3,
"saturation": 7.2
}
}
@@ -2,7 +2,7 @@
"ingredient": "cobblemon:medicinal_leek",
"colour": "magenta",
"food": {
"hunger": 3,
"hunger": 1,
"saturation": 0.6
}
}
@@ -1,14 +0,0 @@
{
"ingredient": "cobblemon:mental_herb",
"colour": "light_blue",
"mobEffects": [
{
"effect": "minecraft:darkness",
"duration": 260,
"amplifier": 0,
"ambient": false,
"visible": true,
"showIcon": true
}
]
}
@@ -1,14 +0,0 @@
{
"ingredient": "minecraft:milk",
"colour": "white",
"mobEffects": [
{
"effect": "minecraft:instant_health",
"duration": 1,
"amplifier": 0,
"ambient": false,
"visible": true,
"showIcon": true
}
]
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:mutton",
"colour": "brown",
"food": {
"hunger": 6,
"hunger": 3,
"saturation": 4.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:poisonous_potato",
"colour": "brown",
"food": {
"hunger": 2,
"hunger": 1,
"saturation": 0.6
},
"mobEffects": [
@@ -2,7 +2,7 @@
"ingredient": "minecraft:porkchop",
"colour": "brown",
"food": {
"hunger": 8,
"hunger": 4,
"saturation": 6.4
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:potato",
"colour": "brown",
"food": {
"hunger": 5,
"hunger": 3,
"saturation": 3
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:pumpkin",
"colour": "orange",
"food": {
"hunger": 6,
"hunger": 3,
"saturation": 1.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:rabbit",
"colour": "brown",
"food": {
"hunger": 5,
"hunger": 3,
"saturation": 3
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:red_mushroom",
"colour": "red",
"food": {
"hunger": 3,
"hunger": 2,
"saturation": 1.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:rotten_flesh",
"colour": "brown",
"food": {
"hunger": 4,
"hunger": 2,
"saturation": 0.4
},
"mobEffects": [
@@ -2,7 +2,7 @@
"ingredient": "minecraft:salmon",
"colour": "brown",
"food": {
"hunger": 6,
"hunger": 3,
"saturation": 4.8
}
}
@@ -2,7 +2,7 @@
"ingredient": "minecraft:sweet_berries",
"colour": "red",
"food": {
"hunger": 2,
"saturation": 0.4
"hunger": 1,
"saturation": 0.2
}
}
Loaded 100 of 433 files, more files were not shown because too many files have changed in this diff. Show more