diff --git a/.gitignore b/.gitignore index faa4e463ad..913fbe08a4 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ common/src/main/resources/assets/cobblemon/showdown # Generated files */generated/resources/* /fabric/src/generated/resources/cobblemon-common.accesswidener +/.ignored/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 301d5ccd2d..9b755c69df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,16 +3,23 @@ ### Additions - Added over (number here) ruin structures, where you can find Pokémon-themed Armor Trims and Pottery Sherds, Tumblestones, and more. - Added (number here) fossil structures, where you can brush Suspicious Sand/Gravel for Fossils. -- Added the Data Monitor, Fossil Compartment, and Restoration Tube. Placed in the correct formation, you can use these to create a Restoration Machine where you can bring fossils back to life. +- Added the Data Monitor, Fossil Compartment, and Restoration Tank. Placed in the correct formation, you can use these to create a Restoration Machine where you can bring fossils back to life. - Added 3 variants of Tumblestones, which can be planted near Lava or Magma to grow harvestable Tumblestone Clusters. - Added Tumblestone Blocks, a storage block crafted from 9 Tumblestones. - Added Ancient Poké Balls, which are aesthetic variants crafted from Tumblestones. - Added the Ancient Feather, Wing, and Jet Balls, which fly further than regular Poké Balls. -- Added the Ancient Heavy, Leaden, and Gigaton Balls, which are heavier and don't fly as far as regular Poké Balls. These will recieve more functionality in a future update. +- Added the Ancient Heavy, Leaden, and Gigaton Balls, which are heavier and don't fly as far as regular Poké Balls. These will receive more functionality in a future update. - Added Original Trainer functionality. To edit the OT through commands, you must specify originaltrainertype=, and originaltrainer= - Added support for planting Apricorn trees, berries, and mints in [Botany Pots](https://modrinth.com/mod/botany-pots) - Added the hidden "True Vivillionaire" advancement. - The "Poké Ball" Vivillon variant is now obtainable by evolving a Spewpa after obtaining the "Aspiring Vivillionaire" advancement. +- Added dynamic lighting support for any Species or Forms when using [LambDynamicLights](https://modrinth.com/mod/lambdynamiclights) or [Dynamic Lights Reforged](https://www.curseforge.com/minecraft/mc-mods/dynamiclights-reforged), at this time we don't ship with any defaults for this feature but addon creators can make use of this feature. +- Added 6 Pokémon-themed Pottery Sherds, obtained from ruin structures. +- Added a Pokémon-themed armor trim, obtained from ruin structures. +- You can now find Nether Fire Stone Ore in, surprisingly, the Nether. +- Added effects for many Poké Balls when sending out Pokémon or capturing. +- Added a new send-out ball toss animation that showcases the ball used for the Pokémon. +- Added simple move animations for Pokémon in battle with a proof of concept for more complicated animations. ### Changes - Pokémon now transition more smoothly between different poses. @@ -23,6 +30,8 @@ - Renamed the "Vivillionaire" advancement to "Aspiring Vivillionaire" - Removed the Inferno, Forsaken, Poké Ball, and Void patterns from the Aspiring Vivillionaire advancement. - Updated movesets to add Gen 9 DLC moves. +- Apricorn Sprouts can now be planted directly on Apricorn leaves to create a new Apricorn of the same color. +- Added tooltips to interaction GUIs to make it clearer what they do. ### Fixes - Re-added the recipe for the Iron Vitamin. @@ -31,21 +40,26 @@ - Fixed battle lang for Poison Touch Ability - Fixed Cubone not being able to evolve into Alolan Marowak. - Fixed Squawkabilly forms not being recognized. +- Fixed the bounce animation for Poké Balls being delayed by like, a full second. - Note blocks now play the correct sound on the Apricorn Plank based blocks. - Fixed an issue with transformed parts in posers causing whacky positional issues. - Fixed Poké Balls freezing in an open state if you look away when it's meant to close. +- Adds a translation string name to the Empty Pokeball entity. +- Fixed very many issues with Bedrock particle effects. ### Developer -- Significantly changed the way properties in PokemonEntity work. This could break some plugins (albeit in a quick-fix way). -- Rebuilt the scheduling API to more clearly force side choices and allow more local temporal frames of reference for tasks. -- Added dialogue API. +- Significantly changed the way properties in PokemonEntity work. This could break some plugins (not in a big way, but changes will be needed). +- Rebuilt the scheduling API to more clearly force side choices and temporal frames of reference for tasks. +- Added dialogue API and data registry. - Opened up the ItemDropEntry class to allow for it to be extended. - Added a new "advancement" evolution variant that takes an advancement identifier and succeeds if the player has the advancement. - Made spawning API capable of non-entity spawning - Made PokemonProperties.parse more interoperable with Java. +- Added the ``HeldItemEvent``, this comes with 2 implementation ``HeldItemEvent.Pre`` and ``HeldItemEvent.Post``. +- API to support dynamic lighting in any mod that implements this feature has been added to all Species & Forms, see LightingData class for details. ### Datapack & Resourcepack Creators -- The maximum amount of fossils that can fit in the Fossil Compartment can be adjusted in the config. +- The maximum amount of fossils that can fit in the Fossil Analyzer can be adjusted in the config. - Custom fossils can be defined using a list of items and the resulting Pokémon. An example of `aerodactyl.json`: ```JSON { @@ -64,6 +78,19 @@ - Added 3 new item tags: `ancient_poke_balls`, `fossils`, and `tumblestones`. - Added a spawn rules system to modify general spawning behaviour, see the [wiki](https://wiki.cobblemon.com/index.php/Spawn_Rules) for more information. - Added dialogue datapack folder and /opendialogue command. +- Added the item tag ``cobblemon:held/leaves_leftovers`` this can be used to flag apple-like items that can create leftovers when eaten. +- You can now add support for dynamic lighting implementations, Cobblemon ships with a default implementation for [LambDynamicLights](https://modrinth.com/mod/lambdynamiclights) and the [Dynamic Lights Reforged](https://www.curseforge.com/minecraft/mc-mods/dynamiclights-reforged), add the following to any species or form: +```JSON +{ + "lightingData": { + "lightLevel": 14, + "_lightLevelCommentRemoveMe": "Above supports 0 to 15", + "liquidGlowMode": "LAND", + "_liquidGlowModeCommentRemoveMe": "Above supports LAND, UNDERWATER or BOTH" + } +} +``` +- Following up on this change ``light_source`` was removed as a possible shoulder effect due to becoming unnecessary and never having had a default implementation. ## [1.4.1 (December 23rd, 2023)](#1-4-1) @@ -81,6 +108,7 @@ - Added cries to Beldum, Metang and Metagross. - Added a /bedrockparticle command to run Snowstorm-format particle effects. - Added data for Dipplin, Fezandipiti, Munkidori, Ogerpon, Okidogi, Poltchageist and Sinistcha. +- Added additional nickname trigger "Grumm" for Inkay's evolution. ### Changes - Using Potions, Status Heals, Ethers, and Antidotes will now return a glass bottle @@ -998,4 +1026,4 @@ Thank you so much to all of our community translators that bring the mod to the - Added species, ability, and move translations for `ko_ko`, `jp_jp`, `fr_fr`, `es_es`, `it_it`, and `zh_cn`. ## [1.0.0 (November 12th, 2022)](#1-0-0) -- Initial release. \ No newline at end of file +- Initial release. diff --git a/build.gradle.kts b/build.gradle.kts index 7fda0c4985..56573b0be4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ plugins { base id("cobblemon.root-conventions") + id ("net.nemerosa.versioning") version "2.8.2" } group = "com.cobblemon.mod" @@ -8,5 +9,5 @@ version = "${project.property("mod_version")}+${project.property("mc_version")}" val isSnapshot = project.property("snapshot")?.equals("true") ?: false if (isSnapshot) { - version = "$version-SNAPSHOT" + version = "$version-SNAPSHOT-${versioning.info.branch}-${versioning.info.build}" } \ No newline at end of file diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 23b877192f..007cc87236 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -33,6 +33,7 @@ dependencies { modApi(libs.molang) compileOnlyApi(libs.jeiApi) modCompileOnly(libs.adornFabric) + modCompileOnly(libs.lambDynamicLights) { isTransitive = false } // For Showdown modCompileOnly(libs.graal) diff --git a/common/src/main/java/com/cobblemon/mod/common/compat/LambDynamicLightsCompat.java b/common/src/main/java/com/cobblemon/mod/common/compat/LambDynamicLightsCompat.java new file mode 100644 index 0000000000..c58737d887 --- /dev/null +++ b/common/src/main/java/com/cobblemon/mod/common/compat/LambDynamicLightsCompat.java @@ -0,0 +1,96 @@ +/* + * 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.compat; + +import com.cobblemon.mod.common.CobblemonEntities; +import com.cobblemon.mod.common.client.render.layer.PokemonOnShoulderRenderer; +import com.cobblemon.mod.common.entity.pokemon.PokemonEntity; +import com.cobblemon.mod.common.pokemon.FormData; +import com.cobblemon.mod.common.pokemon.lighthing.LightingData; +import dev.lambdaurora.lambdynlights.api.DynamicLightHandler; +import dev.lambdaurora.lambdynlights.api.DynamicLightHandlers; +import net.minecraft.entity.EntityType; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.util.Pair; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.Optional; + +// Java class due to relying on entrypoint on Fabric side +public class LambDynamicLightsCompat { + + // This is all called on client side + // These things are checked every tick so try to keep it as free as possible + // That being said it's unlikely school Toshiba person is running dynamic lighting and shaders to enjoy this + // Make sure not to call anything Fabric specific :) + public static void hookCompat() { + // Pokémon entities + DynamicLightHandlers.registerDynamicLightHandler( + CobblemonEntities.POKEMON, + DynamicLightHandler.makeHandler( + pokemon -> resolvedPokemonLightLevel(pokemon, false), + pokemon -> true + ) + ); + DynamicLightHandlers.registerDynamicLightHandler( + CobblemonEntities.POKEMON, + DynamicLightHandler.makeHandler( + pokemon -> resolvedPokemonLightLevel(pokemon, true), + pokemon -> false + ) + ); + + // Shouldered Pokémon + DynamicLightHandlers.registerDynamicLightHandler( + EntityType.PLAYER, + DynamicLightHandler.makeHandler( + player -> resolvedShoulderLightLevel(player, false), + player -> true + ) + ); + DynamicLightHandlers.registerDynamicLightHandler( + EntityType.PLAYER, + DynamicLightHandler.makeHandler( + player -> resolvedShoulderLightLevel(player, true), + player -> false + ) + ); + } + + private static int resolvedPokemonLightLevel(PokemonEntity pokemon, boolean underwater) { + return extractFormLightLevel(pokemon.getForm(), underwater).orElse(0); + } + + private static int resolvedShoulderLightLevel(PlayerEntity player, boolean underwater) { + final Pair shoulderDataPair = PokemonOnShoulderRenderer.shoulderDataOf(player); + final Optional leftLightLevel = extractShoulderLightLevel(shoulderDataPair.getLeft(), underwater); + final Optional rightLightLevel = extractShoulderLightLevel(shoulderDataPair.getRight(), underwater); + return Math.max(leftLightLevel.orElse(0), rightLightLevel.orElse(0)); + } + + private static Optional extractFormLightLevel(@NotNull FormData form, boolean underwater) { + if (form.getLightingData() == null || !liquidGlowModeSupport(form.getLightingData().getLiquidGlowMode(), underwater)) { + return Optional.empty(); + } + return Optional.of(form.getLightingData().getLightLevel()); + } + + private static Optional extractShoulderLightLevel(@Nullable PokemonOnShoulderRenderer.ShoulderData shoulderData, boolean underwater) { + if (shoulderData == null) { + return Optional.empty(); + } + return extractFormLightLevel(shoulderData.getForm(), underwater); + } + + private static boolean liquidGlowModeSupport(@NotNull LightingData.LiquidGlowMode liquidGlowMode, boolean underwater) { + return underwater ? liquidGlowMode.getGlowsUnderwater() : liquidGlowMode.getGlowsInLand(); + } + +} diff --git a/common/src/main/java/com/cobblemon/mod/common/mixin/DecoratedPotPatternsMixin.java b/common/src/main/java/com/cobblemon/mod/common/mixin/DecoratedPotPatternsMixin.java new file mode 100644 index 0000000000..db794af389 --- /dev/null +++ b/common/src/main/java/com/cobblemon/mod/common/mixin/DecoratedPotPatternsMixin.java @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.mixin; + +import com.cobblemon.mod.common.sherds.CobblemonSherds; +import net.minecraft.block.DecoratedPotPatterns; +import net.minecraft.item.Item; +import net.minecraft.registry.RegistryKey; +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(DecoratedPotPatterns.class) +public abstract class DecoratedPotPatternsMixin { + @Inject(method = "fromSherd", at=@At("HEAD"), cancellable = true) + private static void cobblemon$getCobblemonSherdTexture(Item sherd, + CallbackInfoReturnable> cir) { + if (CobblemonSherds.INSTANCE.getSherdToPattern().containsKey(sherd)) { + cir.setReturnValue(CobblemonSherds.INSTANCE.getSherdToPattern().get(sherd)); + return; + } + } +} diff --git a/common/src/main/java/com/cobblemon/mod/common/mixin/GameRendererMixin.java b/common/src/main/java/com/cobblemon/mod/common/mixin/GameRendererMixin.java index ecec8f5fdd..925092c7a7 100644 --- a/common/src/main/java/com/cobblemon/mod/common/mixin/GameRendererMixin.java +++ b/common/src/main/java/com/cobblemon/mod/common/mixin/GameRendererMixin.java @@ -40,4 +40,5 @@ public class GameRendererMixin { } lastTime = newTime; } + } diff --git a/common/src/main/java/com/cobblemon/mod/common/mixin/ParticleManagerMixin.java b/common/src/main/java/com/cobblemon/mod/common/mixin/ParticleManagerMixin.java new file mode 100644 index 0000000000..9c8de1f0ff --- /dev/null +++ b/common/src/main/java/com/cobblemon/mod/common/mixin/ParticleManagerMixin.java @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.mixin; + +import com.cobblemon.mod.common.api.snowstorm.ParticleMaterials; +import com.google.common.collect.ImmutableList; +import net.minecraft.client.particle.ParticleManager; +import net.minecraft.client.particle.ParticleTextureSheet; +import org.spongepowered.asm.mixin.Final; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Mutable; +import org.spongepowered.asm.mixin.Shadow; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +import java.util.List; + +@Mixin(ParticleManager.class) +final class ParticleManagerMixin { + @Mutable + @Final + @Shadow + private static List PARTICLE_TEXTURE_SHEETS; + + @Inject(at = @At("RETURN"), method = "") + private static void lodestone$addTypes(CallbackInfo ci) { + PARTICLE_TEXTURE_SHEETS = ImmutableList.builder().addAll(PARTICLE_TEXTURE_SHEETS) + .add(ParticleMaterials.INSTANCE.getADD(), ParticleMaterials.INSTANCE.getALPHA(), ParticleMaterials.INSTANCE.getBLEND(), ParticleMaterials.INSTANCE.getOPAQUE()).build(); + } +} \ No newline at end of file diff --git a/common/src/main/java/com/cobblemon/mod/common/mixin/PlayerMixin.java b/common/src/main/java/com/cobblemon/mod/common/mixin/PlayerMixin.java index b198c5f465..1be7b6b90a 100644 --- a/common/src/main/java/com/cobblemon/mod/common/mixin/PlayerMixin.java +++ b/common/src/main/java/com/cobblemon/mod/common/mixin/PlayerMixin.java @@ -14,6 +14,7 @@ import com.cobblemon.mod.common.api.events.CobblemonEvents; import com.cobblemon.mod.common.api.events.item.LeftoversCreatedEvent; import com.cobblemon.mod.common.api.storage.NoPokemonStoreException; import com.cobblemon.mod.common.api.storage.party.PartyStore; +import com.cobblemon.mod.common.api.tags.CobblemonItemTags; import com.cobblemon.mod.common.pokemon.Pokemon; import com.cobblemon.mod.common.util.CompoundTagExtensionsKt; import com.cobblemon.mod.common.util.DataKeys; @@ -22,11 +23,8 @@ import net.minecraft.entity.ItemEntity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; -import net.minecraft.item.Items; import net.minecraft.nbt.NbtCompound; import net.minecraft.server.network.ServerPlayerEntity; -import net.minecraft.sound.SoundEvent; -import net.minecraft.sound.SoundEvents; import net.minecraft.text.Text; import net.minecraft.world.World; import org.objectweb.asm.Opcodes; @@ -40,8 +38,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import java.util.Objects; import java.util.UUID; -import static com.cobblemon.mod.common.util.LocalizationUtilsKt.lang; - @Mixin(PlayerEntity.class) public abstract class PlayerMixin extends LivingEntity { @@ -144,7 +140,7 @@ public abstract class PlayerMixin extends LivingEntity { ) public void onEatFood(World world, ItemStack stack, CallbackInfoReturnable cir) { if (!getWorld().isClient) { - if (stack.getItem() == Items.APPLE && getWorld().random.nextDouble() < Cobblemon.config.getAppleLeftoversChance()) { + if (stack.isIn(CobblemonItemTags.LEAVES_LEFTOVERS) && getWorld().random.nextDouble() < Cobblemon.config.getAppleLeftoversChance()) { ItemStack leftovers = new ItemStack(CobblemonItems.LEFTOVERS); ServerPlayerEntity player = Objects.requireNonNull(getServer()).getPlayerManager().getPlayer(uuid); assert player != null; diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/Cobblemon.kt b/common/src/main/kotlin/com/cobblemon/mod/common/Cobblemon.kt index cce5cceb38..479a25075c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/Cobblemon.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/Cobblemon.kt @@ -22,6 +22,7 @@ import com.cobblemon.mod.common.api.events.CobblemonEvents.EVOLUTION_COMPLETE import com.cobblemon.mod.common.api.events.CobblemonEvents.LEVEL_UP_EVENT import com.cobblemon.mod.common.api.events.CobblemonEvents.POKEMON_CAPTURED import com.cobblemon.mod.common.api.events.CobblemonEvents.TRADE_COMPLETED +import com.cobblemon.mod.common.api.net.serializers.IdentifierDataSerializer import com.cobblemon.mod.common.api.net.serializers.PoseTypeDataSerializer import com.cobblemon.mod.common.api.net.serializers.StringSetDataSerializer import com.cobblemon.mod.common.api.net.serializers.Vec3DataSerializer @@ -102,6 +103,7 @@ import com.cobblemon.mod.common.pokemon.properties.HiddenAbilityPropertyType import com.cobblemon.mod.common.pokemon.properties.UncatchableProperty import com.cobblemon.mod.common.pokemon.properties.tags.PokemonFlagProperty import com.cobblemon.mod.common.pokemon.stat.CobblemonStatProvider +import com.cobblemon.mod.common.sherds.CobblemonSherds import com.cobblemon.mod.common.starter.CobblemonStarterHandler import com.cobblemon.mod.common.trade.TradeManager import com.cobblemon.mod.common.util.* @@ -235,6 +237,7 @@ object Cobblemon { TrackedDataHandlerRegistry.register(Vec3DataSerializer) TrackedDataHandlerRegistry.register(StringSetDataSerializer) TrackedDataHandlerRegistry.register(PoseTypeDataSerializer) + TrackedDataHandlerRegistry.register(IdentifierDataSerializer) HeldItemProvider.register(CobblemonHeldItemManager, Priority.LOWEST) } @@ -385,6 +388,8 @@ object Cobblemon { true ).ifSuccessful { it.mute = true } } + + CobblemonSherds.registerSherds() } fun getLevel(dimension: RegistryKey): World? { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlockEntities.kt b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlockEntities.kt index 631cfb980f..9d96457840 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlockEntities.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlockEntities.kt @@ -12,9 +12,9 @@ import com.cobblemon.mod.common.block.entity.BerryBlockEntity import com.cobblemon.mod.common.block.entity.HealingMachineBlockEntity import com.cobblemon.mod.common.block.entity.PCBlockEntity import com.cobblemon.mod.common.block.entity.PokemonPastureBlockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilCompartmentBlockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilTubeBlockEntity +import com.cobblemon.mod.common.block.entity.FossilAnalyzerBlockEntity +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity +import com.cobblemon.mod.common.block.entity.RestorationTankBlockEntity import com.cobblemon.mod.common.block.multiblock.FossilMultiblockBuilder import com.cobblemon.mod.common.block.entity.* import com.cobblemon.mod.common.platform.PlatformRegistry @@ -48,21 +48,21 @@ object CobblemonBlockEntities : PlatformRegistry>, R @JvmField val FOSSIL_MULTIBLOCK: BlockEntityType = this.create("fossil_multiblock", BlockEntityType.Builder.create({ pos, state -> FossilMultiblockEntity(pos, state, FossilMultiblockBuilder(pos)) }, - CobblemonBlocks.FOSSIL_MONITOR + CobblemonBlocks.MONITOR ).build(null) ) @JvmField - val FOSSIL_TUBE: BlockEntityType = this.create("fossil_tube", - BlockEntityType.Builder.create({ pos, state -> FossilTubeBlockEntity(pos, state, FossilMultiblockBuilder(pos)) }, - CobblemonBlocks.FOSSIL_TUBE + val RESTORATION_TANK: BlockEntityType = this.create("restoration_tank", + BlockEntityType.Builder.create({ pos, state -> RestorationTankBlockEntity(pos, state, FossilMultiblockBuilder(pos)) }, + CobblemonBlocks.RESTORATION_TANK ).build(null) ) @JvmField - val FOSSIL_COMPARTMENT: BlockEntityType = this.create("fossil_compartment", - BlockEntityType.Builder.create({ pos, state -> FossilCompartmentBlockEntity(pos, state, FossilMultiblockBuilder(pos)) }, - CobblemonBlocks.FOSSIL_COMPARTMENT + val FOSSIL_ANALYZER: BlockEntityType = this.create("fossil_analyzer", + BlockEntityType.Builder.create({ pos, state -> FossilAnalyzerBlockEntity(pos, state, FossilMultiblockBuilder(pos)) }, + CobblemonBlocks.FOSSIL_ANALYZER ).build(null) ) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlocks.kt b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlocks.kt index 85faa51682..6a1545c187 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlocks.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonBlocks.kt @@ -11,9 +11,9 @@ package com.cobblemon.mod.common import com.cobblemon.mod.common.api.apricorn.Apricorn import com.cobblemon.mod.common.block.* import com.cobblemon.mod.common.block.MintBlock.MintType -import com.cobblemon.mod.common.block.fossilmachine.FossilCompartmentBlock -import com.cobblemon.mod.common.block.fossilmachine.FossilMonitorBlock -import com.cobblemon.mod.common.block.fossilmachine.FossilTubeBlock +import com.cobblemon.mod.common.block.FossilAnalyzerBlock +import com.cobblemon.mod.common.block.MonitorBlock +import com.cobblemon.mod.common.block.RestorationTankBlock import com.cobblemon.mod.common.mixin.invoker.DoorBlockInvoker import com.cobblemon.mod.common.mixin.invoker.PressurePlateBlockInvoker import com.cobblemon.mod.common.mixin.invoker.StairsBlockInvoker @@ -57,6 +57,8 @@ object CobblemonBlocks : PlatformRegistry, RegistryKey, RegistryKey, RegistryKey 0) 15 else 0 } + .requiresTool() + .strength(5.0F, 6.0F) + .luminance { if (it.get(MonitorBlock.SCREEN) != MonitorBlock.MonitorScreen.OFF) 15 else 0 } ) ) @JvmField - val FOSSIL_COMPARTMENT = create( - "fossil_compartment", - FossilCompartmentBlock( + val FOSSIL_ANALYZER = create( + "fossil_analyzer", + FossilAnalyzerBlock( AbstractBlock.Settings.create() .mapColor(MapColor.IRON_GRAY) .sounds(BlockSoundGroup.METAL) .pistonBehavior(PistonBehavior.BLOCK) - .strength(2f) + .requiresTool() + .strength(5.0F, 6.0F) .nonOpaque() ) ) @JvmField - val FOSSIL_TUBE = create( - "fossil_tube", - FossilTubeBlock( + val RESTORATION_TANK = create( + "restoration_tank", + RestorationTankBlock( AbstractBlock.Settings.create() .mapColor(MapColor.IRON_GRAY) .sounds(BlockSoundGroup.METAL) .pistonBehavior(PistonBehavior.BLOCK) - .strength(2f) + .requiresTool() + .strength(5.0F, 6.0F) .nonOpaque() ) ) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonEntities.kt b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonEntities.kt index 89703fbda9..e7a282d4d7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonEntities.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonEntities.kt @@ -12,6 +12,7 @@ import com.cobblemon.mod.common.api.pokeball.PokeBalls import com.cobblemon.mod.common.entity.boat.CobblemonBoatEntity import com.cobblemon.mod.common.entity.boat.CobblemonChestBoatEntity import com.cobblemon.mod.common.entity.fishing.PokeRodFishingBobberEntity +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity import com.cobblemon.mod.common.entity.pokeball.EmptyPokeBallEntity import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.platform.PlatformRegistry @@ -75,6 +76,15 @@ object CobblemonEntities : PlatformRegistry>, RegistryKey .build(POKE_BOBBER_KEY.toString()) ) + @JvmField + val GENERIC_BEDROCK_ENTITY_KEY = cobblemonResource("generic_bedrock") + @JvmField + val GENERIC_BEDROCK_ENTITY: EntityType = this.create( + GENERIC_BEDROCK_ENTITY_KEY.path, + EntityType.Builder.create({ _, world -> GenericBedrockEntity(world) }, SpawnGroup.MISC) + .build(GENERIC_BEDROCK_ENTITY_KEY.toString()) + ) + fun registerAttributes(consumer: (EntityType, DefaultAttributeContainer.Builder) -> Unit) { consumer(POKEMON, PokemonEntity.createAttributes()) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonItems.kt b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonItems.kt index 283364477d..a5be58ecf4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonItems.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/CobblemonItems.kt @@ -18,6 +18,7 @@ import com.cobblemon.mod.common.block.MintBlock import com.cobblemon.mod.common.block.MintBlock.MintType import com.cobblemon.mod.common.entity.boat.CobblemonBoatType import com.cobblemon.mod.common.item.* +import com.cobblemon.mod.common.item.armor.CobblemonArmorTrims import com.cobblemon.mod.common.item.battle.DireHitItem import com.cobblemon.mod.common.item.battle.GuardSpecItem import com.cobblemon.mod.common.item.battle.XStatItem @@ -38,6 +39,14 @@ import net.minecraft.entity.LivingEntity import net.minecraft.entity.effect.StatusEffectInstance import net.minecraft.entity.effect.StatusEffects import net.minecraft.item.* +import net.minecraft.item.BlockItem +import net.minecraft.item.FoodComponent +import net.minecraft.item.HangingSignItem +import net.minecraft.item.Item +import net.minecraft.item.ItemStack +import net.minecraft.item.SignItem +import net.minecraft.item.SmithingTemplateItem +import net.minecraft.item.StewItem import net.minecraft.registry.Registries import net.minecraft.registry.Registry import net.minecraft.registry.RegistryKey @@ -171,19 +180,19 @@ object CobblemonItems : PlatformRegistry, RegistryKey, RegistryKey, RegistryKey, RegistryKey, RegistryKey, RegistryKey, RegistryKey, RegistryKey DoubleValue(params.getString(0) in format.ruleSet) } + + return queryStruct + } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/events/CobblemonEvents.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/CobblemonEvents.kt index eb89e61b1a..654cdc94f6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/events/CobblemonEvents.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/CobblemonEvents.kt @@ -33,6 +33,7 @@ import com.cobblemon.mod.common.api.events.pokemon.evolution.EvolutionCompleteEv import com.cobblemon.mod.common.api.events.pokemon.evolution.EvolutionDisplayEvent import com.cobblemon.mod.common.api.events.pokemon.evolution.EvolutionTestedEvent import com.cobblemon.mod.common.api.events.pokemon.interaction.ExperienceCandyUseEvent +import com.cobblemon.mod.common.api.events.pokemon.interaction.PokemonInteractionGUICreationEvent import com.cobblemon.mod.common.api.events.starter.StarterChosenEvent import com.cobblemon.mod.common.api.events.storage.ReleasePokemonEvent import com.cobblemon.mod.common.api.events.world.BigRootPropagatedEvent @@ -100,6 +101,9 @@ object CobblemonEvents { @JvmField val LEVEL_UP_EVENT = EventObservable() + @JvmField + /** CLIENT ONLY! */ + val POKEMON_INTERACTION_GUI_CREATION = EventObservable() @JvmField val POKEMON_ENTITY_SAVE = EventObservable() @JvmField @@ -153,4 +157,8 @@ object CobblemonEvents { val LEFTOVERS_CREATED = CancelableObservable() @JvmField val BIG_ROOT_PROPAGATED = CancelableObservable() + @JvmField + val HELD_ITEM_PRE = CancelableObservable() + @JvmField + val HELD_ITEM_POST = EventObservable() } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/HeldItemEvent.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/HeldItemEvent.kt new file mode 100644 index 0000000000..b9e3cbb08f --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/HeldItemEvent.kt @@ -0,0 +1,56 @@ +/* + * 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.events.pokemon + +import com.cobblemon.mod.common.api.events.Cancelable +import com.cobblemon.mod.common.pokemon.Pokemon +import net.minecraft.item.ItemStack + +/** + * The base for all the events related to held items. + * + * @see [Pre] + * @see [Post] + */ +interface HeldItemEvent { + + /** + * The [Pokemon] triggering this event. + */ + val pokemon: Pokemon + + /** + * Fired at the start of [Pokemon.swapHeldItem]. + * + * This event should be used to mutate the results of this transaction. + * + * Canceling this event will prevent the operation and causes the return to be item attempted to be given originally. + * + * @property pokemon The [Pokemon] triggering this event. + * @property receiving The [ItemStack] being sent received from the transaction. By default, this is the item that triggered the interaction. + * @property returning The [ItemStack] being sent back from the transaction. By default, this is the currently held item. + * @property decrement If the operation should decrement the [receiving] [ItemStack.count], this is handled in the implementation. + * + * @see [Post] + */ + data class Pre(override val pokemon: Pokemon, var receiving: ItemStack, var returning: ItemStack, var decrement: Boolean) : HeldItemEvent, Cancelable() + + /** + * Fired at the end of [Pokemon.swapHeldItem]. + * + * @property pokemon The [Pokemon] triggering this event. + * @property received The [ItemStack] considered as received and set to the [pokemon]. This is a copy and mutation will not be taken into account. + * @property returned The [ItemStack] returned by the method call. This is a copy and mutation will not be taken into account. + * @property decremented If the [received] [ItemStack] got decremented. + * + * @see [Pre] + */ + data class Post(override val pokemon: Pokemon, val received: ItemStack, val returned: ItemStack, val decremented: Boolean) : HeldItemEvent + +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/interaction/PokemonInteractionGUICreationEvent.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/interaction/PokemonInteractionGUICreationEvent.kt new file mode 100644 index 0000000000..65437610d7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/events/pokemon/interaction/PokemonInteractionGUICreationEvent.kt @@ -0,0 +1,42 @@ +/* + * 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.events.pokemon.interaction + +import com.cobblemon.mod.common.client.gui.interact.wheel.InteractWheelOption +import com.cobblemon.mod.common.client.gui.interact.wheel.Orientation +import com.google.common.collect.Multimap +import java.util.UUID + +data class PokemonInteractionGUICreationEvent( + val pokemonID: UUID, + val mountShoulder: Boolean, + val options: Multimap +) { + fun addFillingOption(option: InteractWheelOption) { + options.put(getNextFreeOrientation(), option) + } + + fun addOption(orientation: Orientation, option: InteractWheelOption) { + options.put(orientation, option) + } + + private fun getNextFreeOrientation(): Orientation { + var largest = Orientation.TOP_LEFT + for(orientation in Orientation.values()) { + if(!options.containsKey(orientation)) { + return orientation + } else { + if(options.get(orientation).size < options.get(largest).size) { + largest = orientation + } + } + } + return largest + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/molang/MoLangFunctions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/molang/MoLangFunctions.kt index 4c6b013f26..62a2dace80 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/molang/MoLangFunctions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/molang/MoLangFunctions.kt @@ -19,7 +19,8 @@ import com.bedrockk.molang.runtime.value.MoValue import com.bedrockk.molang.runtime.value.StringValue import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.api.dialogue.PlayerDialogueFaceProvider -import com.cobblemon.mod.common.api.molang.MoLangFunctions.asMoLangValue +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunctions import com.cobblemon.mod.common.util.isInt import com.cobblemon.mod.common.util.itemRegistry import net.minecraft.block.Block @@ -51,7 +52,30 @@ object MoLangFunctions { "is_number" to java.util.function.Function { params -> DoubleValue(params.get(0).asString().toDoubleOrNull() != null) }, "to_number" to java.util.function.Function { params -> DoubleValue(params.get(0).asString().toDoubleOrNull() ?: 0.0) }, "to_int" to java.util.function.Function { params -> DoubleValue(params.get(0).asString().toIntOrNull() ?: 0) }, - "to_string" to java.util.function.Function { params -> StringValue(params.get(0).asString()) } + "to_string" to java.util.function.Function { params -> StringValue(params.get(0).asString()) }, + "do_effect_walks" to java.util.function.Function { _ -> + DoubleValue(Cobblemon.config.walkingInBattleAnimations) + }, + "random" to java.util.function.Function { params -> + val options = mutableListOf() + var index = 0 + while (params.contains(index)) { + options.add(params.get(index)) + index++ + } + return@Function options.random() // Can throw an exception if they specified no args. They'd be idiots though. + }, + "curve" to java.util.function.Function { params -> + val curveName = params.getString(0) + val curve = WaveFunctions.functions[curveName] ?: throw IllegalArgumentException("Unknown curve: $curveName") + return@Function ObjectValue(curve) + }, + "array" to java.util.function.Function { params -> + val values = params.params + val array = ArrayStruct(hashMapOf()) + values.forEachIndexed { index, moValue -> array.setDirectly("$index", moValue) } + return@Function array + } ) val biomeFunctions = hashMapOf>() val worldFunctions = hashMapOf>() @@ -110,6 +134,11 @@ object MoLangFunctions { return this } + fun T.addFunction(name: String, function: java.util.function.Function): T { + this.functions[name] = function + return this + } + fun MoLangEnvironment.getQueryStruct(name: String = "query") = structs.getOrPut(name) { QueryStruct(hashMapOf()) } as QueryStruct fun MoLangRuntime.setup(): MoLangRuntime { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/MoveTemplate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/MoveTemplate.kt index 801703f0e9..dbb0745b15 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/MoveTemplate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/MoveTemplate.kt @@ -8,6 +8,12 @@ package com.cobblemon.mod.common.api.moves +import com.bedrockk.molang.runtime.struct.MoStruct +import com.bedrockk.molang.runtime.struct.QueryStruct +import com.bedrockk.molang.runtime.value.DoubleValue +import com.bedrockk.molang.runtime.value.StringValue +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunction +import com.cobblemon.mod.common.api.moves.animations.ActionEffectTimeline import com.cobblemon.mod.common.api.moves.categories.DamageCategories import com.cobblemon.mod.common.api.moves.categories.DamageCategory import com.cobblemon.mod.common.api.types.ElementalType @@ -45,8 +51,22 @@ open class MoveTemplate( val pp: Int, val priority: Int, val critRatio: Double, - val effectChances: Array + val effectChances: Array, + val actionEffect: ActionEffectTimeline? ) { + val struct: MoStruct by lazy { + QueryStruct(hashMapOf()) + .addFunction("name") { StringValue(name) } + .addFunction("type") { StringValue(elementalType.name) } + .addFunction("damage_category") { StringValue(damageCategory.name) } + .addFunction("power") { DoubleValue(power) } + .addFunction("target") { StringValue(target.name) } + .addFunction("accuracy") { DoubleValue(accuracy) } + .addFunction("pp") { DoubleValue(pp) } + .addFunction("priority") { DoubleValue(priority) } + .addFunction("crit_ratio") { DoubleValue(critRatio) } + } + val displayName: MutableText get() = lang("move.$name") @@ -65,7 +85,8 @@ open class MoveTemplate( pp = 5, priority = 0, critRatio = 0.0, - effectChances = emptyArray() + effectChances = emptyArray(), + actionEffect = null ) companion object { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/Moves.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/Moves.kt index 4b0f5dec2e..4786668c36 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/Moves.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/Moves.kt @@ -10,12 +10,15 @@ package com.cobblemon.mod.common.api.moves import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.api.data.DataRegistry +import com.cobblemon.mod.common.api.moves.animations.ActionEffectTimeline +import com.cobblemon.mod.common.api.moves.animations.ActionEffects import com.cobblemon.mod.common.api.moves.categories.DamageCategories import com.cobblemon.mod.common.api.reactive.SimpleObservable import com.cobblemon.mod.common.api.types.ElementalTypes import com.cobblemon.mod.common.battles.MoveTarget import com.cobblemon.mod.common.battles.runner.ShowdownService import com.cobblemon.mod.common.net.messages.client.data.MovesRegistrySyncPacket +import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace import com.cobblemon.mod.common.util.cobblemonResource import com.google.gson.JsonArray import com.google.gson.JsonObject @@ -72,7 +75,18 @@ object Moves : DataRegistry { effectChances += secondaryMember.get("chance").asDouble } } - val move = MoveTemplate(id, num, elementalType, damageCategory, power, target, accuracy, pp, priority, critRatio, effectChances.toTypedArray()) + val actionEffect = ActionEffects.actionEffects[id.asIdentifierDefaultingNamespace()] + ?: run { + ActionEffects.actionEffects["generic_move".asIdentifierDefaultingNamespace()] +// if (damageCategory == DamageCategories.STATUS) { +// ActionEffects.actionEffects[cobblemonResource("status")] +// } else { +// val type = elementalType.name.lowercase() +// val category = damageCategory.name.lowercase() +// ActionEffects.actionEffects["${category}_$type".asIdentifierDefaultingNamespace()] +// } + } + val move = MoveTemplate(id, num, elementalType, damageCategory, power, target, accuracy, pp, priority, critRatio, effectChances.toTypedArray(), actionEffect) this.register(move) } catch (e: Exception) { Cobblemon.LOGGER.error("Caught exception trying to resolve the move '{}'", id, e) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffectTimeline.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffectTimeline.kt new file mode 100644 index 0000000000..cb3e93ca97 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffectTimeline.kt @@ -0,0 +1,94 @@ +/* + * 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.moves.animations + +import com.bedrockk.molang.Expression +import com.bedrockk.molang.runtime.MoLangRuntime +import com.bedrockk.molang.runtime.struct.VariableStruct +import com.cobblemon.mod.common.api.moves.animations.keyframes.ActionEffectKeyframe +import com.cobblemon.mod.common.api.scheduling.ScheduledTask +import com.cobblemon.mod.common.util.asExpression +import com.cobblemon.mod.common.util.resolveBoolean +import java.util.concurrent.CompletableFuture +import net.minecraft.entity.Entity + +/** + * An action effect will run and execute a series of 'keyframes', with each running once + * the previous has completed. The entire effect is considered complete for the given context + * once all the 'holds' provided in the context have been cleared or once every keyframe + * has finished. + * + * @author Hiroku + * @since October 20th, 2023 + */ +class ActionEffectTimeline( + val timeline: List = mutableListOf(), + val condition: Expression = "true".asExpression() +) { + companion object { + val NONE = ActionEffectTimeline() + } + + fun run(context: ActionEffectContext): CompletableFuture { + return if (timeline.isEmpty() || !context.runtime.resolveBoolean(condition)) { + CompletableFuture.completedFuture(Unit) + } else { + val finalFuture = CompletableFuture() + // .toList copy because I'm paranoid about iterators being trying to share between identical effects playing + chainKeyframes(context, timeline.toList().iterator(), finalFuture) + finalFuture + } + } + + fun chainKeyframes(context: ActionEffectContext, iterator: Iterator, finalFuture: CompletableFuture) { + if (!iterator.hasNext()) { + finalFuture.complete(Unit) + } else { + val keyframe = iterator.next() + context.currentKeyframes.add(keyframe) + keyframe.play(context) + .thenRun { context.currentKeyframes.remove(keyframe) } + .thenApply { chainKeyframes(context, iterator, finalFuture) } + } + } +} + +class ActionEffectContext( + val actionEffect: ActionEffectTimeline, + val holds: MutableSet = mutableSetOf(), + val providers: MutableList = mutableListOf(), + val runtime: MoLangRuntime, + var canBeInterrupted: Boolean = false, + var interrupted: Boolean = false, + var currentKeyframes: MutableList = mutableListOf() +) { + inline fun findOneProvider() = providers.filterIsInstance().firstOrNull() + + +} + +class UsersProvider(users: List): EntityProvider { + override val entities = users + constructor(vararg users: Entity): this(users.toList()) +} + +class TargetsProvider(targets: List): EntityProvider { + override val entities = targets + constructor(vararg targets: Entity): this(targets.toList()) +} + +interface EntityProvider { + val entities: List +} + +//class MoveAnimationKeyframe( +// val sound: Identifier? = null, +// val animation: List = listOf(), +// val effects: List = listOf() +//) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffects.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffects.kt new file mode 100644 index 0000000000..b8702258ae --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/ActionEffects.kt @@ -0,0 +1,95 @@ +/* + * 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.moves.animations + +import com.bedrockk.molang.Expression +import com.cobblemon.mod.common.api.data.JsonDataRegistry +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.keyframes.* +import com.cobblemon.mod.common.api.pokemon.stats.Stat +import com.cobblemon.mod.common.api.reactive.SimpleObservable +import com.cobblemon.mod.common.pokemon.adapters.CobblemonStatTypeAdapter +import com.cobblemon.mod.common.util.adapters.* +import com.cobblemon.mod.common.util.cobblemonResource +import com.google.gson.GsonBuilder +import com.google.gson.reflect.TypeToken +import java.awt.Color +import net.minecraft.predicate.NumberRange +import net.minecraft.resource.ResourceType +import net.minecraft.server.network.ServerPlayerEntity +import net.minecraft.util.Identifier +import net.minecraft.util.math.Box +import net.minecraft.util.math.Vec3d + +/** + * Data registry containing all of the [ActionEffectTimeline]s that can be triggered from various actions. + * + * @author Hiroku + * @since October 21st, 2023 + */ +object ActionEffects : JsonDataRegistry { + override val id: Identifier = cobblemonResource("action_effects") + override val type: ResourceType = ResourceType.SERVER_DATA + override val observable = SimpleObservable() + + init { + ActionEffectKeyframe.register("animation") + ActionEffectKeyframe.register("entity_molang") + ActionEffectKeyframe.register("molang") + ActionEffectKeyframe.register("parallel") + ActionEffectKeyframe.register("can_interrupt") + ActionEffectKeyframe.register("cannot_interrupt") + ActionEffectKeyframe.register("remove_holds") + ActionEffectKeyframe.register("add_holds") + ActionEffectKeyframe.register("move_to_target") + ActionEffectKeyframe.register("return_to_position") + ActionEffectKeyframe.register("pause") + ActionEffectKeyframe.register("save_position") + ActionEffectKeyframe.register("fork") + ActionEffectKeyframe.register("sequence") + ActionEffectKeyframe.register("run_action_effect") + ActionEffectKeyframe.register("entity_particles") + ActionEffectKeyframe.register("entity_sound") + } + + override val gson = GsonBuilder() + .disableHtmlEscaping() + .setPrettyPrinting() + .registerTypeAdapter(ActionEffectKeyframe::class.java, ActionEffectKeyframeAdapter) + .registerTypeAdapter(NumberRange.FloatRange::class.java, FloatNumberRangeAdapter) + .registerTypeAdapter(TypeToken.getParameterized(Collection::class.java, Box::class.java).type, BoxCollectionAdapter) + .registerTypeAdapter(Box::class.java, BoxAdapter) + .registerTypeAdapter(Vec3d::class.java, VerboseVec3dAdapter) + .registerTypeAdapter(Identifier::class.java, IdentifierAdapter) + .registerTypeAdapter(IntRange::class.java, VerboseIntRangeAdapter) + .registerTypeAdapter(Color::class.java, LiteralHexColorAdapter) + .registerTypeAdapter(Stat::class.java, CobblemonStatTypeAdapter) + .registerTypeAdapter(Expression::class.java, ExpressionAdapter) + .registerTypeAdapter(ExpressionLike::class.java, ExpressionLikeAdapter) + .registerTypeAdapter( + TypeToken.getParameterized( + TypeToken.get(List::class.java).type, + TypeToken.get(ActionEffectKeyframe::class.java).type + ).type, + SingleToPluralAdapter(ActionEffectKeyframe::class.java) { it } + ) + .create() + + override val typeToken: TypeToken = TypeToken.get(ActionEffectTimeline::class.java) + override val resourcePath = "action_effects" + + val actionEffects = mutableMapOf() + override fun reload(data: Map) { + actionEffects.clear() + actionEffects.putAll(data) + observable.emit(this) + } + + override fun sync(player: ServerPlayerEntity) {} +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ActionEffectKeyframe.kt new file mode 100644 index 0000000000..6e4c64ad32 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ActionEffectKeyframe.kt @@ -0,0 +1,34 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +/** + * A single component of an action effect. When played it must return a completable future that completes + * when the action this keyframe represents is finished. [interrupt] is provided for when something successfully + * interrupts the effect so that if any cancellation logic is necessary, it can be provided. + * + * @author Hiroku + * @since October 26th, 2023 + */ +interface ActionEffectKeyframe { + companion object { + val types = mutableMapOf>() + + inline fun register(type: String) { + types[type] = T::class.java + } + } + + fun play(context: ActionEffectContext): CompletableFuture + fun interrupt(context: ActionEffectContext) {} + fun skip(): CompletableFuture = CompletableFuture.completedFuture(Unit) +} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AddHoldsActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AddHoldsActionEffectKeyframe.kt new file mode 100644 index 0000000000..e9e01b8daf --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AddHoldsActionEffectKeyframe.kt @@ -0,0 +1,27 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +/** + * An [ActionEffectKeyframe] that adds some holds from the context for future code to recognize as blocking some + * functionality from proceeding. + * + * @author Hiroku + * @since October 27th, 2023 + */ +class AddHoldsActionEffectKeyframe : ActionEffectKeyframe { + val holds = mutableSetOf() + override fun play(context: ActionEffectContext): CompletableFuture { + context.holds.addAll(holds) + return CompletableFuture.completedFuture(Unit) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AnimationActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AnimationActionEffectKeyframe.kt new file mode 100644 index 0000000000..54c5c45d44 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/AnimationActionEffectKeyframe.kt @@ -0,0 +1,54 @@ +/* + * 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.moves.animations.keyframes + +import com.bedrockk.molang.Expression +import com.cobblemon.mod.common.CobblemonNetwork.sendPacket +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.EntityProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.net.messages.client.animation.PlayPoseableAnimationPacket +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture +import net.minecraft.server.world.ServerWorld + +class AnimationActionEffectKeyframe : ConditionalActionEffectKeyframe(), EntityConditionalActionEffectKeyframe { + var delay = "0".asExpressionLike() + var visibilityRange = 200 + var animation: Set = setOf("physical") + var variables: List = listOf() + override val entityCondition = "q.entity.is_user".asExpressionLike() + + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val entities = context.providers + .filterIsInstance() + .flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } } + + val expressions = variables.map { it.originalString }.toSet() + + // Treat them as expressions if possible but otherwise yeah just send them as strings + val animation = animation.map { + try { + it.asExpressionLike().resolveString(context.runtime).takeIf { it != "0.0" } ?: it + } catch (e: Exception) { + it + } + }.toSet() + + for (entity in entities) { + val world = entity.world as ServerWorld + val players = world.getPlayers { it.distanceTo(entity) <= visibilityRange } + val pkt = PlayPoseableAnimationPacket(entity.id, animation = animation, expressions = expressions) + players.forEach { it.sendPacket(pkt) } + } + + return delayedFuture(seconds = delay.resolveFloat(context.runtime), serverThread = true) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CanInterruptActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CanInterruptActionEffectKeyframe.kt new file mode 100644 index 0000000000..7f2c66a391 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CanInterruptActionEffectKeyframe.kt @@ -0,0 +1,19 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +class CanInterruptActionEffectKeyframe : ConditionalActionEffectKeyframe() { + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + context.canBeInterrupted = true + return CompletableFuture.completedFuture(Unit) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CannotInterruptActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CannotInterruptActionEffectKeyframe.kt new file mode 100644 index 0000000000..54a8785b2c --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/CannotInterruptActionEffectKeyframe.kt @@ -0,0 +1,19 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +class CannotInterruptActionEffectKeyframe : ConditionalActionEffectKeyframe() { + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + context.canBeInterrupted = true + return CompletableFuture.completedFuture(Unit) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ConditionalActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ConditionalActionEffectKeyframe.kt new file mode 100644 index 0000000000..b418398db7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ConditionalActionEffectKeyframe.kt @@ -0,0 +1,27 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture + +abstract class ConditionalActionEffectKeyframe : ActionEffectKeyframe { + var condition: ExpressionLike = "true".asExpressionLike() + override fun play(context: ActionEffectContext): CompletableFuture { + return if (condition.resolveBoolean(context.runtime)) { + playWhenTrue(context) + } else { + skip() + } + } + + abstract fun playWhenTrue(context: ActionEffectContext): CompletableFuture +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityConditionalActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityConditionalActionEffectKeyframe.kt new file mode 100644 index 0000000000..6d97975123 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityConditionalActionEffectKeyframe.kt @@ -0,0 +1,36 @@ +/* + * 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.moves.animations.keyframes + +import com.bedrockk.molang.runtime.struct.QueryStruct +import com.bedrockk.molang.runtime.value.DoubleValue +import com.bedrockk.molang.runtime.value.StringValue +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import net.minecraft.entity.Entity + +/** + * An action effect keyframe that plays for all entities for which the condition is true. + * + * @author Hiroku + * @since January 21st, 2024 + */ +interface EntityConditionalActionEffectKeyframe { + val entityCondition: ExpressionLike + fun test(context: ActionEffectContext, entity: Entity, isUser: Boolean): Boolean { + // TODO this should use the entity's own query struct + context.runtime.environment.getQueryStruct().addFunction("entity") { + QueryStruct(hashMapOf()) + .addFunction("uuid") { StringValue(entity.uuidAsString) } + .addFunction("is_user") { DoubleValue(isUser) } + } + return entityCondition.resolveBoolean(context.runtime) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityMoLangActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityMoLangActionEffectKeyframe.kt new file mode 100644 index 0000000000..dc2bb37236 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityMoLangActionEffectKeyframe.kt @@ -0,0 +1,51 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.CobblemonNetwork.sendPacket +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.EntityProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.net.messages.client.effect.RunPosableMoLangPacket +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture +import net.minecraft.server.world.ServerWorld + +/** + * An action effect keyframe that will run client-side MoLang for all entities that fit the entity condition. + * + * This MoLang executes within that entity's runtime, meaning you can trigger animations or locational particles + * or sounds. + * + * @author Hiroku + * @since October 30th, 2023 + */ +class EntityMoLangActionEffectKeyframe : ConditionalActionEffectKeyframe(), EntityConditionalActionEffectKeyframe { + var delay = "0".asExpressionLike() + val expressions = mutableSetOf() + val visibilityRange = 200 + override val entityCondition: ExpressionLike = "q.entity.is_user".asExpressionLike() + + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val entities = context.providers + .filterIsInstance() + .flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } } + + for (entity in entities) { + val world = entity.world as ServerWorld + val players = world.getPlayers { it.distanceTo(entity) <= visibilityRange } + val pkt = RunPosableMoLangPacket(entityId = entity.id, expressions = expressions) + players.forEach { it.sendPacket(pkt) } + } + + return delayedFuture(seconds = delay.resolveFloat(context.runtime), serverThread = true) + } +} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityParticlesActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityParticlesActionEffectKeyframe.kt new file mode 100644 index 0000000000..e48606bfaa --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntityParticlesActionEffectKeyframe.kt @@ -0,0 +1,56 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.CobblemonNetwork.sendPacket +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.EntityProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormEntityParticlePacket +import com.cobblemon.mod.common.util.asExpressionLike +import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace +import java.util.concurrent.CompletableFuture +import net.minecraft.server.world.ServerWorld + +/** + * Spawns particles on the entity based on the given particle effect and locator. + * + * @author Hiroku + * @since January 21st, 2024 + */ +class EntityParticlesActionEffectKeyframe : ConditionalActionEffectKeyframe(), EntityConditionalActionEffectKeyframe { + override val entityCondition = "q.entity.is_user".asExpressionLike() + var effect: String? = null + var locator: String = "root" + val delay: ExpressionLike = "0".asExpressionLike() + val visibilityRange = 200 + + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val entities = context.providers + .filterIsInstance() + .flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } } + + val effectIdentifier = try { + effect?.asExpressionLike()?.resolveString(context.runtime) + } catch (e: Exception) { + effect + }?.asIdentifierDefaultingNamespace() ?: return skip() + + entities.filter { it is Poseable }.forEach { entity -> + val packet = SpawnSnowstormEntityParticlePacket(effectIdentifier, entity.id, locator) + val players = (entity.world as ServerWorld).getPlayers { it.distanceTo(entity) <= visibilityRange } + packet.sendToPlayers(players) + } + + return delayedFuture(seconds = delay.resolveFloat(context.runtime), serverThread = true) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntitySoundActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntitySoundActionEffectKeyframe.kt new file mode 100644 index 0000000000..a016dfff3c --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/EntitySoundActionEffectKeyframe.kt @@ -0,0 +1,50 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.EntityProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.util.asExpressionLike +import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace +import java.util.concurrent.CompletableFuture +import net.minecraft.registry.RegistryKeys + +/** + * An action effect keyframe that plays a positioned sound for all matching entities. + * + * @author Hiroku + * @since January 21st, 2024 + */ +class EntitySoundActionEffectKeyframe : ConditionalActionEffectKeyframe(), EntityConditionalActionEffectKeyframe { + override val entityCondition = "q.entity.is_user".asExpressionLike() + var sound: String? = null + val delay: ExpressionLike = "0".asExpressionLike() + + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val entities = context.providers + .filterIsInstance() + .flatMap { prov -> prov.entities.filter { test(context, it, isUser = prov is UsersProvider) } } + + val soundIdentifier = try { + sound?.asExpressionLike()?.resolveString(context.runtime)?.takeIf { it != "0.0" } ?: sound + } catch (e: Exception) { + sound + }?.asIdentifierDefaultingNamespace() ?: return skip() + + entities.forEach { entity -> + val soundEvent = entity.world.registryManager.get(RegistryKeys.SOUND_EVENT).get(soundIdentifier) ?: return skip() + entity.playSound(soundEvent, 1f, 1f) + } + + return delayedFuture(seconds = delay.resolveFloat(context.runtime), serverThread = true) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ForkActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ForkActionEffectKeyframe.kt new file mode 100644 index 0000000000..0e3f9de0c5 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ForkActionEffectKeyframe.kt @@ -0,0 +1,35 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture + +class ForkActionEffectKeyframe( + val condition: ExpressionLike = "true".asExpressionLike(), + val ifTrue: List = listOf(), + val ifFalse: List = listOf() +) : ActionEffectKeyframe { + override fun play(context: ActionEffectContext): CompletableFuture { + val future = CompletableFuture() + /* + * Using .toList() before running chainKeyframes because iterators can be weird about sharing, + * .toList() creates a copy of the list and then grabs its iterator so much safer (three parachutes) + */ + if (!condition.resolveBoolean(context.runtime)) { + context.actionEffect.chainKeyframes(context, ifFalse.toList().iterator(), future) + } else { + context.actionEffect.chainKeyframes(context, ifTrue.toList().iterator(), future) + } + + return future + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoLangActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoLangActionEffectKeyframe.kt new file mode 100644 index 0000000000..f6c29459e7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoLangActionEffectKeyframe.kt @@ -0,0 +1,30 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture + +/** + * An action effect keyframe that simply executes some MoLang on the effect context's runtime. + * + * @author Hiroku + * @since January 21st, 2024 + */ +class MoLangActionEffectKeyframe : ActionEffectKeyframe { + val expressions: ExpressionLike = "0".asExpressionLike() + val delay: ExpressionLike = "0".asExpressionLike() + override fun play(context: ActionEffectContext): CompletableFuture { + expressions.resolve(context.runtime) + return delayedFuture(seconds = delay.resolveFloat(context.runtime), serverThread = true) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoveToTargetActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoveToTargetActionEffectKeyframe.kt new file mode 100644 index 0000000000..2891efec49 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/MoveToTargetActionEffectKeyframe.kt @@ -0,0 +1,75 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.ActionEffectTimeline +import com.cobblemon.mod.common.api.moves.animations.ActionEffects +import com.cobblemon.mod.common.api.moves.animations.TargetsProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.afterOnServer +import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.entity.pokemon.ai.PokemonNavigation +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture +import kotlin.math.pow +import kotlin.math.sqrt +import net.minecraft.util.Identifier + +class MoveToTargetActionEffectKeyframe : ActionEffectKeyframe { + val speed = 1F + val timeout = "4".asExpressionLike() + var proximity = -1F + val timeoutActionEffect: Identifier? = null + + override fun play(context: ActionEffectContext): CompletableFuture { + val user = context.findOneProvider()?.entities?.firstOrNull() as? PokemonEntity ?: return CompletableFuture.completedFuture(Unit) + val target = context.findOneProvider()?.entities?.firstOrNull() ?: return CompletableFuture.completedFuture(Unit) + + val future = CompletableFuture() + + var timedOut = false + + val proximity = this.proximity.takeIf { it != -1F } ?: (sqrt(2 * user.boundingBox.xLength.pow(2)) + 1.5F + sqrt(2 * target.boundingBox.xLength.pow(2))).toFloat() + + if (target.distanceTo(user) !in proximity..20F) { + future.complete(Unit) + return future + } + + val timeoutEffect = timeoutActionEffect?.let { ActionEffects.actionEffects[it] } ?: ActionEffectTimeline.NONE + + val nav = user.navigation + val navContext = PokemonNavigation.NavigationContext( + destinationProximity = proximity, + onArrival = { + if (!future.isDone && !timedOut) { + future.complete(Unit) + } + }, + onCannotReach = { + if (!future.isDone && !timedOut) { + timedOut = true + timeoutEffect.run(context).thenApply { future.complete(Unit) } + } + } + ) + + afterOnServer(seconds = timeout.resolveFloat(context.runtime)) { + if (!future.isDone && !timedOut) { + timedOut = true + timeoutEffect.run(context).thenApply { future.complete(Unit) } + nav.stop() + } + } + + nav.startMovingTo(target.x, target.y, target.z, speed.toDouble(), navContext) + return future + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ParallelActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ParallelActionEffectKeyframe.kt new file mode 100644 index 0000000000..fff351df42 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ParallelActionEffectKeyframe.kt @@ -0,0 +1,25 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +class ParallelActionEffectKeyframe : ConditionalActionEffectKeyframe() { + var keyframes: MutableList = mutableListOf() + + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + return CompletableFuture.allOf( + *keyframes.map { + context.currentKeyframes.add(it) + it.play(context).thenRun { context.currentKeyframes.remove(it) } + }.toTypedArray() + ).thenApply {} // Map Void -> Unit at the end + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/PauseActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/PauseActionEffectKeyframe.kt new file mode 100644 index 0000000000..71d4cd9cc5 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/PauseActionEffectKeyframe.kt @@ -0,0 +1,18 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import com.cobblemon.mod.common.util.asExpressionLike + +class PauseActionEffectKeyframe : ConditionalActionEffectKeyframe() { + val pause = "1".asExpressionLike() + override fun playWhenTrue(context: ActionEffectContext) = delayedFuture(seconds = pause.resolveFloat(context.runtime), serverThread = true) +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RemoveHoldsActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RemoveHoldsActionEffectKeyframe.kt new file mode 100644 index 0000000000..9af9c16a67 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RemoveHoldsActionEffectKeyframe.kt @@ -0,0 +1,35 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.scheduling.delayedFuture +import java.util.concurrent.CompletableFuture + +/** + * An [ActionEffectKeyframe] that clears some holds from the context, potentially marking the effect as + * complete as far as any blocked actions are concerned. If no holds are specified, then all holds are + * removed. + * + * @author Hiroku + * @since October 27th, 2023 + */ +class RemoveHoldsActionEffectKeyframe : ActionEffectKeyframe { + val delay = 0F + val holds = mutableSetOf() + override fun play(context: ActionEffectContext): CompletableFuture { + return delayedFuture(seconds = delay, serverThread = true).thenApply { + if (holds.isEmpty()) { + context.holds.clear() + } else { + context.holds.removeAll(holds) + } + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ReturnToPositionActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ReturnToPositionActionEffectKeyframe.kt new file mode 100644 index 0000000000..14d2401f89 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/ReturnToPositionActionEffectKeyframe.kt @@ -0,0 +1,70 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ObjectValue +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.ActionEffectTimeline +import com.cobblemon.mod.common.api.moves.animations.ActionEffects +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import com.cobblemon.mod.common.api.scheduling.after +import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.entity.pokemon.ai.PokemonNavigation +import com.cobblemon.mod.common.util.asExpressionLike +import java.util.concurrent.CompletableFuture +import net.minecraft.util.Identifier +import net.minecraft.util.math.Vec3d + +class ReturnToPositionActionEffectKeyframe : ActionEffectKeyframe { + val speed = 1F + val timeout = "4".asExpressionLike() + val timeoutActionEffect: Identifier? = null + + override fun play(context: ActionEffectContext): CompletableFuture { + val user = context.findOneProvider()?.entities?.firstOrNull() as? PokemonEntity ?: return skip() + val future = CompletableFuture() + + val pos = (context.runtime.environment.getValue(setOf("${user.uuidAsString}-pos").iterator())?.value() as? ObjectValue<*>)?.obj as? Vec3d ?: return skip() + + var timedOut = false + + if (pos.distanceTo(user.pos) > 20) { + future.complete(Unit) + return future + } + + val timeoutEffect = timeoutActionEffect?.let { ActionEffects.actionEffects[it] } ?: ActionEffectTimeline.NONE + + val nav = user.navigation + val navContext = PokemonNavigation.NavigationContext( + onArrival = { + if (!future.isDone && !timedOut) { + future.complete(Unit) + } + }, + onCannotReach = { + if (!future.isDone && !timedOut) { + timedOut = true + timeoutEffect.run(context).thenApply { future.complete(Unit) } + } + } + ) + + after(seconds = timeout.resolveFloat(context.runtime), serverThread = true) { + if (!future.isDone && !timedOut) { + timedOut = true + timeoutEffect.run(context).thenApply { future.complete(Unit) } + nav.stop() + } + } + + nav.startMovingTo(pos.x, pos.y, pos.z, speed.toDouble(), navContext) + return future + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RunActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RunActionEffectKeyframe.kt new file mode 100644 index 0000000000..60615f900c --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/RunActionEffectKeyframe.kt @@ -0,0 +1,34 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.ActionEffects +import java.util.concurrent.CompletableFuture +import net.minecraft.util.Identifier + +/** + * An action effect keyframe that simply runs another action effect based on an identifier. This action + * effect is marked complete only when the action effect it runs is complete unless [waitForActionEffect] is + * false. + * + * @author Hiroku + * @since January 21st, 2024 + */ +class RunActionEffectKeyframe : ConditionalActionEffectKeyframe() { + val actionEffect: Identifier? = null + val waitForActionEffect = true + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + return if (actionEffect != null) { + ActionEffects.actionEffects[actionEffect]?.run(context)?.takeIf { waitForActionEffect } ?: skip() + } else { + skip() + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SavePositionActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SavePositionActionEffectKeyframe.kt new file mode 100644 index 0000000000..fa460fa703 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SavePositionActionEffectKeyframe.kt @@ -0,0 +1,22 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.molang.ObjectValue +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.UsersProvider +import java.util.concurrent.CompletableFuture + +class SavePositionActionEffectKeyframe: ConditionalActionEffectKeyframe() { + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val user = context.findOneProvider()?.entities?.firstOrNull() ?: return skip() + context.runtime.environment.setSimpleVariable("${user.uuidAsString}-pos", ObjectValue(user.pos)) + return skip() + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SequenceActionEffectKeyframe.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SequenceActionEffectKeyframe.kt new file mode 100644 index 0000000000..9845a6e2b6 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/moves/animations/keyframes/SequenceActionEffectKeyframe.kt @@ -0,0 +1,26 @@ +/* + * 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.moves.animations.keyframes + +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import java.util.concurrent.CompletableFuture + +/** + * A sequence of action effects that are dependent on a condition. + * + * @author Hiroku + * @since October 29th, 2023 + */ +class SequenceActionEffectKeyframe(val keyframes: List = listOf()) : ConditionalActionEffectKeyframe() { + override fun playWhenTrue(context: ActionEffectContext): CompletableFuture { + val future = CompletableFuture() + context.actionEffect.chainKeyframes(context, keyframes.toList().iterator(), future) + return future + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockBlock.kt index 1da01c8ff4..03f03447c1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockBlock.kt @@ -8,7 +8,7 @@ package com.cobblemon.mod.common.api.multiblock -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity import net.minecraft.block.* import net.minecraft.block.entity.BlockEntity import net.minecraft.entity.LivingEntity diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockStructure.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockStructure.kt index 91c76fd9bd..4c611509d2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockStructure.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/multiblock/MultiblockStructure.kt @@ -42,5 +42,7 @@ interface MultiblockStructure { fun getComparatorOutput(state: BlockState, world: World?, pos: BlockPos?): Int { return 0 } + + fun markRemoved(world: World):Unit fun onTriggerEvent(state: BlockState?, world: ServerWorld?, pos: BlockPos?, random: Random?) } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/net/serializers/IdentifierDataSerializer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/net/serializers/IdentifierDataSerializer.kt new file mode 100644 index 0000000000..066b0c8e7d --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/net/serializers/IdentifierDataSerializer.kt @@ -0,0 +1,28 @@ +/* + * 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.net.serializers + +import net.minecraft.entity.data.TrackedDataHandler +import net.minecraft.network.PacketByteBuf +import net.minecraft.util.Identifier + +/** + * Data serializer of [Identifier] for DataTracker things. + * + * @author Hiroku + * @since May 22nd, 2023 + */ +object IdentifierDataSerializer : TrackedDataHandler { + override fun copy(value: Identifier) = Identifier(value.namespace, value.path) + override fun read(buf: PacketByteBuf) = Identifier(buf.readString(), buf.readString()) + override fun write(buf: PacketByteBuf, value: Identifier) { + buf.writeString(value.namespace) + buf.writeString(value.path) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokeball/PokeBalls.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokeball/PokeBalls.kt index 36d734d9d7..37a75c8834 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokeball/PokeBalls.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokeball/PokeBalls.kt @@ -204,7 +204,7 @@ object PokeBalls : JsonDataRegistry { createDefault("ancient_feather_ball", throwPower = 2.5f, ancient = true) createDefault("ancient_wing_ball", throwPower = 2.5f, ancient = true) createDefault("ancient_jet_ball", throwPower = 2.5f, ancient = true) - createDefault("ancient_origin_ball", ancient = true) + createDefault("ancient_origin_ball", GuaranteedModifier(), ancient = true) // Luxury ball effect CobblemonEvents.FRIENDSHIP_UPDATED.subscribe(priority = Priority.LOWEST) { event -> var increment = (event.newFriendship - event.pokemon.friendship).toFloat() diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/effect/ShoulderEffectRegistry.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/effect/ShoulderEffectRegistry.kt index 192ce1dfe3..d028b7b9ad 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/effect/ShoulderEffectRegistry.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/effect/ShoulderEffectRegistry.kt @@ -11,7 +11,6 @@ package com.cobblemon.mod.common.api.pokemon.effect import com.cobblemon.mod.common.api.scheduling.ServerTaskTracker import com.cobblemon.mod.common.platform.events.PlatformEvents import com.cobblemon.mod.common.pokemon.activestate.ShoulderedState -import com.cobblemon.mod.common.pokemon.effects.LightSourceEffect import com.cobblemon.mod.common.pokemon.effects.PotionBaseEffect import com.cobblemon.mod.common.util.party import net.minecraft.server.network.ServerPlayerEntity @@ -29,7 +28,6 @@ object ShoulderEffectRegistry { private val effects = mutableMapOf>() // Effects - START - val LIGHT_SOURCE = register("light_source", LightSourceEffect::class.java) val POTION_EFFECT = register("potion_effect", PotionBaseEffect::class.java) // Effects - END diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/evolution/Evolution.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/evolution/Evolution.kt index 7b3ca1ffc1..04b37a6df1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/evolution/Evolution.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokemon/evolution/Evolution.kt @@ -16,11 +16,14 @@ import com.cobblemon.mod.common.api.moves.BenchedMove import com.cobblemon.mod.common.api.moves.MoveTemplate import com.cobblemon.mod.common.api.pokemon.PokemonProperties import com.cobblemon.mod.common.api.pokemon.evolution.requirement.EvolutionRequirement +import com.cobblemon.mod.common.api.scheduling.afterOnServer +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity import com.cobblemon.mod.common.pokemon.Pokemon import com.cobblemon.mod.common.pokemon.activestate.ShoulderedState import com.cobblemon.mod.common.pokemon.evolution.variants.ItemInteractionEvolution import com.cobblemon.mod.common.pokemon.evolution.variants.LevelUpEvolution import com.cobblemon.mod.common.pokemon.evolution.variants.TradeEvolution +import com.cobblemon.mod.common.util.cobblemonResource import com.cobblemon.mod.common.util.lang import net.minecraft.item.ItemStack import net.minecraft.sound.SoundCategory @@ -92,6 +95,7 @@ interface Evolution : EvolutionLike { return true } + /** * Starts this evolution as soon as possible. * This will not present a choice to the client regardless of [optional]. @@ -99,25 +103,57 @@ interface Evolution : EvolutionLike { * @param pokemon The [Pokemon] being evolved. */ fun forceEvolve(pokemon: Pokemon) { + // This is a switch to enable/disable the evolution effect while we get particles improved + val useEvolutionEffect = false + if (pokemon.state is ShoulderedState) { pokemon.tryRecallWithAnimation() } - // ToDo Once implemented queue evolution for a pokemon state that is not in battle, start animation instead of instantly doing all of this + + val pokemonEntity = pokemon.entity + if (pokemonEntity == null || !useEvolutionEffect) { + evolutionMethod(pokemon) + } else { + pokemonEntity.evolutionEntity = pokemon.getOwnerPlayer()?.let { GenericBedrockEntity(world = it.world) } + val evolutionEntity = pokemon.entity!!.evolutionEntity + evolutionEntity?.apply { + category = cobblemonResource("evolution") + colliderHeight = pokemonEntity.height + colliderWidth = pokemonEntity.width + scale = pokemonEntity.scaleFactor + syncAge = true // Otherwise particle animation will be starting from zero even if you come along partway through + setPosition(pokemonEntity.x, pokemonEntity.y, pokemonEntity.z) + } + pokemon.getOwnerPlayer()?.world?.spawnEntity(evolutionEntity) + afterOnServer(seconds = 9F) { + if (!pokemonEntity.isRemoved) { + evolutionMethod(pokemon) + afterOnServer(seconds = 1.5F) { pokemonEntity.cry() } + afterOnServer(seconds = 3F) { + if (evolutionEntity != null) { + evolutionEntity.kill() + if (!pokemonEntity.isRemoved) { + pokemonEntity.evolutionEntity = null + } + } + } + } + } + } + } + + fun evolutionMethod(pokemon: Pokemon) { this.result.apply(pokemon) this.learnableMoves.forEach { move -> if (pokemon.moveSet.hasSpace()) { pokemon.moveSet.add(move.create()) - } - else { + } else { pokemon.benchedMoves.add(BenchedMove(move, 0)) } pokemon.getOwnerPlayer()?.sendMessage(lang("experience.learned_move", pokemon.getDisplayName(), move.displayName)) } // we want to instantly tick for example you might only evolve your Bulbasaur at level 34 so Venusaur should be immediately available - pokemon.evolutions.filterIsInstance() - .forEach { evolution -> - evolution.attemptEvolution(pokemon) - } + pokemon.evolutions.filterIsInstance().forEach { evolution -> evolution.attemptEvolution(pokemon) } pokemon.getOwnerPlayer()?.playSound(CobblemonSounds.EVOLVING, SoundCategory.NEUTRAL, 1F, 1F) CobblemonEvents.EVOLUTION_COMPLETE.post(EvolutionCompleteEvent(pokemon, this)) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/scheduling/SchedulingFunctions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/scheduling/SchedulingFunctions.kt index 622921ea45..5133e3f6cd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/scheduling/SchedulingFunctions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/scheduling/SchedulingFunctions.kt @@ -8,13 +8,27 @@ package com.cobblemon.mod.common.api.scheduling +import java.util.concurrent.CompletableFuture + @Deprecated("Use afterOnServer or afterOnClient; ambiguous side is not good for your health") @JvmOverloads + + fun after(ticks: Int = 0, seconds: Float = 0F, serverThread: Boolean = false, action: () -> Unit) { val scheduler = if (serverThread) ServerTaskTracker else ClientTaskTracker scheduler.after(seconds = seconds + ticks / 20F, action) } +fun delayedFuture(ticks: Int = 0, seconds: Float = 0F, serverThread: Boolean = false): CompletableFuture { + val future = CompletableFuture() + if (ticks == 0 && seconds == 0F) { + future.complete(Unit) + } else { + after(ticks = ticks, seconds = seconds, serverThread = serverThread) { future.complete(Unit) } + } + return future +} + /** * Delayed task is created to run on the main thread. This is for when the task * being completed after the delay does things like entity removal or other thread-unsafe actions. diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/MoLangCurve.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/MoLangCurve.kt index 71fea3ad78..33f97d299e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/MoLangCurve.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/MoLangCurve.kt @@ -25,6 +25,7 @@ import com.mojang.serialization.DynamicOps import com.mojang.serialization.codecs.ListCodec import com.mojang.serialization.codecs.PrimitiveCodec import com.mojang.serialization.codecs.RecordCodecBuilder +import com.mojang.serialization.codecs.UnboundedMapCodec import kotlin.math.floor import net.minecraft.network.PacketByteBuf @@ -44,6 +45,7 @@ interface MoLangCurve : CodecMapped { registerSubtype(CurveType.LINEAR, LinearMoLangCurve::class.java, LinearMoLangCurve.CODEC) registerSubtype(CurveType.CATMULL_ROM, CatmullRomMoLangCurve::class.java, CatmullRomMoLangCurve.CODEC) registerSubtype(CurveType.BEZIER, BezierMoLangCurve::class.java, BezierMoLangCurve.CODEC) + registerSubtype(CurveType.BEZIER_CHAIN, BezierChainMoLangCurve::class.java, BezierChainMoLangCurve.CODEC) } } @@ -52,8 +54,7 @@ interface MoLangCurve : CodecMapped { var input: Expression fun resolve(runtime: MoLangRuntime, inputValue: Double): Double fun apply(runtime: MoLangRuntime) { - val inputValue = runtime.resolveDouble(input) - runtime.environment.setSimpleVariable(name, DoubleValue(resolve(runtime, inputValue))) + runtime.environment.setSimpleVariable(name, DoubleValue(resolve(runtime, runtime.resolveDouble(input)))) } } @@ -165,6 +166,103 @@ class CatmullRomMoLangCurve( } } +class BezierChainMoLangCurve( + override var name: String = "variable", + override var input: Expression = NumberExpression(0.5), + var nodes: Map = emptyMap() +) : MoLangCurve { + var nodePairs: List = emptyList() + + fun deriveNodePairs() { + val nodePairs = mutableListOf() + val sortedNodes = nodes.entries.sortedBy { it.key } + for (i in 1 until sortedNodes.size) { + val node1 = sortedNodes[i - 1] + val node2 = sortedNodes[i] + + nodePairs.add(BezierChainNodePair(node1.key, node2.key, node1.value, node2.value)) + } + this.nodePairs = nodePairs + } + + init { + deriveNodePairs() + } + + class BezierChainNode(var value: Double, var slope: Double) { + fun writeToBuffer(buffer: PacketByteBuf) { + buffer.writeDouble(value) + buffer.writeDouble(slope) + } + + fun readFromBuffer(buffer: PacketByteBuf) { + value = buffer.readDouble() + slope = buffer.readDouble() + } + + companion object { + val CODEC = RecordCodecBuilder.create { instance -> + instance.group( + PrimitiveCodec.DOUBLE.fieldOf("value").forGetter { it.value }, + PrimitiveCodec.DOUBLE.fieldOf("slope").forGetter { it.slope } + ).apply(instance, ::BezierChainNode) + } + } + } + + class BezierChainNodePair( + val startTime: Double, + val endTime: Double, + node1: BezierChainNode, + node2: BezierChainNode + ) { + val curve: CubedBezierCurve + init { + val v1 = node1.value + val v2 = node1.value + node1.slope / 3 + val v3 = node2.value - node2.slope / 3 + val v4 = node2.value + curve = CubedBezierCurve(v1, v2, v3, v4) + } + } + + class BezierChainPointData(val time: Double, val value: Double, val slope: Double) + + companion object { + val CODEC: Codec = RecordCodecBuilder.create { instance -> + instance.group( + PrimitiveCodec.STRING.fieldOf("type").forGetter { it.type.name }, + PrimitiveCodec.STRING.fieldOf("name").forGetter { it.name }, + EXPRESSION_CODEC.fieldOf("input").forGetter { it.input }, + UnboundedMapCodec(PrimitiveCodec.DOUBLE, BezierChainNode.CODEC).fieldOf("nodes").forGetter { it.nodes } + ).apply(instance) { _, name, input, nodes -> BezierChainMoLangCurve(name, input, nodes) } + } + } + + override val type: CurveType = CurveType.BEZIER_CHAIN + override fun resolve(runtime: MoLangRuntime, inputValue: Double): Double { + val position = inputValue.coerceIn(0.0, 1.0) + val nodePair = nodePairs.last { position >= it.startTime } + val curve = nodePair.curve + val t = (position - nodePair.startTime) / (nodePair.endTime - nodePair.startTime) + return curve.getY(t) + } + + override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) + override fun readFromBuffer(buffer: PacketByteBuf) { + name = buffer.readString() + input = MoLang.createParser(buffer.readString()).parseExpression() + nodes = buffer.readMap({ buffer.readDouble() }, { BezierChainNode(0.0, 0.0).also { it.readFromBuffer(buffer) } }) + deriveNodePairs() + } + + override fun writeToBuffer(buffer: PacketByteBuf) { + buffer.writeString(name) + buffer.writeString(input.getString()) + buffer.writeMap(nodes, { pb, key -> pb.writeDouble(key) }, { pb, value -> value.writeToBuffer(pb) }) + } +} + class BezierMoLangCurve( override var name: String = "variable", override var input: Expression = NumberExpression(0.5), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleCameraMode.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleCameraMode.kt index 5637e22a67..02c11edb19 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleCameraMode.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleCameraMode.kt @@ -12,6 +12,7 @@ import com.cobblemon.mod.common.api.codec.CodecMapped import com.cobblemon.mod.common.api.data.ArbitrarilyMappedSerializableCompanion import com.cobblemon.mod.common.client.render.MatrixWrapper import com.cobblemon.mod.common.util.math.hamiltonProduct +import com.cobblemon.mod.common.util.set import com.mojang.serialization.Codec import com.mojang.serialization.DynamicOps import com.mojang.serialization.codecs.PrimitiveCodec @@ -26,6 +27,7 @@ import net.minecraft.util.math.RotationAxis import net.minecraft.util.math.Vec3d import org.joml.AxisAngle4d import org.joml.Quaternionf +import org.joml.Vector3f interface ParticleCameraMode : CodecMapped { companion object : ArbitrarilyMappedSerializableCompanion( @@ -54,6 +56,8 @@ interface ParticleCameraMode : CodecMapped { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -77,6 +81,8 @@ class RotateXYZCameraMode : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -109,6 +115,8 @@ class RotateYCameraMode : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -146,13 +154,15 @@ class LookAtXYZ : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, viewDirection: Vec3d ): Quaternionf { val i = if (angle == 0F) 0F else MathHelper.lerp(deltaTicks, prevAngle, angle) - val rotation = Quaternionf(0F, 0F, 0F, 1F) + val rotation = Quaternionf() rotation.hamiltonProduct(RotationAxis.POSITIVE_Y.rotationDegrees(-cameraYaw)) rotation.hamiltonProduct(RotationAxis.POSITIVE_X.rotationDegrees(cameraPitch)) rotation.hamiltonProduct(RotationAxis.POSITIVE_Z.rotationDegrees(i)) @@ -174,6 +184,8 @@ class LookAtY : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -203,6 +215,8 @@ class DirectionZ : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -236,6 +250,8 @@ class EmitterYZPlane : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -274,6 +290,8 @@ class EmitterXZPlane : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -311,6 +329,8 @@ class EmitterXYPlane : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -347,6 +367,8 @@ class DirectionY : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -380,6 +402,8 @@ class DirectionX : ParticleCameraMode { prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, @@ -398,6 +422,29 @@ class DirectionX : ParticleCameraMode { override fun writeToBuffer(buffer: PacketByteBuf) {} } +/** + * You can think of this camera mode as the one that does the following: + * + * - Uses the direction of motion as the particle X axis + * - Uses a vector parallel to the camera plane and perpendicular to the direction of motion as the particle Y axis. + * + * The second requirement is difficult to accomplish. The way it was eventually solved is by + * thinking of the plane generated by two specific vectors. One is the camera to the particle, + * the other is the camera to where the particle will be after it continues moving on its + * trajectory for some amount of time. + * + * That plane slices right through the camera, and so the normal vector of that plane is parallel + * lies on the camera plane (hard to explain that one). Since the plane includes the direction vector, + * the normal vector of that plane is perpendicular to the direction vector. Since the direction + * vector is being used for the X axis, and the normal vector is perpendicular, we can use that as + * the Y axis safely. + * + * The chicanery of this look direction is all simply to calculate the correct Y axis, use it, + * and then use the direction vector for the X axis. + * + * @author Hiroku + * @since June 29th, 2023 + */ class LookAtDirection : ParticleCameraMode { override val type: ParticleCameraModeType = ParticleCameraModeType.LOOK_AT_DIRECTION companion object { @@ -408,21 +455,50 @@ class LookAtDirection : ParticleCameraMode { } } + // Reusable shit so fewer instantiations during rendering. + val viewDirectionF = Vector3f(0F, 0F, 0F) + val particlePositionF = Vector3f(0F, 0F, 0F) + val cameraPositionF = Vector3f(0F, 0F, 0F) + val axisAngle = AxisAngle4d() + override fun getRotation( matrixWrapper: MatrixWrapper, prevAngle: Float, angle: Float, deltaTicks: Float, + particlePosition: Vec3d, + cameraPosition: Vec3d, cameraAngle: Quaternionf, cameraYaw: Float, cameraPitch: Float, viewDirection: Vec3d ): Quaternionf { - val i = if (angle == 0F) 0F else MathHelper.lerp(deltaTicks, prevAngle, angle) - val rotation = Quaternionf(0F, 0F, 0F, 1F) - rotation.hamiltonProduct(RotationAxis.POSITIVE_Y.rotationDegrees((viewDirection.x * -cameraYaw).toFloat())) - rotation.hamiltonProduct(RotationAxis.POSITIVE_X.rotationDegrees((viewDirection.y * cameraPitch).toFloat())) - rotation.hamiltonProduct(RotationAxis.POSITIVE_Z.rotationDegrees((viewDirection.z * i).toFloat())) + viewDirectionF.set(viewDirection) + particlePositionF.set(particlePosition) + cameraPositionF.set(cameraPosition) + + // Perform a rotation around the axis that should later become the particle Y axis + Quaternionf().rotateTo( + // Camera -> Particle + particlePositionF.sub(cameraPositionF, Vector3f()), + // Camera -> (Particle + Direction) + particlePositionF.add(viewDirectionF, Vector3f()).sub(cameraPositionF) + ).get(axisAngle) // Extract the rotation into axis + angle, so we can pluck the axis out. + + // Extract the axis of rotation, it is what we want the particle's local Y axis to be. + val correctY = Vector3f(axisAngle.x.toFloat(), axisAngle.y.toFloat(), axisAngle.z.toFloat()) + // First make X look along the direction vector + val rotation = Quaternionf().rotateTo(Vector3f(1F, 0F, 0F), viewDirectionF) + // Now figure out what the local Y axis is + val currentY = Vector3f(0F, 1F, 0F).rotate(rotation) + // Move that local Y to the correct local Y + // Pre-multiply is because the previous transform won't affect the correct Y, but vice versa absolutely would; we don't want that. + rotation.premul(Quaternionf().rotateTo(currentY, correctY)) + + // Do the regular rotation around Z to spin the particle, same as all other modes. + val particleAngle = if (angle == 0.0f) 0F else MathHelper.lerp(deltaTicks, prevAngle, angle) + rotation.hamiltonProduct(RotationAxis.POSITIVE_Z.rotationDegrees(particleAngle)) + return rotation } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterLifetime.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterLifetime.kt index d38f9f9854..3606885bf1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterLifetime.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterLifetime.kt @@ -17,6 +17,7 @@ import com.cobblemon.mod.common.api.data.ArbitrarilyMappedSerializableCompanion import com.cobblemon.mod.common.util.asExpression import com.cobblemon.mod.common.util.codec.EXPRESSION_CODEC import com.cobblemon.mod.common.util.getString +import com.cobblemon.mod.common.util.resolve import com.cobblemon.mod.common.util.resolveBoolean import com.cobblemon.mod.common.util.resolveDouble import com.mojang.serialization.Codec @@ -55,7 +56,9 @@ class OnceEmitterLifetime(var activeTime: Expression = 1.0.asExpression()) : Par override val type = ParticleEmitterLifetimeType.ONCE override fun getAction(runtime: MoLangRuntime, started: Boolean, emitterAge: Double): ParticleEmitterAction { - return if (emitterAge > runtime.resolveDouble(activeTime)) { + val activeTime = runtime.resolve(activeTime) + runtime.environment.setSimpleVariable("emitter_lifetime", activeTime) + return if (emitterAge > activeTime.asDouble()) { ParticleEmitterAction.STOP } else { ParticleEmitterAction.GO @@ -127,11 +130,13 @@ class LoopingEmitterLifetime(var activeTime: Expression = 1.0.asExpression(), va override val type = ParticleEmitterLifetimeType.LOOPING override fun getAction(runtime: MoLangRuntime, started: Boolean, emitterAge: Double): ParticleEmitterAction { - val activeTime = runtime.resolveDouble(activeTime) + val activeTime = runtime.resolve(activeTime) + val activeTimeValue = activeTime.asDouble() val sleepTime = runtime.resolveDouble(sleepTime) - val interval = activeTime + sleepTime + val interval = activeTimeValue + sleepTime val displacement = emitterAge % interval - return if (displacement < activeTime) { + runtime.environment.setSimpleVariable("emitter_lifetime", activeTime) + return if (displacement < activeTimeValue) { ParticleEmitterAction.GO } else { ParticleEmitterAction.RESET @@ -145,7 +150,6 @@ class LoopingEmitterLifetime(var activeTime: Expression = 1.0.asExpression(), va } override fun writeToBuffer(buffer: PacketByteBuf) { - val activeTimeString = buffer.writeString(activeTime.getString()) buffer.writeString(sleepTime.getString()) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterRate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterRate.kt index dca603da97..f7cc9a0d14 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterRate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleEmitterRate.kt @@ -9,7 +9,6 @@ package com.cobblemon.mod.common.api.snowstorm import com.bedrockk.molang.Expression -import com.bedrockk.molang.MoLang import com.bedrockk.molang.ast.NumberExpression import com.bedrockk.molang.runtime.MoLangRuntime import com.bedrockk.molang.runtime.struct.VariableStruct @@ -17,9 +16,11 @@ import com.bedrockk.molang.runtime.value.DoubleValue import com.cobblemon.mod.common.api.codec.CodecMapped import com.cobblemon.mod.common.api.data.ArbitrarilyMappedSerializableCompanion import com.cobblemon.mod.common.api.snowstorm.ParticleEmitterRate.Companion.OVERFLOW_VARIABLE +import com.cobblemon.mod.common.util.asExpression import com.cobblemon.mod.common.util.codec.EXPRESSION_CODEC import com.cobblemon.mod.common.util.getString import com.cobblemon.mod.common.util.resolveDouble +import com.cobblemon.mod.common.util.resolveInt import com.mojang.serialization.Codec import com.mojang.serialization.DynamicOps import com.mojang.serialization.codecs.PrimitiveCodec @@ -49,12 +50,12 @@ enum class ParticleEmitterRateType { INSTANT } -class InstantParticleEmitterRate(var amount: Int = 1) : ParticleEmitterRate { +class InstantParticleEmitterRate(var amount: Expression = "1".asExpression()) : ParticleEmitterRate { companion object { val CODEC: Codec = RecordCodecBuilder.create { instance -> instance.group( PrimitiveCodec.STRING.fieldOf("type").forGetter { it.type.name }, - PrimitiveCodec.INT.fieldOf("amount").forGetter { it.amount } + EXPRESSION_CODEC.fieldOf("amount").forGetter { it.amount } ).apply(instance) { _, amount -> InstantParticleEmitterRate(amount) } } } @@ -65,17 +66,17 @@ class InstantParticleEmitterRate(var amount: Int = 1) : ParticleEmitterRate { if (started) { return 0 } else { - return amount + return runtime.resolveInt(amount) } } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) override fun readFromBuffer(buffer: PacketByteBuf) { - amount = buffer.readInt() + amount = buffer.readString().asExpression() } override fun writeToBuffer(buffer: PacketByteBuf) { - buffer.writeInt(amount) + buffer.writeString(amount.getString()) } } @@ -99,29 +100,38 @@ class SteadyParticleEmitterRate( override val type = ParticleEmitterRateType.STEADY override fun getEmitCount(runtime: MoLangRuntime, started: Boolean, currentlyActive: Int): Int { + // The emitting rates are all per second, but this runs every tick. Presents some difficulties. + val max = runtime.resolveDouble(maximum).toInt() val variables = runtime.environment.structs["variable"] as VariableStruct - var currentOverflow = variables.map[OVERFLOW_VARIABLE]?.asDouble() ?: 0.0 + + /* + * The strategy is that per tick it might be calculated to be 1.2 particles. We can't spawn a fifth + * of a particle, so we consider the .2 to be overflow which will be added to the next total. If the + * next tick we end up with 1.9, the overflow from last time will bring it to 2.1, so 2 particles with + * 0.1 overflow for the next tick. + */ + + val currentOverflow = variables.map[OVERFLOW_VARIABLE]?.asDouble() ?: 0.0 if (currentlyActive >= max) { return 0 } val perSecond = runtime.resolveDouble(rate) + val trySpawn = perSecond / 20.0 + currentOverflow - val intComponent = trySpawn.toInt() - val doubleComponent = trySpawn - intComponent + val intComponent = trySpawn.toInt() // round down + val doubleComponent = trySpawn - intComponent // decimal portion (the overflow) - currentOverflow = doubleComponent - - variables.map[OVERFLOW_VARIABLE] = DoubleValue(currentOverflow) + variables.map[OVERFLOW_VARIABLE] = DoubleValue(doubleComponent) return min(intComponent, max - currentlyActive) } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) override fun readFromBuffer(buffer: PacketByteBuf) { - rate = MoLang.createParser(buffer.readString()).parseExpression() - maximum = MoLang.createParser(buffer.readString()).parseExpression() + rate = buffer.readString().asExpression() + maximum = buffer.readString().asExpression() } override fun writeToBuffer(buffer: PacketByteBuf) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterial.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterial.kt index b49860c956..59bec42fb8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterial.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterial.kt @@ -11,5 +11,6 @@ package com.cobblemon.mod.common.api.snowstorm enum class ParticleMaterial { ALPHA, OPAQUE, - BLEND + BLEND, + ADD } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterials.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterials.kt new file mode 100644 index 0000000000..268506f12d --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMaterials.kt @@ -0,0 +1,103 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.api.snowstorm + +import com.cobblemon.mod.common.client.render.shader.CobblemonShaders +import com.mojang.blaze3d.platform.GlStateManager +import com.mojang.blaze3d.systems.RenderSystem +import net.minecraft.client.particle.ParticleTextureSheet +import net.minecraft.client.render.* +import net.minecraft.client.texture.SpriteAtlasTexture +import net.minecraft.client.texture.TextureManager + +object ParticleMaterials { + + val ALPHA = object : ParticleTextureSheet { + override fun begin(builder: BufferBuilder, textureManager: TextureManager) { + RenderSystem.disableBlend() + RenderSystem.depthMask(true) + RenderSystem.setShader { CobblemonShaders.PARTICLE_CUTOUT } + RenderSystem.setShaderTexture(0, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE) + + + builder.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT) + } + + override fun draw(tessellator: Tessellator) { + tessellator.draw() + } + + override fun toString(): String { + return "ALPHA" + } + } + + val ADD = object : ParticleTextureSheet { + override fun begin(builder: BufferBuilder, textureManager: TextureManager) { + RenderSystem.enableBlend() + RenderSystem.depthMask(true) + RenderSystem.setShader { CobblemonShaders.PARTICLE_BLEND } + RenderSystem.setShaderTexture(0, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE) + + RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA) + + builder.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT) + } + + override fun draw(tessellator: Tessellator) { + tessellator.draw() + } + + override fun toString(): String { + return "ADD" + } + } + + val BLEND = object : ParticleTextureSheet { + override fun begin(builder: BufferBuilder, textureManager: TextureManager) { + RenderSystem.enableBlend() + RenderSystem.depthMask(true) + RenderSystem.setShader { CobblemonShaders.PARTICLE_BLEND } + RenderSystem.setShaderTexture(0, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE) + + RenderSystem.blendFunc(GlStateManager.SrcFactor.DST_COLOR, GlStateManager.DstFactor.ZERO) + + builder.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT) + } + + override fun draw(tessellator: Tessellator) { + tessellator.draw() + } + + override fun toString(): String { + return "BLEND" + } + } + + val OPAQUE = object : ParticleTextureSheet { + override fun begin(builder: BufferBuilder, textureManager: TextureManager) { + RenderSystem.enableBlend() + RenderSystem.depthMask(true) + RenderSystem.setShader { CobblemonShaders.PARTICLE_BLEND } + RenderSystem.setShaderTexture(0, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE) + + RenderSystem.blendFunc(GlStateManager.SrcFactor.ONE, GlStateManager.DstFactor.ONE) + + builder.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT) + } + + override fun draw(tessellator: Tessellator) { + tessellator.draw() + } + + override fun toString(): String { + return "OPAQUE" + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMotion.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMotion.kt index 3df4231db2..5aaeacc219 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMotion.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleMotion.kt @@ -14,8 +14,10 @@ import com.bedrockk.molang.ast.NumberExpression import com.bedrockk.molang.runtime.MoLangRuntime import com.cobblemon.mod.common.api.codec.CodecMapped import com.cobblemon.mod.common.api.data.ArbitrarilyMappedSerializableCompanion +import com.cobblemon.mod.common.client.particle.ParticleStorm import com.cobblemon.mod.common.util.codec.EXPRESSION_CODEC import com.cobblemon.mod.common.util.getString +import com.cobblemon.mod.common.util.math.geometry.transformDirection import com.cobblemon.mod.common.util.resolveDouble import com.mojang.serialization.Codec import com.mojang.serialization.DynamicOps @@ -37,7 +39,7 @@ interface ParticleMotion : CodecMapped { } val type: ParticleMotionType - fun getInitialVelocity(runtime: MoLangRuntime, particlePos: Vec3d, emitterPos: Vec3d): Vec3d + fun getInitialVelocity(runtime: MoLangRuntime, storm: ParticleStorm, particlePos: Vec3d, emitterPos: Vec3d): Vec3d fun getAcceleration(runtime: MoLangRuntime, velocity: Vec3d): Vec3d } @@ -73,8 +75,8 @@ class DynamicParticleMotion( } } - override fun getInitialVelocity(runtime: MoLangRuntime, particlePos: Vec3d, emitterPos: Vec3d): Vec3d { - return direction.getDirectionVector(runtime, emitterPos, particlePos).multiply(runtime.resolveDouble(speed)) + override fun getInitialVelocity(runtime: MoLangRuntime, storm: ParticleStorm, particlePos: Vec3d, emitterPos: Vec3d): Vec3d { + return direction.getDirectionVector(runtime, storm, emitterPos, particlePos).normalize().multiply(runtime.resolveDouble(speed)) } override fun getAcceleration(runtime: MoLangRuntime, velocity: Vec3d): Vec3d { @@ -82,7 +84,7 @@ class DynamicParticleMotion( runtime.resolveDouble(acceleration.first), runtime.resolveDouble(acceleration.second), runtime.resolveDouble(acceleration.third) - ).subtract(velocity.multiply(runtime.resolveDouble(drag) / 20)/* Drag is measured in blocks per tick per tick, I know it sounds dumb. */) + ).subtract(velocity.multiply(runtime.resolveDouble(drag))) } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) @@ -122,7 +124,7 @@ interface ParticleMotionDirection : CodecMapped { } } val type: ParticleMotionDirectionType - fun getDirectionVector(runtime: MoLangRuntime, emitterPos: Vec3d, particlePos: Vec3d): Vec3d + fun getDirectionVector(runtime: MoLangRuntime, storm: ParticleStorm, emitterPos: Vec3d, particlePos: Vec3d): Vec3d } class InwardsMotionDirection : ParticleMotionDirection { @@ -134,7 +136,13 @@ class InwardsMotionDirection : ParticleMotionDirection { } override val type = ParticleMotionDirectionType.INWARDS - override fun getDirectionVector(runtime: MoLangRuntime, emitterPos: Vec3d, particlePos: Vec3d) = emitterPos.subtract(particlePos).normalize() + override fun getDirectionVector(runtime: MoLangRuntime, storm: ParticleStorm, emitterPos: Vec3d, particlePos: Vec3d): Vec3d { + return if (particlePos == emitterPos) { + Vec3d(storm.world.random.nextDouble() - 0.5, storm.world.random.nextDouble() - 0.5, storm.world.random.nextDouble() - 0.5) + } else { + particlePos.subtract(emitterPos) + }.normalize() + } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) override fun readFromBuffer(buffer: PacketByteBuf) {} override fun writeToBuffer(buffer: PacketByteBuf) {} @@ -149,8 +157,12 @@ class OutwardsMotionDirection : ParticleMotionDirection { } override val type = ParticleMotionDirectionType.OUTWARDS - override fun getDirectionVector(runtime: MoLangRuntime, emitterPos: Vec3d, particlePos: Vec3d): Vec3d { - return particlePos.subtract(emitterPos).normalize() + override fun getDirectionVector(runtime: MoLangRuntime, storm: ParticleStorm, emitterPos: Vec3d, particlePos: Vec3d): Vec3d { + return if (particlePos == emitterPos) { + Vec3d(storm.world.random.nextDouble() - 0.5, storm.world.random.nextDouble() - 0.5, storm.world.random.nextDouble() - 0.5) + } else { + particlePos.subtract(emitterPos) + }.normalize() } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) @@ -178,12 +190,13 @@ class CustomMotionDirection( override val type = ParticleMotionDirectionType.CUSTOM - override fun getDirectionVector(runtime: MoLangRuntime, emitterPos: Vec3d, particlePos: Vec3d): Vec3d { - return Vec3d( + override fun getDirectionVector(runtime: MoLangRuntime, storm: ParticleStorm, emitterPos: Vec3d, particlePos: Vec3d): Vec3d { + val v = Vec3d( runtime.resolveDouble(direction.first), runtime.resolveDouble(direction.second), runtime.resolveDouble(direction.third) ) + return storm.matrixWrapper.matrix.transformDirection(v) } override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) @@ -220,7 +233,7 @@ class StaticParticleMotion : ParticleMotion { @Transient override val type = ParticleMotionType.STATIC - override fun getInitialVelocity(runtime: MoLangRuntime, particlePos: Vec3d, emitterPos: Vec3d) = Vec3d.ZERO + override fun getInitialVelocity(runtime: MoLangRuntime, storm: ParticleStorm, particlePos: Vec3d, emitterPos: Vec3d) = Vec3d.ZERO override fun getAcceleration(runtime: MoLangRuntime, velocity: Vec3d) = Vec3d.ZERO override fun encode(ops: DynamicOps) = CODEC.encodeStart(ops, this) override fun readFromBuffer(buffer: PacketByteBuf) {} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleSpace.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleSpace.kt index 869023134a..7da5a56106 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleSpace.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleSpace.kt @@ -34,6 +34,9 @@ class ParticleSpace( } } + val isLocalSpace: Boolean + get() = localPosition || localRotation + fun readFromBuffer(buffer: PacketByteBuf) { localPosition = buffer.readBoolean() localRotation = buffer.readBoolean() diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleUVMode.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleUVMode.kt index 073afebac4..4db0f7f4b0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleUVMode.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleUVMode.kt @@ -146,7 +146,7 @@ class AnimatedParticleUVMode( } else { val fps = runtime.resolveDouble(fps) val effectiveFrame = ((age * fps) % maxFrame).toInt() - val frame = if (!loop && age * fps > maxFrame) { + val frame = if (!loop && age * fps >= maxFrame) { maxFrame } else { effectiveFrame diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleViewDirection.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleViewDirection.kt index c92eb244c6..6aceb89b6f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleViewDirection.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/snowstorm/ParticleViewDirection.kt @@ -9,17 +9,13 @@ package com.cobblemon.mod.common.api.snowstorm import com.bedrockk.molang.Expression -import com.bedrockk.molang.MoLang import com.bedrockk.molang.runtime.MoLangRuntime import com.cobblemon.mod.common.api.codec.CodecMapped import com.cobblemon.mod.common.api.data.ArbitrarilyMappedSerializableCompanion import com.cobblemon.mod.common.util.asExpression import com.cobblemon.mod.common.util.codec.EXPRESSION_CODEC import com.cobblemon.mod.common.util.getString -import com.cobblemon.mod.common.util.readVec3d -import com.cobblemon.mod.common.util.resolveDouble import com.cobblemon.mod.common.util.resolveVec3d -import com.cobblemon.mod.common.util.writeVec3d import com.mojang.serialization.Codec import com.mojang.serialization.DynamicOps import com.mojang.serialization.codecs.PrimitiveCodec @@ -70,7 +66,7 @@ class FromMotionViewDirection(var minSpeed: Double = 0.01) : ParticleViewDirecti } override fun getDirection(runtime: MoLangRuntime, lastDirection: Vec3d, currentVelocity: Vec3d): Vec3d { - return if (currentVelocity.length() / 20 >= minSpeed) { + return if (currentVelocity.length() * 20 >= minSpeed) { currentVelocity.normalize() } else { lastDirection diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/adapter/flatfile/NBTStoreAdapter.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/adapter/flatfile/NBTStoreAdapter.kt index 04ed4663e5..082fdfa7eb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/adapter/flatfile/NBTStoreAdapter.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/adapter/flatfile/NBTStoreAdapter.kt @@ -32,11 +32,10 @@ open class NBTStoreAdapter( override fun save(file: File, serialized: NbtCompound) = NbtIo.writeCompressed(serialized, file) override fun > load(file: File, storeClass: Class, uuid: UUID): T? { val store = try { - storeClass.getConstructor(UUID::class.java, UUID::class.java).newInstance(uuid, uuid) + storeClass.getConstructor(UUID::class.java).newInstance(uuid) } catch (exception: NoSuchMethodException) { storeClass.getConstructor(UUID::class.java).newInstance(uuid) } - return try { val nbt = NbtIo.readCompressed(file) store.loadFromNBT(nbt) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/party/PlayerPartyStore.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/party/PlayerPartyStore.kt index ad589b46bb..cbf99d9950 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/party/PlayerPartyStore.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/storage/party/PlayerPartyStore.kt @@ -43,6 +43,8 @@ open class PlayerPartyStore( private var secondsSinceFriendshipUpdate = 0 + constructor(playerUUID: UUID): this(playerUUID, playerUUID) + override fun initialize() { super.initialize() observerUUIDs.add(playerUUID) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBiomeTags.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBiomeTags.kt index dabd626efd..b4bad0125f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBiomeTags.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBiomeTags.kt @@ -148,6 +148,8 @@ object CobblemonBiomeTags { @JvmField val HAS_FIRE_STONE_ORE_RARE = create("has_ore/ore_fire_stone_rare") @JvmField + val HAS_FIRE_STONE_ORE_NETHER = create("has_ore/ore_fire_stone_nether") + @JvmField val HAS_ICE_STONE_ORE = create("has_ore/ore_ice_stone_normal") @JvmField val HAS_ICE_STONE_ORE_RARE = create("has_ore/ore_ice_stone_rare") diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBlockTags.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBlockTags.kt index 6c5ad3d7ce..aaeb53df81 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBlockTags.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonBlockTags.kt @@ -45,6 +45,7 @@ object CobblemonBlockTags { @JvmField val SNOW_BLOCK = createTag("snow_block") @JvmField val ROOTS = createTag("roots") @JvmField val STANDING_SIGNS = createTag("standing_signs") + @JvmField val TUMBLESTONE_HEAT_SOURCE = createTag("tumblestone_heat_source") @JvmField val WALL_HANGING_SIGNS = createTag("wall_hanging_signs") @JvmField val WALL_SIGNS = createTag("wall_signs") diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonItemTags.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonItemTags.kt index 5cfc8565ac..6e0cb3872a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonItemTags.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/tags/CobblemonItemTags.kt @@ -8,6 +8,7 @@ package com.cobblemon.mod.common.api.tags +import com.cobblemon.mod.common.CobblemonItems import com.cobblemon.mod.common.util.cobblemonResource import net.minecraft.registry.Registries import net.minecraft.registry.RegistryKeys @@ -21,11 +22,12 @@ import net.minecraft.registry.tag.TagKey */ @Suppress("unused", "HasPlatformType") object CobblemonItemTags { - + @JvmField + val ANCIENT_POKE_BALLS = create("ancient_poke_balls") @JvmField val APRICORN_LOGS = create("apricorn_logs") @JvmField - val APRICORN_SEEDS = create("apricorn_seeds") + val APRICORN_SPROUTS = create("apricorn_sprouts") @JvmField val APRICORNS = create("apricorns") /** @@ -40,6 +42,15 @@ object CobblemonItemTags { val BOATS = create("boats") @JvmField val COBBLEMON_SEEDS = create("cobblemon_seeds") + /** + * This tag is used for Fossil Machine natural materials + */ + @JvmField + val COOKED_MEAT = create("cooked_meat") + @JvmField + val DAWN_STONE_ORES = create("dawn_stone_ores") + @JvmField + val DUSK_STONE_ORES = create("dusk_stone_ores") @JvmField val EVOLUTION_ITEMS = create("evolution_items") @JvmField @@ -47,27 +58,54 @@ object CobblemonItemTags { @JvmField val EXPERIENCE_CANDIES = create("experience_candies") @JvmField + val FIRE_STONE_ORES = create("fire_stone_ores") + @JvmField + val FOSSILS = create("fossils") + @JvmField val HANGING_SIGNS = create("hanging_signs") @JvmField val HERBS = create("herbs") @JvmField + val ICE_STONE_ORES = create("ice_stone_ores") + @JvmField + val LEAF_STONE_ORES = create("leaf_stone_ores") + @JvmField val MINT_LEAF = create("mint_leaf") @JvmField + val MINT_SEEDS = create("mint_seeds") + @JvmField val MINTS = create("mints") @JvmField + val MOON_STONE_ORES = create("moon_stone_ores") + @JvmField val MUTATED_BERRIES = create("mutated_berries") @JvmField val PLANTS = create("plants") @JvmField - val POKEBALLS = create("poke_balls") + val POKE_BALLS = create("poke_balls") @JvmField val PROTEIN_INGREDIENTS = create("protein_ingredients") + /** See [COOKED_MEAT] */ + @JvmField + val RAW_MEAT = create("raw_meat") @JvmField val SEEDS = create("seeds") @JvmField + val SHINY_STONE_ORES = create("shiny_stone_ores") + @JvmField val SIGNS = create("signs") @JvmField + val SUN_STONE_ORES = create("sun_stone_ores") + @JvmField + val THUNDER_STONE_ORES = create("thunder_stone_ores") + @JvmField + val TUMBLESTONES = create("tumblestones") + @JvmField + val WATER_STONE_ORES = create("water_stone_ores") + @JvmField val ZINC_INGREDIENTS = create("zinc_ingredients") + + // Held Item Tags @JvmField val ANY_HELD_ITEM = create("held/is_held_item") @JvmField @@ -97,6 +135,15 @@ object CobblemonItemTags { @JvmField val CONSUMED_IN_WILD_BATTLE = create("held/consumed_in_wild_battle") + /** + * Tag that flags items as being able to "create" [CobblemonItems.LEFTOVERS]. + */ + @JvmField + val LEAVES_LEFTOVERS = create("held/leaves_leftovers") + + @JvmField + val POTTERY_SHERDS = create("decorated_pot_sherds") + private fun create(path: String) = TagKey.of(RegistryKeys.ITEM, cobblemonResource(path)) } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/ShowdownInterpreter.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/ShowdownInterpreter.kt index 57def1c5c1..bb015386c1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/battles/ShowdownInterpreter.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/ShowdownInterpreter.kt @@ -10,7 +10,11 @@ package com.cobblemon.mod.common.battles import com.cobblemon.mod.common.Cobblemon.LOGGER import com.cobblemon.mod.common.CobblemonSounds -import com.cobblemon.mod.common.api.battles.interpreter.* +import com.cobblemon.mod.common.api.battles.interpreter.BasicContext +import com.cobblemon.mod.common.api.battles.interpreter.BattleContext +import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage +import com.cobblemon.mod.common.api.battles.interpreter.Effect +import com.cobblemon.mod.common.api.battles.interpreter.MissingContext import com.cobblemon.mod.common.api.battles.model.PokemonBattle import com.cobblemon.mod.common.api.battles.model.actor.ActorType import com.cobblemon.mod.common.api.battles.model.actor.BattleActor @@ -20,7 +24,11 @@ import com.cobblemon.mod.common.api.events.CobblemonEvents import com.cobblemon.mod.common.api.events.battles.BattleVictoryEvent import com.cobblemon.mod.common.api.pokemon.stats.Stats import com.cobblemon.mod.common.api.pokemon.status.Statuses -import com.cobblemon.mod.common.api.text.* +import com.cobblemon.mod.common.api.text.gold +import com.cobblemon.mod.common.api.text.plus +import com.cobblemon.mod.common.api.text.red +import com.cobblemon.mod.common.api.text.text +import com.cobblemon.mod.common.api.text.yellow import com.cobblemon.mod.common.api.types.ElementalTypes import com.cobblemon.mod.common.battles.actor.PlayerBattleActor import com.cobblemon.mod.common.battles.dispatch.BattleDispatch @@ -31,24 +39,46 @@ import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction import com.cobblemon.mod.common.battles.dispatch.UntilDispatch import com.cobblemon.mod.common.battles.dispatch.WaitDispatch import com.cobblemon.mod.common.battles.interpreter.ContextManager -import com.cobblemon.mod.common.battles.interpreter.instructions.DamageInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.DeprecatedInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.DeprecatedSplitInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.FaintInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.IgnoredInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.MoveInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.TurnInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.UnknownInstruction -import com.cobblemon.mod.common.battles.interpreter.instructions.UpkeepInstruction +import com.cobblemon.mod.common.battles.interpreter.instructions.* import com.cobblemon.mod.common.battles.pokemon.BattlePokemon -import com.cobblemon.mod.common.net.messages.client.battle.* +import com.cobblemon.mod.common.net.messages.client.battle.BattleHealthChangePacket +import com.cobblemon.mod.common.net.messages.client.battle.BattleMadeInvalidChoicePacket +import com.cobblemon.mod.common.net.messages.client.battle.BattleMakeChoicePacket +import com.cobblemon.mod.common.net.messages.client.battle.BattlePersistentStatusPacket +import com.cobblemon.mod.common.net.messages.client.battle.BattleQueueRequestPacket +import com.cobblemon.mod.common.net.messages.client.battle.BattleSwitchPokemonPacket import com.cobblemon.mod.common.pokemon.evolution.progress.DamageTakenEvolutionProgress import com.cobblemon.mod.common.pokemon.evolution.progress.LastBattleCriticalHitsEvolutionProgress import com.cobblemon.mod.common.pokemon.evolution.progress.RecoilEvolutionProgress import com.cobblemon.mod.common.pokemon.status.PersistentStatus -import com.cobblemon.mod.common.util.* +import com.cobblemon.mod.common.util.asTranslated +import com.cobblemon.mod.common.util.battleLang +import com.cobblemon.mod.common.util.lang +import com.cobblemon.mod.common.util.runOnServer +import com.cobblemon.mod.common.util.swap import java.util.UUID import java.util.concurrent.CompletableFuture +import kotlin.collections.Iterator +import kotlin.collections.MutableList +import kotlin.collections.any +import kotlin.collections.emptySet +import kotlin.collections.filter +import kotlin.collections.filterIsInstance +import kotlin.collections.find +import kotlin.collections.first +import kotlin.collections.firstOrNull +import kotlin.collections.forEach +import kotlin.collections.getOrNull +import kotlin.collections.listOf +import kotlin.collections.map +import kotlin.collections.mapNotNull +import kotlin.collections.mutableListOf +import kotlin.collections.mutableMapOf +import kotlin.collections.reduce +import kotlin.collections.set +import kotlin.collections.setOf +import kotlin.collections.toMutableList +import kotlin.collections.toTypedArray import kotlin.math.roundToInt import net.minecraft.entity.LivingEntity import net.minecraft.server.world.ServerWorld @@ -86,12 +116,13 @@ object ShowdownInterpreter { updateInstructionParser["upkeep"] = { _, _, _, _ -> UpkeepInstruction() } updateInstructionParser["faint"] = { battle, _, message, _ -> FaintInstruction(battle, message) } updateInstructionParser["move"] = { _, instructionSet, message, _ -> MoveInstruction(instructionSet, message) } - splitInstructionParser["-damage"] = { _, targetActor, _, publicMessage, privateMessage, _ -> - DamageInstruction(targetActor, publicMessage, privateMessage) + updateInstructionParser["-activate"] = { _, instructionSet, message, _ -> ActivateInstruction(instructionSet, message) } + updateInstructionParser["-ability"] = { _, instructionSet, message, _ -> AbilityInstruction(instructionSet, message) } + updateInstructionParser["-miss"] = { battle, instructionSet, message, _ -> MissInstruction(battle, instructionSet, message) } + splitInstructionParser["-damage"] = { _, targetActor, instructionSet, publicMessage, privateMessage, _ -> + DamageInstruction(instructionSet, targetActor, publicMessage, privateMessage) } - - // Note '-cureteam' is a legacy thing that is only used in generation 2 and 4 mods for heal bell and aromatherapy respectively as such we can just ignore that updateInstructions["|win|"] = this::handleWinInstruction @@ -105,11 +136,9 @@ object ShowdownInterpreter { updateInstructions["|-fail|"] = this::handleFailInstruction updateInstructions["|-start|"] = this::handleStartInstructions updateInstructions["|-block|"] = this::handleBlockInstructions - updateInstructions["|-activate|"] = this::handleActivateInstructions updateInstructions["|-curestatus|"] = this::handleCureStatusInstruction updateInstructions["|-fieldstart|"] = this::handleFieldStartInstructions updateInstructions["|-fieldend|"] = this::handleFieldEndInstructions - updateInstructions["|-ability|"] = this::handleAbilityInstructions updateInstructions["|-endability|"] = this::handleEndAbilityInstruction updateInstructions["|-nothing"] = { battle, _, _ -> battle.dispatchGo { battle.broadcastChatMessage(battleLang("nothing")) } @@ -131,7 +160,6 @@ object ShowdownInterpreter { updateInstructions["|-invertboost|"] = this::handleInvertBoostInstruction updateInstructions["|-status|"] = this::handleStatusInstruction updateInstructions["|-end|"] = this::handleEndInstruction - updateInstructions["|-miss|"] = this::handleMissInstruction updateInstructions["|-hitcount|"] = this::handleHitCountInstruction updateInstructions["|-item|"] = this::handleItemInstruction updateInstructions["|-enditem|"] = this::handleEndItemInstruction @@ -556,20 +584,6 @@ object ShowdownInterpreter { } } - /** - * Format: - * |-miss|SOURCE|TARGET - * - * The move used by the SOURCE Pokémon missed (maybe absent) the TARGET Pokémon. - */ - private fun handleMissInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList) { - battle.dispatchWaiting(1.5F) { - val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting - battle.broadcastChatMessage(battleLang("missed").red()) - battle.minorBattleActions[pokemon.uuid] = message - } - } - /** * Format: * |-immune|POKEMON @@ -625,7 +639,7 @@ object ShowdownInterpreter { val effectID = message.effectAt(1)?.id ?: return@dispatchWaiting val name = pokemon.getName() // Move may be null as it's not always given - val moveName = message.moveAt(2)?.displayName ?: run { println(message.argumentAt(2)); "(Unrecognized: ${message.argumentAt(2)})".text() } + val moveName = message.moveAt(2)?.displayName ?: run { "(Unrecognized: ${message.argumentAt(2)})".text() } val lang = when (effectID) { // TODO: in the games they use a generic image because there is a popup of the ability and the sprite of the mon, it may be good to have a similar system here @@ -957,46 +971,6 @@ object ShowdownInterpreter { } } - /** - * Format: - * |-activate|POKEMON|EFFECT - * - * A miscellaneous effect has activated.This is triggered whenever an effect could not be better described by one of the other minor messages. - */ - private fun handleActivateInstructions(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList){ - val pokemon = message.getBattlePokemon(0, battle) ?: return - val pokemonName = pokemon.getName() - val sourceName = message.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKNOWN") - val effect = message.effectAt(1) ?: return - val extraEffect = message.effectAt(2)?.typelessData ?: Text.literal("UNKNOWN") - broadcastOptionalAbility(battle, effect, pokemonName) - - battle.dispatch{ - this.lastCauser[battle.battleId] = message - battle.minorBattleActions[pokemon.uuid] = message - - val lang = when (effect.id) { - // Includes a 3rd argument being the magnitude level as a number - "magnitude" -> battleLang("activate.magnitude", message.argumentAt(2)?.toIntOrNull() ?: 1) - // Includes spited move and the PP it was reduced by - "spite", "eeriespell" -> battleLang("activate.spite", pokemonName, extraEffect, message.argumentAt(3)!!) - // Don't need additional lang, announced elsewhere - "toxicdebris", "shedskin" -> return@dispatch GO - // Add activation to each Pokemon's history - "destinybond" -> { - battle.activePokemon.mapNotNull { it.battlePokemon?.uuid }.forEach { battle.minorBattleActions[it] = message } - battleLang("activate.destinybond", pokemonName) - } - "focussash", "focusband" -> battleLang("activate.focusband", pokemonName, effect.typelessData) - "maxguard", "protect" -> battleLang("activate.protect", pokemonName) - "shadowforce", "hyperspacefury", "hyperspacehole" -> battleLang("activate.phantomforce", pokemonName) - else -> battleLang("activate.${effect.id}", pokemonName, sourceName, extraEffect) - } - battle.broadcastChatMessage(lang) - WaitDispatch(1F) - } - } - /** * Format: * |-fieldstart|CONDITION @@ -1054,54 +1028,6 @@ object ShowdownInterpreter { } } - /** - * Format: - * |-ability|POKEMON|ABILITY|(from)EFFECT - * - * The ABILITY of the POKEMON has been changed due to a move/ability EFFECT. - * - * Format: - * |-ability|POKEMON|ABILITY - * - * POKEMON has just switched-in, and its ability ABILITY is being announced to have a long-term effect. - */ - private fun handleAbilityInstructions(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList) { - val pokemon = message.getBattlePokemon(0, battle) ?: return - val pokemonName = pokemon.getName() - val effect = message.effectAt(1) ?: return - val optionalEffect = message.effect() - val optionalPokemon = message.getSourceBattlePokemon(battle) - val optionalPokemonName = optionalPokemon?.getName() - - // If there is an optional effect causing the activation, broadcast that instead of the standard effect - if (optionalEffect != null) { - broadcastAbility(battle, optionalEffect, pokemonName) - } else { - broadcastAbility(battle, effect, pokemonName) - } - - battle.dispatch { - this.lastCauser[battle.battleId] = message - - val lang = when (optionalEffect?.id) { - "trace" -> optionalPokemonName?.let { battleLang("ability.trace", pokemonName, it, effect.typelessData) } - "receiver", "powerofalchemy" -> optionalPokemonName?.let { battleLang("ability.receiver", it, effect.typelessData) } // Receiver and Power of Alchemy share the same text - else -> when (effect.id) { - "sturdy", "unnerve", "anticipation" -> battleLang("ability.${effect.id}", pokemonName) // Unique message - "airlock", "cloudnine" -> battleLang("ability.airlock") // Cloud Nine shares the same text as Air Lock - else -> null // Effect broadcasted by a succeeding instruction - } - } - - battle.minorBattleActions[pokemon.uuid] = message - if (lang != null) { - battle.broadcastChatMessage(lang) - return@dispatch WaitDispatch(1F) - } - else return@dispatch GO - } - } - fun broadcastOptionalAbility(battle: PokemonBattle, effect: Effect?, pokemonName: MutableText) { if (effect != null && effect.type == Effect.Type.ABILITY) broadcastAbility(battle, effect, pokemonName) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/CauserInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/CauserInstruction.kt new file mode 100644 index 0000000000..bc45f3db2c --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/CauserInstruction.kt @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.battles.dispatch + +interface CauserInstruction \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/InstructionSet.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/InstructionSet.kt index 96628f6b3e..66137095f8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/InstructionSet.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/dispatch/InstructionSet.kt @@ -9,9 +9,11 @@ package com.cobblemon.mod.common.battles.dispatch import com.cobblemon.mod.common.api.battles.model.PokemonBattle +import org.objectweb.asm.tree.analysis.Interpreter class InstructionSet { val instructions: MutableList = mutableListOf() + fun getSubsequentInstructions(instruction: InterpreterInstruction): List { val index = instructions.indexOf(instruction) return instructions.subList(index + 1, instructions.size).toList() @@ -22,6 +24,31 @@ class InstructionSet { return instructions.subList(0, index).toList() } + inline fun getMostRecentInstruction(comparedTo: InterpreterInstruction, predicate: (T) -> Boolean = { true }): T? { + val index = instructions.indexOf(comparedTo) + return instructions.subList(0, index).filterIsInstance().lastOrNull(predicate) + } + + fun findInstructionsCausedBy(causerInstruction: CauserInstruction): List { + causerInstruction as InterpreterInstruction + val thisCauseIndex = instructions.indexOf(causerInstruction) + if (thisCauseIndex == instructions.size - 1) { + return emptyList() + } + val nextCauseIndex = getNextInstruction(causerInstruction)?.let { instructions.indexOf(it as InterpreterInstruction) } + return instructions.subList(thisCauseIndex + 1, nextCauseIndex ?: instructions.size) + } + + inline fun getNextInstruction(comparedTo: InterpreterInstruction, predicate: (T) -> Boolean = { true }): T? { + val index = instructions.indexOf(comparedTo) + if (instructions.last() == comparedTo) { + return null + } + return instructions.subList(index + 1, instructions.size).filterIsInstance().firstOrNull(predicate) + } + + fun getMostRecentCauser(comparedTo: InterpreterInstruction) = getMostRecentInstruction(comparedTo) + fun execute(battle: PokemonBattle) { instructions.forEach { it(battle) } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/AbilityInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/AbilityInstruction.kt new file mode 100644 index 0000000000..5d2b58dae7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/AbilityInstruction.kt @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.battles.interpreter.instructions + +import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage +import com.cobblemon.mod.common.api.battles.model.PokemonBattle +import com.cobblemon.mod.common.battles.ShowdownInterpreter +import com.cobblemon.mod.common.battles.dispatch.CauserInstruction +import com.cobblemon.mod.common.battles.dispatch.GO +import com.cobblemon.mod.common.battles.dispatch.InstructionSet +import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction +import com.cobblemon.mod.common.battles.dispatch.WaitDispatch +import com.cobblemon.mod.common.util.battleLang + +/** + * Format: + * |-ability|POKEMON|ABILITY|(from)EFFECT + * + * The ABILITY of the POKEMON has been changed due to a move/ability EFFECT. + * + * Format: + * |-ability|POKEMON|ABILITY + * + * POKEMON has just switched-in, and its ability ABILITY is being announced to have a long-term effect. + */ +class AbilityInstruction(val instructionSet: InstructionSet, val message: BattleMessage) : InterpreterInstruction, CauserInstruction { + override fun invoke(battle: PokemonBattle) { + val pokemon = message.getBattlePokemon(0, battle) ?: return + val pokemonName = pokemon.getName() + val effect = message.effectAt(1) ?: return + val optionalEffect = message.effect() + val optionalPokemon = message.getSourceBattlePokemon(battle) + val optionalPokemonName = optionalPokemon?.getName() + + // If there is an optional effect causing the activation, broadcast that instead of the standard effect + if (optionalEffect != null) { + ShowdownInterpreter.broadcastAbility(battle, optionalEffect, pokemonName) + } else { + ShowdownInterpreter.broadcastAbility(battle, effect, pokemonName) + } + + battle.dispatch { + ShowdownInterpreter.lastCauser[battle.battleId] = message + + val lang = when (optionalEffect?.id) { + "trace" -> optionalPokemonName?.let { battleLang("ability.trace", pokemonName, it, effect.typelessData) } + "receiver", "powerofalchemy" -> optionalPokemonName?.let { battleLang("ability.receiver", it, effect.typelessData) } // Receiver and Power of Alchemy share the same text + else -> when (effect.id) { + "sturdy", "unnerve", "anticipation" -> battleLang("ability.${effect.id}", pokemonName) // Unique message + "airlock", "cloudnine" -> battleLang("ability.airlock") // Cloud Nine shares the same text as Air Lock + else -> null // Effect broadcasted by a succeeding instruction + } + } + + battle.minorBattleActions[pokemon.uuid] = message + if (lang != null) { + battle.broadcastChatMessage(lang) + return@dispatch WaitDispatch(1F) + } + else return@dispatch GO + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/ActivateInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/ActivateInstruction.kt new file mode 100644 index 0000000000..fdfeb908aa --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/ActivateInstruction.kt @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.battles.interpreter.instructions + +import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage +import com.cobblemon.mod.common.api.battles.model.PokemonBattle +import com.cobblemon.mod.common.battles.ShowdownInterpreter +import com.cobblemon.mod.common.battles.dispatch.CauserInstruction +import com.cobblemon.mod.common.battles.dispatch.GO +import com.cobblemon.mod.common.battles.dispatch.InstructionSet +import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction +import com.cobblemon.mod.common.battles.dispatch.WaitDispatch +import com.cobblemon.mod.common.util.battleLang +import net.minecraft.text.Text + +/** + * Format: + * |-activate|POKEMON|EFFECT + * + * A miscellaneous effect has activated.This is triggered whenever an effect could not be better described by one of the other minor messages. + */ +class ActivateInstruction(val instructionSet: InstructionSet, val message: BattleMessage) : InterpreterInstruction, CauserInstruction { + override fun invoke(battle: PokemonBattle) { + val pokemon = message.getBattlePokemon(0, battle) ?: return + val pokemonName = pokemon.getName() + val sourceName = message.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKNOWN") + val effect = message.effectAt(1) ?: return + val extraEffect = message.effectAt(2)?.typelessData ?: Text.literal("UNKNOWN") + ShowdownInterpreter.broadcastOptionalAbility(battle, effect, pokemonName) + + battle.dispatch{ + ShowdownInterpreter.lastCauser[battle.battleId] = message + battle.minorBattleActions[pokemon.uuid] = message + + val lang = when (effect.id) { + // Includes a 3rd argument being the magnitude level as a number + "magnitude" -> battleLang("activate.magnitude", message.argumentAt(2)?.toIntOrNull() ?: 1) + // Includes spited move and the PP it was reduced by + "spite", "eeriespell" -> battleLang("activate.spite", pokemonName, extraEffect, message.argumentAt(3)!!) + // Don't need additional lang, announced elsewhere + "toxicdebris", "shedskin" -> return@dispatch GO + // Add activation to each Pokemon's history + "destinybond" -> { + battle.activePokemon.mapNotNull { it.battlePokemon?.uuid }.forEach { battle.minorBattleActions[it] = message } + battleLang("activate.destinybond", pokemonName) + } + "focussash", "focusband" -> battleLang("activate.focusband", pokemonName, effect.typelessData) + "maxguard", "protect" -> battleLang("activate.protect", pokemonName) + "shadowforce", "hyperspacefury", "hyperspacehole" -> battleLang("activate.phantomforce", pokemonName) + else -> battleLang("activate.${effect.id}", pokemonName, sourceName, extraEffect) + } + battle.broadcastChatMessage(lang) + WaitDispatch(1F) + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/DamageInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/DamageInstruction.kt index b3b6fc1454..447eeb118d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/DamageInstruction.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/DamageInstruction.kt @@ -15,24 +15,34 @@ import com.cobblemon.mod.common.api.pokemon.status.Statuses import com.cobblemon.mod.common.api.text.red import com.cobblemon.mod.common.battles.ShowdownInterpreter import com.cobblemon.mod.common.battles.dispatch.GO +import com.cobblemon.mod.common.battles.dispatch.InstructionSet import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction +import com.cobblemon.mod.common.battles.dispatch.UntilDispatch import com.cobblemon.mod.common.battles.dispatch.WaitDispatch +import com.cobblemon.mod.common.net.messages.client.animation.PlayPoseableAnimationPacket import com.cobblemon.mod.common.net.messages.client.battle.BattleHealthChangePacket import com.cobblemon.mod.common.pokemon.evolution.progress.DamageTakenEvolutionProgress import com.cobblemon.mod.common.pokemon.evolution.progress.RecoilEvolutionProgress import com.cobblemon.mod.common.util.battleLang import com.cobblemon.mod.common.util.lang +import java.util.concurrent.CompletableFuture import kotlin.math.roundToInt import net.minecraft.text.Text class DamageInstruction( + val instructionSet: InstructionSet, val actor: BattleActor, val publicMessage: BattleMessage, val privateMessage: BattleMessage ) : InterpreterInstruction { + var future = CompletableFuture.completedFuture(Unit) + val battlePokemon = publicMessage.getBattlePokemon(0, actor.battle) + override fun invoke(battle: PokemonBattle) { - val battlePokemon = publicMessage.getBattlePokemon(0, battle) ?: return - if (privateMessage.optionalArgument("from")?.equals("recoil", true) == true) { + battlePokemon ?: return + val recoiling = privateMessage.optionalArgument("from")?.equals("recoil", true) == true + val lastCauser = instructionSet.getMostRecentCauser(comparedTo = this) + if (recoiling) { battlePokemon.effectedPokemon.let { pokemon -> if (RecoilEvolutionProgress.supports(pokemon)) { val newPercentage = privateMessage.argumentAt(1)?.split("/")?.getOrNull(0)?.toIntOrNull() ?: 0 @@ -48,10 +58,34 @@ class DamageInstruction( val newHealth = privateMessage.argumentAt(1)?.split(" ")?.get(0) ?: return val effect = privateMessage.effect() val pokemonName = battlePokemon.getName() - val sourceName = privateMessage.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKOWN") - ShowdownInterpreter.broadcastOptionalAbility(battle, effect, sourceName) + val sourceName = privateMessage.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKNOWN") + var causedFaint = newHealth == "0" battle.dispatch { + if (lastCauser is MoveInstruction && recoiling) { + UntilDispatch { "recoil" !in lastCauser.holds } + } else { + GO + } + } + + battle.dispatch { + if (!causedFaint) { + + battlePokemon.entity?.let { pokemonEntity -> + val pkt = PlayPoseableAnimationPacket(pokemonEntity.id, setOf("recoil"), emptySet()) + pkt.sendToPlayersAround( + x = pokemonEntity.x, + y = pokemonEntity.y, + z = pokemonEntity.z, + worldKey = pokemonEntity.world.registryKey, + distance = 50.0 + ) + } + } + + + ShowdownInterpreter.broadcastOptionalAbility(battle, effect, sourceName) val newHealthRatio: Float val remainingHealth = newHealth.split("/")[0].toInt() @@ -70,8 +104,7 @@ class DamageInstruction( battle.broadcastChatMessage(lang.red()) } - var causedFaint = false - if (newHealth == "0") { + if (causedFaint) { newHealthRatio = 0F battle.dispatch { battlePokemon.effectedPokemon.currentHealth = 0 @@ -102,7 +135,9 @@ class DamageInstruction( battle.minorBattleActions[battlePokemon.uuid] = privateMessage // If they faint from this damage then don't bother waiting for the damage to be applied. - if (causedFaint) { + if (lastCauser is MoveInstruction && lastCauser.actionEffect != null && !causedFaint) { + UntilDispatch { lastCauser.future.isDone } + } else if (causedFaint) { GO } else { WaitDispatch(1F) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MissInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MissInstruction.kt new file mode 100644 index 0000000000..a787c0f22b --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MissInstruction.kt @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.battles.interpreter.instructions + +import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage +import com.cobblemon.mod.common.api.battles.model.PokemonBattle +import com.cobblemon.mod.common.api.text.red +import com.cobblemon.mod.common.battles.dispatch.InstructionSet +import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction +import com.cobblemon.mod.common.util.battleLang + +/** + * Format: + * |-miss|SOURCE|TARGET + * + * The move used by the SOURCE Pokémon missed (maybe absent) the TARGET Pokémon. + */ +class MissInstruction(val battle: PokemonBattle, val instructionSet: InstructionSet, val message: BattleMessage): InterpreterInstruction { + val target = message.getBattlePokemon(1, battle) + + override fun invoke(battle: PokemonBattle) { + battle.dispatchGo { + val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchGo + battle.broadcastChatMessage(battleLang("missed").red()) + battle.minorBattleActions[pokemon.uuid] = message + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MoveInstruction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MoveInstruction.kt index b51b4d2ab7..d01fd5b651 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MoveInstruction.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/battles/interpreter/instructions/MoveInstruction.kt @@ -8,30 +8,55 @@ package com.cobblemon.mod.common.battles.interpreter.instructions +import com.bedrockk.molang.runtime.MoLangRuntime +import com.bedrockk.molang.runtime.value.DoubleValue import com.cobblemon.mod.common.api.battles.interpreter.BattleMessage +import com.cobblemon.mod.common.api.battles.interpreter.Effect import com.cobblemon.mod.common.api.battles.model.PokemonBattle +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunction +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addStandardFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct import com.cobblemon.mod.common.api.moves.Moves +import com.cobblemon.mod.common.api.moves.animations.ActionEffectContext +import com.cobblemon.mod.common.api.moves.animations.TargetsProvider +import com.cobblemon.mod.common.api.moves.animations.UsersProvider import com.cobblemon.mod.common.battles.ShowdownInterpreter +import com.cobblemon.mod.common.battles.dispatch.CauserInstruction +import com.cobblemon.mod.common.battles.dispatch.GO import com.cobblemon.mod.common.battles.dispatch.InstructionSet import com.cobblemon.mod.common.battles.dispatch.InterpreterInstruction +import com.cobblemon.mod.common.battles.dispatch.UntilDispatch +import com.cobblemon.mod.common.battles.pokemon.BattlePokemon import com.cobblemon.mod.common.pokemon.evolution.progress.UseMoveEvolutionProgress import com.cobblemon.mod.common.util.battleLang +import java.util.concurrent.CompletableFuture class MoveInstruction( val instructionSet: InstructionSet, val message: BattleMessage -) : InterpreterInstruction { +) : InterpreterInstruction, CauserInstruction { + val effect = message.effectAt(1) ?: Effect.pure("", "") + val move = Moves.getByNameOrDummy(effect.id) + val actionEffect = move.actionEffect + + var future = CompletableFuture.completedFuture(Unit) + var holds = mutableSetOf() + + lateinit var userPokemon: BattlePokemon + var targetPokemon: BattlePokemon? = null + override fun invoke(battle: PokemonBattle) { - val userPokemon = message.getBattlePokemon(0, battle) ?: return - val targetPokemon = message.getBattlePokemon(2, battle) - val effect = message.effectAt(1) ?: return + userPokemon = message.getBattlePokemon(0, battle)!! + targetPokemon = message.getBattlePokemon(2, battle) + val targetPokemon = targetPokemon // So smart non-null casts can happen + val optionalEffect = message.effect() - val move = Moves.getByNameOrDummy(effect.id) val pokemonName = userPokemon.getName() ShowdownInterpreter.broadcastOptionalAbility(battle, optionalEffect, pokemonName) + battle.dispatch { UntilDispatch { instructionSet.getMostRecentInstruction(this)?.future?.isDone != false } } - battle.dispatchGo { + battle.dispatch { ShowdownInterpreter.lastCauser[battle.battleId] = message userPokemon.effectedPokemon.let { pokemon -> @@ -50,8 +75,50 @@ class MoveInstruction( battleLang("used_move", pokemonName, move.displayName) } battle.broadcastChatMessage(lang) - battle.majorBattleActions[userPokemon.uuid] = message + + val providers = mutableListOf(battle) + userPokemon.effectedPokemon.entity?.let { UsersProvider(it) }?.let(providers::add) + targetPokemon?.effectedPokemon?.entity?.let { TargetsProvider(it) }?.let(providers::add) + val runtime = MoLangRuntime().also { + battle.addQueryFunctions(it.environment.getQueryStruct()).addStandardFunctions() + } + + actionEffect ?: return@dispatch GO + val context = ActionEffectContext( + actionEffect = actionEffect, + runtime = runtime, + providers = providers + ) + + val subsequentInstructions = instructionSet.findInstructionsCausedBy(this) + val missedTargets = subsequentInstructions.filterIsInstance().mapNotNull { it.target } + + runtime.environment.getQueryStruct().addFunction("missed") { params -> + if (params.params.size == 0) { + return@addFunction DoubleValue(missedTargets.isNotEmpty()) + } else { + val entityUUID = params.getString(0) + return@addFunction DoubleValue(missedTargets.any { it.entity?.uuidAsString == entityUUID }) + } + } + + val hurtTargets = subsequentInstructions.filterIsInstance().mapNotNull { it.battlePokemon } + runtime.environment.getQueryStruct().addFunction("hurt") { params -> + if (params.params.size == 0) { + return@addFunction DoubleValue(hurtTargets.isNotEmpty()) + } else { + val entityUUID = params.getString(0) + return@addFunction DoubleValue(hurtTargets.any { it.entity?.uuidAsString == entityUUID }) + } + } + + runtime.environment.getQueryStruct().addFunction("move") { move.struct } + + this.future = actionEffect.run(context) + holds = context.holds // Reference so future things can check on this action effect's holds + future.thenApply { holds.clear() } + return@dispatch UntilDispatch { "effects" !in holds } } } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilCompartmentBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/FossilAnalyzerBlock.kt similarity index 79% rename from common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilCompartmentBlock.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/block/FossilAnalyzerBlock.kt index 92ce3d7231..f39aac40e1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilCompartmentBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/FossilAnalyzerBlock.kt @@ -6,12 +6,12 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -package com.cobblemon.mod.common.block.fossilmachine +package com.cobblemon.mod.common.block import com.cobblemon.mod.common.CobblemonBlockEntities import com.cobblemon.mod.common.api.multiblock.MultiblockBlock -import com.cobblemon.mod.common.block.entity.fossil.FossilCompartmentBlockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity +import com.cobblemon.mod.common.block.entity.FossilAnalyzerBlockEntity +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure import com.cobblemon.mod.common.block.multiblock.FossilMultiblockBuilder import net.minecraft.block.Block @@ -30,7 +30,7 @@ import net.minecraft.util.math.Direction import net.minecraft.world.World import net.minecraft.world.WorldAccess -class FossilCompartmentBlock(properties: Settings) : MultiblockBlock(properties), InventoryProvider { +class FossilAnalyzerBlock(properties: Settings) : MultiblockBlock(properties), InventoryProvider { init { defaultState = defaultState .with(HorizontalFacingBlock.FACING, Direction.NORTH) @@ -38,14 +38,14 @@ class FossilCompartmentBlock(properties: Settings) : MultiblockBlock(properties) } override fun createMultiBlockEntity(pos: BlockPos, state: BlockState): FossilMultiblockEntity { - return FossilCompartmentBlockEntity(pos, state, FossilMultiblockBuilder(pos)) + return FossilAnalyzerBlockEntity(pos, state, FossilMultiblockBuilder(pos)) } override fun getTicker( world: World?, state: BlockState?, type: BlockEntityType? - ): BlockEntityTicker? = checkType(type, CobblemonBlockEntities.FOSSIL_COMPARTMENT, FossilMultiblockStructure.TICKER::tick) + ): BlockEntityTicker? = checkType(type, CobblemonBlockEntities.FOSSIL_ANALYZER, FossilMultiblockStructure.TICKER::tick) override fun getPlacementState(blockPlaceContext: ItemPlacementContext): BlockState? { return defaultState.with(HorizontalFacingBlock.FACING, blockPlaceContext.horizontalPlayerFacing) @@ -56,9 +56,9 @@ class FossilCompartmentBlock(properties: Settings) : MultiblockBlock(properties) world: WorldAccess, pos: BlockPos ): SidedInventory { - val compartmentEntity = world.getBlockEntity(pos) as FossilCompartmentBlockEntity + val analyzerEntity = world.getBlockEntity(pos) as FossilAnalyzerBlockEntity - return compartmentEntity.inv + return analyzerEntity.inv } override fun appendProperties(builder: StateManager.Builder) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/GrowableStoneBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/GrowableStoneBlock.kt new file mode 100644 index 0000000000..08fc1ae6d7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/GrowableStoneBlock.kt @@ -0,0 +1,156 @@ +/* + * 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.block + +import net.minecraft.block.* +import net.minecraft.item.ItemPlacementContext +import net.minecraft.server.world.ServerWorld +import net.minecraft.state.StateManager +import net.minecraft.util.math.BlockPos +import net.minecraft.util.math.Direction +import net.minecraft.util.math.random.Random +import net.minecraft.util.shape.VoxelShape +import net.minecraft.world.BlockView +import net.minecraft.world.WorldAccess +import net.minecraft.world.WorldView + +/** + * Used for blocks that grow similarly to Amethyst. + * + * @param settings Block settings + * @param stage The stage of growth of the block + * @param height The height of this block's hitbox + * @param nextStage The next stage of this block's growth. Null if final stage + * + * @author whatsy + */ +abstract class GrowableStoneBlock( + settings: Settings, + val stage: Int, + val height: Int, + xzOffset: Int, + val nextStage: Block? +) : FacingBlock(settings) { + + private val upShape: VoxelShape = Block.createCuboidShape( + xzOffset.toDouble(), + 0.0, + xzOffset.toDouble(), + (16 - xzOffset).toDouble(), + height.toDouble(), + (16 - xzOffset).toDouble()) + + private val downShape: VoxelShape = createCuboidShape( + xzOffset.toDouble(), + (16 - height).toDouble(), + xzOffset.toDouble(), + (16 - xzOffset).toDouble(), + 16.0, + (16 - xzOffset).toDouble()) + + private val northShape: VoxelShape = createCuboidShape( + xzOffset.toDouble(), + xzOffset.toDouble(), + (16 - height).toDouble(), + (16 - xzOffset).toDouble(), + (16 - xzOffset).toDouble(), + 16.0) + + private val southShape: VoxelShape = createCuboidShape( + xzOffset.toDouble(), + xzOffset.toDouble(), + 0.0, + (16 - xzOffset).toDouble(), + (16 - xzOffset).toDouble(), + height.toDouble()) + + private val eastShape: VoxelShape = createCuboidShape( + 0.0, + xzOffset.toDouble(), + xzOffset.toDouble(), + height.toDouble(), + (16 - xzOffset).toDouble(), + (16 - xzOffset).toDouble()) + + private val westShape: VoxelShape = createCuboidShape( + (16 - height).toDouble(), + xzOffset.toDouble(), + xzOffset.toDouble(), + 16.0, + (16 - xzOffset).toDouble(), + (16 - xzOffset).toDouble()) + + init { + this.defaultState = this.stateManager.defaultState + .with(FACING, Direction.DOWN) + } + + abstract fun canGrow(pos: BlockPos, world: BlockView): Boolean + + override fun appendProperties(builder: StateManager.Builder) { + builder.add(FACING) + } + + override fun hasRandomTicks(state: BlockState?) = stage < MAX_STAGE + override fun randomTick(state: BlockState, world: ServerWorld, pos: BlockPos, random: Random) { + if (world.random.nextInt(5) == 0 && canGrow(pos, world)) { + val block = nextStage + + if (block != null) { + val newState = block.defaultState.with(FACING, state.get(FACING)) as BlockState + world.setBlockState(pos, newState) + } + } + } + + override fun getPlacementState(ctx: ItemPlacementContext): BlockState? { + var blockState = defaultState + val worldView = ctx.world + val blockPos = ctx.blockPos + blockState = blockState.with(FACING, ctx.side) as BlockState + if (blockState.canPlaceAt(worldView, blockPos)) { + return blockState + } + return null + } + + override fun canPlaceAt(state: BlockState, world: WorldView, pos: BlockPos): Boolean { + val direction = state.get(FACING) as Direction + val blockState = world.getBlockState(pos.offset(direction.opposite)) + return blockState.isSideSolidFullSquare(world, pos, direction) + } + + override fun getStateForNeighborUpdate(state: BlockState, direction: Direction, neighborState: BlockState, world: WorldAccess, pos: BlockPos, neighborPos: BlockPos): BlockState? { + return if (direction == state.get(FACING).opposite && !state.canPlaceAt(world, pos)) Blocks.AIR.defaultState + else super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos) + } + + override fun getOutlineShape(state: BlockState, world: BlockView, pos: BlockPos, context: ShapeContext): VoxelShape { + val direction = state.get(FACING) as Direction + return when (direction) { + Direction.NORTH -> northShape + Direction.SOUTH -> southShape + Direction.EAST -> eastShape + Direction.WEST -> westShape + Direction.DOWN -> downShape + Direction.UP -> upShape + else -> upShape + } + } + + companion object { + const val STAGE_0 = 0 + const val STAGE_1 = 1 + const val STAGE_2 = 2 + const val STAGE_3 = 3 + + const val MAX_STAGE = STAGE_3 + const val MIN_STAGE = STAGE_0 + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilMonitorBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/MonitorBlock.kt similarity index 74% rename from common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilMonitorBlock.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/block/MonitorBlock.kt index 1a3cc63918..320c32d263 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilMonitorBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/MonitorBlock.kt @@ -6,19 +6,21 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -package com.cobblemon.mod.common.block.fossilmachine +package com.cobblemon.mod.common.block -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity import com.cobblemon.mod.common.api.multiblock.MultiblockBlock import com.cobblemon.mod.common.api.multiblock.MultiblockEntity +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity import com.cobblemon.mod.common.block.multiblock.FossilMultiblockBuilder import net.minecraft.block.Block import net.minecraft.block.BlockState import net.minecraft.block.HorizontalFacingBlock import net.minecraft.block.ShapeContext +import net.minecraft.entity.ai.pathing.NavigationType import net.minecraft.item.ItemPlacementContext import net.minecraft.state.StateManager -import net.minecraft.state.property.IntProperty +import net.minecraft.state.property.EnumProperty +import net.minecraft.util.StringIdentifiable import net.minecraft.util.math.BlockPos import net.minecraft.util.math.Direction import net.minecraft.util.shape.VoxelShape @@ -26,7 +28,7 @@ import net.minecraft.util.shape.VoxelShapes import net.minecraft.world.BlockView import net.minecraft.world.World -class FossilMonitorBlock(properties: Settings) : MultiblockBlock(properties) { +class MonitorBlock(properties: Settings) : MultiblockBlock(properties) { init { defaultState = defaultState.with(HorizontalFacingBlock.FACING, Direction.NORTH) } @@ -46,7 +48,7 @@ class FossilMonitorBlock(properties: Settings) : MultiblockBlock(properties) { override fun appendProperties(builder: StateManager.Builder) { builder.add(HorizontalFacingBlock.FACING) - builder.add(PROGRESS) + builder.add(SCREEN) } @Deprecated("Deprecated in Java") @@ -76,10 +78,14 @@ class FossilMonitorBlock(properties: Settings) : MultiblockBlock(properties) { ): VoxelShape { return HITBOX } + @Deprecated("Deprecated in Java") + override fun canPathfindThrough(state: BlockState?, world: BlockView?, pos: BlockPos?, type: NavigationType?): Boolean { + return false + } companion object { //0 is off - val PROGRESS = IntProperty.of("progress", 0, 9) + val SCREEN = EnumProperty.of("screen", MonitorScreen::class.java) val HITBOX = VoxelShapes.union( VoxelShapes.cuboid(0.0625, 0.0, 0.0625, 0.9375, 0.375, 0.9375), VoxelShapes.cuboid(0.0625, 0.875, 0.0625, 0.9375, 1.0, 0.9375), @@ -88,4 +94,19 @@ class FossilMonitorBlock(properties: Settings) : MultiblockBlock(properties) { VoxelShapes.cuboid(0.0625, 0.375, 0.0625, 0.1875, 0.875, 0.9375) ) } -} + enum class MonitorScreen : StringIdentifiable { + OFF, + BLUE_PROGRESS_1, + BLUE_PROGRESS_2, + BLUE_PROGRESS_3, + BLUE_PROGRESS_4, + BLUE_PROGRESS_5, + BLUE_PROGRESS_6, + BLUE_PROGRESS_7, + BLUE_PROGRESS_8, + BLUE_PROGRESS_9, + GREEN_PROGRESS_9; + + override fun asString(): String = this.name.lowercase() + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilTubeBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/RestorationTankBlock.kt similarity index 77% rename from common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilTubeBlock.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/block/RestorationTankBlock.kt index e1978d97c4..810d53bd33 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/fossilmachine/FossilTubeBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/RestorationTankBlock.kt @@ -6,13 +6,13 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -package com.cobblemon.mod.common.block.fossilmachine +package com.cobblemon.mod.common.block import com.cobblemon.mod.common.CobblemonBlocks import com.cobblemon.mod.common.api.multiblock.MultiblockBlock import com.cobblemon.mod.common.api.multiblock.MultiblockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity -import com.cobblemon.mod.common.block.entity.fossil.FossilTubeBlockEntity +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity +import com.cobblemon.mod.common.block.entity.RestorationTankBlockEntity import com.cobblemon.mod.common.block.multiblock.FossilMultiblockBuilder import net.minecraft.block.* import net.minecraft.entity.LivingEntity @@ -22,6 +22,7 @@ import net.minecraft.item.ItemPlacementContext import net.minecraft.item.ItemStack import net.minecraft.server.world.ServerWorld import net.minecraft.state.StateManager +import net.minecraft.state.property.BooleanProperty import net.minecraft.state.property.EnumProperty import net.minecraft.state.property.Properties import net.minecraft.util.ActionResult @@ -39,17 +40,19 @@ import net.minecraft.world.WorldAccess import net.minecraft.world.WorldView -class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), InventoryProvider { +class RestorationTankBlock(properties: Settings) : MultiblockBlock(properties), InventoryProvider { + init { defaultState = defaultState .with(HorizontalFacingBlock.FACING, Direction.NORTH) - .with(PART, TubePart.BOTTOM) + .with(PART, TankPart.BOTTOM) .with(TRIGGERED, false) + .with(ON, false) } fun getPositionOfOtherPart(state: BlockState, pos: BlockPos): BlockPos { - return if (state.get(PART) == TubePart.BOTTOM) { + return if (state.get(PART) == TankPart.BOTTOM) { pos.up() } else { pos.down() @@ -64,12 +67,12 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven } } - private fun isBase(state: BlockState): Boolean = state.get(PART) == TubePart.BOTTOM + private fun isBase(state: BlockState): Boolean = state.get(PART) == TankPart.BOTTOM override fun onBreak(world: World, pos: BlockPos, state: BlockState, player: PlayerEntity?) { super.onBreak(world, pos, state, player) val otherPart = world.getBlockState(getPositionOfOtherPart(state, pos)) - if (otherPart.block is FossilTubeBlock) { + if (otherPart.block is RestorationTankBlock) { world.setBlockState(getPositionOfOtherPart(state, pos), Blocks.AIR.defaultState, 35) world.syncWorldEvent(player, 2001, getPositionOfOtherPart(state, pos), getRawIdFromState(otherPart)) } @@ -83,7 +86,7 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven itemStack: ItemStack? ) { //Place the full block before we call to super to validate the multiblock - world.setBlockState(pos.up(), state.with(PART, TubePart.TOP) as BlockState, 3) + world.setBlockState(pos.up(), state.with(PART, TankPart.TOP) as BlockState, 3) world.updateNeighbors(pos, Blocks.AIR) state.updateNeighbors(world, pos, 3) super.onPlaced(world, pos, state, placer, itemStack) @@ -91,20 +94,20 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven @Deprecated("Deprecated in Java") override fun onUse(state: BlockState, world: World, pos: BlockPos, player: PlayerEntity, hand: Hand, hit: BlockHitResult): ActionResult { - if(state.get(PART) == TubePart.TOP) { - // TubeTop isn't reliably up to date on clients, need to look at the bottom half - val tubeBottomPos = pos.down() - val tubeBottomState = world.getBlockState(tubeBottomPos) - if(tubeBottomState.block.equals(CobblemonBlocks.FOSSIL_TUBE.asBlock()) && tubeBottomState.get(PART) == TubePart.BOTTOM) { - return super.onUse(tubeBottomState, world, tubeBottomPos, player, hand, hit) + if(state.get(PART) == TankPart.TOP) { + // TankTop isn't reliably up to date on clients, need to look at the bottom half + val tankBottomPos = pos.down() + val tankBottomState = world.getBlockState(tankBottomPos) + if(tankBottomState.block.equals(CobblemonBlocks.RESTORATION_TANK.asBlock()) && tankBottomState.get(PART) == TankPart.BOTTOM) { + return super.onUse(tankBottomState, world, tankBottomPos, player, hand, hit) } } return super.onUse(state, world, pos, player, hand, hit) } override fun createMultiBlockEntity(pos: BlockPos, state: BlockState): FossilMultiblockEntity { - return if (state.get(PART) == TubePart.BOTTOM) { - FossilTubeBlockEntity(pos, state, FossilMultiblockBuilder(pos)) + return if (state.get(PART) == TankPart.BOTTOM) { + RestorationTankBlockEntity(pos, state, FossilMultiblockBuilder(pos)) } else { FossilMultiblockEntity(pos, state, FossilMultiblockBuilder(pos)) } @@ -116,7 +119,7 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven if (world.getBlockState(abovePosition).canReplace(blockPlaceContext) && !world.isOutOfHeightLimit(abovePosition)) { return defaultState .with(HorizontalFacingBlock.FACING, blockPlaceContext.horizontalPlayerFacing) - .with(PART, TubePart.BOTTOM) + .with(PART, TankPart.BOTTOM) } return null @@ -125,13 +128,13 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven override fun canPlaceAt(state: BlockState, world: WorldView, pos: BlockPos): Boolean { val blockPos = pos.down() val blockState = world.getBlockState(blockPos) - return if (state.get(PART) == TubePart.BOTTOM) blockState.isSideSolidFullSquare(world, blockPos, Direction.UP) else blockState.isOf(this) + return if (state.get(PART) == TankPart.BOTTOM) true else blockState.isOf(this) } override fun appendProperties(builder: StateManager.Builder) { builder.add(HorizontalFacingBlock.FACING) builder.add(PART) builder.add(TRIGGERED) - + builder.add(ON) } @Deprecated("Deprecated in Java") @@ -145,8 +148,8 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven if(world == null || pos == null) { return 0 } - val tubeEntity = world.getBlockEntity(pos) as MultiblockEntity - val multiBlockEntity = tubeEntity.multiblockStructure + val tankEntity = world.getBlockEntity(pos) as MultiblockEntity + val multiBlockEntity = tankEntity.multiblockStructure if(multiBlockEntity != null) { return multiBlockEntity.getComparatorOutput(state, world, pos) } @@ -175,10 +178,8 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven if(world == null || pos == null) { return } - val tubeEntity = world.getBlockEntity(pos) as MultiblockEntity - if (tubeEntity.multiblockStructure != null) { - tubeEntity.multiblockStructure!!.onTriggerEvent(state, world, pos, random) - } + val tankEntity = world.getBlockEntity(pos) as? MultiblockEntity + tankEntity?.multiblockStructure!!.onTriggerEvent(state, world, pos, random) } override fun getOutlineShape( @@ -187,7 +188,7 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven pos: BlockPos?, context: ShapeContext? ): VoxelShape { - return if (state.get(PART) == TubePart.TOP) { + return if (state.get(PART) == TankPart.TOP) { var shape = VoxelShapes.cuboid(0.0625, 0.0, 0.0625, 0.9375, 0.8125, 0.9375) shape = VoxelShapes.union(shape, VoxelShapes.cuboid(0.0, 0.8125, 0.0, 1.0, 1.0, 1.0)) shape @@ -202,21 +203,22 @@ class FossilTubeBlock(properties: Settings) : MultiblockBlock(properties), Inven world: WorldAccess, pos: BlockPos ): SidedInventory { - val tubeEntity = - (if (state.get(PART) == TubePart.TOP) world.getBlockEntity(pos.down()) - else world.getBlockEntity(pos)) as FossilTubeBlockEntity + val tankEntity = + (if (state.get(PART) == TankPart.TOP) world.getBlockEntity(pos.down()) + else world.getBlockEntity(pos)) as RestorationTankBlockEntity - return tubeEntity.inv + return tankEntity.inv } - enum class TubePart(private val label: String) : StringIdentifiable { + enum class TankPart(private val label: String) : StringIdentifiable { TOP("top"), BOTTOM("bottom"); override fun asString() = label } companion object { - val PART = EnumProperty.of("part", TubePart::class.java) + val PART = EnumProperty.of("part", TankPart::class.java) val TRIGGERED = Properties.TRIGGERED + val ON = BooleanProperty.of("on") } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/TumblestoneBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/TumblestoneBlock.kt index f6795c0485..b484e35fc9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/TumblestoneBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/TumblestoneBlock.kt @@ -8,6 +8,7 @@ package com.cobblemon.mod.common.block +import com.cobblemon.mod.common.api.tags.CobblemonBlockTags import net.minecraft.block.* import net.minecraft.item.ItemPlacementContext import net.minecraft.server.world.ServerWorld @@ -20,125 +21,15 @@ import net.minecraft.world.BlockView import net.minecraft.world.WorldAccess import net.minecraft.world.WorldView - @Suppress("DEPRECATION", "OVERRIDE_DEPRECATION") class TumblestoneBlock( settings: Settings, - val stage: Int, - val height: Int, + stage: Int, + height: Int, xzOffset: Int, - val nextStage: Block? -) : FacingBlock(settings) { - - private val upShape: VoxelShape = Block.createCuboidShape( - xzOffset.toDouble(), - 0.0, - xzOffset.toDouble(), - (16 - xzOffset).toDouble(), - height.toDouble(), - (16 - xzOffset).toDouble()) - - private val downShape: VoxelShape = createCuboidShape( - xzOffset.toDouble(), - (16 - height).toDouble(), - xzOffset.toDouble(), - (16 - xzOffset).toDouble(), - 16.0, - (16 - xzOffset).toDouble()) - - private val northShape: VoxelShape = createCuboidShape( - xzOffset.toDouble(), - xzOffset.toDouble(), - (16 - height).toDouble(), - (16 - xzOffset).toDouble(), - (16 - xzOffset).toDouble(), - 16.0) - - private val southShape: VoxelShape = createCuboidShape( - xzOffset.toDouble(), - xzOffset.toDouble(), - 0.0, - (16 - xzOffset).toDouble(), - (16 - xzOffset).toDouble(), - height.toDouble()) - - private val eastShape: VoxelShape = createCuboidShape( - 0.0, - xzOffset.toDouble(), - xzOffset.toDouble(), - height.toDouble(), - (16 - xzOffset).toDouble(), - (16 - xzOffset).toDouble()) - - private val westShape: VoxelShape = createCuboidShape( - (16 - height).toDouble(), - xzOffset.toDouble(), - xzOffset.toDouble(), - 16.0, - (16 - xzOffset).toDouble(), - (16 - xzOffset).toDouble()) - - init { - this.defaultState = this.stateManager.defaultState - .with(FACING, Direction.DOWN) - } - - override fun appendProperties(builder: StateManager.Builder) { - builder.add(FACING) - } - - override fun hasRandomTicks(state: BlockState?) = stage < MAX_STAGE - override fun randomTick(state: BlockState, world: ServerWorld, pos: BlockPos, random: Random) { - if (world.random.nextInt(5) == 0 && canGrow(pos, world)) { - val block = nextStage - - if (block != null) { - val newState = block.defaultState.with(FACING, state.get(FACING)) as BlockState - world.setBlockState(pos, newState) - } - } - } - - override fun getPlacementState(ctx: ItemPlacementContext): BlockState? { - var blockState = defaultState - val worldView = ctx.world - val blockPos = ctx.blockPos - blockState = blockState.with(FACING, ctx.side) as BlockState - if (blockState.canPlaceAt(worldView, blockPos)) { - return blockState - } - return null - } - - override fun canPlaceAt(state: BlockState, world: WorldView, pos: BlockPos): Boolean { - val direction = state.get(FACING) as Direction - val blockState = world.getBlockState(pos.offset(direction.opposite)) - return blockState.isSideSolidFullSquare(world, pos, direction) - } - - override fun getStateForNeighborUpdate(state: BlockState, direction: Direction, neighborState: BlockState, world: WorldAccess, pos: BlockPos, neighborPos: BlockPos): BlockState? { - return if (direction == state.get(FACING).opposite && !state.canPlaceAt(world, pos)) Blocks.AIR.defaultState - else super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos) - } - - override fun getOutlineShape(state: BlockState, world: BlockView, pos: BlockPos, context: ShapeContext): VoxelShape { - val direction = state.get(FACING) as Direction - return when (direction) { - Direction.NORTH -> northShape - Direction.SOUTH -> southShape - Direction.EAST -> eastShape - Direction.WEST -> westShape - Direction.DOWN -> downShape - Direction.UP -> upShape - else -> upShape - } - } - - private fun isValidGrowthBlock(block: Block): Boolean { - return block == Blocks.MAGMA_BLOCK || block == Blocks.LAVA - } - - private fun canGrow(pos: BlockPos, world: BlockView): Boolean { + nextStage: Block? +) : GrowableStoneBlock(settings, stage, height, xzOffset, nextStage) { + override fun canGrow(pos: BlockPos, world: BlockView): Boolean { if (stage == MAX_STAGE) return false val iterator: Iterator = BlockPos.iterate(pos.add(-1, -1, -1), pos.add(1, 1, 1)) @@ -147,18 +38,9 @@ class TumblestoneBlock( var blockPos: BlockPos do { if (!iterator.hasNext()) { return false } blockPos = iterator.next() - } while (!isValidGrowthBlock(world.getBlockState(blockPos).block)) + } while (!world.getBlockState(blockPos).isIn(CobblemonBlockTags.TUMBLESTONE_HEAT_SOURCE)) return true } - companion object { - const val STAGE_0 = 0 - const val STAGE_1 = 1 - const val STAGE_2 = 2 - const val STAGE_3 = 3 - - const val MAX_STAGE = STAGE_3 - const val MIN_STAGE = STAGE_0 - } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilCompartmentBlockEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilAnalyzerBlockEntity.kt similarity index 77% rename from common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilCompartmentBlockEntity.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilAnalyzerBlockEntity.kt index 30b343415c..dc4dfa50f4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilCompartmentBlockEntity.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilAnalyzerBlockEntity.kt @@ -6,7 +6,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -package com.cobblemon.mod.common.block.entity.fossil +package com.cobblemon.mod.common.block.entity import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.CobblemonBlockEntities @@ -20,14 +20,14 @@ import net.minecraft.item.ItemStack import net.minecraft.util.math.BlockPos import net.minecraft.util.math.Direction -class FossilCompartmentBlockEntity( +class FossilAnalyzerBlockEntity( pos: BlockPos, state: BlockState, multiblockBuilder: MultiblockStructureBuilder -): FossilMultiblockEntity(pos, state, multiblockBuilder, CobblemonBlockEntities.FOSSIL_COMPARTMENT) { +): FossilMultiblockEntity(pos, state, multiblockBuilder, CobblemonBlockEntities.FOSSIL_ANALYZER) { - val inv = FossilCompartmentInventory(this) + val inv = FossilAnalyzerInventory(this) - class FossilCompartmentInventory(val compartmentEntity: FossilCompartmentBlockEntity) : SidedInventory { + class FossilAnalyzerInventory(val analyzerEntity: FossilAnalyzerBlockEntity) : SidedInventory { override fun clear() { TODO("Not yet implemented") } @@ -53,17 +53,17 @@ class FossilCompartmentBlockEntity( } override fun setStack(slot: Int, stack: ItemStack) { - if (compartmentEntity.multiblockStructure != null) { - val struct = compartmentEntity.multiblockStructure as FossilMultiblockStructure - compartmentEntity.world?.let { + if (analyzerEntity.multiblockStructure != null) { + val struct = analyzerEntity.multiblockStructure as FossilMultiblockStructure + analyzerEntity.world?.let { struct.insertFossil(stack, it) } } } override fun markDirty() { - if (compartmentEntity.world != null) { - compartmentEntity.multiblockStructure?.markDirty(compartmentEntity.world!!) + if (analyzerEntity.world != null) { + analyzerEntity.multiblockStructure?.markDirty(analyzerEntity.world!!) } } @@ -76,8 +76,8 @@ class FossilCompartmentBlockEntity( } override fun canInsert(slot: Int, stack: ItemStack?, dir: Direction?): Boolean { - if (compartmentEntity.multiblockStructure is FossilMultiblockStructure) { - val structure = compartmentEntity.multiblockStructure as FossilMultiblockStructure + if (analyzerEntity.multiblockStructure is FossilMultiblockStructure) { + val structure = analyzerEntity.multiblockStructure as FossilMultiblockStructure return stack?.let { Fossils.isFossilIngredient(it) } == true && structure.fossilInventory.size < Cobblemon.config.maxInsertedFossilItems && structure.isRunning() == false && structure.resultingFossil == null diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilMultiblockEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilMultiblockEntity.kt similarity index 67% rename from common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilMultiblockEntity.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilMultiblockEntity.kt index 90e48c616b..d733beabcc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilMultiblockEntity.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/FossilMultiblockEntity.kt @@ -6,7 +6,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -package com.cobblemon.mod.common.block.entity.fossil +package com.cobblemon.mod.common.block.entity import com.cobblemon.mod.common.CobblemonBlockEntities import com.cobblemon.mod.common.api.multiblock.MultiblockEntity @@ -47,9 +47,25 @@ open class FossilMultiblockEntity( } } + override fun markRemoved() { + super.markRemoved() + if(this.multiblockStructure != null && world != null) { + this.multiblockStructure!!.markRemoved(world!!) + } + } + override fun readNbt(nbt: NbtCompound) { + val oldMultiblockStructure = this.multiblockStructure as? FossilMultiblockStructure multiblockStructure = if (nbt.contains(DataKeys.MULTIBLOCK_STORAGE)) { - FossilMultiblockStructure.fromNbt(nbt.getCompound(DataKeys.MULTIBLOCK_STORAGE)) + if(oldMultiblockStructure?.fossilState != null) { + // Copy the fossilState's previous animation time to the new instance + // Otherwise the fetus animation gets interrupted on every block update + val animAge = oldMultiblockStructure.fossilState.peekAge() // If someone knows a better way to fetch the age, please do. + val partialTicks = oldMultiblockStructure.fossilState.getPartialTicks() + FossilMultiblockStructure.fromNbt(nbt.getCompound(DataKeys.MULTIBLOCK_STORAGE), animAge, partialTicks ) + } else { + FossilMultiblockStructure.fromNbt(nbt.getCompound(DataKeys.MULTIBLOCK_STORAGE)) + } } else { null } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/RestorationTankBlockEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/RestorationTankBlockEntity.kt new file mode 100644 index 0000000000..ad11f7dc43 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/RestorationTankBlockEntity.kt @@ -0,0 +1,152 @@ +/* + * 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.block.entity + +import com.cobblemon.mod.common.CobblemonBlockEntities +import com.cobblemon.mod.common.api.fossil.NaturalMaterials +import com.cobblemon.mod.common.api.multiblock.builder.MultiblockStructureBuilder +import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure +import net.minecraft.block.BlockState +import net.minecraft.entity.player.PlayerEntity +import net.minecraft.inventory.Inventories +import net.minecraft.inventory.SidedInventory +import net.minecraft.item.Item +import net.minecraft.item.ItemStack +import net.minecraft.nbt.NbtCompound +import net.minecraft.registry.Registries +import net.minecraft.util.collection.DefaultedList +import net.minecraft.util.math.BlockPos +import net.minecraft.util.math.Direction + +class RestorationTankBlockEntity( + pos: BlockPos, state: BlockState, + multiblockBuilder: MultiblockStructureBuilder +) : FossilMultiblockEntity(pos, state, multiblockBuilder, CobblemonBlockEntities.RESTORATION_TANK) { + val inv = RestorationTankInventory(this) + + override fun writeNbt(nbt: NbtCompound) { + super.writeNbt(nbt) + Inventories.writeNbt(nbt, inv.items) + } + + override fun readNbt(nbt: NbtCompound) { + super.readNbt(nbt) + Inventories.readNbt(nbt, inv.items) + } + + class RestorationTankInventory(val tankEntity: RestorationTankBlockEntity) : SidedInventory { + + val items: DefaultedList = DefaultedList.ofSize(8, ItemStack.EMPTY) + + + override fun clear() { + for (i in items.indices) { + items[i] = ItemStack.EMPTY + } + } + + override fun size(): Int { + return 8 + } + + override fun isEmpty(): Boolean { + return items.all { it == ItemStack.EMPTY } + } + + override fun getStack(slot: Int): ItemStack { + if(slot == -1 || slot >= size()) { + return ItemStack.EMPTY + } + return items[slot] + } + + override fun removeStack(slot: Int, amount: Int): ItemStack { + if(slot < 0 || slot >= size()) { + return ItemStack.EMPTY + } + val result = items[slot].split(amount) + if(items[slot].count == 0) { + items[slot] = ItemStack.EMPTY + } + return result + } + + override fun removeStack(slot: Int): ItemStack { + return removeStack(slot, 1) + } + + override fun setStack(slot: Int, stack: ItemStack) { + val struct = tankEntity.multiblockStructure as? FossilMultiblockStructure + tankEntity.world?.let { + struct?.insertOrganicMaterial(stack, it) + val returnIdentifier = NaturalMaterials.getReturnItem((stack)) + if(returnIdentifier != null ) { + // Store the return item + val returnItem = Registries.ITEM.get(returnIdentifier) + storeReturnItem(returnItem, stack.count) + } + } + } + + private fun storeReturnItem(returnItem: Item, count: Int) { + val destStack = items.withIndex().firstOrNull { + it.value == ItemStack.EMPTY || (it.value.count < it.value.maxCount && it.value.item == returnItem) + } + if (destStack != null) { + if(destStack.value == ItemStack.EMPTY) { + items[destStack.index] = ItemStack(returnItem, 1) + } else { + destStack.value.increment(count) + } + } + } + + override fun markDirty() { + tankEntity.world?.let { + tankEntity.multiblockStructure?.markDirty(it) + } + } + + override fun canPlayerUse(player: PlayerEntity?): Boolean { + return false + } + + override fun getAvailableSlots(side: Direction?): IntArray { + return if(side == Direction.DOWN) intArrayOf(0,1,2,3,4,5,6,7) else intArrayOf(-1) + } + + override fun canInsert(slot: Int, stack: ItemStack?, dir: Direction?): Boolean { + if (tankEntity.multiblockStructure is FossilMultiblockStructure) { + if(dir != Direction.DOWN) { + val structure = tankEntity.multiblockStructure as FossilMultiblockStructure + val canUtilize = stack?.let { NaturalMaterials.isNaturalMaterial(it) } == true + && structure.organicMaterialInside < FossilMultiblockStructure.MATERIAL_TO_START + && structure.createdPokemon == null + val returnItem = NaturalMaterials.getReturnItem(stack!!) ?: return false + if(canUtilize) { + // See if there's room + for (i in items.indices ) { + if(items[i] == ItemStack.EMPTY || (items[i].count < items[i].maxCount + && items[i].item == Registries.ITEM.get(returnItem))) { + return true + } + } + return false + } + } + } + return false + } + + override fun canExtract(slot: Int, stack: ItemStack?, dir: Direction?): Boolean { + return dir == Direction.DOWN && slot >= 0 && slot < size() + } + + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilTubeBlockEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilTubeBlockEntity.kt deleted file mode 100644 index a609195713..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/entity/fossil/FossilTubeBlockEntity.kt +++ /dev/null @@ -1,97 +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.block.entity.fossil - -import com.cobblemon.mod.common.CobblemonBlockEntities -import com.cobblemon.mod.common.api.fossil.NaturalMaterials -import com.cobblemon.mod.common.api.multiblock.builder.MultiblockStructureBuilder -import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure -import com.cobblemon.mod.common.client.render.models.blockbench.fossil.FossilState -import com.cobblemon.mod.common.util.DataKeys -import net.minecraft.block.BlockState -import net.minecraft.entity.player.PlayerEntity -import net.minecraft.inventory.SidedInventory -import net.minecraft.item.ItemStack -import net.minecraft.nbt.NbtCompound -import net.minecraft.network.listener.ClientPlayPacketListener -import net.minecraft.network.packet.Packet -import net.minecraft.network.packet.s2c.play.BlockEntityUpdateS2CPacket -import net.minecraft.util.math.BlockPos -import net.minecraft.util.math.Direction - -class FossilTubeBlockEntity( - pos: BlockPos, state: BlockState, - multiblockBuilder: MultiblockStructureBuilder -) : FossilMultiblockEntity(pos, state, multiblockBuilder, CobblemonBlockEntities.FOSSIL_TUBE) { - val inv = FossilTubeInventory(this) - - class FossilTubeInventory(val tubeEntity: FossilTubeBlockEntity) : SidedInventory { - override fun clear() { - TODO("Not yet implemented") - } - - override fun size(): Int { - TODO("Not yet implemented") - } - - override fun isEmpty(): Boolean { - return false - } - - override fun getStack(slot: Int): ItemStack { - return ItemStack.EMPTY - } - - override fun removeStack(slot: Int, amount: Int): ItemStack { - return ItemStack.EMPTY - } - - override fun removeStack(slot: Int): ItemStack { - return ItemStack.EMPTY - } - - override fun setStack(slot: Int, stack: ItemStack) { - if (tubeEntity.multiblockStructure != null) { - val struct = tubeEntity.multiblockStructure as FossilMultiblockStructure - tubeEntity.world?.let { - struct.insertOrganicMaterial(stack, it) - } - } - } - - override fun markDirty() { - if (tubeEntity.world != null) { - tubeEntity.multiblockStructure?.markDirty(tubeEntity.world!!) - } - } - - override fun canPlayerUse(player: PlayerEntity?): Boolean { - return false - } - - override fun getAvailableSlots(side: Direction?): IntArray { - return IntArray(1) - } - - override fun canInsert(slot: Int, stack: ItemStack?, dir: Direction?): Boolean { - if (tubeEntity.multiblockStructure is FossilMultiblockStructure) { - val structure = tubeEntity.multiblockStructure as FossilMultiblockStructure - return stack?.let { NaturalMaterials.isNaturalMaterial(it) } == true - && structure.organicMaterialInside < FossilMultiblockStructure.MATERIAL_TO_START - && structure.createdPokemon == null - } - return false - } - - override fun canExtract(slot: Int, stack: ItemStack?, dir: Direction?): Boolean { - return false - } - - } -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockBuilder.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockBuilder.kt index 580a2e18ec..9d5dcdf82c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockBuilder.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockBuilder.kt @@ -13,11 +13,8 @@ import com.cobblemon.mod.common.CobblemonBlocks import com.cobblemon.mod.common.CobblemonSounds import com.cobblemon.mod.common.api.multiblock.MultiblockEntity import com.cobblemon.mod.common.api.multiblock.builder.MultiblockStructureBuilder -import com.cobblemon.mod.common.block.entity.fossil.FossilTubeBlockEntity -import com.cobblemon.mod.common.block.fossilmachine.FossilCompartmentBlock -import com.cobblemon.mod.common.block.fossilmachine.FossilTubeBlock +import com.cobblemon.mod.common.block.RestorationTankBlock import com.cobblemon.mod.common.api.multiblock.condition.BlockRelativeCondition -import com.cobblemon.mod.common.block.entity.fossil.FossilCompartmentBlockEntity import com.cobblemon.mod.common.util.DataKeys import com.cobblemon.mod.common.util.blockPositionsAsList import net.minecraft.nbt.NbtCompound @@ -53,13 +50,13 @@ class FossilMultiblockBuilder(val centerPos: BlockPos) : MultiblockStructureBuil override val conditions = listOf( BlockRelativeCondition( - FOSSIL_COMPARTMENT_PRED, - FOSSIL_MONITOR_PRED, + FOSSIL_ANALYZER_PRED, + MONITOR_PRED, arrayOf(Direction.UP) ), BlockRelativeCondition( - FOSSIL_COMPARTMENT_PRED, - FOSSIL_TUBE_PRED, + FOSSIL_ANALYZER_PRED, + RESTORATION_TANK_PRED, arrayOf(Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST) ) ) @@ -72,68 +69,68 @@ class FossilMultiblockBuilder(val centerPos: BlockPos) : MultiblockStructureBuil The process of identifying the constituent blocks is a bit of a clusterfuck so here's an explanation 1. We find all of the monitors in the boundingBox - 2. We map those positions to a new list representing valid compartment positions - (This is where it starts getting complicated) We want valid compartment positions, but we - need to remember the index in the monitor position list that each compartment is valid for. - So basically we take the monitor positions, check if they have a compartment underneath. - If they do, set the element in the NEW list to be the position of the compartment. - If they dont, set the element in the new list to be null - 3. Do a similar process for tubes. - (Make a copy of the compartment positions, set them to the tube position if theres a tube, null if not) + 2. We map those positions to a new list representing valid analyzer positions + (This is where it starts getting complicated) We want valid analyzer positions, but we + need to remember the index in the monitor position list that each analyzer is valid for. + So basically we take the monitor positions, check if they have a analyzer underneath. + If they do, set the element in the NEW list to be the position of the analyzer. + If they don't, set the element in the new list to be null + 3. Do a similar process for tanks. + (Make a copy of the analyzer positions, set them to the tank position if there's a tank, null if not) What this ends up doing is giving us a list at the end filled with either nulls or BlockPositions - of tubes that have a valid structure. The index of any tube in the list corresponds to the index - of the Monitor/Compartment in their respective lists. So if you have a fossilTubePositions list of - [null BlockPos null], the fossilCompartment BlockPos is fossilCompPositions[1] and the monitor BlockPos - is fossilMonitorPositions[1] + of tanks that have a valid structure. The index of any tank in the list corresponds to the index + of the Monitor/Analyzer in their respective lists. So if you have a fossilTankPositions list of + [null BlockPos null], the fossilAnalyzer BlockPos is fossilCompPositions[1] and the monitor BlockPos + is monitorPositions[1] - Apion */ - var fossilMonitorPositions = blocks.filter { - FOSSIL_MONITOR_PRED.test(world, it) + var monitorPositions = blocks.filter { + MONITOR_PRED.test(world, it) } - var fossilCompPositions = fossilMonitorPositions.map { - if (FOSSIL_COMPARTMENT_PRED.test(world, it.down())) it.down() + var fossilAnalyzerPositions = monitorPositions.map { + if (FOSSIL_ANALYZER_PRED.test(world, it.down())) it.down() else null } - var fossilTubePositions = fossilCompPositions.map { compPosition -> - if (compPosition == null) { + var restorationTankPositions = fossilAnalyzerPositions.map { analyzerPosition -> + if (analyzerPosition == null) { return@map null } dirsToCheck.forEach { - if (FOSSIL_TUBE_PRED.test(world, compPosition.offset(it))) { - return@map compPosition.offset(it) + if (RESTORATION_TANK_PRED.test(world, analyzerPosition.offset(it))) { + return@map analyzerPosition.offset(it) } } return@map null } - val fossilTubeIndex = fossilTubePositions.indexOfFirst { + val fossilTankIndex = restorationTankPositions.indexOfFirst { it != null } - if (fossilTubeIndex == -1) { + if (fossilTankIndex == -1) { Cobblemon.LOGGER.error("FossilMultiblockBuilder form called on invalid structure! This should never happen!") return } - val fossilMonitorPos = fossilMonitorPositions[fossilTubeIndex] - val fossilCompPos = fossilCompPositions[fossilTubeIndex]!! - val fossilTubePos = fossilTubePositions[fossilTubeIndex]!! - val monitorEntity = world.getBlockEntity(fossilMonitorPos) as MultiblockEntity - val compEntity = world.getBlockEntity(fossilCompPos) as MultiblockEntity - val tubeBaseEntity = world.getBlockEntity(fossilTubePos) as MultiblockEntity - val tubeTopEntity = world.getBlockEntity(fossilTubePos.up()) as MultiblockEntity - val structure = FossilMultiblockStructure(fossilMonitorPos, fossilCompPos, fossilTubePos) + val monitorPos = monitorPositions[fossilTankIndex] + val fossilAnalyzerPos = fossilAnalyzerPositions[fossilTankIndex]!! + val restorationTankPos = restorationTankPositions[fossilTankIndex]!! + val monitorEntity = world.getBlockEntity(monitorPos) as MultiblockEntity + val analyzerEntity = world.getBlockEntity(fossilAnalyzerPos) as MultiblockEntity + val tankBaseEntity = world.getBlockEntity(restorationTankPos) as MultiblockEntity + val tankTopEntity = world.getBlockEntity(restorationTankPos.up()) as MultiblockEntity + val structure = FossilMultiblockStructure(monitorPos, fossilAnalyzerPos, restorationTankPos) - structure.tubeConnectorDirection = dirsToCheck.filter { - val adjPos = fossilTubePos.offset(it) - return@filter adjPos == fossilCompPos + structure.tankConnectorDirection = dirsToCheck.filter { + val adjPos = restorationTankPos.offset(it) + return@filter adjPos == fossilAnalyzerPos }.first() - compEntity.multiblockStructure = structure - tubeBaseEntity.multiblockStructure = structure - tubeTopEntity.multiblockStructure = structure + analyzerEntity.multiblockStructure = structure + tankBaseEntity.multiblockStructure = structure + tankTopEntity.multiblockStructure = structure monitorEntity.multiblockStructure = structure structure.syncToClient(world) structure.markDirty(world) @@ -141,9 +138,9 @@ class FossilMultiblockBuilder(val centerPos: BlockPos) : MultiblockStructureBuil world.playSound(null, centerPos, CobblemonSounds.FOSSIL_MACHINE_ASSEMBLE, SoundCategory.BLOCKS) //Set these to null so the builders can be freed - compEntity.multiblockBuilder = null - tubeBaseEntity.multiblockBuilder = null - tubeTopEntity.multiblockBuilder = null + analyzerEntity.multiblockBuilder = null + tankBaseEntity.multiblockBuilder = null + tankTopEntity.multiblockBuilder = null monitorEntity.multiblockBuilder = null } @@ -153,18 +150,18 @@ class FossilMultiblockBuilder(val centerPos: BlockPos) : MultiblockStructureBuil nbt.putBoolean(DataKeys.FORMED, false) return@run nbt } - val FOSSIL_MONITOR_PRED = BlockPredicate.Builder.create().blocks(CobblemonBlocks.FOSSIL_MONITOR) + val MONITOR_PRED = BlockPredicate.Builder.create().blocks(CobblemonBlocks.MONITOR) .nbt(NBT_TO_CHECK) .build() - val FOSSIL_COMPARTMENT_PRED = BlockPredicate.Builder.create() - .blocks(CobblemonBlocks.FOSSIL_COMPARTMENT) + val FOSSIL_ANALYZER_PRED = BlockPredicate.Builder.create() + .blocks(CobblemonBlocks.FOSSIL_ANALYZER) .nbt(NBT_TO_CHECK) .build() - val FOSSIL_TUBE_PRED = BlockPredicate.Builder.create() + val RESTORATION_TANK_PRED = BlockPredicate.Builder.create() .nbt(NBT_TO_CHECK) - .blocks(CobblemonBlocks.FOSSIL_TUBE) - .state(StatePredicate.Builder.create().exactMatch(FossilTubeBlock.PART, FossilTubeBlock.TubePart.BOTTOM).build()) + .blocks(CobblemonBlocks.RESTORATION_TANK) + .state(StatePredicate.Builder.create().exactMatch(RestorationTankBlock.PART, RestorationTankBlock.TankPart.BOTTOM).build()) .build() //lol thanks mojang for not allowing nbt puts to be chained } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockStructure.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockStructure.kt index 5e9a3143be..c4a9108252 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockStructure.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/multiblock/FossilMultiblockStructure.kt @@ -17,22 +17,22 @@ import com.cobblemon.mod.common.api.fossil.NaturalMaterials import com.cobblemon.mod.common.api.multiblock.MultiblockEntity import com.cobblemon.mod.common.api.multiblock.MultiblockStructure import com.cobblemon.mod.common.api.tags.CobblemonItemTags -import com.cobblemon.mod.common.block.entity.fossil.FossilMultiblockEntity -import com.cobblemon.mod.common.block.fossilmachine.FossilCompartmentBlock -import com.cobblemon.mod.common.block.fossilmachine.FossilMonitorBlock +import com.cobblemon.mod.common.block.entity.FossilMultiblockEntity +import com.cobblemon.mod.common.block.FossilAnalyzerBlock +import com.cobblemon.mod.common.block.MonitorBlock +import com.cobblemon.mod.common.block.RestorationTankBlock +import com.cobblemon.mod.common.block.entity.RestorationTankBlockEntity import com.cobblemon.mod.common.client.render.models.blockbench.fossil.FossilState +import com.cobblemon.mod.common.client.sound.CancellableSoundController +import com.cobblemon.mod.common.client.sound.CancellableSoundInstance import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.item.PokeBallItem import com.cobblemon.mod.common.pokemon.Pokemon -import com.cobblemon.mod.common.util.DataKeys -import com.cobblemon.mod.common.util.giveOrDropItemStack -import com.cobblemon.mod.common.util.lang -import com.cobblemon.mod.common.util.party +import com.cobblemon.mod.common.util.* import net.minecraft.block.Block import net.minecraft.block.BlockState import net.minecraft.block.HorizontalFacingBlock import net.minecraft.block.entity.BlockEntityTicker -import net.minecraft.client.MinecraftClient import net.minecraft.entity.EntityPose import net.minecraft.entity.player.PlayerEntity import net.minecraft.item.ItemStack @@ -54,15 +54,18 @@ import net.minecraft.util.math.Box import net.minecraft.util.math.Direction import net.minecraft.util.math.random.Random import net.minecraft.world.World +import java.util.UUID import kotlin.math.ceil class FossilMultiblockStructure ( val monitorPos: BlockPos, - val compartmentPos: BlockPos, - val tubeBasePos: BlockPos + val analyzerPos: BlockPos, + val tankBasePos: BlockPos, + animAge: Int = -1, + animPartialTicks: Float = 0F ) : MultiblockStructure { - override val controllerBlockPos = compartmentPos + override val controllerBlockPos = analyzerPos // TODO: API method for this @@ -78,10 +81,10 @@ class FossilMultiblockStructure ( private var lastInteraction: Long = 0 private var machineStartTime: Long = 0 private var protectionTime: Int = -1 - private var fossilOwner: PlayerEntity? = null - val fossilState = FossilState() + private var fossilOwnerUUID: UUID? = null + val fossilState = FossilState(animAge, animPartialTicks) var fossilInventory: MutableList = mutableListOf() - var tubeConnectorDirection: Direction? = null + var tankConnectorDirection: Direction? = null //Only updated clientside var fillLevel = 0 @@ -97,7 +100,7 @@ class FossilMultiblockStructure ( if (this.createdPokemon != null) { - if (!stack.isIn(CobblemonItemTags.POKEBALLS) || stack.item !is PokeBallItem) { + if (!stack.isIn(CobblemonItemTags.POKE_BALLS) || stack.item !is PokeBallItem) { return ActionResult.PASS } @@ -105,8 +108,12 @@ class FossilMultiblockStructure ( return ActionResult.CONSUME } - if (this.fossilOwner != null && player != this.fossilOwner) { - player.sendMessage(lang("fossilmachine.protected", this.fossilOwner!!.name), true) + if (this.fossilOwnerUUID != null && player.uuid != this.fossilOwnerUUID) { + var ownerName : String = "UNKNOWN_USER" // TODO: lang agnostic fallback + server()?.userCache?.getByUuid(this.fossilOwnerUUID)?.orElse(null)?.name?.let { + ownerName = it + } + player.sendMessage(lang("fossilmachine.protected", ownerName), true) return ActionResult.FAIL } @@ -123,8 +130,14 @@ class FossilMultiblockStructure ( player.playSound(CobblemonSounds.FOSSIL_MACHINE_RETRIEVE_POKEMON, SoundCategory.BLOCKS, 1.0F, 1.0F) CobblemonCriteria.RESURRECT_POKEMON.trigger(player, createdPokemon!!) + // Turn the monitor off + val monitorState = world.getBlockState(monitorPos) + if(!monitorState.equals(MonitorBlock.MonitorScreen.OFF)) { + world.setBlockState(monitorPos, monitorState.with(MonitorBlock.SCREEN, MonitorBlock.MonitorScreen.OFF)) + } + this.createdPokemon = null - this.fossilOwner = null + this.fossilOwnerUUID = null this.protectionTime = -1 this.updateFossilType(world) this.syncToClient(world) @@ -147,7 +160,7 @@ class FossilMultiblockStructure ( // remove last fossil in the fossil machine stack when grabbed out of the machine this.fossilInventory.removeAt(fossilInventory.size - 1) if(!world.isClient) { - world.playSound(null, compartmentPos, CobblemonSounds.FOSSIL_MACHINE_RETRIEVE_FOSSIL, SoundCategory.BLOCKS) + world.playSound(null, analyzerPos, CobblemonSounds.FOSSIL_MACHINE_RETRIEVE_FOSSIL, SoundCategory.BLOCKS) this.updateFossilType(world) this.syncToClient(world) this.markDirty(world) @@ -166,11 +179,11 @@ class FossilMultiblockStructure ( stack?.decrement(1) } - fossilOwner = player + fossilOwnerUUID = player.uuid fossilInventory.add(copyFossilStack) if(!world.isClient) { this.updateFossilType(world) - world.playSound(null, compartmentPos, CobblemonSounds.FOSSIL_MACHINE_INSERT_FOSSIL, SoundCategory.BLOCKS) + world.playSound(null, analyzerPos, CobblemonSounds.FOSSIL_MACHINE_INSERT_FOSSIL, SoundCategory.BLOCKS) this.syncToClient(world) this.markDirty(world) } @@ -191,16 +204,18 @@ class FossilMultiblockStructure ( return ActionResult.success(world.isClient) } + // pure client instances dont know what a valid fossil is so this is my janky workaround + if (stack.isIn(CobblemonItemTags.FOSSILS)) return ActionResult.SUCCESS + return ActionResult.PASS } public fun spawn(world: World, pos: BlockPos, directionToBehind: Direction, pokemon: Pokemon) : Boolean { - val world = world ?: return false val entity = PokemonEntity(world, pokemon = pokemon) entity.calculateDimensions() val width = entity.boundingBox.xLength - val idealPlace = pos.add(directionToBehind.vector.multiply(ceil(width).toInt() + 1)) + val idealPlace = pos.add(directionToBehind.vector.multiply(ceil(width / 2.0).toInt() + 1)) var box = entity.getDimensions(EntityPose.STANDING).getBoxAt(idealPlace.toCenterPos().subtract(0.0, 0.5, 0.0)) for (i in 0..5) { @@ -269,7 +284,7 @@ class FossilMultiblockStructure ( } return Math.max(15 - timeRemaining * 15 / TIME_TO_TAKE, 1) } - if(tubeBasePos == pos || tubeBasePos.up() == pos) { + if(tankBasePos == pos || tankBasePos.up() == pos) { return organicMaterialInside * 15 / MATERIAL_TO_START } return 0 @@ -284,9 +299,9 @@ class FossilMultiblockStructure ( if(success) { this.fossilState.growthState = "Taken" this.createdPokemon = null - this.fossilOwner = null + this.fossilOwnerUUID = null this.protectionTime = -1 - world.playSound(null, tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_RETRIEVE_POKEMON, SoundCategory.BLOCKS) + world.playSound(null, tankBasePos, CobblemonSounds.FOSSIL_MACHINE_RETRIEVE_POKEMON, SoundCategory.BLOCKS) this.updateFossilType(world) this.syncToClient(world) this.markDirty(world) @@ -297,22 +312,21 @@ class FossilMultiblockStructure ( override fun onBreak(world: World, pos: BlockPos, state: BlockState, player: PlayerEntity?) { val monitorEntity = world.getBlockEntity(monitorPos) as MultiblockEntity - val compartmentEntity = world.getBlockEntity(compartmentPos) as MultiblockEntity - val tubeBaseEntity = world.getBlockEntity(tubeBasePos) as MultiblockEntity - val tubeTopEntity = world.getBlockEntity(tubeBasePos.up()) as MultiblockEntity - val state = world.getBlockState(monitorEntity.pos) + val analyzerEntity = world.getBlockEntity(analyzerPos) as MultiblockEntity + val tankBaseEntity = world.getBlockEntity(tankBasePos) as MultiblockEntity + val tankTopEntity = world.getBlockEntity(tankBasePos.up()) as MultiblockEntity + val state = world.getBlockState(tankBaseEntity.pos) val direction = state.get(HorizontalFacingBlock.FACING).getOpposite() val wildPokemon: Pokemon? = this.createdPokemon monitorEntity.multiblockStructure = null - compartmentEntity.multiblockStructure = null - tubeBaseEntity.multiblockStructure = null - tubeTopEntity.multiblockStructure = null + analyzerEntity.multiblockStructure = null + tankBaseEntity.multiblockStructure = null + tankTopEntity.multiblockStructure = null monitorEntity.masterBlockPos = null - compartmentEntity.masterBlockPos = null - tubeBaseEntity.masterBlockPos = null - tubeTopEntity.masterBlockPos = null - + analyzerEntity.masterBlockPos = null + tankBaseEntity.masterBlockPos = null + tankTopEntity.masterBlockPos = null // Drop fossils from machine as long as the machine is not running if (this.timeRemaining == TIME_TO_TAKE || this.timeRemaining == -1) { @@ -321,10 +335,17 @@ class FossilMultiblockStructure ( ItemScatterer.spawn(world, pos.x.toDouble(), pos.y.toDouble(), pos.z.toDouble(), stack) } } + if(tankBaseEntity is RestorationTankBlockEntity) { + tankBaseEntity.inv.items.forEach { + val stack = ItemStack(it.item, 1) + ItemScatterer.spawn(world, pos.x.toDouble(), pos.y.toDouble(), pos.z.toDouble(), stack) + } + tankBaseEntity.inv.clear() + } // if the machine is broken while the pokemon is done then spawn the pokemon at the location and make it a wild pokemon - if (this.fossilState.growthState == "Fully Grown" && wildPokemon != null) { + if (wildPokemon != null) { //world.createExplosion(this.createdPokemon?.entity, pos.x.toDouble(), pos.y.toDouble(), pos.z.toDouble(), 5F, World.ExplosionSourceType.TNT) // instantiate the pokemon as a new entity and spawn it at the location of the machine @@ -334,29 +355,39 @@ class FossilMultiblockStructure ( this.spawn(world, pos, direction, wildPokemon) } - - MinecraftClient.getInstance().soundManager.stopSounds(CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP.id, SoundCategory.BLOCKS) - + this.protectionTime = -1 this.updateFossilType(world) this.stopMachine(world) this.syncToClient(world) this.markDirty(world) } + override fun markRemoved(world: World) { + if(world.isClient) { + CancellableSoundController.stopSound(this.tankBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP.id) + } + } + override fun tick(world: World) { if (protectionTime > 0) protectionTime-- if (protectionTime == 0) { protectionTime = -1 - this.fossilOwner = null - world.playSound(null, tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_UNPROTECTED, SoundCategory.BLOCKS) + this.fossilOwnerUUID = null + this.updateProgress(world) + this.syncToClient(world) + this.markDirty(world) + world.playSound(null, tankBasePos, CobblemonSounds.FOSSIL_MACHINE_UNPROTECTED, SoundCategory.BLOCKS) } if (this.createdPokemon != null) { return } - if (this.isRunning() && (world.time - this.machineStartTime) % 160L == 0L) { - world.playSound(null, this.tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP, SoundCategory.BLOCKS, 1.0F, 1.0F) + if (world.isClient && this.isRunning() && (world.time - this.machineStartTime) % 160L == 0L) { + if(world.isClient) { + CancellableSoundController.playSound(CancellableSoundInstance(CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP, + tankBasePos, true, 1.0f, 1.0f, )) + } } if (this.timeRemaining == -1 && this.organicMaterialInside >= MATERIAL_TO_START && this.resultingFossil != null) { @@ -375,14 +406,13 @@ class FossilMultiblockStructure ( } if (this.timeRemaining == 0) { - world.playSound(null, tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_FINISHED, SoundCategory.BLOCKS) - MinecraftClient.getInstance().soundManager.stopSounds(CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP.id, SoundCategory.BLOCKS) + world.playSound(null, tankBasePos, CobblemonSounds.FOSSIL_MACHINE_FINISHED, SoundCategory.BLOCKS) fossilInventory.clear() this.resultingFossil?.let { this.createdPokemon = it.result.create() } - if(this.fossilOwner != null) { + if(this.fossilOwnerUUID != null) { protectionTime = PROTECTION_TIME } @@ -391,20 +421,23 @@ class FossilMultiblockStructure ( } override fun syncToClient(world: World) { - val tubeBaseEntity = world.getBlockEntity(tubeBasePos) as MultiblockEntity - val compartmentEntity = world.getBlockEntity(controllerBlockPos) as MultiblockEntity - val monitorEntity = world.getBlockEntity(monitorPos) as MultiblockEntity + val tankBaseEntity = world.getBlockEntity(tankBasePos) as? MultiblockEntity + val analyzerEntity = world.getBlockEntity(controllerBlockPos) as? MultiblockEntity + val monitorEntity = world.getBlockEntity(monitorPos) as? MultiblockEntity - world.updateListeners(tubeBasePos, tubeBaseEntity.cachedState, tubeBaseEntity.cachedState, Block.NOTIFY_LISTENERS) - world.updateListeners(compartmentPos, compartmentEntity.cachedState, compartmentEntity.cachedState, Block.NOTIFY_LISTENERS) - world.updateListeners(monitorPos, monitorEntity.cachedState, monitorEntity.cachedState, Block.NOTIFY_LISTENERS) + if(tankBaseEntity != null) + world.updateListeners(tankBasePos, tankBaseEntity.cachedState, tankBaseEntity.cachedState, Block.NOTIFY_LISTENERS) + if(analyzerEntity != null) + world.updateListeners(analyzerPos, analyzerEntity.cachedState, analyzerEntity.cachedState, Block.NOTIFY_LISTENERS) + if(monitorEntity != null) + world.updateListeners(monitorPos, monitorEntity.cachedState, monitorEntity.cachedState, Block.NOTIFY_LISTENERS) } override fun markDirty(world: World) { val entities = listOf( - world.getBlockEntity(compartmentPos), - world.getBlockEntity(tubeBasePos), - world.getBlockEntity(tubeBasePos.up()), + world.getBlockEntity(analyzerPos), + world.getBlockEntity(tankBasePos), + world.getBlockEntity(tankBasePos.up()), world.getBlockEntity(monitorPos) ) entities.forEach { @@ -416,8 +449,11 @@ class FossilMultiblockStructure ( this.timeRemaining = TIME_TO_TAKE this.machineStartTime = world.time - world.playSound(null, tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVATE, SoundCategory.BLOCKS) - world.playSound(null, tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP, SoundCategory.BLOCKS) + world.playSound(null, tankBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVATE, SoundCategory.BLOCKS) + if(world.isClient) { + CancellableSoundController.playSound(CancellableSoundInstance(CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP, + tankBasePos, true, 1.0f, 1.0f, )) + } this.updateOnStatus(world) this.updateProgress(world) @@ -432,6 +468,10 @@ class FossilMultiblockStructure ( fossilInventory.clear() + if(world.isClient) { + CancellableSoundController.stopSound(tankBasePos, CobblemonSounds.FOSSIL_MACHINE_ACTIVE_LOOP.id) + } + this.updateOnStatus(world) this.updateProgress(world) this.syncToClient(world) @@ -439,14 +479,38 @@ class FossilMultiblockStructure ( } fun updateOnStatus(world: World) { - val compartmentState = world.getBlockState(compartmentPos) - world.setBlockState(compartmentPos, compartmentState.with(FossilCompartmentBlock.ON, timeRemaining >= 0)) + val upperTankPos = tankBasePos.up() + val analyzerState = world.getBlockState(analyzerPos) + val tankState = world.getBlockState(tankBasePos.up()) + world.setBlockState(analyzerPos, analyzerState.with(FossilAnalyzerBlock.ON, timeRemaining >= 0)) + world.setBlockState(upperTankPos, tankState.with(RestorationTankBlock.ON, timeRemaining >= 0)) } fun updateProgress(world: World) { - val progress = if (timeRemaining <= 0) 0 else ((TIME_TO_TAKE - timeRemaining) / TIME_PER_STAGE) + 1 + val screenID = if(protectionTime > 0F ) { + MonitorBlock.MonitorScreen.GREEN_PROGRESS_9 + } else if (timeRemaining <= 0) { + MonitorBlock.MonitorScreen.OFF + } else { + getProgressScreen((TIME_TO_TAKE - timeRemaining) / TIME_PER_STAGE) + } val monitorState = world.getBlockState(monitorPos) - world.setBlockState(monitorPos, monitorState.with(FossilMonitorBlock.PROGRESS, progress)) + world.setBlockState(monitorPos, monitorState.with(MonitorBlock.SCREEN, screenID)) + } + + fun getProgressScreen(progress:Int) : MonitorBlock.MonitorScreen { + return when (progress) { + 0 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_1 + 1 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_2 + 2 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_3 + 3 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_4 + 4 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_5 + 5 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_6 + 6 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_7 + 7 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_8 + 8 -> MonitorBlock.MonitorScreen.BLUE_PROGRESS_9 + else -> MonitorBlock.MonitorScreen.OFF + } } /** @@ -491,11 +555,11 @@ class FossilMultiblockStructure ( organicMaterialInside += natureValue } if (this.organicMaterialInside >= MATERIAL_TO_START) { - world.playSound(null, this.tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_DNA_FULL, SoundCategory.BLOCKS, 1.0F, 1.0F) + world.playSound(null, this.tankBasePos, CobblemonSounds.FOSSIL_MACHINE_DNA_FULL, SoundCategory.BLOCKS, 1.0F, 1.0F) } else if (world.time - this.lastInteraction < 10) { - world.playSound(null, this.tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_INSERT_DNA_SMALL, SoundCategory.BLOCKS, 1.0F, 1.0F) + world.playSound(null, this.tankBasePos, CobblemonSounds.FOSSIL_MACHINE_INSERT_DNA_SMALL, SoundCategory.BLOCKS, 1.0F, 1.0F) } else { - world.playSound(null, this.tubeBasePos, CobblemonSounds.FOSSIL_MACHINE_INSERT_DNA, SoundCategory.BLOCKS, 1.0F, 1.0F) + world.playSound(null, this.tankBasePos, CobblemonSounds.FOSSIL_MACHINE_INSERT_DNA, SoundCategory.BLOCKS, 1.0F, 1.0F) } this.markDirty(world) if (oldFillStage != (organicMaterialInside / 8)) { @@ -514,7 +578,7 @@ class FossilMultiblockStructure ( //add fossil to the stack in the Compartment this.fossilInventory.add(stack) - world.playSound(null, compartmentPos, CobblemonSounds.FOSSIL_MACHINE_INSERT_FOSSIL, SoundCategory.BLOCKS) + world.playSound(null, analyzerPos, CobblemonSounds.FOSSIL_MACHINE_INSERT_FOSSIL, SoundCategory.BLOCKS) this.updateFossilType(world) this.markDirty(world) @@ -527,16 +591,19 @@ class FossilMultiblockStructure ( override fun writeToNbt(): NbtCompound { val result = NbtCompound() result.put(DataKeys.MONITOR_POS, NbtHelper.fromBlockPos(monitorPos)) - result.put(DataKeys.COMPARTMENT_POS, NbtHelper.fromBlockPos(compartmentPos)) - result.put(DataKeys.TUBE_BASE_POS, NbtHelper.fromBlockPos(tubeBasePos)) + result.put(DataKeys.ANALYZER_POS, NbtHelper.fromBlockPos(analyzerPos)) + result.put(DataKeys.TANK_BASE_POS, NbtHelper.fromBlockPos(tankBasePos)) result.putInt(DataKeys.TIME_LEFT, timeRemaining) + result.putInt(DataKeys.PROTECTED_TIME_LEFT, protectionTime) + if(fossilOwnerUUID != null) + result.putUuid(DataKeys.FOSSIL_OWNER, fossilOwnerUUID) result.putInt(DataKeys.ORGANIC_MATERIAL, organicMaterialInside) val fossilInv = NbtList() fossilInventory.forEach{ item -> fossilInv.add(item.writeNbt(NbtCompound())) } result.put(DataKeys.FOSSIL_INVENTORY, fossilInv) - result.putString(DataKeys.CONNECTOR_DIRECTION, tubeConnectorDirection?.toString()) + result.putString(DataKeys.CONNECTOR_DIRECTION, tankConnectorDirection?.toString()) if (this.resultingFossil != null) { result.putString(DataKeys.INSERTED_FOSSIL, this.resultingFossil!!.asString()) @@ -562,14 +629,16 @@ class FossilMultiblockStructure ( const val TIME_PER_STAGE = TIME_TO_TAKE / 8 const val PROTECTION_TIME = 6000 - fun fromNbt(nbt: NbtCompound): FossilMultiblockStructure { + fun fromNbt(nbt: NbtCompound, animAge: Int = -1, partialTicks: Float = 0f): FossilMultiblockStructure { val monitorPos = NbtHelper.toBlockPos(nbt.getCompound(DataKeys.MONITOR_POS)) - val compartmentPos = NbtHelper.toBlockPos(nbt.getCompound(DataKeys.COMPARTMENT_POS)) - val tubeBasePos = NbtHelper.toBlockPos(nbt.getCompound(DataKeys.TUBE_BASE_POS)) + val compartmentPos = NbtHelper.toBlockPos(nbt.getCompound(DataKeys.ANALYZER_POS)) + val tankBasePos = NbtHelper.toBlockPos(nbt.getCompound(DataKeys.TANK_BASE_POS)) - val result = FossilMultiblockStructure(monitorPos, compartmentPos, tubeBasePos) + val result = FossilMultiblockStructure(monitorPos, compartmentPos, tankBasePos, animAge, partialTicks) result.organicMaterialInside = nbt.getInt(DataKeys.ORGANIC_MATERIAL) result.timeRemaining = nbt.getInt(DataKeys.TIME_LEFT) + result.protectionTime = if(nbt.contains(DataKeys.PROTECTED_TIME_LEFT)) nbt.getInt(DataKeys.PROTECTED_TIME_LEFT) else -1 + result.fossilOwnerUUID = if(nbt.contains(DataKeys.FOSSIL_OWNER)) nbt.getUuid(DataKeys.FOSSIL_OWNER) else null val fossilInv = (nbt.get(DataKeys.FOSSIL_INVENTORY) as NbtList) val actualFossilList = mutableListOf() @@ -577,7 +646,7 @@ class FossilMultiblockStructure ( actualFossilList.add(ItemStack.fromNbt(it as NbtCompound)) } result.fossilInventory = actualFossilList - result.tubeConnectorDirection = Direction.byName(nbt.getString(DataKeys.CONNECTOR_DIRECTION)) + result.tankConnectorDirection = Direction.byName(nbt.getString(DataKeys.CONNECTOR_DIRECTION)) if (nbt.contains(DataKeys.INSERTED_FOSSIL)) { val id = Identifier(nbt.getString(DataKeys.INSERTED_FOSSIL)) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonBakingOverrides.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonBakingOverrides.kt index 9b62477185..111089d215 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonBakingOverrides.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonBakingOverrides.kt @@ -21,44 +21,44 @@ import net.minecraft.util.Identifier object CobblemonBakingOverrides { val models = mutableListOf() - val FOSSIL_FLUID_BUBBLING = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_bubbling"), - cobblemonModel("fossil_fluid_bubbling", "none") + val RESTORATION_TANK_FLUID_BUBBLING = registerOverride( + cobblemonResource("block/restoration_tank_fluid_bubbling"), + cobblemonModel("restoration_tank_fluid_bubbling", "none") ) - val FOSSIL_FLUID_CHUNKED_1 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_1"), - cobblemonModel("fossil_fluid_chunked", "1") + val RESTORATION_TANK_FLUID_CHUNKED_1 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_1"), + cobblemonModel("restoration_tank_fluid_chunked", "1") ) - val FOSSIL_FLUID_CHUNKED_2 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_2"), - cobblemonModel("fossil_fluid_chunked", "2") + val RESTORATION_TANK_FLUID_CHUNKED_2 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_2"), + cobblemonModel("restoration_tank_fluid_chunked", "2") ) - val FOSSIL_FLUID_CHUNKED_3 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_3"), - cobblemonModel("fossil_fluid_chunked", "3") + val RESTORATION_TANK_FLUID_CHUNKED_3 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_3"), + cobblemonModel("restoration_tank_fluid_chunked", "3") ) - val FOSSIL_FLUID_CHUNKED_4 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_4"), - cobblemonModel("fossil_fluid_chunked", "4") + val RESTORATION_TANK_FLUID_CHUNKED_4 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_4"), + cobblemonModel("restoration_tank_fluid_chunked", "4") ) - val FOSSIL_FLUID_CHUNKED_5 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_5"), - cobblemonModel("fossil_fluid_chunked", "5") + val RESTORATION_TANK_FLUID_CHUNKED_5 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_5"), + cobblemonModel("restoration_tank_fluid_chunked", "5") ) - val FOSSIL_FLUID_CHUNKED_6 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_6"), - cobblemonModel("fossil_fluid_chunked", "6") + val RESTORATION_TANK_FLUID_CHUNKED_6 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_6"), + cobblemonModel("restoration_tank_fluid_chunked", "6") ) - val FOSSIL_FLUID_CHUNKED_7 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_7"), - cobblemonModel("fossil_fluid_chunked", "7") + val RESTORATION_TANK_FLUID_CHUNKED_7 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_7"), + cobblemonModel("restoration_tank_fluid_chunked", "7") ) - val FOSSIL_FLUID_CHUNKED_8 = registerOverride( - cobblemonResource("block/fossil/fossil_fluid_chunked_8"), - cobblemonModel("fossil_fluid_chunked", "8") + val RESTORATION_TANK_FLUID_CHUNKED_8 = registerOverride( + cobblemonResource("block/restoration_tank_fluid_chunked_8"), + cobblemonModel("restoration_tank_fluid_chunked", "8") ) val RESTORATION_TANK_CONNECTOR = registerOverride( - cobblemonResource("block/fossil/restoration_tank_connector"), + cobblemonResource("block/restoration_tank_connector"), cobblemonModel("restoration_tank_connector", "none") ) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonClient.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonClient.kt index 41edcc6771..fb70d31495 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonClient.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/CobblemonClient.kt @@ -23,8 +23,8 @@ import com.cobblemon.mod.common.client.gui.PartyOverlay import com.cobblemon.mod.common.client.gui.battle.BattleOverlay import com.cobblemon.mod.common.client.particle.BedrockParticleEffectRepository import com.cobblemon.mod.common.client.render.block.BerryBlockRenderer -import com.cobblemon.mod.common.client.render.block.FossilCompartmentRenderer -import com.cobblemon.mod.common.client.render.block.FossilTubeRenderer +import com.cobblemon.mod.common.client.render.block.FossilAnalyzerRenderer +import com.cobblemon.mod.common.client.render.block.RestorationTankRenderer import com.cobblemon.mod.common.client.render.block.HealingMachineRenderer import com.cobblemon.mod.common.client.render.boat.CobblemonBoatRenderer import com.cobblemon.mod.common.client.render.entity.PokeBobberEntityRenderer @@ -45,6 +45,7 @@ import com.cobblemon.mod.common.data.CobblemonDataProvider import com.cobblemon.mod.common.entity.boat.CobblemonBoatType import com.cobblemon.mod.common.item.PokeBallItem import com.cobblemon.mod.common.client.render.models.blockbench.repository.FossilModelRepository +import com.cobblemon.mod.common.client.render.models.blockbench.repository.MiscModelRepository import com.cobblemon.mod.common.platform.events.PlatformEvents import com.cobblemon.mod.common.util.DataKeys import com.cobblemon.mod.common.util.asTranslated @@ -162,7 +163,7 @@ object CobblemonClient { this.implementation.registerBlockRenderType( RenderLayer.getCutout(), - CobblemonBlocks.FOSSIL_COMPARTMENT, + CobblemonBlocks.FOSSIL_ANALYZER, CobblemonBlocks.APRICORN_DOOR, CobblemonBlocks.APRICORN_TRAPDOOR, CobblemonBlocks.APRICORN_SIGN, @@ -202,7 +203,7 @@ object CobblemonClient { CobblemonBlocks.REVIVAL_HERB, *CobblemonBlocks.berries().values.toTypedArray(), CobblemonBlocks.POTTED_PEP_UP_FLOWER, - CobblemonBlocks.FOSSIL_TUBE, + CobblemonBlocks.RESTORATION_TANK, CobblemonBlocks.SMALL_BUDDING_TUMBLESTONE, CobblemonBlocks.MEDIUM_BUDDING_TUMBLESTONE, CobblemonBlocks.LARGE_BUDDING_TUMBLESTONE, @@ -242,8 +243,8 @@ object CobblemonClient { this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.BERRY, ::BerryBlockRenderer) this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.SIGN, ::SignBlockEntityRenderer) this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.HANGING_SIGN, ::HangingSignBlockEntityRenderer) - this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.FOSSIL_COMPARTMENT, ::FossilCompartmentRenderer) - this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.FOSSIL_TUBE, ::FossilTubeRenderer) + this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.FOSSIL_ANALYZER, ::FossilAnalyzerRenderer) + this.implementation.registerBlockEntityRenderer(CobblemonBlockEntities.RESTORATION_TANK, ::RestorationTankRenderer) } private fun registerEntityRenderers() { @@ -270,6 +271,7 @@ object CobblemonClient { PokeBallModelRepository.reload(resourceManager) BerryModelRepository.reload(resourceManager) FossilModelRepository.reload(resourceManager) + MiscModelRepository.reload(resourceManager) LOGGER.info("Loaded assets") } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/EmptyPokeBallClientDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/EmptyPokeBallClientDelegate.kt index 0fc1003043..131bca8ce8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/EmptyPokeBallClientDelegate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/EmptyPokeBallClientDelegate.kt @@ -8,7 +8,10 @@ package com.cobblemon.mod.common.client.entity +import com.bedrockk.molang.runtime.value.DoubleValue import com.cobblemon.mod.common.api.entity.EntitySideDelegate +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct import com.cobblemon.mod.common.api.reactive.SettableObservable import com.cobblemon.mod.common.api.reactive.SimpleObservable import com.cobblemon.mod.common.api.scheduling.SchedulingTracker @@ -37,6 +40,11 @@ class EmptyPokeBallClientDelegate : PokeBallPoseableState(), EntitySideDelegate< this.currentEntity = entity age = entity.age initSubscriptions() + this.runtime.environment.getQueryStruct().addFunctions(mapOf( + "pokeball_type" to java.util.function.Function { + return@Function DoubleValue(currentEntity.pokeBall.name.toString()) + } + )) } override fun tick(entity: EmptyPokeBallEntity) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/GenericBedrockClientDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/GenericBedrockClientDelegate.kt new file mode 100644 index 0000000000..95c1ff3620 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/GenericBedrockClientDelegate.kt @@ -0,0 +1,50 @@ +/* + * 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.entity + +import com.cobblemon.mod.common.api.entity.EntitySideDelegate +import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.repository.GenericBedrockEntityModelRepository +import com.cobblemon.mod.common.client.render.models.blockbench.repository.RenderContext +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity + +class GenericBedrockClientDelegate : EntitySideDelegate, PoseableEntityState() { + lateinit var currentEntity: GenericBedrockEntity + override val schedulingTracker + get() = getEntity().schedulingTracker + override fun getEntity() = currentEntity + + override fun initialize(entity: GenericBedrockEntity) { + super.initialize(entity) + this.currentEntity = entity + this.age = entity.age + this.currentModel = GenericBedrockEntityModelRepository.getPoser(entity.category, entity.aspects) + + val model = currentModel!! + model.context.put(RenderContext.ENTITY, entity) + currentModel!!.updateLocators(this) + updateLocatorPosition(entity.pos) + + val currentPoseType = entity.getCurrentPoseType() + val pose = this.currentModel!!.poses.values.firstOrNull { currentPoseType in it.poseTypes && (it.condition == null || it.condition.invoke(entity)) } + if (pose != null) { + doLater { setPose(pose.poseName) } + } + } + + override fun tick(entity: GenericBedrockEntity) { + super.tick(entity) + updateLocatorPosition(entity.pos) + incrementAge(entity) + } + + override fun updatePartialTicks(partialTicks: Float) { + this.currentPartialTicks = partialTicks + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt index b68c07d8ee..b74dcb09a4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt @@ -8,25 +8,48 @@ package com.cobblemon.mod.common.client.entity +import com.bedrockk.molang.runtime.value.DoubleValue +import com.bedrockk.molang.runtime.value.StringValue +import com.cobblemon.mod.common.CobblemonSounds +import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.api.entity.PokemonSideDelegate +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct import com.cobblemon.mod.common.api.pokemon.PokemonSpecies import com.cobblemon.mod.common.api.scheduling.SchedulingTracker import com.cobblemon.mod.common.api.scheduling.afterOnClient import com.cobblemon.mod.common.api.scheduling.lerpOnClient +import com.cobblemon.mod.common.client.particle.BedrockParticleEffectRepository +import com.cobblemon.mod.common.client.particle.ParticleStorm +import com.cobblemon.mod.common.client.render.MatrixWrapper +import com.cobblemon.mod.common.client.render.SnowstormParticle import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPoseableModel +import com.cobblemon.mod.common.client.render.pokemon.PokemonRenderer.Companion.ease import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.pokemon.Pokemon +import com.cobblemon.mod.common.util.MovingSoundInstance +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.client.MinecraftClient +import net.minecraft.client.util.math.MatrixStack +import java.lang.Float.min +import kotlin.math.abs import net.minecraft.entity.Entity import net.minecraft.entity.data.TrackedData +import net.minecraft.particle.ParticleTypes +import net.minecraft.sound.SoundCategory +import net.minecraft.sound.SoundEvent +import net.minecraft.util.Hand import net.minecraft.util.Identifier +import net.minecraft.util.math.Vec3d class PokemonClientDelegate : PoseableEntityState(), PokemonSideDelegate { companion object { - const val BEAM_SHRINK_TIME = 0.8F + const val BEAM_SHRINK_TIME = 0.4F const val BEAM_EXTEND_TIME = 0.2F + const val POKEBALL_AIR_TIME = 0.5F } override val schedulingTracker: SchedulingTracker @@ -43,10 +66,21 @@ class PokemonClientDelegate : PoseableEntityState(), PokemonSideD } var beamStartTime = System.currentTimeMillis() + var ballStartTime = System.currentTimeMillis() + var ballDone = false + var ballOffset = 0f + var ballRotOffset = 0f + var sendOutPosition: Vec3d? = null + var sendOutOffset: Vec3d? = null + var playedSendOutSound: Boolean = false + var playedThrowingSound: Boolean = false val secondsSinceBeamEffectStarted: Float get() = (System.currentTimeMillis() - beamStartTime) / 1000F + val secondsSinceBallThrown: Float + get() = (System.currentTimeMillis() - ballStartTime) / 1000F + private var cryAnimation: StatefulAnimation? = null override fun onTrackedDataSet(data: TrackedData<*>) { @@ -61,7 +95,7 @@ class PokemonClientDelegate : PoseableEntityState(), PokemonSideD if (isDying) { val model = (currentModel ?: return) as PokemonPoseableModel val animation = try { - model.getFaintAnimation(currentEntity, this) + model.getAnimation(this, "faint", runtime) } catch (e: Exception) { e.printStackTrace() null @@ -76,21 +110,95 @@ class PokemonClientDelegate : PoseableEntityState(), PokemonSideD 0 -> { /* Do nothing */ } 1 -> { // Scaling up out of pokeball + playedSendOutSound = false entityScaleModifier = 0F beamStartTime = System.currentTimeMillis() + ballStartTime = System.currentTimeMillis() currentEntity.isInvisible = true - afterOnClient(seconds = BEAM_EXTEND_TIME) { - lerpOnClient(BEAM_SHRINK_TIME) { entityScaleModifier = it } - currentEntity.isInvisible = false + ballDone = false + var soundPos = currentEntity.pos + currentEntity.pokemon.getOwnerUUID()?.let{ + currentEntity.world.getPlayerByUuid(it)?.let { + val offset = it.pos.subtract(currentEntity.pos.add(0.0, 2.0 - (ballOffset.toDouble()/10f), 0.0)).normalize().multiply(-ease(ballOffset.toDouble())) + with(it.pos.subtract(currentEntity.pos)) { + var newOffset = offset.multiply(2.0) + val distance = it.pos.distanceTo(currentEntity.pos) + newOffset = newOffset.multiply((distance / 10.0) * 5) + soundPos = currentEntity.pos.add(newOffset) + } + it.swingHand(it.activeHand ?: Hand.MAIN_HAND) + } + } + val client = MinecraftClient.getInstance() + val sound = MovingSoundInstance(SoundEvent.of(CobblemonSounds.POKE_BALL_TRAIL.id), SoundCategory.PLAYERS, { sendOutPosition?.add(sendOutOffset) }, 0.1f, 1f, false, 20, 0) + if(!playedThrowingSound){ + client.soundManager.play(sound) + playedThrowingSound = true + } + lerpOnClient(POKEBALL_AIR_TIME) { ballOffset = it } + ballRotOffset = ((Math.random()) * currentEntity.world.random.nextBetween(-15, 15)).toFloat() + + currentEntity.after(seconds = POKEBALL_AIR_TIME){ + beamStartTime = System.currentTimeMillis() + ballDone = true + if (client.soundManager.get(CobblemonSounds.POKE_BALL_OPEN.id) != null && !playedSendOutSound) { + currentEntity.owner?.let { + client.world?.playSound(client.player, soundPos.x, soundPos.y, soundPos.z, SoundEvent.of(CobblemonSounds.POKE_BALL_SEND_OUT.id), SoundCategory.PLAYERS, 0.6f, 1f) + playedSendOutSound = true + /// create end rod particles in a 0.1 radius around the soundPos with a count of 50 and a random velocity of 0.1 + sendOutPosition?.let{ + val newPos = it.add(sendOutOffset) + val ballType = currentEntity.pokemon.caughtBall.name.path.toLowerCase().replace("_","") + val mode = if(currentEntity.isBattling) "battle" else "casual" + val sendflash = BedrockParticleEffectRepository.getEffect(cobblemonResource("${ballType}/${mode}/sendflash")) + sendflash?.let { effect -> + val wrapper = MatrixWrapper() + val matrix = MatrixStack() + matrix.translate(newPos.x, newPos.y, newPos.z) + wrapper.updateMatrix(matrix.peek().positionMatrix) + val world = MinecraftClient.getInstance().world ?: return@let + ParticleStorm(effect, wrapper, world).spawn() + val ballsparks = BedrockParticleEffectRepository.getEffect(cobblemonResource("${ballType}/${mode}/ballsparks")) + val ballsendsparkle = BedrockParticleEffectRepository.getEffect(cobblemonResource("${ballType}/${mode}/ballsendsparkle")) + // using afterOnClient because it's such a small timeframe that it's unlikely the entity has been removed & we'd like the precision + afterOnClient(seconds = 0.01667f) { + ballsparks?.let { effect -> + ParticleStorm(effect, wrapper, world).spawn() + } + ballsendsparkle?.let { effect -> + ParticleStorm(effect, wrapper, world).spawn() + } + currentEntity.after(seconds = 0.4f) { + val ballsparkle = BedrockParticleEffectRepository.getEffect(cobblemonResource("${ballType}/ballsparkle")) + ballsparkle?.let { effect -> + ParticleStorm(effect, wrapper, world).spawn() + } + } + } + } + } + } + } + currentEntity.after(seconds = BEAM_EXTEND_TIME) { + lerpOnClient(BEAM_SHRINK_TIME) { entityScaleModifier = it } + currentEntity.isInvisible = false + currentEntity.after(seconds = POKEBALL_AIR_TIME*2){ + ballOffset = 0f + ballRotOffset = 0f + sendOutPosition = null + } + } } } else -> { // Scaling down into pokeball entityScaleModifier = 1F beamStartTime = System.currentTimeMillis() + ballOffset = 0f + ballRotOffset = 0f + sendOutPosition = null afterOnClient(seconds = BEAM_EXTEND_TIME) { - val afterPoint2 = System.currentTimeMillis() - lerpOnClient(BEAM_SHRINK_TIME) { + lerpOnClient(BEAM_SHRINK_TIME) { entityScaleModifier = (1 - it) } } @@ -118,6 +226,27 @@ class PokemonClientDelegate : PoseableEntityState(), PokemonSideD override fun initialize(entity: PokemonEntity) { this.currentEntity = entity this.age = entity.age + + this.runtime.environment.getQueryStruct().addFunctions(mapOf( + "in_battle" to java.util.function.Function { + return@Function DoubleValue(currentEntity.isBattling) + }, + "shiny" to java.util.function.Function { + return@Function DoubleValue(currentEntity.pokemon.shiny) + }, + "form" to java.util.function.Function { + return@Function StringValue(currentEntity.pokemon.form.name) + }, + "width" to java.util.function.Function { + return@Function DoubleValue(currentEntity.boundingBox.xLength) + }, + "height" to java.util.function.Function { + return@Function DoubleValue(currentEntity.boundingBox.yLength) + }, + "weight" to java.util.function.Function { + return@Function DoubleValue(currentEntity.pokemon.species.weight.toDouble()) + } + )) } override fun tick(entity: PokemonEntity) { @@ -144,12 +273,16 @@ class PokemonClientDelegate : PoseableEntityState(), PokemonSideD fun cry() { val model = currentModel ?: return if (model is PokemonPoseableModel) { - if (cryAnimation != null && cryAnimation in statefulAnimations) { + if (cryAnimation != null && (cryAnimation in statefulAnimations || cryAnimation == primaryAnimation)) { return } val animation = model.cryAnimation(currentEntity, this) ?: return - statefulAnimations.add(animation) + if (animation is PrimaryAnimation) { + addPrimaryAnimation(animation) + } else { + statefulAnimations.add(animation) + } cryAnimation = animation } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/battle/subscreen/BattleGimmickButton.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/battle/subscreen/BattleGimmickButton.kt index 56a4246f86..0a3c350379 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/battle/subscreen/BattleGimmickButton.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/battle/subscreen/BattleGimmickButton.kt @@ -138,7 +138,8 @@ abstract class BattleGimmickButton(gimmick: ShowdownMoveset.Gimmick, val x: Floa pp = gimmickTemplate?.pp ?: moveTemplate.pp, priority = gimmickTemplate?.priority ?: moveTemplate.priority, critRatio = gimmickTemplate?.critRatio ?: moveTemplate.critRatio, - effectChances = gimmickTemplate?.effectChances ?: moveTemplate.effectChances + effectChances = gimmickTemplate?.effectChances ?: moveTemplate.effectChances, + actionEffect = null ) } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelButton.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelButton.kt index 4af9afe819..0f2f37a392 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelButton.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelButton.kt @@ -9,7 +9,9 @@ package com.cobblemon.mod.common.client.gui.interact.wheel import com.cobblemon.mod.common.api.gui.blitk +import net.minecraft.client.MinecraftClient import net.minecraft.client.gui.DrawContext +import net.minecraft.client.gui.tooltip.Tooltip import net.minecraft.client.gui.widget.ButtonWidget import net.minecraft.client.sound.SoundManager import net.minecraft.client.util.math.MatrixStack @@ -21,6 +23,7 @@ import org.joml.Vector4f class InteractWheelButton( private val iconResource: Identifier?, private val buttonResource: Identifier, + private val tooltipText: String?, x: Int, y: Int, private val isEnabled: Boolean, @@ -50,6 +53,12 @@ class InteractWheelButton( alpha = if (isEnabled) 1f else 0.4f ) + if(isHovered(mouseX.toFloat(), mouseY.toFloat())){ + tooltipText?.let { + context.drawTooltip(MinecraftClient.getInstance().textRenderer, Text.translatable(it), mouseX, mouseY) + } + } + if (iconResource != null) { val (iconX, iconY) = getIconPosition() val colour = this.colour() ?: Vector3f(1F, 1F, 1F) @@ -86,4 +95,8 @@ class InteractWheelButton( return mouseX in xMin..xMax && mouseY in yMin..yMax } + override fun getTooltip(): Tooltip? { + tooltipText?.let { return Tooltip.of(Text.translatable(it)) } ?: return super.getTooltip() + } + } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGUI.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGUI.kt index 447e2941c8..112ffdd149 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGUI.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGUI.kt @@ -9,15 +9,19 @@ package com.cobblemon.mod.common.client.gui.interact.wheel import com.cobblemon.mod.common.api.gui.blitk +import com.cobblemon.mod.common.client.gui.startselection.widgets.preview.ArrowButton import com.cobblemon.mod.common.util.cobblemonResource +import com.google.common.collect.Multimap import net.minecraft.client.gui.DrawContext +import net.minecraft.client.gui.Drawable +import net.minecraft.client.gui.Element +import net.minecraft.client.gui.Selectable import net.minecraft.client.gui.screen.Screen -import net.minecraft.client.util.math.MatrixStack import net.minecraft.text.Text +import kotlin.math.max -class InteractWheelGUI(private val options: Map, title: Text) : +class InteractWheelGUI(private val options: Multimap, title: Text) : Screen(title) { - companion object { const val SIZE = 138 const val OPTION_SIZE = 69 @@ -30,11 +34,59 @@ class InteractWheelGUI(private val options: Map() + private var maxPage = 1 + private var currentPage = 0 + override fun init() { - addButton(Orientation.TOP_LEFT, options[Orientation.TOP_LEFT]) - addButton(Orientation.TOP_RIGHT, options[Orientation.TOP_RIGHT]) - addButton(Orientation.BOTTOM_LEFT, options[Orientation.BOTTOM_LEFT]) - addButton(Orientation.BOTTOM_RIGHT, options[Orientation.BOTTOM_RIGHT]) + calculateMaxPage() + addButton(Orientation.TOP_LEFT, options[Orientation.TOP_LEFT].toList().getOrNull(0)) + addButton(Orientation.TOP_RIGHT, options[Orientation.TOP_RIGHT].toList().getOrNull(0)) + addButton(Orientation.BOTTOM_LEFT, options[Orientation.BOTTOM_LEFT].toList().getOrNull(0)) + addButton(Orientation.BOTTOM_RIGHT, options[Orientation.BOTTOM_RIGHT].toList().getOrNull(0)) + if(maxPage > 1){ + addDrawableChild(ArrowButton( + // x = left 3rd, y = center + pX = (width / 3) - 12, + pY = (height / 2) - 7, + pWidth = 9, + pHeight = 14, + right = false, + onPress = { + // loop to last page if on page 0, otherwise go to previous page + setPage(if(currentPage == 0) maxPage - 1 else currentPage - 1) + } + )) + addDrawableChild(ArrowButton( + // x = right 3rd, y = center + pX = (width / 3) * 2, + pY = (height / 2) - 7, + pWidth = 9, + pHeight = 14, + right = true, + onPress = { setPage((currentPage + 1) % max(1, maxPage)) } + )) + } + } + + private fun calculateMaxPage() { + maxPage = max( + max(options[Orientation.TOP_LEFT].size, + options[Orientation.TOP_RIGHT].size), + max(options[Orientation.BOTTOM_LEFT].size, + options[Orientation.BOTTOM_RIGHT].size) + ) + } + + private fun setPage(page: Int) { + currentPage = page + buttons.forEach { remove(it) } + buttons.clear() + val orientations = Orientation.values() + orientations.forEach { orientation -> + val option = options[orientation].toList().getOrNull(page) + addButton(orientation, option) + } } private fun addButton(orientation: Orientation, option: InteractWheelOption?) { @@ -42,6 +94,7 @@ class InteractWheelGUI(private val options: Map addDrawableChild(drawableElement: T): T where T : Element?, T : Drawable?, T : Selectable? { + if (drawableElement is InteractWheelButton) { + buttons.add(drawableElement) + } + return super.addDrawableChild(drawableElement) + } + override fun render(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) { val (x, y) = getDimensions() blitk( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGuiFactory.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGuiFactory.kt index b70c525ea0..10d8d427d0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGuiFactory.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelGuiFactory.kt @@ -9,6 +9,8 @@ package com.cobblemon.mod.common.client.gui.interact.wheel import com.cobblemon.mod.common.CobblemonNetwork +import com.cobblemon.mod.common.api.events.CobblemonEvents +import com.cobblemon.mod.common.api.events.pokemon.interaction.PokemonInteractionGUICreationEvent import com.cobblemon.mod.common.client.CobblemonClient import com.cobblemon.mod.common.net.messages.client.PlayerInteractOptionsPacket import com.cobblemon.mod.common.net.messages.server.BattleChallengePacket @@ -16,10 +18,10 @@ import com.cobblemon.mod.common.net.messages.server.battle.SpectateBattlePacket import com.cobblemon.mod.common.net.messages.server.pokemon.interact.InteractPokemonPacket import com.cobblemon.mod.common.net.messages.server.trade.AcceptTradeRequestPacket import com.cobblemon.mod.common.net.messages.server.trade.OfferTradePacket -import com.cobblemon.mod.common.pokemon.Pokemon import com.cobblemon.mod.common.util.cobblemonResource +import com.google.common.collect.ArrayListMultimap +import com.google.common.collect.Multimap import net.minecraft.client.MinecraftClient -import net.minecraft.entity.player.PlayerEntity import net.minecraft.text.Text import java.util.* import org.joml.Vector3f @@ -27,6 +29,7 @@ import org.joml.Vector3f fun createPokemonInteractGui(pokemonID: UUID, canMountShoulder: Boolean): InteractWheelGUI { val mountShoulder = InteractWheelOption( iconResource = cobblemonResource("textures/gui/interact/icon_shoulder.png"), + tooltipText = "cobblemon.ui.interact.mount.shoulder", onPress = { if (canMountShoulder) { InteractPokemonPacket(pokemonID, true).sendToServer() @@ -36,17 +39,18 @@ fun createPokemonInteractGui(pokemonID: UUID, canMountShoulder: Boolean): Intera ) val giveItem = InteractWheelOption( iconResource = cobblemonResource("textures/gui/interact/icon_held_item.png"), + tooltipText = "cobblemon.ui.interact.give.item", onPress = { InteractPokemonPacket(pokemonID, false).sendToServer() closeGUI() } ) - val options = mutableMapOf( - Orientation.TOP_RIGHT to giveItem, - ) + val options: Multimap = ArrayListMultimap.create() + options.put(Orientation.TOP_RIGHT, giveItem) if (canMountShoulder) { - options[Orientation.TOP_LEFT] = mountShoulder + options.put(Orientation.TOP_LEFT, mountShoulder) } + CobblemonEvents.POKEMON_INTERACTION_GUI_CREATION.post(PokemonInteractionGUICreationEvent(pokemonID, canMountShoulder, options)) return InteractWheelGUI(options, Text.translatable("cobblemon.ui.interact.pokemon")) } @@ -54,6 +58,7 @@ fun createPlayerInteractGui(optionsPacket: PlayerInteractOptionsPacket): Interac val trade = InteractWheelOption( iconResource = cobblemonResource("textures/gui/interact/icon_trade.png"), colour = { if (CobblemonClient.requests.tradeOffers.any { it.traderId == optionsPacket.targetId }) Vector3f(0F, 0.6F, 0F) else null }, + tooltipText = "cobblemon.ui.interact.trade", onPress = { val tradeOffer = CobblemonClient.requests.tradeOffers.find { it.traderId == optionsPacket.targetId } if (tradeOffer == null) { @@ -68,6 +73,7 @@ fun createPlayerInteractGui(optionsPacket: PlayerInteractOptionsPacket): Interac val battle = InteractWheelOption( iconResource = cobblemonResource("textures/gui/interact/icon_battle.png"), colour = { if (CobblemonClient.requests.battleChallenges.any { it.challengerId == optionsPacket.targetId }) Vector3f(0F, 0.6F, 0F) else null }, + tooltipText = "cobblemon.ui.interact.battle", onPress = { val battleRequest = CobblemonClient.requests.battleChallenges.find { it.challengerId == optionsPacket.targetId } // This can be improved in future with more detailed battle challenge data. @@ -81,19 +87,20 @@ fun createPlayerInteractGui(optionsPacket: PlayerInteractOptionsPacket): Interac onPress = { SpectateBattlePacket(optionsPacket.targetId).sendToServer() closeGUI() - } - ) - val options = mutableMapOf() + }, + tooltipText = "cobblemon.ui.interact.spectate" + ) + val options: Multimap = ArrayListMultimap.create() //The way things are positioned should probably be more thought out if more options are added optionsPacket.options.map { if (it.equals(PlayerInteractOptionsPacket.Options.TRADE)) { - options[Orientation.TOP_LEFT] = trade + options.put(Orientation.TOP_LEFT, trade) } if (it.equals(PlayerInteractOptionsPacket.Options.BATTLE)) { - options[Orientation.TOP_RIGHT] = battle + options.put(Orientation.TOP_RIGHT, battle) } if (it.equals(PlayerInteractOptionsPacket.Options.SPECTATE_BATTLE)) { - options[Orientation.TOP_RIGHT] = spectate + options.put(Orientation.TOP_RIGHT, spectate) } } return InteractWheelGUI(options, Text.translatable("cobblemon.ui.interact.player")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelOption.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelOption.kt index 51c329c92c..d1dfec960c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelOption.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/gui/interact/wheel/InteractWheelOption.kt @@ -13,6 +13,7 @@ import org.joml.Vector3f data class InteractWheelOption( val iconResource: Identifier, + val tooltipText: String?, val colour: () -> Vector3f? = { null }, val onPress: () -> Unit ) \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/net/animation/PlayPoseableAnimationHandler.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/animation/PlayPoseableAnimationHandler.kt new file mode 100644 index 0000000000..357d32820f --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/animation/PlayPoseableAnimationHandler.kt @@ -0,0 +1,32 @@ +/* + * 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.net.animation + +import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler +import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.net.messages.client.animation.PlayPoseableAnimationPacket +import com.cobblemon.mod.common.util.asExpression +import com.cobblemon.mod.common.util.resolve +import net.minecraft.client.MinecraftClient + +object PlayPoseableAnimationHandler : ClientNetworkPacketHandler { + override fun handle(packet: PlayPoseableAnimationPacket, client: MinecraftClient) { + val entity = client.world?.getEntityById(packet.entityId) ?: return + if (entity is Poseable) { + val delegate = entity.delegate + if (delegate is PoseableEntityState<*>) { + for (expr in packet.expressions) { + delegate.runtime.resolve(expr.asExpression()) + } + delegate.addFirstAnimation(packet.animation) + } + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/RunPosableMoLangHandler.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/RunPosableMoLangHandler.kt new file mode 100644 index 0000000000..d0ae547a9f --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/RunPosableMoLangHandler.kt @@ -0,0 +1,29 @@ +/* + * 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.net.effect + +import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler +import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.net.messages.client.effect.RunPosableMoLangPacket +import com.cobblemon.mod.common.util.asExpression +import com.cobblemon.mod.common.util.resolve +import net.minecraft.client.MinecraftClient + +object RunPosableMoLangHandler : ClientNetworkPacketHandler { + override fun handle(packet: RunPosableMoLangPacket, client: MinecraftClient) { + val entity = client.world?.getEntityById(packet.entityId) ?: return + if (entity is Poseable) { + val state = entity.delegate as? PoseableEntityState<*> ?: return + for (expression in packet.expressions.map { it.asExpression() }) { + state.runtime.resolve(expression) + } + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/SpawnSnowstormEntityParticleHandler.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/SpawnSnowstormEntityParticleHandler.kt new file mode 100644 index 0000000000..2ae03c963e --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/effect/SpawnSnowstormEntityParticleHandler.kt @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.client.net.effect + +import com.bedrockk.molang.runtime.MoLangRuntime +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct +import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup +import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler +import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient +import com.cobblemon.mod.common.client.particle.BedrockParticleEffectRepository +import com.cobblemon.mod.common.client.particle.ParticleStorm +import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormEntityParticlePacket +import net.minecraft.client.MinecraftClient +import net.minecraft.entity.Entity + +object SpawnSnowstormEntityParticleHandler : ClientNetworkPacketHandler { + override fun handle(packet: SpawnSnowstormEntityParticlePacket, client: MinecraftClient) { + val world = MinecraftClient.getInstance().world ?: return + val effect = BedrockParticleEffectRepository.getEffect(packet.effectId) ?: return + val entity = world.getEntityById(packet.entityId) as? Poseable ?: return + entity as Entity + val state = entity.delegate as PoseableEntityState<*> + val matrixWrapper = state.locatorStates[packet.locator] ?: state.locatorStates["root"]!! + + val particleRuntime = MoLangRuntime().setup().setupClient() + particleRuntime.environment.getQueryStruct().addFunction("entity") { state.runtime.environment.getQueryStruct() } + + val storm = ParticleStorm( + effect = effect, + matrixWrapper = matrixWrapper, + world = world, + runtime = particleRuntime, + sourceVelocity = { entity.velocity }, + sourceAlive = { !entity.isRemoved }, + sourceVisible = { !entity.isInvisible } + ) + + storm.spawn() + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/net/sound/PokemonCryHandler.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/net/sound/PokemonCryHandler.kt deleted file mode 100644 index adf09fa459..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/net/sound/PokemonCryHandler.kt +++ /dev/null @@ -1,25 +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.net.sound - -import com.cobblemon.mod.common.api.net.ClientNetworkPacketHandler -import com.cobblemon.mod.common.client.entity.PokemonClientDelegate -import com.cobblemon.mod.common.entity.pokemon.PokemonEntity -import com.cobblemon.mod.common.net.messages.client.sound.PokemonCryPacket -import net.minecraft.client.MinecraftClient - -object PokemonCryHandler : ClientNetworkPacketHandler { - override fun handle(packet: PokemonCryPacket, client: MinecraftClient) { - val entity = client.world?.getEntityById(packet.entityId) ?: return - if (entity is PokemonEntity) { - val delegate = entity.delegate as PokemonClientDelegate - delegate.cry() - } - } -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/particle/ParticleStorm.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/particle/ParticleStorm.kt index 60a3ef93b7..d21720121f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/particle/ParticleStorm.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/particle/ParticleStorm.kt @@ -37,9 +37,18 @@ class ParticleStorm( val sourceAlive: () -> Boolean = { true }, val sourceVisible: () -> Boolean = { true }, val onDespawn: () -> Unit = {}, - val runtime: MoLangRuntime = MoLangRuntime() + val runtime: MoLangRuntime = MoLangRuntime(), + val entity: Entity? = null ): NoRenderParticle(world, matrixWrapper.getOrigin().x, matrixWrapper.getOrigin().y, matrixWrapper.getOrigin().z) { fun spawn() { + if (entity != null) { + // TODO replace with a generified call to if (entity is MoLangEntity) entity.applyVariables(env) or w/e + runtime.environment.setSimpleVariable("entity_width", DoubleValue(entity.boundingBox.xLength)) + runtime.environment.setSimpleVariable("entity_height", DoubleValue(entity.boundingBox.yLength)) + val longerDiameter = entity.boundingBox.run { if (xLength > yLength) xLength else yLength } + runtime.environment.setSimpleVariable("entity_size", DoubleValue(longerDiameter)) + runtime.environment.setSimpleVariable("entity_radius", DoubleValue(longerDiameter / 2)) + } MinecraftClient.getInstance().particleManager.addParticle(this) } @@ -58,8 +67,6 @@ class ParticleStorm( // The idea is that some instantaneous particle effects could teeeechnically be over before they start. var hasPlayedOnce = false - var entity: Entity? = null - companion object { var contextStorm: ParticleStorm? = null } @@ -119,11 +126,10 @@ class ParticleStorm( when (effect.emitter.lifetime.getAction(runtime, started, age / 20.0)) { ParticleEmitterAction.GO -> { + effect.curves.forEach { it.apply(runtime) } val toEmit = effect.emitter.rate.getEmitCount(runtime, started, particles.size) started = true - repeat(times = toEmit) { - spawnParticle() - } + repeat(times = toEmit) { spawnParticle() } } ParticleEmitterAction.NOTHING -> {} ParticleEmitterAction.STOP -> stopped = true @@ -139,8 +145,8 @@ class ParticleStorm( val center = transformPosition(effect.emitter.shape.getCenter(runtime, entity)) val newPosition = transformPosition(effect.emitter.shape.getNewParticlePosition(runtime, entity)) - val initialVelocity = effect.particle.motion.getInitialVelocity(runtime, particlePos = newPosition, emitterPos = center) - val velocity = (if (effect.space.localPosition) transformDirection(initialVelocity) else initialVelocity) + val initialVelocity = effect.particle.motion.getInitialVelocity(runtime, storm = this, particlePos = newPosition, emitterPos = center) + val velocity = initialVelocity .multiply(1 / 20.0) .add(if (effect.space.localVelocity) sourceVelocity() else Vec3d.ZERO) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/SnowstormParticle.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/SnowstormParticle.kt index e68e37f5de..99a7f4dc53 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/SnowstormParticle.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/SnowstormParticle.kt @@ -12,16 +12,19 @@ import com.bedrockk.molang.runtime.struct.VariableStruct import com.bedrockk.molang.runtime.value.DoubleValue import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.ModAPI +import com.cobblemon.mod.common.api.snowstorm.ParticleMaterial import com.cobblemon.mod.common.api.snowstorm.UVDetails import com.cobblemon.mod.common.client.particle.ParticleStorm import com.cobblemon.mod.common.util.resolveBoolean import com.cobblemon.mod.common.util.resolveDouble +import com.mojang.blaze3d.platform.GlStateManager +import com.mojang.blaze3d.systems.RenderSystem import kotlin.math.abs import net.minecraft.client.MinecraftClient import net.minecraft.client.particle.Particle import net.minecraft.client.particle.ParticleTextureSheet import net.minecraft.client.particle.ParticleTextureSheet.NO_RENDER -import net.minecraft.client.particle.ParticleTextureSheet.PARTICLE_SHEET_LIT +import net.minecraft.client.particle.ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT import net.minecraft.client.render.BufferBuilder import net.minecraft.client.render.Camera import net.minecraft.client.render.VertexConsumer @@ -32,6 +35,9 @@ import net.minecraft.util.math.Direction import net.minecraft.util.math.MathHelper import net.minecraft.util.math.Vec3d import net.minecraft.util.shape.VoxelShapes +import org.joml.AxisAngle4d +import org.joml.Quaterniond +import org.joml.Vector3d import org.joml.Vector3f class SnowstormParticle( @@ -62,9 +68,26 @@ class SnowstormParticle( val random3 = variableStruct.map["particle_random_3"] val random4 = variableStruct.map["particle_random_4"] + var localX = x - storm.getX() + var localY = y - storm.getY() + var localZ = z - storm.getZ() + var rotatedLocal = Vector3d(localX, localY, localZ) + + var prevLocalX = localX + var prevLocalY = localY + var prevLocalZ = localZ + var prevRotatedLocal = Vector3d(localX, localY, localZ) + + val currentRotation = AxisAngle4d(0.0, 0.0, 1.0, 0.0) + + var oldAxisRotation = AxisAngle4d(0.0, 0.0, 1.0, 0.0) + var axisRotation = AxisAngle4d(0.0, 0.0, 1.0, 0.0) + + val uvDetails = UVDetails() var viewDirection = Vec3d.ZERO + var originPos = Vec3d(storm.getX(), storm.getY(), storm.getZ()) fun getSpriteFromAtlas(): Sprite { val atlas = MinecraftClient.getInstance().particleManager.particleAtlasTexture @@ -94,11 +117,13 @@ class SnowstormParticle( maxAge = (storm.runtime.resolveDouble(storm.effect.particle.maxAge) * 20).toInt() storm.particles.add(this) gravityStrength = 0F - particleTextureSheet = if (invisible) { - NO_RENDER - } else { - PARTICLE_SHEET_LIT - } + particleTextureSheet = if (invisible) NO_RENDER else PARTICLE_SHEET_TRANSLUCENT +// when (storm.effect.particle.material) { +// ParticleMaterial.ALPHA -> ParticleMaterials.ALPHA +// ParticleMaterial.OPAQUE -> ParticleMaterials.OPAQUE +// ParticleMaterial.BLEND -> ParticleMaterials.BLEND +// ParticleMaterial.ADD -> ParticleMaterials.ADD +// } } override fun buildGeometry(vertexConsumer: VertexConsumer, camera: Camera, tickDelta: Float) { @@ -112,32 +137,51 @@ class SnowstormParticle( setParticleAgeInRuntime() storm.effect.curves.forEach { it.apply(storm.runtime) } storm.runtime.execute(storm.effect.particle.renderExpressions) + // // TODO need to implement the other materials but not sure exactly what they are GL wise -// when (storm.effect.particle.material) { -// ParticleMaterial.ALPHA -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA) -// ParticleMaterial.OPAQUE -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_COLOR, GlStateManager.DstFactor.ZERO) -// ParticleMaterial.BLEND -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA) -// } + when (storm.effect.particle.material) { + // Alpha is the usual effect of "Cutout", this needs a shader but fabric fucking sucks so... Ignoring it. + ParticleMaterial.ALPHA -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA) + ParticleMaterial.OPAQUE -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_COLOR, GlStateManager.DstFactor.ZERO) + ParticleMaterial.BLEND -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA) + ParticleMaterial.ADD -> RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE) + } vertexConsumer as BufferBuilder val vec3d = camera.pos - val f = (MathHelper.lerp(tickDelta.toDouble(), prevPosX, x) - vec3d.getX()).toFloat() - val g = (MathHelper.lerp(tickDelta.toDouble(), prevPosY, y) - vec3d.getY()).toFloat() - val h = (MathHelper.lerp(tickDelta.toDouble(), prevPosZ, z) - vec3d.getZ()).toFloat() + + val interpLocalX = MathHelper.lerp(tickDelta.toDouble(), prevLocalX, localX) + val interpLocalY = MathHelper.lerp(tickDelta.toDouble(), prevLocalY, localY) + val interpLocalZ = MathHelper.lerp(tickDelta.toDouble(), prevLocalZ, localZ) + + val pos = if (storm.effect.space.localRotation) { + val interpRotation = MathHelper.lerp(tickDelta.toDouble(), 0.0, currentRotation.angle) + val vec = Vector3d(interpLocalX, interpLocalY, interpLocalZ) + oldAxisRotation.transform(vec) + currentRotation.get(AxisAngle4d()).also { it.angle = interpRotation }.transform(vec) + } else { + Vector3d(interpLocalX, interpLocalY, interpLocalZ) + } + + val f = (pos.x + originPos.x - vec3d.getX()).toFloat() + val g = (pos.y + originPos.y - vec3d.getY()).toFloat() + val h = (pos.z + originPos.z - vec3d.getZ()).toFloat() val quaternion = storm.effect.particle.cameraMode.getRotation( matrixWrapper = storm.matrixWrapper, prevAngle = prevAngle, angle = angle, deltaTicks = tickDelta, + particlePosition = Vec3d(x, y, z), + cameraPosition = camera.pos, cameraAngle = camera.rotation, cameraYaw = camera.yaw, cameraPitch = camera.pitch, viewDirection = viewDirection ) - val xSize = storm.runtime.resolveDouble(storm.effect.particle.sizeX).toFloat() / 2 - val ySize = storm.runtime.resolveDouble(storm.effect.particle.sizeY).toFloat() / 2 + val xSize = storm.runtime.resolveDouble(storm.effect.particle.sizeX).toFloat() + val ySize = storm.runtime.resolveDouble(storm.effect.particle.sizeY).toFloat() val particleVertices = arrayOf( Vector3f(-xSize, -ySize, 0.0f), @@ -188,12 +232,14 @@ class SnowstormParticle( .color(colour.x, colour.y, colour.z, colour.w) .light(p) .next() -// tessellator.draw() } override fun tick() { - applyRandoms() + if (storm.effect.space.localPosition) { + originPos = storm.matrixWrapper.getOrigin() + } + applyRandoms() setParticleAgeInRuntime() storm.runtime.execute(storm.effect.particle.updateExpressions) angularVelocity += storm.effect.particle.rotation.getAngularAcceleration(storm.runtime, angularVelocity) / 20 @@ -225,13 +271,20 @@ class SnowstormParticle( prevPosY = y prevPosZ = z + prevLocalX = localX + prevLocalY = localY + prevLocalZ = localZ + + oldAxisRotation = axisRotation + prevRotatedLocal = oldAxisRotation.transform(Vector3d(prevLocalX, prevLocalY, prevLocalZ)) + + storm.matrixWrapper.matrix.getRotation(axisRotation) + rotatedLocal = axisRotation.transform(Vector3d(prevLocalX, prevLocalY, prevLocalZ)) + Quaterniond().rotateTo(prevRotatedLocal, rotatedLocal).get(currentRotation) + age++ - if (storm.effect.space.localPosition) { - this.move(velocityX + (storm.getX() - storm.getPrevX()), velocityY + (storm.getY() - storm.getPrevY()), velocityZ + (storm.getZ() - storm.getPrevZ())) - } else { - this.move(velocityX, velocityY, velocityZ) - } + this.move(velocityX, velocityY, velocityZ) } override fun move(dx: Double, dy: Double, dz: Double) { @@ -239,6 +292,7 @@ class SnowstormParticle( val radius = storm.runtime.resolveDouble(collision.radius) boundingBox = Box.of(Vec3d(x, y, z), radius, radius, radius) if (dx == 0.0 && dy == 0.0 && dz == 0.0) { + updatePosition() return } @@ -246,9 +300,7 @@ class SnowstormParticle( var dy = dy var dz = dz - // field_21507 stoppedByCollision - - if (storm.runtime.resolveBoolean(collision.enabled) && radius > 0.0) { + if (storm.runtime.resolveBoolean(collision.enabled) && radius > 0.0 && !storm.effect.space.isLocalSpace) { collidesWithWorld = true val newMovement = checkCollision(Vec3d(dx, dy, dz)) @@ -274,9 +326,9 @@ class SnowstormParticle( if (dx != 0.0 || dy != 0.0 || dz != 0.0) { boundingBox = boundingBox.offset(dx, dy, dz) - x += dx - y += dy - z += dz + localX += dx + localY += dy + localZ += dz } // if (abs(dy) >= 9.999999747378752E-6 && abs(dy) < 9.999999747378752E-6) { @@ -292,11 +344,19 @@ class SnowstormParticle( } else { collidesWithWorld = false if (dx != 0.0 || dy != 0.0 || dz != 0.0) { - x += dx - y += dy - z += dz + localX += dx + localY += dy + localZ += dz } } + updatePosition() + } + + fun updatePosition() { + val localVector = if (storm.effect.space.localRotation) storm.transformDirection(Vec3d(localX, localY, localZ)) else Vec3d(localX, localY, localZ) + x = localVector.x + originPos.x + y = localVector.y + originPos.y + z = localVector.z + originPos.z } private fun checkCollision(movement: Vec3d): Vec3d { @@ -309,7 +369,6 @@ class SnowstormParticle( val collisions = world.getBlockCollisions(null, box.stretch(movement)) if (collisions.none()) { colliding = false -// println("No collisions") return movement } else if (expiresOnContact) { markDead() @@ -417,8 +476,6 @@ class SnowstormParticle( } } - - var newMovement = Vec3d(xMovement, yMovement, zMovement) if (sliding && !bouncing) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilCompartmentRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilAnalyzerRenderer.kt similarity index 78% rename from common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilCompartmentRenderer.kt rename to common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilAnalyzerRenderer.kt index 0e2827fc2d..57a0fd7218 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilCompartmentRenderer.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilAnalyzerRenderer.kt @@ -9,7 +9,7 @@ package com.cobblemon.mod.common.client.render.block import com.cobblemon.mod.common.CobblemonBlocks -import com.cobblemon.mod.common.block.entity.fossil.FossilCompartmentBlockEntity +import com.cobblemon.mod.common.block.entity.FossilAnalyzerBlockEntity import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure import net.minecraft.block.BlockState import net.minecraft.block.HorizontalFacingBlock @@ -22,10 +22,10 @@ import net.minecraft.client.util.math.MatrixStack import net.minecraft.util.math.Direction import net.minecraft.util.math.RotationAxis -class FossilCompartmentRenderer(ctx: BlockEntityRendererFactory.Context) : BlockEntityRenderer { +class FossilAnalyzerRenderer(ctx: BlockEntityRendererFactory.Context) : BlockEntityRenderer { override fun render( - entity: FossilCompartmentBlockEntity, + entity: FossilAnalyzerBlockEntity, tickDelta: Float, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider?, @@ -33,7 +33,7 @@ class FossilCompartmentRenderer(ctx: BlockEntityRendererFactory.Context) : Block overlay: Int ) { val blockState = if (entity.world != null) entity.cachedState - else (CobblemonBlocks.FOSSIL_COMPARTMENT.defaultState.with(HorizontalFacingBlock.FACING, Direction.SOUTH) as BlockState) + else (CobblemonBlocks.FOSSIL_ANALYZER.defaultState.with(HorizontalFacingBlock.FACING, Direction.SOUTH) as BlockState) val yRot = blockState.get(HorizontalFacingBlock.FACING).asRotation() //We shouldnt have to do any complex rendering when the block isn't a multiblock if (entity.multiblockStructure == null) { @@ -44,10 +44,11 @@ class FossilCompartmentRenderer(ctx: BlockEntityRendererFactory.Context) : Block struct.fossilInventory.forEachIndexed { index, fossilStack -> matrices.push() - matrices.translate(0.5, 0.4 + (index * 0.05F), 0.5) - matrices.scale(0.8F, 0.8F, 0.8F) + matrices.translate(0.5, 0.4 + (index * 0.1F), 0.55) + matrices.scale(0.7F, 0.7F, 0.7F) + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180F)) matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-yRot)) - matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(-90F)) + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90F)) MinecraftClient.getInstance().itemRenderer.renderItem(fossilStack, ModelTransformationMode.NONE, light, overlay, matrices, vertexConsumers, entity.world, 0) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilTubeRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilTubeRenderer.kt deleted file mode 100644 index fe073d8119..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/FossilTubeRenderer.kt +++ /dev/null @@ -1,165 +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.block - -import com.cobblemon.mod.common.CobblemonBlocks -import com.cobblemon.mod.common.block.entity.fossil.FossilTubeBlockEntity -import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure -import com.cobblemon.mod.common.client.CobblemonBakingOverrides -import com.cobblemon.mod.common.client.render.models.blockbench.repository.FossilModelRepository -import net.minecraft.block.HorizontalFacingBlock -import net.minecraft.client.render.OverlayTexture -import net.minecraft.client.render.RenderLayer -import net.minecraft.client.render.VertexConsumerProvider -import net.minecraft.client.render.block.entity.BlockEntityRenderer -import net.minecraft.client.render.block.entity.BlockEntityRendererFactory -import net.minecraft.client.util.math.MatrixStack -import net.minecraft.util.math.Direction -import net.minecraft.util.math.RotationAxis - -class FossilTubeRenderer(ctx: BlockEntityRendererFactory.Context) : BlockEntityRenderer { - override fun render( - entity: FossilTubeBlockEntity, - tickDelta: Float, - matrices: MatrixStack, - vertexConsumers: VertexConsumerProvider, - light: Int, - overlay: Int - ) { - if (entity.multiblockStructure == null) { - return - } - val struct = entity.multiblockStructure as FossilMultiblockStructure - val connectionDir = struct.tubeConnectorDirection - // FYI, rendering models this way ignores the pivots set in the model, so set the pivots manually - when (connectionDir) { - Direction.NORTH -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(0f), 0.5f, 0f, 0.5f) - Direction.EAST -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(270f), 0.5f, 0f, 0.5f) - Direction.SOUTH -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180f), 0.5f, 0f, 0.5f) - Direction.WEST -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(90f), 0.5f, 0f, 0.5f) - else -> {} - } - - val cutoutBuffer = vertexConsumers.getBuffer(RenderLayer.getCutout()) - if (connectionDir != null) { - matrices.push() - CONNECTOR_MODEL.getQuads(entity.cachedState, null, entity.world?.random).forEach { quad -> - cutoutBuffer.quad(matrices.peek(), quad, 0.75f, 0.75f, 0.75f, light, OverlayTexture.DEFAULT_UV) - } - matrices.pop() - } - val fillLevel = struct.fillLevel - if (fillLevel == 0 && struct.createdPokemon == null) { - return - } - - if (struct.isRunning() or (struct.createdPokemon != null)) renderBaby(entity, tickDelta, matrices, vertexConsumers, light, overlay) - - matrices.push() - val transparentBuffer = vertexConsumers.getBuffer(RenderLayer.getTranslucent()) - - val fluidModel = if (struct.isRunning()) FLUID_MODELS[8] - else if (struct.createdPokemon != null) FLUID_MODELS[7] - else FLUID_MODELS[fillLevel-1] - fluidModel.getQuads(entity.cachedState, null, entity.world?.random).forEach { quad -> - transparentBuffer?.quad(matrices.peek(), quad, 0.75f, 0.75f, 0.75f, light, OverlayTexture.DEFAULT_UV) - } - - - matrices.pop() - } - - private fun renderBaby( - entity: FossilTubeBlockEntity, - tickDelta: Float, - matrices: MatrixStack, - vertexConsumers: VertexConsumerProvider, - light: Int, - overlay: Int - ) { - val struc = entity.multiblockStructure as? FossilMultiblockStructure ?: return - val fossil = struc.resultingFossil ?: return - val timeRemaining = struc.timeRemaining - - val tankBlockState = entity.world?.getBlockState(entity.pos) ?: return - if(tankBlockState.block != CobblemonBlocks.FOSSIL_TUBE) { - // Block has been destroyed/replaced - return - } - val tankDirection = tankBlockState.get(HorizontalFacingBlock.FACING) - val struct = entity.multiblockStructure as FossilMultiblockStructure - val connectionDir = struct.tubeConnectorDirection - - val aspects = emptySet() - val state = struc.fossilState - state.updatePartialTicks(tickDelta) - - val model = FossilModelRepository.getPoser(fossil.identifier, aspects) - val texture = FossilModelRepository.getTexture(fossil.identifier, aspects, state.animationSeconds) - val vertexConsumer = vertexConsumers.getBuffer(model.getLayer(texture)) - val pose = model.poses.values.first() - state.currentModel = model - state.setPose(pose.poseName) - state.timeEnteredPose = 0F - - val scale: Float = if (timeRemaining == 0) { - model.maxScale - } else { - (1 - (timeRemaining / FossilMultiblockStructure.TIME_TO_TAKE.toFloat())) * model.maxScale - } - - matrices.push() - matrices.translate(0.5, 0.5 + model.yTranslation, 0.5); - matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180F)) - if(tankDirection.rotateCounterclockwise(Direction.Axis.Y) == connectionDir) { - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-90F)) - } else if(tankDirection == connectionDir) { - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180F)) - } else if(tankDirection.opposite != connectionDir) { - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(90F)) - } - - matrices.push() - matrices.scale(scale, scale, scale) - - model.setupAnimStateful( - entity = null, - state = state, - headYaw = 0F, - headPitch = 0F, - limbSwing = 0F, - limbSwingAmount = 0F, - ageInTicks = state.animationSeconds * 20 - ) - model.render(matrices, vertexConsumer, light, overlay, 1.0f, 1.0f, 1.0f, 1.0f) - model.withLayerContext(vertexConsumers, state, FossilModelRepository.getLayers(fossil.identifier, aspects)) { - model.render(matrices, vertexConsumer, light, OverlayTexture.DEFAULT_UV, 1F, 1F, 1F, 1F) - } - model.setDefault() - matrices.pop() - matrices.pop() - - } - - companion object { - val FLUID_MODELS = listOf( - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_1.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_2.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_3.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_4.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_5.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_6.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_7.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_CHUNKED_8.getModel(), - CobblemonBakingOverrides.FOSSIL_FLUID_BUBBLING.getModel() - ) - - val CONNECTOR_MODEL = CobblemonBakingOverrides.RESTORATION_TANK_CONNECTOR.getModel() - } -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/RestorationTankRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/RestorationTankRenderer.kt new file mode 100644 index 0000000000..1af4945e22 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/block/RestorationTankRenderer.kt @@ -0,0 +1,202 @@ +/* + * 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.block + +import com.cobblemon.mod.common.CobblemonBlocks +import com.cobblemon.mod.common.block.entity.RestorationTankBlockEntity +import com.cobblemon.mod.common.block.multiblock.FossilMultiblockStructure +import com.cobblemon.mod.common.client.CobblemonBakingOverrides +import com.cobblemon.mod.common.client.render.models.blockbench.repository.FossilModelRepository +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.parabolaFunction +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.rerange +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.timeDilate +import com.cobblemon.mod.common.util.cobblemonResource +import kotlin.math.pow +import net.minecraft.block.HorizontalFacingBlock +import net.minecraft.client.render.OverlayTexture +import net.minecraft.client.render.RenderLayer +import net.minecraft.client.render.VertexConsumerProvider +import net.minecraft.client.render.block.entity.BlockEntityRenderer +import net.minecraft.client.render.block.entity.BlockEntityRendererFactory +import net.minecraft.client.util.math.MatrixStack +import net.minecraft.util.math.Direction +import net.minecraft.util.math.RotationAxis + +class RestorationTankRenderer(ctx: BlockEntityRendererFactory.Context) : BlockEntityRenderer { + override fun render( + entity: RestorationTankBlockEntity, + tickDelta: Float, + matrices: MatrixStack, + vertexConsumers: VertexConsumerProvider, + light: Int, + overlay: Int + ) { + if (entity.multiblockStructure == null) { + return + } + val struct = entity.multiblockStructure as FossilMultiblockStructure + val connectionDir = struct.tankConnectorDirection + // FYI, rendering models this way ignores the pivots set in the model, so set the pivots manually + when (connectionDir) { + Direction.NORTH -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(0f), 0.5f, 0f, 0.5f) + Direction.EAST -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(270f), 0.5f, 0f, 0.5f) + Direction.SOUTH -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180f), 0.5f, 0f, 0.5f) + Direction.WEST -> matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(90f), 0.5f, 0f, 0.5f) + else -> {} + } + + val cutoutBuffer = vertexConsumers.getBuffer(RenderLayer.getCutout()) + if (connectionDir != null) { + matrices.push() + CONNECTOR_MODEL.getQuads(entity.cachedState, null, entity.world?.random).forEach { quad -> + cutoutBuffer.quad(matrices.peek(), quad, 0.75f, 0.75f, 0.75f, light, OverlayTexture.DEFAULT_UV) + } + matrices.pop() + } + val fillLevel = struct.fillLevel + if (fillLevel == 0 && struct.createdPokemon == null) { + return + } + + if (struct.isRunning() or (struct.createdPokemon != null)) renderFetus(entity, tickDelta, matrices, vertexConsumers, light, overlay) + + matrices.push() + val transparentBuffer = vertexConsumers.getBuffer(RenderLayer.getTranslucent()) + + val fluidModel = if (struct.isRunning()) FLUID_MODELS[8] + else if (struct.createdPokemon != null) FLUID_MODELS[7] + else FLUID_MODELS[fillLevel-1] + fluidModel.getQuads(entity.cachedState, null, entity.world?.random).forEach { quad -> + transparentBuffer?.quad(matrices.peek(), quad, 0.75f, 0.75f, 0.75f, light, OverlayTexture.DEFAULT_UV) + } + + matrices.pop() + } + + private fun renderFetus( + entity: RestorationTankBlockEntity, + tickDelta: Float, + matrices: MatrixStack, + vertexConsumers: VertexConsumerProvider, + light: Int, + overlay: Int + ) { + val struc = entity.multiblockStructure as? FossilMultiblockStructure ?: return + val fossil = struc.resultingFossil ?: return + val timeRemaining = struc.timeRemaining + + val tankBlockState = entity.world?.getBlockState(entity.pos) ?: return + if (tankBlockState.block != CobblemonBlocks.RESTORATION_TANK) { + // Block has been destroyed/replaced + return + } + val tankDirection = tankBlockState.get(HorizontalFacingBlock.FACING) + val struct = entity.multiblockStructure as FossilMultiblockStructure + val connectionDir = struct.tankConnectorDirection + + val aspects = emptySet() + val state = struc.fossilState + state.updatePartialTicks(tickDelta) + + val completionPercentage = (1 - timeRemaining / FossilMultiblockStructure.TIME_TO_TAKE.toFloat()).coerceIn(0F, 1F) + val fossilFetusModel = FossilModelRepository.getPoser(fossil.identifier, aspects) + + val embryo1Scale = EMBRYO_CURVE_1(completionPercentage) + val embryo2Scale = EMBRYO_CURVE_2(completionPercentage) + val embryo3Scale = EMBRYO_CURVE_3(completionPercentage) + val fossilScale = FOSSIL_CURVE(completionPercentage) + + val identifiersAndScales = listOf( + Pair(EMBRYO_IDENTIFIERS[0], embryo1Scale), + Pair(EMBRYO_IDENTIFIERS[1], embryo2Scale), + Pair(EMBRYO_IDENTIFIERS[2], embryo3Scale), + Pair(fossil.identifier, fossilScale) + ) + + identifiersAndScales.forEach { (identifier, scale) -> + val model = FossilModelRepository.getPoser(identifier, aspects) + val texture = FossilModelRepository.getTexture(identifier, aspects, state.animationSeconds) + + if (scale > 0F) { + val vertexConsumer = vertexConsumers.getBuffer(model.getLayer(texture)) + val pose = model.poses.values.first() + state.currentModel = model + state.setPose(pose.poseName) + state.timeEnteredPose = 0F + + val scale = if (timeRemaining == 0) { + model.maxScale + } else { + scale * model.maxScale + } + + matrices.push() + matrices.translate(0.5, 1.0 + fossilFetusModel.yTranslation, 0.5); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180F)) + if (tankDirection.rotateCounterclockwise(Direction.Axis.Y) == connectionDir) { + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-90F)) + } else if (tankDirection == connectionDir) { + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180F)) + } else if (tankDirection.opposite != connectionDir) { + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(90F)) + } + + matrices.push() + matrices.scale(scale, scale, scale) + matrices.translate(0.0, model.yGrowthPoint.toDouble(), 0.0) + model.setupAnimStateful( + entity = null, + state = state, + headYaw = 0F, + headPitch = 0F, + limbSwing = 0F, + limbSwingAmount = 0F, + ageInTicks = state.animationSeconds * 20 + ) + model.render(matrices, vertexConsumer, light, overlay, 1.0f, 1.0f, 1.0f, 1.0f) + model.withLayerContext(vertexConsumers, state, FossilModelRepository.getLayers(fossil.identifier, aspects)) { + model.render(matrices, vertexConsumer, light, OverlayTexture.DEFAULT_UV, 1F, 1F, 1F, 1F) + } + model.setDefault() + matrices.pop() + matrices.pop() + } + + } + } + + companion object { + val FLUID_MODELS = listOf( + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_1.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_2.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_3.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_4.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_5.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_6.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_7.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_CHUNKED_8.getModel(), + CobblemonBakingOverrides.RESTORATION_TANK_FLUID_BUBBLING.getModel() + ) + + val CONNECTOR_MODEL = CobblemonBakingOverrides.RESTORATION_TANK_CONNECTOR.getModel() + + val EMBRYO_IDENTIFIERS = listOf( + cobblemonResource("embryo_stage1"), + cobblemonResource("embryo_stage2"), + cobblemonResource("embryo_stage3") + ) + + val EMBRYO_CURVE_1 = parabolaFunction(peak = 0.5F, period = 1F).rerange(0.0F, 0.8F).timeDilate(2.5F) + val EMBRYO_CURVE_2 = parabolaFunction(peak = 0.9F, period = 1F).rerange(0.2F, 1.2F).timeDilate(2.5F) + val EMBRYO_CURVE_3 = parabolaFunction(peak = 1F, period = 1F).rerange(0.6F, 1.4F).timeDilate(2.5F) + val FOSSIL_CURVE: WaveFunction = { t: Float -> -0.4F * (t - 2.5F).pow(2) + 1F }.timeDilate(2.5F) + + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/generic/GenericBedrockRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/generic/GenericBedrockRenderer.kt new file mode 100644 index 0000000000..906e68909f --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/generic/GenericBedrockRenderer.kt @@ -0,0 +1,51 @@ +/* + * 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.generic + +import com.cobblemon.mod.common.client.entity.GenericBedrockClientDelegate +import com.cobblemon.mod.common.client.render.models.blockbench.repository.GenericBedrockEntityModelRepository +import com.cobblemon.mod.common.client.render.models.blockbench.repository.PokemonModelRepository +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity +import net.minecraft.client.render.OverlayTexture +import net.minecraft.client.render.VertexConsumerProvider +import net.minecraft.client.render.entity.EntityRenderer +import net.minecraft.client.render.entity.EntityRendererFactory +import net.minecraft.client.util.math.MatrixStack +import net.minecraft.util.math.RotationAxis + +class GenericBedrockRenderer(context: EntityRendererFactory.Context) : EntityRenderer(context) { + override fun getTexture(entity: GenericBedrockEntity) = GenericBedrockEntityModelRepository.getTexture(entity.category, entity.aspects, (entity.delegate as GenericBedrockClientDelegate).animationSeconds) + override fun render(entity: GenericBedrockEntity, yaw: Float, partialTicks: Float, poseStack: MatrixStack, buffer: VertexConsumerProvider, packedLight: Int) { + if (entity.isInvisible) { + return + } + + val model = GenericBedrockEntityModelRepository.getPoser(entity.category, entity.aspects) + poseStack.push() + poseStack.scale(1.0F, -1.0F, 1.0F) + poseStack.scale(entity.scale, entity.scale, entity.scale) + poseStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(yaw)) + val vertexConsumer = buffer.getBuffer(model.getLayer(getTexture(entity))) + + val state = entity.delegate as GenericBedrockClientDelegate + state.updatePartialTicks(partialTicks) + model.setLayerContext(buffer, state, PokemonModelRepository.getLayers(entity.category, entity.aspects)) + model.setAngles(entity, 0f, 0f, entity.age + partialTicks, 0F, 0F) + model.render(poseStack, vertexConsumer, packedLight, OverlayTexture.DEFAULT_UV, 1.0f, 1.0f, 1.0f, 1.0f) + + model.green = 1F + model.blue = 1F + model.red = 1F + + model.resetLayerContext() + + poseStack.pop() + super.render(entity, yaw, partialTicks, poseStack, buffer, packedLight) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/CobblemonRenderLayers.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/CobblemonRenderLayers.kt index cae7489d3c..534a9f2e00 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/CobblemonRenderLayers.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/CobblemonRenderLayers.kt @@ -9,9 +9,14 @@ package com.cobblemon.mod.common.client.render.layer import com.cobblemon.mod.common.util.cobblemonResource -import net.minecraft.client.MinecraftClient -import net.minecraft.client.render.* +import net.minecraft.client.render.RenderLayer import net.minecraft.client.render.RenderPhase.* +import net.minecraft.client.render.VertexFormat +import net.minecraft.client.render.VertexFormats +import net.minecraft.util.Identifier +import net.minecraft.util.Util +import java.util.function.BiFunction +import java.util.function.Function object CobblemonRenderLayers { val BERRY_LAYER = run { @@ -36,4 +41,43 @@ object CobblemonRenderLayers { ) } + val ENTITY_TRANSLUCENT: BiFunction = Util.memoize { texture: Identifier, affectsOutline: kotlin.Boolean -> + var multiPhaseParameters: RenderLayer.MultiPhaseParameters = + RenderLayer.MultiPhaseParameters.builder() + .program(ENTITY_TRANSLUCENT_PROGRAM) + .texture(Texture(texture, false, false)) + .transparency(TRANSLUCENT_TRANSPARENCY) + .cull(DISABLE_CULLING) + .lightmap(ENABLE_LIGHTMAP) + .overlay(ENABLE_OVERLAY_COLOR).build(affectsOutline) + RenderLayer.of( + "entity_translucent", + VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, + VertexFormat.DrawMode.QUADS, + 256, + true, + true, + multiPhaseParameters + ) + }; + + val ENTITY_CUTOUT: Function = Util.memoize { texture: Identifier -> + val multiPhaseParameters = + RenderLayer.MultiPhaseParameters.builder() + .program(ENTITY_CUTOUT_PROGRAM) + .texture(Texture(texture, false, false)) + .transparency(NO_TRANSPARENCY) + .lightmap(ENABLE_LIGHTMAP) + .overlay(ENABLE_OVERLAY_COLOR).build(true) + RenderLayer.of( + "entity_cutout", + VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, + VertexFormat.DrawMode.QUADS, + 256, + true, + false, + multiPhaseParameters + ) + }; + } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/PokemonOnShoulderRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/PokemonOnShoulderRenderer.kt index b19d6d4e19..1f30919fbd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/PokemonOnShoulderRenderer.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/layer/PokemonOnShoulderRenderer.kt @@ -29,12 +29,11 @@ import net.minecraft.entity.player.PlayerEntity import net.minecraft.nbt.NbtCompound import net.minecraft.nbt.NbtElement import net.minecraft.util.Identifier +import net.minecraft.util.Pair import net.minecraft.util.math.RotationAxis class PokemonOnShoulderRenderer(renderLayerParent: FeatureRendererContext>) : FeatureRenderer>(renderLayerParent) { - private val playerCache = hashMapOf() - override fun render( matrixStack: MatrixStack, buffer: VertexConsumerProvider, @@ -68,7 +67,7 @@ class PokemonOnShoulderRenderer(renderLayerParent: FeatureRend if (compoundTag.isPokemonEntity()) { matrixStack.push() val uuid = this.extractUuid(compoundTag) - val cache = this.playerCache.getOrPut(livingEntity.uuid) { ShoulderCache() } + val cache = playerCache.getOrPut(livingEntity.uuid) { ShoulderCache() } var shoulderData: ShoulderData? = null if (pLeftShoulder && cache.lastKnownLeft?.uuid != uuid) { shoulderData = this.extractData(compoundTag, uuid) @@ -158,7 +157,7 @@ class PokemonOnShoulderRenderer(renderLayerParent: FeatureRend var lastKnownRight: ShoulderData? = null ) - private data class ShoulderData( + data class ShoulderData( val uuid: UUID, val species: Species, val form: FormData, @@ -166,4 +165,22 @@ class PokemonOnShoulderRenderer(renderLayerParent: FeatureRend val scaleModifier: Float ) + companion object { + + private val playerCache = hashMapOf() + + /** + * Checks if a player has shoulder data cached. + * + * @param player The player being checked. + * @return A [Pair] with [Pair.left] and [Pair.right] being the respective shoulder. + */ + @JvmStatic + fun shoulderDataOf(player: PlayerEntity): Pair { + val cache = playerCache[player.uuid] ?: return Pair(null, null) + return Pair(cache.lastKnownLeft, cache.lastKnownRight) + } + + } + } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/BedrockAnimationReferenceFactory.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/BedrockAnimationReferenceFactory.kt index b1b2a7c541..0d36b44e15 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/BedrockAnimationReferenceFactory.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/BedrockAnimationReferenceFactory.kt @@ -36,6 +36,6 @@ object BedrockAnimationReferenceFactory : AnimationReferenceFactory { return model.bedrockStateful( animationGroup = split[0], animation = split[1] - ).setPreventsIdle(if (split.size == 3) split[2].toBoolean() else JsonPokemonPoseableModel.StatefulAnimationAdapter.preventsIdleDefault) + ) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPose.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPose.kt new file mode 100644 index 0000000000..237033ff4a --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPose.kt @@ -0,0 +1,124 @@ +/* + * 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 + +import com.bedrockk.molang.runtime.MoLangRuntime +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct +import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup +import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient +import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation +import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatelessAnimation +import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame +import com.cobblemon.mod.common.client.render.models.blockbench.quirk.SimpleQuirk +import com.cobblemon.mod.common.entity.PoseType +import com.cobblemon.mod.common.util.asExpressionLike +import com.cobblemon.mod.common.util.resolveObject +import com.google.gson.JsonArray +import com.google.gson.JsonObject +import com.google.gson.JsonPrimitive +import net.minecraft.entity.Entity +import net.minecraft.util.math.Vec3d + +class JsonPose(model: PoseableEntityModel, json: JsonObject) { + class JsonPoseTransition(val from: String, val to: String, val animation: ExpressionLike) + + val runtime = MoLangRuntime().setup().setupClient().also { + it.environment.getQueryStruct().addFunctions(model.functions.functions) + } + + val poseName = json.get("poseName")?.asString ?: "pose" + val poseTypes = (json.get("poseTypes")?.asJsonArray?.map { name -> + PoseType.values().find { it.name.lowercase() == name.asString.lowercase() } + ?: throw IllegalArgumentException("Unknown pose type ${name.asString}") + } ?: emptyList()) + if (json.get("allPoseTypes")?.asBoolean == true) PoseType.values().toList() else emptyList() + val transformTicks = json.get("transformTicks")?.asInt ?: 10 + val transformedParts = json.get("transformedParts")?.asJsonArray?.map { + it as JsonObject + val partName = it.get("part").asString + val part = model.getPart(partName).createTransformation() + val rotation = it.get("rotation")?.asJsonArray?.let { Vec3d(it[0].asDouble, it[1].asDouble, it[2].asDouble) } ?: Vec3d.ZERO + val position = it.get("position")?.asJsonArray?.let { Vec3d(it[0].asDouble, it[1].asDouble, it[2].asDouble) } ?: Vec3d.ZERO + val isVisible = it.get("isVisible")?.asBoolean ?: true + return@map part.withPosition(position.x, position.y, position.z).withRotationDegrees(rotation.x, rotation.y, rotation.z).withVisibility(isVisible) + }?.toTypedArray() ?: arrayOf() + + val idleAnimations = (json.get("animations")?.asJsonArray ?: JsonArray()).asJsonArray.mapNotNull { + val animString = it.asString + if (animString == "look") { + return@mapNotNull if (model is HeadedFrame) { + model.singleBoneLook() + } else { + object : HeadedFrame { + override val rootPart = model.rootPart + override val head = model.getPartFallback("head_ai", "head") + }.singleBoneLook() + } + } else if (animString.startsWith("bedrock")) { + val split = animString.replace("bedrock(", "").replace(")", "").split(",").map(String::trim) + return@mapNotNull model.bedrock(animationGroup = split[0], animation = split[1]) + } else { + try { + val expression = animString.asExpressionLike() + return@mapNotNull runtime.resolveObject(expression).obj as StatelessAnimation + } catch (exception: Exception) { + null + } + } + return@mapNotNull null + }.toTypedArray() + + val quirks = (json.get("quirks")?.asJsonArray ?: JsonArray()).map { json -> + if (json is JsonPrimitive) { + return@map json.asString.asExpressionLike().resolveObject(runtime).obj as SimpleQuirk + } + + json as JsonObject + val animations: (state: PoseableEntityState) -> List> = { _ -> + (json.get("animations")?.asJsonArray ?: JsonArray()).map { animJson -> + try { + val expr = animJson.asString.asExpressionLike() + runtime.resolveObject(expr).obj as StatefulAnimation + } catch (e: Exception) { + val split = + animJson.asString.replace("bedrock(", "").replace(")", "").split(",").map(String::trim) + model.bedrockStateful(animationGroup = split[0], animation = split[1]) + } + } + } + + val loopTimes = json.get("loopTimes")?.asInt ?: 1 + val minSeconds = json.get("minSecondsBetweenOccurrences")?.asFloat ?: 8F + val maxSeconds = json.get("maxSecondsBetweenOccurrences")?.asFloat ?: 30F + + model.quirkMultiple( + secondsBetweenOccurrences = minSeconds to maxSeconds, + condition = { true }, + loopTimes = 1..loopTimes, + animations = animations + ) + } + + val animations = json.get("namedAnimations")?.takeIf { it is JsonObject }?.asJsonObject?.let { + val map = mutableMapOf() + for ((key, value) in it.entrySet()) { + map[key] = value.asString.asExpressionLike() + } + map + } ?: mutableMapOf() + + val transitions = json.get("transitions")?.takeIf { it is JsonArray }?.asJsonArray?.map { + it as JsonObject + val from = it.get("from").asString + val to = it.get("to").asString + val animation = it.get("animation").asString.asExpressionLike() + JsonPoseTransition(from, to, animation) + } ?: emptyList() +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPoseableEntityModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPoseableEntityModel.kt new file mode 100644 index 0000000000..87307611cc --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/JsonPoseableEntityModel.kt @@ -0,0 +1,100 @@ +/* + * 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 + +import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose +import com.google.gson.ExclusionStrategy +import com.google.gson.FieldAttributes +import com.google.gson.InstanceCreator +import com.google.gson.JsonDeserializationContext +import com.google.gson.JsonDeserializer +import com.google.gson.JsonElement +import com.google.gson.JsonObject +import com.google.gson.JsonPrimitive +import java.lang.reflect.Type +import java.util.function.Supplier +import net.minecraft.client.model.ModelPart +import net.minecraft.entity.Entity + +abstract class JsonPoseableEntityModel(override val rootPart: Bone) : PoseableEntityModel() { + override fun registerPoses() {} + + object JsonModelExclusion: ExclusionStrategy { + override fun shouldSkipField(f: FieldAttributes): Boolean { + return f.declaringClass.simpleName !in listOf( + "JsonPokemonPoseableModel", + "JsonGenericPoseableModel", + "PoseableEntityModel", + "Pose" + ) + } + + override fun shouldSkipClass(clazz: Class<*>): Boolean { + return false + } + } + + class JsonPoseableModelAdapter(val constructor: (modelPart: ModelPart) -> JsonPoseableEntityModel) : InstanceCreator> { + var modelPart: ModelPart? = null + var model: JsonPoseableEntityModel? = null + override fun createInstance(type: Type): JsonPoseableEntityModel { + return constructor(modelPart!!).also { + model = it + it.loadAllNamedChildren(modelPart!!) + } + } + } + + class StatefulAnimationAdapter(val modelFinder: () -> PoseableEntityModel) : JsonDeserializer>> { + override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Supplier> { + json as JsonPrimitive + val animString = json.asString + val splits = animString.replace("bedrock(", "").replace(")", "").split(",").map(String::trim) + val file = splits[0] + val animation = splits[1] + return Supplier { modelFinder().bedrockStateful(file, animation) } + } + } + + class PoseAdapter(val modelFinder: () -> PoseableEntityModel) : JsonDeserializer> { + override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Pose { + val model = modelFinder() + val obj = json as JsonObject + val pose = JsonPose(model, obj) + + val conditionsList = mutableListOf<(T) -> Boolean>() + val mustBeTouchingWater = json.get("isTouchingWater")?.asBoolean + if (mustBeTouchingWater != null) { + conditionsList.add { mustBeTouchingWater == it.isTouchingWater } + } + + val poseCondition: (T) -> Boolean = if (conditionsList.isEmpty()) { { true } } else conditionsList.reduce { acc, function -> { acc(it) && function(it) } } + + return Pose( + poseName = pose.poseName, + poseTypes = pose.poseTypes.toSet(), + condition = poseCondition, + transformTicks = pose.transformTicks, + idleAnimations = pose.idleAnimations, + transformedParts = pose.transformedParts, + quirks = pose.quirks.toTypedArray() + ).also { + it.transitions.putAll( + pose.transitions + .mapNotNull, Pose) -> StatefulAnimation>> { + it.to to { _, _ -> it.animation.resolveObject(model.runtime).obj as StatefulAnimation } + }.toMap() + ) + } + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/LocatorAccess.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/LocatorAccess.kt index 15ca3c6283..fbd360426c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/LocatorAccess.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/LocatorAccess.kt @@ -71,11 +71,11 @@ class LocatorAccess( fun update(matrixStack: MatrixStack, state: MutableMap) { matrixStack.push() joint.transform(matrixStack) - state.getOrPut("root") { MatrixWrapper() }.updateMatrix(matrixStack.peek().positionMatrix) for ((name, locator) in locators) { matrixStack.push() locator.transform(matrixStack) + matrixStack.scale(1F, -1F, 1F) state.getOrPut(name) { MatrixWrapper() }.updateMatrix(matrixStack.peek().positionMatrix) matrixStack.pop() } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityModel.kt index 332e002d94..279b76828e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityModel.kt @@ -8,19 +8,28 @@ package com.cobblemon.mod.common.client.render.models.blockbench +import com.bedrockk.molang.runtime.MoLangRuntime +import com.bedrockk.molang.runtime.struct.ArrayStruct +import com.bedrockk.molang.runtime.struct.QueryStruct +import com.bedrockk.molang.runtime.value.MoValue +import com.cobblemon.mod.common.Cobblemon.LOGGER +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct +import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup +import com.cobblemon.mod.common.api.molang.ObjectValue import com.cobblemon.mod.common.api.scheduling.afterOnClient +import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient import com.cobblemon.mod.common.client.entity.PokemonClientDelegate +import com.cobblemon.mod.common.client.render.MatrixWrapper import com.cobblemon.mod.common.client.render.ModelLayer -import com.cobblemon.mod.common.client.render.models.blockbench.animation.PoseTransitionAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.animation.RotationFunctionStatelessAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatelessAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.animation.TranslationFunctionStatelessAnimation +import com.cobblemon.mod.common.client.render.layer.CobblemonRenderLayers +import com.cobblemon.mod.common.client.render.models.blockbench.animation.* import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockAnimationRepository import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockStatefulAnimation import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockStatelessAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPoseableModel import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose @@ -28,10 +37,15 @@ import com.cobblemon.mod.common.client.render.models.blockbench.quirk.ModelQuirk import com.cobblemon.mod.common.client.render.models.blockbench.quirk.SimpleQuirk import com.cobblemon.mod.common.client.render.models.blockbench.repository.RenderContext import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.sineFunction import com.cobblemon.mod.common.entity.PoseType import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity import com.cobblemon.mod.common.entity.pokeball.EmptyPokeBallEntity import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.util.asExpressionLike +import com.cobblemon.mod.common.util.getDoubleOrNull +import com.cobblemon.mod.common.util.getStringOrNull import net.minecraft.client.model.ModelPart import net.minecraft.client.render.OverlayTexture import net.minecraft.client.render.RenderLayer @@ -80,6 +94,9 @@ abstract class PoseableEntityModel( @Transient var currentState: PoseableEntityState? = null + val animations = mutableMapOf() + val transitions = mutableMapOf() + /** * A list of [ModelPartTransformation] that record the original * This allows the original rotations to be reset. @@ -89,12 +106,218 @@ abstract class PoseableEntityModel( val relevantParts = mutableListOf() val relevantPartsByName = mutableMapOf() + @Transient + val functions = QueryStruct(hashMapOf()) + .addFunction("bedrock_primary") { params -> + val group = params.getString(0) + val animation = params.getString(1) + val anim = bedrockStateful(group, animation) + val excludedLabels = mutableSetOf() + var curve: WaveFunction = { t -> + if (t < 0.1) { + t * 10 + } else if (t < 0.9) { + 1F + } else { + 1F + } + } + for (index in 2 until params.params.size) { + val param = params.get(index) + if (param is ObjectValue<*>) { + curve = param.obj as WaveFunction + continue + } + + val label = params.getString(index) ?: continue + excludedLabels.add(label) + } + + return@addFunction ObjectValue(PrimaryAnimation(animation = anim, excludedLabels = excludedLabels, curve = curve)) + } + .addFunction("bedrock_stateful") { params -> + val group = params.getString(0) + val animation = params.getString(1) + val anim = bedrockStateful(group, animation) + return@addFunction ObjectValue(anim) + } + .addFunction("bedrock") { params -> + val group = params.getString(0) + val animation = params.getString(1) + val anim = bedrock(group, animation) + return@addFunction ObjectValue(anim) + } + .addFunction("look") { params -> + val boneName = params.getString(0) + val pitchMultiplier = params.getDoubleOrNull(1) ?: 1F + val yawMultiplier = params.getDoubleOrNull(2) ?: 1F + val maxPitch = params.getDoubleOrNull(3) ?: 70F + val minPitch = params.getDoubleOrNull(4) ?: -45F + val maxYaw = params.getDoubleOrNull(5) ?: 45F + ObjectValue( + SingleBoneLookAnimation( + frame = this, + bone = getPart(boneName), + pitchMultiplier = pitchMultiplier.toFloat(), + yawMultiplier = yawMultiplier.toFloat(), + maxPitch = maxPitch.toFloat(), + minPitch = minPitch.toFloat(), + maxYaw = maxYaw.toFloat() + ) + ) + } + .addFunction("quadruped_walk") { params -> + val periodMultiplier = params.getDoubleOrNull(0) ?: 0.6662F + val amplitudeMultiplier = params.getDoubleOrNull(1) ?: 1.4F + val leftFrontLeftName = params.getStringOrNull(2) ?: "leg_front_left" + val leftFrontRightName = params.getStringOrNull(3) ?: "leg_front_right" + val leftBackLeftName = params.getStringOrNull(4) ?: "leg_back_left" + val leftBackRightName = params.getStringOrNull(5) ?: "leg_back_right" + + ObjectValue( + QuadrupedWalkAnimation( + frame = this, + periodMultiplier = periodMultiplier.toFloat(), + amplitudeMultiplier = amplitudeMultiplier.toFloat(), + legFrontLeft = this.getPart(leftFrontLeftName), + legFrontRight = this.getPart(leftFrontRightName), + legBackLeft = this.getPart(leftBackLeftName), + legBackRight = this.getPart(leftBackRightName) + ) + ) + } + .addFunction("biped_walk") { params -> + val periodMultiplier = params.getDoubleOrNull(0) ?: 0.6662F + val amplitudeMultiplier = params.getDoubleOrNull(1) ?: 1.4F + val leftLegName = params.getStringOrNull(2) ?: "leg_left" + val rightLegName = params.getStringOrNull(3) ?: "leg_right" + + ObjectValue( + BipedWalkAnimation( + frame = this, + periodMultiplier = periodMultiplier.toFloat(), + amplitudeMultiplier = amplitudeMultiplier.toFloat(), + leftLeg = this.getPart(leftLegName), + rightLeg = this.getPart(rightLegName) + ) + ) + } + .addFunction("bimanual_swing") { params -> + val swingPeriodMultiplier = params.getDoubleOrNull(0) ?: 0.6662F + val amplitudeMultiplier = params.getDoubleOrNull(1) ?: 1F + val leftArmName = params.getStringOrNull(2) ?: "arm_left" + val rightArmName = params.getStringOrNull(3) ?: "arm_right" + + ObjectValue( + BimanualSwingAnimation( + frame = this, + swingPeriodMultiplier = swingPeriodMultiplier.toFloat(), + amplitudeMultiplier = amplitudeMultiplier.toFloat(), + leftArm = this.getPart(leftArmName), + rightArm = this.getPart(rightArmName) + ) + ) + } + .addFunction("sine_wing_flap") { params -> + // verticalShift = -14F.toRadians(), period = 0.9F, amplitude = 0.9F + val amplitude = params.getDoubleOrNull(0) ?: 0.9F + val period = params.getDoubleOrNull(1) ?: 0.9F + val verticalShift = params.getDoubleOrNull(2) ?: 0F + val axis = params.getStringOrNull(3) ?: "y" + val axisIndex = when (axis) { + "x" -> ModelPartTransformation.X_AXIS + "y" -> ModelPartTransformation.Y_AXIS + "z" -> ModelPartTransformation.Z_AXIS + else -> ModelPartTransformation.Y_AXIS + } + val wingLeft = params.getStringOrNull(4) ?: "wing_left" + val wingRight = params.getStringOrNull(5) ?: "wing_right" + + ObjectValue( + WingFlapIdleAnimation( + frame = this, + rotation = sineFunction(verticalShift = verticalShift.toFloat(), period = period.toFloat(), amplitude = amplitude.toFloat()), + axis = axisIndex, + leftWing = this.getPart(wingLeft), + rightWing = this.getPart(wingRight) + ) + ) + } + .addFunction("bedrock_quirk") { params -> + val animationGroup = params.getString(0) + val animationNames = params.get(1)?.let { if (it is ArrayStruct) it.map.values.map { it.asString() } else listOf(it.asString()) } ?: listOf() + val minSeconds = params.getDoubleOrNull(2) ?: 8F + val maxSeconds = params.getDoubleOrNull(3) ?: 30F + val loopTimes = params.getDoubleOrNull(4)?.toInt() ?: 1 + ObjectValue( + quirk( + secondsBetweenOccurrences = minSeconds.toFloat() to maxSeconds.toFloat(), + condition = { true }, + loopTimes = 1..loopTimes, + animation = { bedrockStateful(animationGroup, animationNames.random()) } + ) + ) + } + + @Transient + val runtime = MoLangRuntime().setup().setupClient().also { it.environment.getQueryStruct().addFunctions(functions.functions) } + /** Registers the different poses this model is capable of ahead of time. Should use [registerPose] religiously. */ abstract fun registerPoses() /** Gets the [PoseableEntityState] for an entity. */ abstract fun getState(entity: T): PoseableEntityState + fun getAnimation(state: PoseableEntityState<*>, name: String, runtime: MoLangRuntime): StatefulAnimation? { + val poseAnimations = state.currentPose?.let(this::getPose)?.animations ?: mapOf() + val animation = resolveFromAnimationMap(poseAnimations, name, runtime) + ?: resolveFromAnimationMap(animations, name, runtime) + ?: if (name == "cry" && this is PokemonPoseableModel) { + cryAnimation.invoke(state.getEntity() as PokemonEntity, state as PoseableEntityState) as? StatefulAnimation + } else if (name == "faint" && this is PokemonPoseableModel) { + getFaintAnimation(state.getEntity() as PokemonEntity, state as PoseableEntityState) as? StatefulAnimation + } else { + try { + name.asExpressionLike().resolveObject(runtime).obj as StatefulAnimation + } catch (exception: Exception) { + extractAnimation(name) + } + } + return animation + } + + /** + * Animation group : animation name [: primary] + * e.g. "particle_dummy:animation.particle_dummy.dragon_claw_target:primary" + * e.g. "particle_dummy:animation.particle.dummy.stat_up + */ + fun extractAnimation(string: String): StatefulAnimation? { + val group = string.substringBefore(":") + val animationName = string.substringAfter(":").substringBefore(":") + val isPrimary = string.endsWith(":primary") + if (animationName.isNotBlank() && animationName != string) { + val animation = BedrockAnimationRepository.tryGetAnimation(group, animationName) ?: return null + return if (isPrimary) { + PrimaryAnimation(BedrockStatefulAnimation(animation)) + } else { + BedrockStatefulAnimation(animation) + } + } else { + return null + } + } + + private fun resolveFromAnimationMap(map: Map, name: String, runtime: MoLangRuntime): StatefulAnimation? { + val animationExpression = map[name] ?: return null + return try { + animationExpression.resolveObject(runtime).obj as StatefulAnimation + } catch (e: Exception) { + LOGGER.error("Failed to create animation by name $name, most likely something wrong in the MoLang") + e.printStackTrace() + null + } + } + fun withLayerContext( buffer: VertexConsumerProvider, state: PoseableEntityState?, @@ -143,6 +366,7 @@ abstract class PoseableEntityModel( poseType: PoseType, condition: ((T) -> Boolean)? = null, transformTicks: Int = 10, + animations: MutableMap = mutableMapOf(), onTransitionedInto: (PoseableEntityState?) -> Unit = {}, idleAnimations: Array> = emptyArray(), transformedParts: Array = emptyArray(), @@ -154,6 +378,7 @@ abstract class PoseableEntityModel( condition, onTransitionedInto, transformTicks, + animations, idleAnimations, transformedParts, quirks @@ -167,6 +392,7 @@ abstract class PoseableEntityModel( poseTypes: Set, condition: ((T) -> Boolean)? = null, transformTicks: Int = 10, + animations: MutableMap = mutableMapOf(), onTransitionedInto: (PoseableEntityState?) -> Unit = {}, idleAnimations: Array> = emptyArray(), transformedParts: Array = emptyArray(), @@ -178,6 +404,7 @@ abstract class PoseableEntityModel( condition, onTransitionedInto, transformTicks, + animations, idleAnimations, transformedParts, quirks @@ -191,6 +418,7 @@ abstract class PoseableEntityModel( poseType: PoseType, condition: ((T) -> Boolean)? = null, transformTicks: Int = 10, + animations: MutableMap = mutableMapOf(), onTransitionedInto: (PoseableEntityState?) -> Unit = {}, idleAnimations: Array> = emptyArray(), transformedParts: Array = emptyArray(), @@ -202,6 +430,7 @@ abstract class PoseableEntityModel( condition, onTransitionedInto, transformTicks, + animations, idleAnimations, transformedParts, quirks @@ -229,6 +458,7 @@ abstract class PoseableEntityModel( } fun getPart(name: String) = relevantPartsByName[name]!! + fun getPartFallback(vararg names: String) = names.firstNotNullOfOrNull { relevantPartsByName[it] } ?: rootPart private fun loadSpecificNamedChildren(modelPart: ModelPart, nameList: Iterable) { for ((name, child) in modelPart.children.entries) { @@ -355,9 +585,9 @@ abstract class PoseableEntityModel( fun getLayer(texture: Identifier, emissive: Boolean, translucent: Boolean): RenderLayer { return if (!emissive && !translucent) { - RenderLayer.getEntityCutout(texture) + CobblemonRenderLayers.ENTITY_CUTOUT.apply(texture) } else if (!emissive) { - RenderLayer.getEntityTranslucent(texture) + CobblemonRenderLayers.ENTITY_TRANSLUCENT.apply(texture, true) } else { makeLayer(texture, emissive = emissive, translucent = translucent) } @@ -421,17 +651,19 @@ abstract class PoseableEntityModel( setupEntityTypeContext(entity) state.currentModel = this setDefault() + if (entity != null) { + updateLocators(state) + } state.preRender() - updateLocators(state) var poseName = state.getPose() var pose = poseName?.let { getPose(it) } - val entityPoseType = if (entity is Poseable) entity.getPoseType() else null + val entityPoseType = if (entity is Poseable) entity.getCurrentPoseType() else null if (entity != null && (poseName == null || pose == null || !pose.isSuitable(entity) || entityPoseType !in pose.poseTypes)) { val desirablePose = poses.values.firstOrNull { (entityPoseType == null || entityPoseType in it.poseTypes) && it.isSuitable(entity) } - ?: Pose("none", setOf(PoseType.NONE), null, {}, 0, emptyArray(), emptyArray(), emptyArray()) + ?: Pose("none", setOf(PoseType.NONE), null, {}, 0, mutableMapOf(), emptyArray(), emptyArray(), emptyArray()) // If this condition matches then it just no longer fits this pose if (pose != null && poseName != null) { @@ -462,7 +694,8 @@ abstract class PoseableEntityModel( } if (primaryAnimation != null) { - state.primaryOverridePortion = 1 - primaryAnimation.curve((state.animationSeconds - primaryAnimation.started) / primaryAnimation.duration) + val portion = (state.animationSeconds - primaryAnimation.started) / primaryAnimation.duration + state.primaryOverridePortion = 1 - primaryAnimation.curve(portion) if (!primaryAnimation.run(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, 1 - state.primaryOverridePortion)) { state.primaryAnimation = null state.primaryOverridePortion = 1F @@ -473,8 +706,10 @@ abstract class PoseableEntityModel( .filterNot { it.run(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, 1F) } state.statefulAnimations.removeAll(removedStatefuls) state.currentPose?.let { getPose(it) } - ?.idleStateful(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, state.primaryOverridePortion) - updateLocators(state) + ?.idleStateful(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch) + if (entity != null) { + updateLocators(state) + } } //This is used to set additional entity type specific context @@ -499,7 +734,7 @@ abstract class PoseableEntityModel( val desirablePoseType = desirablePose.poseTypes.first() if (state.statefulAnimations.none { it.isTransform }) { - val transition = previousPose.transitions[desirablePose] + val transition = previousPose.transitions[desirablePose.poseName] if (transition == null && previousPose.transformTicks > 0) { val primaryAnimation = PrimaryAnimation( PoseTransitionAnimation( @@ -536,27 +771,49 @@ abstract class PoseableEntityModel( fun updateLocators(state: PoseableEntityState) { val entity = context.request(RenderContext.ENTITY) ?: return val matrixStack = MatrixStack() + var scale = 1F // We could improve this to be generalized for other entities if (entity is PokemonEntity) { matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - entity.bodyYaw)) matrixStack.push() matrixStack.scale(-1F, -1F, 1F) - val scale = - entity.pokemon.form.baseScale * entity.pokemon.scaleModifier * (entity.delegate as PokemonClientDelegate).entityScaleModifier + scale = entity.pokemon.form.baseScale * entity.pokemon.scaleModifier * (entity.delegate as PokemonClientDelegate).entityScaleModifier + matrixStack.scale(scale, scale, scale) } else if (entity is EmptyPokeBallEntity) { matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(entity.yaw)) matrixStack.push() matrixStack.scale(1F, -1F, -1F) - matrixStack.scale(0.7F, 0.7F, 0.7F) + scale = 0.7F + matrixStack.scale(scale, scale, scale) + } else if (entity is GenericBedrockEntity) { + matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(entity.yaw)) + matrixStack.push() + // Not 100% convinced we need the -1 on Y but if we needed it for the Poke Ball then probably? + matrixStack.scale(1F, -1F, 1F) } + matrixStack.push() + matrixStack.scale(1F, -1F, 1F) + val states = state.locatorStates + states.getOrPut("root") { MatrixWrapper() }.updateMatrix(matrixStack.peek().positionMatrix) + matrixStack.pop() + if (isForLivingEntityRenderer) { // Standard living entity offset, only God knows why Mojang did this. matrixStack.translate(0.0, -1.5, 0.0) } - locatorAccess.update(matrixStack, state.locatorStates) + // If we have the entity, put in an approximation of the target locator. If the model has one defined, + // this will be overridden. + matrixStack.push() + matrixStack.translate(0.0, -entity.boundingBox.yLength / 2.0 / scale + 1.5F, -entity.width * 0.6 / scale) + matrixStack.scale(1F, -1F, 1F) + states.getOrPut("target") { MatrixWrapper() }.updateMatrix(matrixStack.peek().positionMatrix) + states.getOrPut("special_attack") { MatrixWrapper() }.updateMatrix(matrixStack.peek().positionMatrix) + matrixStack.pop() + + locatorAccess.update(matrixStack, states) } fun ModelPart.translation( @@ -595,21 +852,17 @@ abstract class PoseableEntityModel( fun bedrockStateful( animationGroup: String, animation: String, - animationPrefix: String = "animation.$animationGroup", - preventsIdleCheck: (T?, PoseableEntityState, StatelessAnimation) -> Boolean = { _, _, _ -> true } - ) = BedrockStatefulAnimation( + animationPrefix: String = "animation.$animationGroup" + ) = BedrockStatefulAnimation( BedrockAnimationRepository.getAnimation(animationGroup, "$animationPrefix.$animation"), - preventsIdleCheck ) fun quirk( - name: String, secondsBetweenOccurrences: Pair = 8F to 30F, loopTimes: IntRange = 1..1, condition: (state: PoseableEntityState) -> Boolean = { true }, animation: (state: PoseableEntityState) -> StatefulAnimation ) = SimpleQuirk( - name = name, secondsBetweenOccurrences = secondsBetweenOccurrences, loopTimes = loopTimes, condition = condition, @@ -617,16 +870,33 @@ abstract class PoseableEntityModel( ) fun quirkMultiple( - name: String, secondsBetweenOccurrences: Pair = 8F to 30F, loopTimes: IntRange = 1..1, condition: (state: PoseableEntityState) -> Boolean = { true }, animations: (state: PoseableEntityState) -> List> ) = SimpleQuirk( - name = name, secondsBetweenOccurrences = secondsBetweenOccurrences, loopTimes = loopTimes, condition = condition, animations = { animations(it) } ) + + val dummyAnimation = object : StatefulAnimation { + override val isTransform = false + override val duration: Float = 1F + + override fun run( + entity: T?, + model: PoseableEntityModel, + state: PoseableEntityState, + limbSwing: Float, + limbSwingAmount: Float, + ageInTicks: Float, + headYaw: Float, + headPitch: Float, + intensity: Float + ): Boolean { + return false + } + } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityState.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityState.kt index 77341779f6..6efc3a6414 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityState.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/PoseableEntityState.kt @@ -9,21 +9,46 @@ package com.cobblemon.mod.common.client.render.models.blockbench import com.bedrockk.molang.runtime.MoLangRuntime +import com.bedrockk.molang.runtime.struct.VariableStruct +import com.bedrockk.molang.runtime.value.DoubleValue +import com.bedrockk.molang.runtime.value.MoValue +import com.bedrockk.molang.runtime.value.StringValue +import com.cobblemon.mod.common.Cobblemon.LOGGER +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunction +import com.cobblemon.mod.common.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct +import com.cobblemon.mod.common.api.molang.ObjectValue +import com.cobblemon.mod.common.api.text.text +import com.cobblemon.mod.common.client.particle.BedrockParticleEffectRepository +import com.cobblemon.mod.common.client.particle.ParticleStorm +import com.cobblemon.mod.common.client.entity.GenericBedrockClientDelegate import com.cobblemon.mod.common.api.molang.MoLangFunctions.setup -import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.api.scheduling.Schedulable +import com.cobblemon.mod.common.client.ClientMoLangFunctions.setupClient import com.cobblemon.mod.common.client.render.MatrixWrapper import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatelessAnimation import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockParticleKeyframe +import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockStatefulAnimation import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockStatelessAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose import com.cobblemon.mod.common.client.render.models.blockbench.quirk.ModelQuirk import com.cobblemon.mod.common.client.render.models.blockbench.quirk.QuirkData +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction +import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunctions +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.util.asExpression +import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace +import com.cobblemon.mod.common.util.resolve import java.util.concurrent.ConcurrentLinkedQueue +import net.minecraft.client.MinecraftClient +import net.minecraft.client.sound.PositionedSoundInstance +import net.minecraft.client.world.ClientWorld import net.minecraft.entity.Entity +import net.minecraft.sound.SoundCategory +import net.minecraft.sound.SoundEvent import net.minecraft.util.math.Vec3d /** @@ -36,13 +61,90 @@ import net.minecraft.util.math.Vec3d */ abstract class PoseableEntityState : Schedulable { var currentModel: PoseableEntityModel? = null + set(value) { + field = value + runtime.environment.getQueryStruct().addFunctions(value?.functions?.functions ?: hashMapOf()) + } var currentPose: String? = null var primaryAnimation: PrimaryAnimation? = null val statefulAnimations: MutableList> = mutableListOf() val quirks = mutableMapOf, QuirkData>() val poseParticles = mutableListOf() - val runtime = MoLangRuntime().setup().also { - it.environment.structs["query"] = it.environment.structs["variable"] + val runtime = MoLangRuntime().setup().setupClient().also { runtime -> + val reusableAnimTime = DoubleValue(0.0) // This gets called 500 million times so use a mutable value for runtime + runtime.environment.getQueryStruct().addFunctions(mapOf( + "anim_time" to java.util.function.Function { return@Function reusableAnimTime.also { it.value = animationSeconds.toDouble() } }, + "pose_type" to java.util.function.Function { return@Function StringValue((getEntity() as Poseable).getCurrentPoseType().name) }, + "pose" to java.util.function.Function { _ -> return@Function StringValue(currentPose ?: "") }, + "say" to java.util.function.Function { params -> MinecraftClient.getInstance().player?.sendMessage(params.getString(0).text()) ?: Unit }, + "sound" to java.util.function.Function { params -> + val entity = getEntity() ?: return@Function Unit + if (params.get(0) !is StringValue) { + return@Function Unit + } + val soundEvent = SoundEvent.of(params.getString(0).asIdentifierDefaultingNamespace()) + if (soundEvent != null) { + val volume = if (params.contains(1)) params.getDouble(1).toFloat() else 1F + val pitch = if (params.contains(2)) params.getDouble(2).toFloat() else 1F + MinecraftClient.getInstance().soundManager.play( + PositionedSoundInstance(soundEvent, SoundCategory.NEUTRAL, volume, pitch, entity.world.random, entity.x, entity.y, entity.z) + ) + } + }, + "play_animation" to java.util.function.Function { params -> + val animationParameter = params.get(0) + val animation = if (animationParameter is ObjectValue<*>) { + animationParameter.obj as BedrockStatefulAnimation + } else { + currentModel?.getAnimation(this, animationParameter.asString(), runtime) + } + if (animation != null) { + if (animation is PrimaryAnimation) { + addPrimaryAnimation(animation) + } else { + addStatefulAnimation(animation) + } + } + return@Function Unit + }, + "particle" to java.util.function.Function { params -> + val particlesParam = params.get(0) + val particles = mutableListOf() + when (particlesParam) { + is StringValue -> particles.add(particlesParam.value) + is VariableStruct -> particles.addAll(particlesParam.map.values.map { it.asString() }) + else -> return@Function Unit + } + + val effectIds = particles.map { it.asIdentifierDefaultingNamespace() } + for (effectId in effectIds) { + val locator = if (params.params.size > 1) params.getString(1) else "root" + val effect = BedrockParticleEffectRepository.getEffect(effectId) ?: run { + LOGGER.error("Unable to find a particle effect with id $effectId") + return@Function Unit + } + + val entity = getEntity() ?: return@Function Unit + val world = entity.world as ClientWorld + val matrixWrapper = locatorStates[locator] ?: locatorStates["root"]!! + + val particleRuntime = MoLangRuntime().setup().setupClient() + particleRuntime.environment.getQueryStruct().addFunction("entity") { runtime.environment.getQueryStruct() } + + val storm = ParticleStorm( + effect = effect, + matrixWrapper = matrixWrapper, + world = world, + runtime = particleRuntime, + sourceVelocity = { entity.velocity }, + sourceAlive = { !entity.isRemoved }, + sourceVisible = { !entity.isInvisible } + ) + + storm.spawn() + } + } + )) } val allStatefulAnimations: List> get() = statefulAnimations + quirks.flatMap { it.value.animations } @@ -77,6 +179,23 @@ abstract class PoseableEntityState : Schedulable { val renderQueue = ConcurrentLinkedQueue<() -> Unit>() + /** + * Scans through the set of animations provided and begins playing the first one that is registered + * on the entity. The goal is to have most-specific animations first and more generic ones last, so + * where detailed animations exist they will be used and where they don't there is still a fallback. + * + * E.g. ['thunderbolt', 'electric', 'special'] + */ + fun addFirstAnimation(animation: Set) { + val model = currentModel ?: return + val animation = animation.firstNotNullOfOrNull { model.getAnimation(this, it, runtime) } ?: return + if (animation is PrimaryAnimation) { + addPrimaryAnimation(animation) + } else { + addStatefulAnimation(animation) + } + } + fun isPosedIn(vararg poses: Pose) = poses.any { it.poseName == currentPose } fun isNotPosedIn(vararg poses: Pose) = poses.none { it.poseName == currentPose } @@ -156,7 +275,7 @@ abstract class PoseableEntityState : Schedulable { fun shouldIdleRun(idleAnimation: StatelessAnimation, requiredIntensity: Float): Boolean { val primaryAnimation = primaryAnimation return if (primaryAnimation != null) { - !primaryAnimation.prevents(idleAnimation) && this.primaryOverridePortion >= requiredIntensity + !primaryAnimation.prevents(idleAnimation) || this.primaryOverridePortion > requiredIntensity } else { true } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BimanualSwingAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BimanualSwingAnimation.kt index 7b4ea3a38a..e17e2ae6f3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BimanualSwingAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BimanualSwingAnimation.kt @@ -10,7 +10,12 @@ package com.cobblemon.mod.common.client.render.models.blockbench.animation import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.addRotation import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.Y_AXIS +import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.Z_AXIS import net.minecraft.entity.Entity import net.minecraft.util.math.MathHelper @@ -22,22 +27,36 @@ import net.minecraft.util.math.MathHelper * @since December 21st, 2021 */ class BimanualSwingAnimation( - frame: BimanualFrame, + frame: ModelFrame, /** The multiplier to apply to the cosine movement of the arms. The smaller this value, the quicker the arms move. */ val swingPeriodMultiplier: Float = 0.6662F, /** The multiplier to apply to the swing of the entity. The larger this is, the further the arms move. */ - val amplitudeMultiplier: Float = 1F -) : StatelessAnimation(frame) { - override val targetFrame: Class = BimanualFrame::class.java + val amplitudeMultiplier: Float = 1F, + val leftArm: Bone?, + val rightArm: Bone? +) : StatelessAnimation(frame) { + constructor( + frame: BimanualFrame, + swingPeriodMultiplier: Float = 0.6662F, + amplitudeMultiplier: Float = 1F + ): this( + frame = frame, + swingPeriodMultiplier = swingPeriodMultiplier, + amplitudeMultiplier = amplitudeMultiplier, + leftArm = frame.leftArm, + rightArm = frame.rightArm + ) + + override val targetFrame: Class = ModelFrame::class.java override fun setAngles(entity: T?, model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { // Movement swing - frame.rightArm.yaw += MathHelper.cos(limbSwing * swingPeriodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity - frame.leftArm.yaw += MathHelper.cos(limbSwing * swingPeriodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity + rightArm?.addRotation(Y_AXIS, MathHelper.cos(limbSwing * swingPeriodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity) + leftArm?.addRotation(Y_AXIS, MathHelper.cos(limbSwing * swingPeriodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity) // Idle sway - frame.rightArm.roll += 1.0f * (MathHelper.cos(ageInTicks * 0.09f) * 0.05f + 0.05f) * intensity - frame.rightArm.yaw += 1.0f * MathHelper.sin(ageInTicks * 0.067f) * 0.05f * intensity - frame.leftArm.roll += -1.0f * (MathHelper.cos(ageInTicks * 0.09f) * 0.05f + 0.05f) * intensity - frame.leftArm.yaw += -1.0f * MathHelper.sin(ageInTicks * 0.067f) * 0.05f * intensity + rightArm?.addRotation(Z_AXIS, 1.0f * (MathHelper.cos(ageInTicks * 0.09f) * 0.05f + 0.05f) * intensity) + rightArm?.addRotation(Y_AXIS, MathHelper.sin(ageInTicks * 0.067f) * 0.05f * intensity) + leftArm?.addRotation(Z_AXIS, -1.0f * (MathHelper.cos(ageInTicks * 0.09f) * 0.05f + 0.05f) * intensity) + leftArm?.addRotation(Y_AXIS, -1.0f * MathHelper.sin(ageInTicks * 0.067f) * 0.05f * intensity) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BipedWalkAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BipedWalkAnimation.kt index 94f5efbd0a..a88082581c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BipedWalkAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/BipedWalkAnimation.kt @@ -10,7 +10,11 @@ package com.cobblemon.mod.common.client.render.models.blockbench.animation import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.addRotation import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.X_AXIS import net.minecraft.entity.Entity import net.minecraft.util.math.MathHelper @@ -23,15 +27,29 @@ import net.minecraft.util.math.MathHelper * @since December 21st, 2021 */ class BipedWalkAnimation( - frame: BipedFrame, + frame: ModelFrame, /** The multiplier to apply to the cosine movement of the legs. The smaller this value, the quicker the legs move. */ val periodMultiplier: Float = 0.6662F, /** The multiplier to apply to the stride of the entity. The larger this is, the further the legs move. */ - val amplitudeMultiplier: Float = 1.4F -) : StatelessAnimation(frame) { - override val targetFrame: Class = BipedFrame::class.java + val amplitudeMultiplier: Float = 1.4F, + val leftLeg: Bone?, + val rightLeg: Bone? +) : StatelessAnimation(frame) { + constructor( + frame: BipedFrame, + periodMultiplier: Float = 0.6662F, + amplitudeMultiplier: Float = 1.4F + ): this( + frame = frame, + periodMultiplier = periodMultiplier, + amplitudeMultiplier = amplitudeMultiplier, + leftLeg = frame.leftLeg, + rightLeg = frame.rightLeg + ) + + override val targetFrame: Class = ModelFrame::class.java override fun setAngles(entity: T?, model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { - frame.rightLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity - frame.leftLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity + rightLeg?.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity) + leftLeg?.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/PrimaryAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/PrimaryAnimation.kt index 65908a29aa..2da7951993 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/PrimaryAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/PrimaryAnimation.kt @@ -10,6 +10,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.animation import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction import net.minecraft.entity.Entity @@ -34,11 +35,12 @@ class PrimaryAnimation( } }, val excludedLabels: Set = emptySet(), -) { - val duration = animation.duration + override val isTransform: Boolean = false +): StatefulAnimation { var started = -1F + override val duration: Float = animation.duration - fun run( + override fun run( entity: T?, model: PoseableEntityModel, state: PoseableEntityState, @@ -47,9 +49,9 @@ class PrimaryAnimation( ageInTicks: Float, headYaw: Float, headPitch: Float, - severity: Float + intensity: Float ): Boolean { - return animation.run(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, severity) + return animation.run(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, intensity) } fun prevents(idleAnimation: StatelessAnimation) = idleAnimation.labels.intersect(excludedLabels).isEmpty() && "all" !in excludedLabels diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/QuadrupedWalkAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/QuadrupedWalkAnimation.kt index d0353b7085..b855c6c455 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/QuadrupedWalkAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/QuadrupedWalkAnimation.kt @@ -10,7 +10,11 @@ package com.cobblemon.mod.common.client.render.models.blockbench.animation import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.addRotation +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.QuadrupedFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.X_AXIS import net.minecraft.entity.Entity import net.minecraft.util.math.MathHelper @@ -23,17 +27,40 @@ import net.minecraft.util.math.MathHelper * @since December 4th, 2021 */ class QuadrupedWalkAnimation( - frame: QuadrupedFrame, + frame: ModelFrame, + val legFrontLeft: Bone?, + val legFrontRight: Bone?, + val legBackLeft: Bone?, + val legBackRight: Bone?, /** The multiplier to apply to the cosine movement of the legs. The smaller this value, the quicker the legs move. */ val periodMultiplier: Float = 0.6662F, /** The multiplier to apply to the stride of the entity. The larger this is, the further the legs move. */ val amplitudeMultiplier: Float = 1.4F -) : StatelessAnimation(frame) { - override val targetFrame: Class = QuadrupedFrame::class.java +) : StatelessAnimation(frame) { + constructor( + frame: QuadrupedFrame, + periodMultiplier: Float = 0.6662F, + amplitudeMultiplier: Float = 1.4F + ): this( + frame = frame, + legFrontLeft = frame.foreLeftLeg, + legFrontRight = frame.foreRightLeg, + legBackLeft = frame.hindLeftLeg, + legBackRight = frame.hindRightLeg, + periodMultiplier = periodMultiplier, + amplitudeMultiplier = amplitudeMultiplier + ) + + override val targetFrame: Class = ModelFrame::class.java override fun setAngles(entity: T?, model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { - frame.hindRightLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity - frame.hindLeftLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity - frame.foreRightLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity - frame.foreLeftLeg.pitch += MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity + val hindRightLeg = legBackRight ?: return + val hindLeftLeg = legBackLeft ?: return + val foreRightLeg = legFrontRight ?: return + val foreLeftLeg = legFrontLeft ?: return + + hindRightLeg.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity) + hindLeftLeg.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity) + foreRightLeg.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier + Math.PI.toFloat()) * limbSwingAmount * amplitudeMultiplier * intensity) + foreLeftLeg.addRotation(X_AXIS, MathHelper.cos(limbSwing * periodMultiplier) * limbSwingAmount * amplitudeMultiplier * intensity) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/SingleBoneLookAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/SingleBoneLookAnimation.kt index ca329719ce..85b0b2edb0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/SingleBoneLookAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/SingleBoneLookAnimation.kt @@ -12,6 +12,8 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityMo import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.addRotation import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.X_AXIS import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.Y_AXIS import com.cobblemon.mod.common.util.math.geometry.toRadians @@ -25,14 +27,39 @@ import net.minecraft.entity.Entity * @author Hiroku * @since December 5th, 2021 */ -class SingleBoneLookAnimation(frame: HeadedFrame, val invertX: Boolean, val invertY: Boolean, val disableX: Boolean, val disableY: Boolean) : StatelessAnimation(frame) { - override val targetFrame: Class = HeadedFrame::class.java +class SingleBoneLookAnimation( + frame: ModelFrame, + val bone: Bone?, + val pitchMultiplier: Float = 1F, + val yawMultiplier: Float = 1F, + val maxPitch: Float = 70F, + val minPitch: Float = 45F, + val maxYaw: Float = 45F, +) : StatelessAnimation(frame) { + constructor( + frame: HeadedFrame, + invertX: Boolean, + invertY: Boolean, + disableX: Boolean, + disableY: Boolean + ): this( + frame = frame, + bone = frame.head, + pitchMultiplier = if (disableX) 0F else if (invertX) -1F else 1F, + yawMultiplier = if (disableY) 0F else if (invertY) -1F else 1F, + maxPitch = if (invertX) -45F else 45F, + minPitch = if (invertX) -70F else -45F, + maxYaw = if (invertY) -45F else 45F, + ) + + + override val targetFrame: Class = ModelFrame::class.java override var labels = setOf("look") override fun setAngles(entity: T?, model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { - val pitch = (if (invertX) -1 else 1) * headPitch.coerceIn(-45F, 70F) - val yaw = (if (invertY) -1 else 1) * headYaw.coerceIn(-45F, 45F) - - (if (!disableX) frame.head.addRotation(X_AXIS, pitch.toRadians() * intensity)) - (if (!disableY) frame.head.addRotation(Y_AXIS, yaw.toRadians() * intensity)) + val head = bone ?: return + val pitch = pitchMultiplier * headPitch.coerceIn(minPitch, maxPitch) + val yaw = yawMultiplier * headYaw.coerceIn(-maxYaw, maxYaw) + head.addRotation(X_AXIS, pitch.toRadians() * intensity) + head.addRotation(Y_AXIS, yaw.toRadians() * intensity) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/WingFlapIdleAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/WingFlapIdleAnimation.kt index 43f80f8b38..066edc7e82 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/WingFlapIdleAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/animation/WingFlapIdleAnimation.kt @@ -12,19 +12,40 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityMo import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.addRotation import com.cobblemon.mod.common.client.render.models.blockbench.frame.BiWingedFrame +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction import net.minecraft.entity.Entity +import net.minecraft.item.BoneMealItem + class WingFlapIdleAnimation( - frame: BiWingedFrame, - val flapFunction: WaveFunction, - val timeVariable: (state: PoseableEntityState?, limbSwing: Float, ageInTicks: Float) -> Float?, + frame: ModelFrame, + val leftWing: Bone?, + val rightWing: Bone?, + val rotation: WaveFunction, + val timeVariable: (state: PoseableEntityState?, limbSwing: Float, ageInTicks: Float) -> Float? = { state, _, _ -> state?.animationSeconds ?: 0F }, val axis: Int -) : StatelessAnimation(frame) { - override val targetFrame = BiWingedFrame::class.java +) : StatelessAnimation(frame) { + constructor( + frame: BiWingedFrame, + flapFunction: WaveFunction, + timeVariable: (state: PoseableEntityState?, limbSwing: Float, ageInTicks: Float) -> Float?, + axis: Int + ): this( + frame = frame, + leftWing = frame.leftWing, + rightWing = frame.rightWing, + rotation = flapFunction, + timeVariable = timeVariable, + axis = axis + ) + + override val targetFrame = ModelFrame::class.java override fun setAngles(entity: T?, model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { val time = timeVariable(state, limbSwing, ageInTicks) ?: 0F - frame.leftWing.addRotation(axis, flapFunction(time) * intensity) - frame.rightWing.addRotation(axis, -flapFunction(time) * intensity) + val angle = rotation(time) + leftWing?.addRotation(axis, angle) + rightWing?.addRotation(axis, -angle) } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimation.kt index f0775d59bd..1e94639c40 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimation.kt @@ -15,6 +15,8 @@ import com.bedrockk.molang.runtime.MoScope 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.api.molang.MoLangFunctions.addFunctions +import com.cobblemon.mod.common.api.molang.MoLangFunctions.getQueryStruct import com.cobblemon.mod.common.api.snowstorm.BedrockParticleEffect import com.cobblemon.mod.common.api.text.text import com.cobblemon.mod.common.client.particle.ParticleStorm @@ -22,9 +24,11 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityMo import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.repository.RenderContext import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.util.asExpression import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace import com.cobblemon.mod.common.util.getString import com.cobblemon.mod.common.util.math.geometry.toRadians +import com.cobblemon.mod.common.util.resolve import com.cobblemon.mod.common.util.resolveDouble import java.util.SortedMap import net.minecraft.client.MinecraftClient @@ -71,24 +75,29 @@ class BedrockParticleKeyframe( override fun run(entity: T, state: PoseableEntityState) { val world = entity.world as? ClientWorld ?: return val matrixWrapper = state.locatorStates[locator] ?: state.locatorStates["root"]!! - val effect = effect if (this in state.poseParticles) { return } - state.poseParticles.add(this) + val particleRuntime = MoLangRuntime() + + // Share the query struct from the entity so the particle can query entity properties + particleRuntime.environment.structs["query"] = state.runtime.environment.getQueryStruct() val storm = ParticleStorm( effect = effect, matrixWrapper = matrixWrapper, world = world, + runtime = particleRuntime, sourceVelocity = { entity.velocity }, sourceAlive = { !entity.isRemoved && this in state.poseParticles }, sourceVisible = { !entity.isInvisible }, + entity = entity, onDespawn = { state.poseParticles.remove(this) } ) + state.poseParticles.add(this) storm.runtime.execute(this.scripts) storm.spawn() } @@ -122,7 +131,7 @@ class BedrockInstructionKeyframe( val expressions: List ): BedrockEffectKeyframe(seconds) { override fun run(entity: T, state: PoseableEntityState) { - expressions.forEach { expression -> BedrockAnimation.runInstruction(entity, state, expression) } + expressions.forEach { expression -> state.runtime.resolve(expression) } } } @@ -133,64 +142,11 @@ data class BedrockAnimation( val boneTimelines: Map ) { companion object { - val functionMappings = hashMapOf>() val sharedRuntime = MoLangRuntime().also { - it.environment.structs["query"] = it.environment.structs["variable"] - it.environment.structs["script"] = QueryStruct(functionMappings) - } - - var context: InstructionContext? = null - - inline fun registerInstruction(name: String, crossinline function: (entity: T, state: PoseableEntityState, params: MoParams) -> Any) { - functionMappings[name] = java.util.function.Function { args -> - val ctx = context ?: return@Function Unit - if (ctx.entity is T) { - val ret = function(ctx.entity, ctx.state as PoseableEntityState, args) - if (ret is Unit) { - return@Function 0.0 - } else { - return@Function ret - } - } - Unit - } - } - - class InstructionContext(val entity: Entity, val state: PoseableEntityState<*>) - - fun runInstruction(entity: T, state: PoseableEntityState, expression: Expression) { - val ctx = InstructionContext(entity, state) - context = ctx - expression.evaluate(MoScope(), sharedRuntime.environment) - context = null - } - - init { - registerInstruction("say") { entity, _, params -> - MinecraftClient.getInstance().player?.sendMessage(params.getString(0).text()) - Unit - } - registerInstruction("sound") { entity, _, params -> - // Means we don't need to setup a sound registry entry for every single thing - val soundEvent = SoundEvent.of(params.getString(0).asIdentifierDefaultingNamespace()) - if (soundEvent != null) { - val volume = if (params.contains(1)) params.getDouble(1).toFloat() else 1F - val pitch = if (params.contains(2)) params.getDouble(2).toFloat() else 1F - MinecraftClient.getInstance().soundManager.play( - PositionedSoundInstance(soundEvent, SoundCategory.NEUTRAL, volume, pitch, entity.world.random, entity.x, entity.y, entity.z) - ) - } - Unit - } - registerInstruction("random") { entity, _, params -> - val options = mutableListOf() - var index = 0 - while (params.contains(index)) { - options.add(params.get(index)) - index++ - } - return@registerInstruction options.random() // Can throw an exception if they specified no args. They'd be idiots though. - } + val zero = DoubleValue(0.0) + it.environment.getQueryStruct().addFunctions(mapOf( + "anim_time" to java.util.function.Function { return@Function zero } + )) } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimationRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimationRepository.kt index 220eabc288..fb15579023 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimationRepository.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockAnimationRepository.kt @@ -55,6 +55,11 @@ object BedrockAnimationRepository { LOGGER.info("Loaded $animationCount animations from ${animationGroups.size} animation groups") } + fun tryGetAnimation(fileName: String, animationName: String): BedrockAnimation? { + val animationGroup = animationGroups[fileName] ?: return null + return animationGroup.animations[animationName] + } + fun getAnimation(fileName: String, animationName: String): BedrockAnimation { val animationGroup = animationGroups[fileName] ?: throw IllegalArgumentException("Unknown animation group: $fileName") diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockStatefulAnimation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockStatefulAnimation.kt index d984cecd9d..b9cd1159d2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockStatefulAnimation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/bedrock/animation/BedrockStatefulAnimation.kt @@ -24,13 +24,7 @@ import net.minecraft.entity.Entity */ open class BedrockStatefulAnimation( val animation: BedrockAnimation, - var preventsIdleCheck: (T?, PoseableEntityState, StatelessAnimation) -> Boolean ) : StatefulAnimation { - fun setPreventsIdle(preventsIdle: Boolean): BedrockStatefulAnimation { - this.preventsIdleCheck = { _, _, _ -> preventsIdle } - return this - } - var startedSeconds = -1F var isTransformAnimation = false override val duration = animation.animationLength.toFloat() @@ -39,10 +33,6 @@ open class BedrockStatefulAnimation( override val isTransform: Boolean get() = isTransformAnimation - fun isTransformAnimation(value: Boolean) = this.also { - it.isTransformAnimation = value - } - fun andThen(action: (entity: T, PoseableEntityState) -> Unit) = this.also { it.afterAction = action } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilModel.kt index be90e0039a..da6b5dc5a1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilModel.kt @@ -22,15 +22,19 @@ class FossilModel(root: Bone) : PoseableEntityModel() { //TODO: Find a better way to fetch this bone name val boneName: String = root.children.entries.first().key override val rootPart = (root as ModelPart).registerChildWithAllChildren(boneName) - + // Represents a very rough middle of the model + // The reason to do this is to + // 1. The embryo is aligned with the center of the model + // 2. The model can appear to grow (scale) from the center out + var yGrowthPoint = 0F var maxScale = 1F - var yTranslation = 0F - var animations: Array> = emptyArray() + var yTranslation = 0F // Offset inside the tank + var tankAnimations: Array> = emptyArray() var tankQuirks: Array> = emptyArray() override fun registerPoses() { registerPose( poseType = PoseType.SLEEP, - idleAnimations = animations, + idleAnimations = tankAnimations, quirks = tankQuirks ) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilState.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilState.kt index 130f8f78ca..01e55bd573 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilState.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/fossil/FossilState.kt @@ -11,6 +11,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.fossil import com.cobblemon.mod.common.api.scheduling.SchedulingTracker import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import net.minecraft.entity.Entity +import kotlin.math.floor /** * Floating state for a fossil Pokémon in the resurrection machine. @@ -18,15 +19,24 @@ import net.minecraft.entity.Entity * @author Hiroku * @since October 30th, 2023 */ -class FossilState : PoseableEntityState() { +class FossilState(startAge: Int = -1, startPartialTicks: Float = 0F) : PoseableEntityState() { var totalPartialTicks = 0F + init { + // generate phase offset if new + age = if (startAge >= 0) startAge else (200F * Math.random()).toInt() + currentPartialTicks = if(startAge > 0f) startPartialTicks else 0F + } override fun getEntity() = null + fun peekAge() : Int { // Need to find a way to do this with getAge that's not protected + return this.age + } + // for dictating growth state of the Fossil Embryo var growthState = "Embryo" override fun updatePartialTicks(partialTicks: Float) { - this.totalPartialTicks += partialTicks - currentPartialTicks += partialTicks + currentPartialTicks += partialTicks / 2 + totalPartialTicks += partialTicks / 2 } override val schedulingTracker = SchedulingTracker() diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/generic/JsonGenericPoseableModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/generic/JsonGenericPoseableModel.kt new file mode 100644 index 0000000000..42e26e6252 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/generic/JsonGenericPoseableModel.kt @@ -0,0 +1,66 @@ +/* + * 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.generic + +import com.cobblemon.mod.common.client.entity.GenericBedrockClientDelegate +import com.cobblemon.mod.common.client.render.models.blockbench.JsonPoseableEntityModel +import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation +import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity +import com.cobblemon.mod.common.util.adapters.Vec3dAdapter +import com.google.gson.GsonBuilder +import com.google.gson.InstanceCreator +import com.google.gson.reflect.TypeToken +import java.lang.reflect.Type +import java.util.function.Supplier +import net.minecraft.util.math.Vec3d + +class JsonGenericPoseableModel(override val rootPart: Bone, override val isForLivingEntityRenderer: Boolean = false) : JsonPoseableEntityModel(rootPart) { + + object JsonGenericPoseableModelAdapter : InstanceCreator { + var modelPart: Bone? = null + var model: JsonGenericPoseableModel? = null + override fun createInstance(type: Type): JsonGenericPoseableModel { + return JsonGenericPoseableModel(modelPart!!).also { + model = it + it.loadAllNamedChildren(modelPart!!) + } + } + } + + companion object { + var model: JsonGenericPoseableModel? = null + val gson = GsonBuilder() + .setPrettyPrinting() + .disableHtmlEscaping() + .registerTypeAdapter(Vec3d::class.java, Vec3dAdapter) + .setExclusionStrategies(JsonModelExclusion) + .registerTypeAdapter( + TypeToken.getParameterized( + Supplier::class.java, + TypeToken.getParameterized( + StatefulAnimation::class.java, + GenericBedrockEntity::class.java, + ModelFrame::class.java + ).type + ).type, + StatefulAnimationAdapter { JsonGenericPoseableModelAdapter.model!! } + ) + .registerTypeAdapter(Pose::class.java, PoseAdapter { JsonGenericPoseableModelAdapter.model!! }) + .registerTypeAdapter( + JsonGenericPoseableModel::class.java, + JsonGenericPoseableModelAdapter + ) + .create() + } + + override fun getState(entity: GenericBedrockEntity) = entity.delegate as GenericBedrockClientDelegate +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/AncientPokeBallModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/AncientPokeBallModel.kt index 6ca38246fd..bb3bbcbeb6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/AncientPokeBallModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/AncientPokeBallModel.kt @@ -40,24 +40,20 @@ class AncientPokeBallModel(root: ModelPart) : PokeBallModel(root), PokeBallFrame shut = registerPose( poseName = "shut", poseTypes = setOf(PoseType.NONE), - idleAnimations = arrayOf( - bedrock("ancient_poke_ball", "shut_idle") - ), + idleAnimations = arrayOf(bedrock("ancient_poke_ball", "shut_idle")), transformTicks = 0 ) open = registerPose( poseName = "open", poseTypes = setOf(PoseType.NONE), - idleAnimations = arrayOf( - bedrock("ancient_poke_ball", "open_idle") - ), - transformTicks = 10 + idleAnimations = arrayOf(bedrock("ancient_poke_ball", "open_idle")), + transformTicks = 0 ) - shut.transitions[open] = { _, _ -> bedrockStateful("ancient_poke_ball", "open").andThen { entity, state -> state.setPose(open.poseName) } } - open.transitions[shut] = { _, _ -> bedrockStateful("ancient_poke_ball", "shut").andThen { entity, state -> state.setPose(shut.poseName) } } - midair.transitions[open] = shut.transitions[open]!! + shut.transitions[open.poseName] = { _, _ -> bedrockStateful("ancient_poke_ball", "open").andThen { entity, state -> state.setPose(open.poseName) } } + open.transitions[shut.poseName] = { _, _ -> bedrockStateful("ancient_poke_ball", "shut").andThen { entity, state -> state.setPose(shut.poseName) } } + midair.transitions[open.poseName] = shut.transitions[open.poseName]!! } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/PokeBallModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/PokeBallModel.kt index 1c6d30fcb6..21dad197d9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/PokeBallModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokeball/PokeBallModel.kt @@ -41,24 +41,20 @@ open class PokeBallModel(root: ModelPart) : PoseableEntityModel bedrockStateful("poke_ball", "open").isTransformAnimation(true) } - open.transitions[shut] = { _, _ -> bedrockStateful("poke_ball", "shut").isTransformAnimation(true) } - midair.transitions[open] = shut.transitions[open]!! + shut.transitions[open.poseName] = { _, _ -> bedrockStateful("poke_ball", "open") } + open.transitions[shut.poseName] = { _, _ -> bedrockStateful("poke_ball", "shut") } + midair.transitions[open.poseName] = shut.transitions[open.poseName]!! } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/JsonPokemonPoseableModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/JsonPokemonPoseableModel.kt index 3b03df50af..dfd271d3ba 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/JsonPokemonPoseableModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/JsonPokemonPoseableModel.kt @@ -8,18 +8,27 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pokemon +import com.cobblemon.mod.common.api.molang.ExpressionLike +import com.cobblemon.mod.common.client.render.models.blockbench.JsonPose +import com.cobblemon.mod.common.client.render.models.blockbench.JsonPoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation -import com.cobblemon.mod.common.client.render.models.blockbench.bedrock.animation.BedrockStatefulAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone -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.pokemon.PokemonEntity +import com.cobblemon.mod.common.util.adapters.ExpressionLikeAdapter import com.cobblemon.mod.common.util.adapters.Vec3dAdapter -import com.google.gson.* +import com.google.gson.ExclusionStrategy +import com.google.gson.FieldAttributes +import com.google.gson.GsonBuilder +import com.google.gson.InstanceCreator +import com.google.gson.JsonDeserializationContext +import com.google.gson.JsonDeserializer +import com.google.gson.JsonElement +import com.google.gson.JsonObject +import com.google.gson.JsonPrimitive import com.google.gson.annotations.SerializedName import com.google.gson.reflect.TypeToken import java.lang.reflect.Type @@ -40,7 +49,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod .setPrettyPrinting() .disableHtmlEscaping() .registerTypeAdapter(Vec3d::class.java, Vec3dAdapter) - .setExclusionStrategies(JsonModelExclusion) + .setExclusionStrategies(JsonPoseableEntityModel.JsonModelExclusion) .registerTypeAdapter( TypeToken.getParameterized( Supplier::class.java, @@ -50,8 +59,9 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod ModelFrame::class.java ).type ).type, - StatefulAnimationAdapter + JsonPoseableEntityModel.StatefulAnimationAdapter { JsonPokemonPoseableModelAdapter.model!! } ) + .registerTypeAdapter(ExpressionLike::class.java, ExpressionLikeAdapter) .registerTypeAdapter(Pose::class.java, PoseAdapter) .registerTypeAdapter(JsonPokemonPoseableModel::class.java, JsonPokemonPoseableModelAdapter) .create() @@ -92,12 +102,11 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod get() = _profileTranslation ?: Vec3d(0.0, 0.0, 0.0) - val faint: Supplier>? = null val cry: Supplier>? = null override fun getFaintAnimation(pokemonEntity: PokemonEntity, state: PoseableEntityState) = faint?.get() - override val cryAnimation = CryProvider { _, _ -> cry?.get()?.also { if (it is BedrockStatefulAnimation) it.setPreventsIdle(false) } } + override val cryAnimation = CryProvider { _, _ -> cry?.get() } object JsonModelExclusion: ExclusionStrategy { override fun shouldSkipField(f: FieldAttributes): Boolean { @@ -115,7 +124,6 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod } object StatefulAnimationAdapter : JsonDeserializer>> { - var preventsIdleDefault = true override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Supplier> { json as JsonPrimitive val animString = json.asString @@ -134,16 +142,12 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod } } } + object PoseAdapter : JsonDeserializer> { override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Pose { val model = JsonPokemonPoseableModelAdapter.model!! val obj = json as JsonObject - val poseName = obj.get("poseName").asString - val poseTypes = (obj.get("poseTypes")?.asJsonArray?.map { name -> - PoseType.values().find { it.name.lowercase() == name.asString.lowercase() } - ?: throw IllegalArgumentException("Unknown pose type ${name.asString}") - } ?: emptyList()) + if (obj.get("allPoseTypes")?.asBoolean == true) PoseType.values().toList() else emptyList() - val transformTicks = obj.get("transformTicks")?.asInt ?: 10 + val pose = JsonPose(model, obj) val conditionsList = mutableListOf<(PokemonEntity) -> Boolean>() @@ -158,73 +162,23 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod val poseCondition: ((PokemonEntity) -> Boolean)? = if (conditionsList.isEmpty()) null else conditionsList.reduce { acc, function -> { acc(it) && function(it) } } - val transformedParts = obj.get("transformedParts")?.asJsonArray?.map { - it as JsonObject - val partName = it.get("part").asString - val part = model.getPart(partName) - val transformation = ModelPartTransformation(part) - val rotation = it.get("rotation")?.asJsonArray?.let { Vec3d(it[0].asDouble, it[1].asDouble, it[2].asDouble) } ?: Vec3d.ZERO - val position = it.get("position")?.asJsonArray?.let { Vec3d(it[0].asDouble, it[1].asDouble, it[2].asDouble) } ?: Vec3d.ZERO - val isVisible = it.get("isVisible")?.asBoolean ?: true - return@map transformation.withPosition(position.x, position.y, position.z).withRotationDegrees(rotation.x, rotation.y, rotation.z).withVisibility(isVisible) - }?.toTypedArray() ?: arrayOf() - - val idleAnimations = (obj.get("animations")?.asJsonArray ?: JsonArray()).asJsonArray.mapNotNull { - val animString = it.asString - if (animString == "look") { - return@mapNotNull JsonPokemonPoseableModelAdapter.model!!.singleBoneLook() - } else { - val anim = animString.substringBefore("(") - - if(ANIMATION_FACTORIES.contains(anim)) { - return@mapNotNull ANIMATION_FACTORIES[anim]?.stateless(model, animString) - } - } - return@mapNotNull null - }.toTypedArray() - - val quirks = (obj.get("quirks")?.asJsonArray ?: JsonArray()).map { json -> - json as JsonObject - val name = json.get("name").asString - val animations: (state: PoseableEntityState) -> List> = { _ -> - (json.get("animations")?.asJsonArray ?: JsonArray()).map { animJson -> - val animString = animJson.asString - - val anim = animString.substringBefore("(") - - StatefulAnimationAdapter.preventsIdleDefault = false - val animation = if(ANIMATION_FACTORIES.contains(anim)) { - ANIMATION_FACTORIES[anim]?.stateful(model, animString) - } else { - null - } - StatefulAnimationAdapter.preventsIdleDefault = true - animation - }.filterNotNull() - } - - val loopTimes = json.get("loopTimes")?.asInt ?: 1 - val minSeconds = json.get("minSecondsBetweenOccurrences")?.asFloat ?: 8F - val maxSeconds = json.get("maxSecondsBetweenOccurrences")?.asFloat ?: 30F - - model.quirkMultiple( - name = name, - secondsBetweenOccurrences = minSeconds to maxSeconds, - condition = { true }, - loopTimes = 1..loopTimes, - animations = animations + return Pose( + poseName = pose.poseName, + poseTypes = pose.poseTypes.toSet(), + condition = poseCondition, + animations = pose.animations, + transformTicks = pose.transformTicks, + idleAnimations = pose.idleAnimations, + transformedParts = pose.transformedParts, + quirks = pose.quirks.toTypedArray() + ).also { + it.transitions.putAll( + pose.transitions + .mapNotNull, Pose) -> StatefulAnimation>> { + it.to to { _, _ -> it.animation.resolveObject(model.runtime).obj as StatefulAnimation } + }.toMap() ) } - - return Pose( - poseName = poseName, - poseTypes = poseTypes.toSet(), - condition = poseCondition, - transformTicks = transformTicks, - idleAnimations = idleAnimations, - transformedParts = transformedParts, - quirks = quirks.toTypedArray() - ) } } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/PokemonPoseableModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/PokemonPoseableModel.kt index 63313cba84..9a9e5db0ab 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/PokemonPoseableModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/PokemonPoseableModel.kt @@ -87,11 +87,6 @@ abstract class PokemonPoseableModel : PoseableEntityModel() { } open val cryAnimation: CryProvider = CryProvider { _, _ -> null } -// -// open fun getCryAnimation( -// pokemonEntity: PokemonEntity, -// state: PoseableEntityState -// ): StatefulAnimation? = null override fun setupEntityTypeContext(entity: PokemonEntity?) { entity?.let { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AerodactylModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AerodactylModel.kt index 89ed2ced02..69ac1ec912 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AerodactylModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AerodactylModel.kt @@ -33,7 +33,7 @@ class AerodactylModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("aerodactyl", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("aerodactyl", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("aerodactyl", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AlakazamModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AlakazamModel.kt index 93ea5b1eef..12c1047f69 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AlakazamModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/AlakazamModel.kt @@ -41,7 +41,7 @@ class AlakazamModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("alakazam", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("alakazam", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ArbokModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ArbokModel.kt index 18c931c057..e3ea1f9d1e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ArbokModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ArbokModel.kt @@ -51,10 +51,10 @@ class ArbokModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val tail4WaveSegment = WaveSegment(modelPart = tail4, length = 11F) val tail5WaveSegment = WaveSegment(modelPart = tail5, length = 11F) - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("arbok", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("arbok", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("arbok", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("arbok", "blink") } // TODO tongue_flick val wave = WaveAnimation( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BeedrillModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BeedrillModel.kt index 47e702c4a9..a1eb6f29cd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BeedrillModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BeedrillModel.kt @@ -38,7 +38,7 @@ class BeedrillModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BiWi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beedrill", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beedrill", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BlastoiseModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BlastoiseModel.kt deleted file mode 100644 index 91cc7ccacd..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BlastoiseModel.kt +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2023 Cobblemon Contributors - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen1 - -import com.cobblemon.mod.common.client.render.models.blockbench.EarJoint -import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState -import com.cobblemon.mod.common.client.render.models.blockbench.RangeOfMotion -import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame -import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame -import com.cobblemon.mod.common.client.render.models.blockbench.frame.EaredFrame -import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame -import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider -import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPose -import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPoseableModel -import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation -import com.cobblemon.mod.common.entity.PoseType -import com.cobblemon.mod.common.entity.pokemon.PokemonEntity -import com.cobblemon.mod.common.util.math.geometry.toRadians -import net.minecraft.client.model.ModelPart -import net.minecraft.util.math.Vec3d -class BlastoiseModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFrame, BimanualFrame, EaredFrame { - override val rootPart = root.registerChildWithAllChildren("blastoise") - override val head = getPart("head_ai") - override val rightArm = getPart("arm_right") - override val leftArm = getPart("arm_left") - override val rightLeg = getPart("leg_right") - override val leftLeg = getPart("leg_left") - private val rightEar = getPart("ear_right") - private val leftEar = getPart("ear_left") - override val leftEarJoint = EarJoint(leftEar, ModelPartTransformation.Z_AXIS, RangeOfMotion(50F.toRadians(), 0F)) - override val rightEarJoint = EarJoint(rightEar, ModelPartTransformation.Z_AXIS, RangeOfMotion((-50F).toRadians(), 0F)) - - override val portraitScale = 1.7F - override val portraitTranslation = Vec3d(-0.5, 1.4, 0.0) - - override val profileScale = 0.63F - override val profileTranslation = Vec3d(0.0, 0.8, 0.0) - - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("blastoise", "cry").setPreventsIdle(false) } - - lateinit var sleep: PokemonPose - lateinit var standing: PokemonPose - lateinit var swimIdle: PokemonPose - lateinit var swimMove: PokemonPose - lateinit var walk: PokemonPose - - override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("blastoise", "blink").setPreventsIdle(false)} - sleep = registerPose( - poseType = PoseType.SLEEP, - transformTicks = 10, - idleAnimations = arrayOf(bedrock("blastoise", "sleep")) - ) - - standing = registerPose( - poseName = "standing", - poseTypes = setOf(PoseType.NONE, PoseType.PROFILE, PoseType.PORTRAIT, PoseType.STAND), - transformTicks = 10, - quirks = arrayOf(blink), - idleAnimations = arrayOf( - singleBoneLook(), - bedrock("blastoise", "ground_idle") - ) - ) - - swimIdle = registerPose( - poseName = "swim_idle", - poseTypes = setOf(PoseType.FLOAT), - transformTicks = 10, - quirks = arrayOf(blink), - idleAnimations = arrayOf( - bedrock("blastoise", "water_idle"), - singleBoneLook() - ) - ) - - swimMove = registerPose( - poseName = "swim_move", - poseTypes = setOf(PoseType.SWIM), - transformTicks = 10, - quirks = arrayOf(blink), - idleAnimations = arrayOf( - singleBoneLook(), - bedrock("blastoise", "water_swim") - ) - ) - - walk = registerPose( - poseType = PoseType.WALK, - transformTicks = 10, - quirks = arrayOf(blink), - idleAnimations = arrayOf( - singleBoneLook(), - bedrock("blastoise", "ground_walk") - ) - ) - } - - override fun getFaintAnimation( - pokemonEntity: PokemonEntity, - state: PoseableEntityState - ) = if (state.isPosedIn(standing, walk, sleep)) bedrockStateful("blastoise", "faint") else null -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BulbasaurModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BulbasaurModel.kt index 888e58766f..87412dcee7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BulbasaurModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/BulbasaurModel.kt @@ -36,10 +36,10 @@ class BulbasaurModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bulbasaur", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bulbasaur", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bulbasaur", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bulbasaur", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ButterfreeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ButterfreeModel.kt index 9745a4a127..3337ea9252 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ButterfreeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ButterfreeModel.kt @@ -35,7 +35,7 @@ class ButterfreeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("butterfree", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("butterfree", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CaterpieModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CaterpieModel.kt index b3c9776e72..670a6bdeaf 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CaterpieModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CaterpieModel.kt @@ -34,10 +34,10 @@ class CaterpieModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("caterpie", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("caterpie", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("caterpie", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("caterpie", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ChanseyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ChanseyModel.kt index 6f7eca3c04..f5b8e41dba 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ChanseyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ChanseyModel.kt @@ -33,7 +33,7 @@ class ChanseyModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chansey", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("chansey", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharizardModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharizardModel.kt index bd2c74b6d8..3b37aa3e97 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharizardModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharizardModel.kt @@ -8,13 +8,11 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen1 -import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.createTransformation import com.cobblemon.mod.common.client.render.models.blockbench.frame.BiWingedFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.BimanualFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame -import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPose import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPoseableModel import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation.Companion.Y_AXIS @@ -22,9 +20,10 @@ import com.cobblemon.mod.common.entity.PoseType import com.cobblemon.mod.common.entity.PoseType.Companion.MOVING_POSES import com.cobblemon.mod.common.entity.PoseType.Companion.STATIONARY_POSES import com.cobblemon.mod.common.entity.PoseType.Companion.UI_POSES -import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.util.asExpressionLike import net.minecraft.client.model.ModelPart import net.minecraft.util.math.Vec3d + class CharizardModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFrame, BimanualFrame, BiWingedFrame { override val rootPart = root.registerChildWithAllChildren("charizard") override val head = getPart("head_ai") @@ -47,13 +46,20 @@ class CharizardModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var flyIdle: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charizard", "cry").setPreventsIdle(false) } - override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("charizard", "blink").setPreventsIdle(false)} + animations["physical"] = "q.bedrock_primary('charizard', 'physical', 'look', q.curve('symmetrical_wide'))".asExpressionLike() + animations["special"] = "q.bedrock_primary('charizard', 'special', 'look', q.curve('symmetrical_wide'))".asExpressionLike() + animations["status"] = "q.bedrock_primary('charizard', 'status', q.curve('symmetrical_wide'))".asExpressionLike() + animations["recoil"] = "q.bedrock_stateful('charizard', 'recoil')".asExpressionLike() + animations["cry"] = "q.bedrock_stateful('charizard', 'cry')".asExpressionLike() + + val faint = "q.bedrock_primary('charizard', 'faint', q.curve('one'))".asExpressionLike() + + val blink = quirk { bedrockStateful("charizard", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, quirks = arrayOf(blink), + animations = mutableMapOf("faint" to faint), idleAnimations = arrayOf(bedrock("charizard", "sleep")) ) @@ -61,16 +67,30 @@ class CharizardModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip poseName = "standing", poseTypes = STATIONARY_POSES - PoseType.HOVER + UI_POSES, quirks = arrayOf(blink), + condition = { !it.isBattling }, + animations = mutableMapOf("faint" to faint), idleAnimations = arrayOf( singleBoneLook(), bedrock("charizard", "ground_idle") ) ) + registerPose( + poseTypes = setOf(PoseType.STAND), + poseName = "battle_standing", + condition = { it.isBattling }, + animations = mutableMapOf("faint" to faint), + idleAnimations = arrayOf( + singleBoneLook(), + bedrock("charizard", "battle_idle") + ) + ) + walk = registerPose( poseName = "walk", poseTypes = MOVING_POSES - PoseType.FLY, quirks = arrayOf(blink), + animations = mutableMapOf("faint" to faint), idleAnimations = arrayOf( singleBoneLook(), bedrock("charizard", "ground_idle"), @@ -100,9 +120,4 @@ class CharizardModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip transformedParts = arrayOf(rootPart.createTransformation().addPosition(Y_AXIS, 6F)) ) } - - override fun getFaintAnimation( - pokemonEntity: PokemonEntity, - state: PoseableEntityState - ) = if (state.isPosedIn(standing, walk, sleep)) bedrockStateful("charizard", "faint") else null } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmanderModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmanderModel.kt index e44ba72d71..d789a14b64 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmanderModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmanderModel.kt @@ -41,7 +41,7 @@ class CharmanderModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmander", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmander", "cry") } override fun registerPoses() { sleep = registerPose( @@ -49,7 +49,7 @@ class CharmanderModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi idleAnimations = arrayOf(bedrock("charmander", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("charmander", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("charmander", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmeleonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmeleonModel.kt index ab7812fa37..d02414a574 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmeleonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/CharmeleonModel.kt @@ -39,10 +39,10 @@ class CharmeleonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmeleon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmeleon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("charmeleon", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("charmeleon", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefableModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefableModel.kt index b4bb054caf..26a22528d6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefableModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefableModel.kt @@ -33,10 +33,10 @@ class ClefableModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefable", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefable", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("clefable", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("clefable", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefairyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefairyModel.kt index 064db69b6c..51622413d9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefairyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ClefairyModel.kt @@ -33,10 +33,10 @@ class ClefairyModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefairy", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefairy", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("clefairy", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("clefairy", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DiglettModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DiglettModel.kt index 231455397d..aea57f9c46 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DiglettModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DiglettModel.kt @@ -32,7 +32,7 @@ class DiglettModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("diglett", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("diglett", "blink")} stand = registerPose( poseName = "stand", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DittoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DittoModel.kt index 7e42a99c35..c9f62b598b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DittoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DittoModel.kt @@ -33,10 +33,10 @@ class DittoModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ditto", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ditto", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ditto", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ditto", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DodrioModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DodrioModel.kt index 0d03429615..bfacb6583b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DodrioModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DodrioModel.kt @@ -32,9 +32,9 @@ class DodrioModel (root: ModelPart) : PokemonPoseableModel() { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("dodrio", "blink1").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("dodrio", "blink2").setPreventsIdle(false) } - val blink3 = quirk("blink3") { bedrockStateful("dodrio", "blink3").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("dodrio", "blink1") } + val blink2 = quirk { bedrockStateful("dodrio", "blink2") } + val blink3 = quirk { bedrockStateful("dodrio", "blink3") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("dodrio", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DoduoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DoduoModel.kt index 0afb07d189..05068e30f3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DoduoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DoduoModel.kt @@ -32,10 +32,10 @@ class DoduoModel (root: ModelPart) : PokemonPoseableModel() { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("doduo", "blink1").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("doduo", "blink2").setPreventsIdle(false) } - val bite = quirk("bite") { bedrockStateful("doduo", "bite_quirk1").setPreventsIdle(false) } - val bite2 = quirk("bite2") { bedrockStateful("doduo", "bite_quirk2").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("doduo", "blink1") } + val blink2 = quirk { bedrockStateful("doduo", "blink2") } + val bite = quirk { bedrockStateful("doduo", "bite_quirk1") } + val bite2 = quirk { bedrockStateful("doduo", "bite_quirk2") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragonairModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragonairModel.kt index ae8ec43e49..223ecf91cc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragonairModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragonairModel.kt @@ -32,7 +32,7 @@ class DragonairModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { // TODO dragonair swish override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dragonair", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("dragonair", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + MOVING_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragoniteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragoniteModel.kt index 0483eb71c0..847e2f4ba8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragoniteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DragoniteModel.kt @@ -47,7 +47,7 @@ class DragoniteModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BiW lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dragonite", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("dragonite", "blink")} standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DratiniModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DratiniModel.kt index 2d60066190..7951ca5c05 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DratiniModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DratiniModel.kt @@ -30,7 +30,7 @@ class DratiniModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dratini", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("dratini", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + MOVING_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DrowzeeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DrowzeeModel.kt index ece83cd897..ad724e4406 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DrowzeeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DrowzeeModel.kt @@ -38,7 +38,7 @@ class DrowzeeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("drowzee", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("drowzee", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("drowzee", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DugtrioModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DugtrioModel.kt index 4a6d8c6a58..e65607fc08 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DugtrioModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/DugtrioModel.kt @@ -31,9 +31,9 @@ class DugtrioModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dugtrio", "blink").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("dugtrio", "blink2").setPreventsIdle(false)} - val blink3 = quirk("blink3") { bedrockStateful("dugtrio", "blink3").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("dugtrio", "blink")} + val blink2 = quirk { bedrockStateful("dugtrio", "blink2")} + val blink3 = quirk { bedrockStateful("dugtrio", "blink3")} registerPose( poseName = "stand", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EeveeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EeveeModel.kt index 2b13a8c016..77cc9f3b22 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EeveeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EeveeModel.kt @@ -49,12 +49,12 @@ class EeveeModel(root: ModelPart) : PokemonPoseableModel(), EaredFrame, HeadedFr lateinit var shoulderLeft: PokemonPose lateinit var shoulderRight: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("eevee", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("eevee", "cry") } val shoulderOffset = 4 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("eevee", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("eevee", "blink") } stand = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EkansModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EkansModel.kt index a6c195c0a6..6bbadcc843 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EkansModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/EkansModel.kt @@ -53,14 +53,14 @@ class EkansModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ekans", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ekans", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("ekans", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("ekans", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ekans", "blink") } registerPose( poseName = "normal", poseTypes = STATIONARY_POSES + MOVING_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectabuzzModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectabuzzModel.kt index 92d2287c49..b888307475 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectabuzzModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectabuzzModel.kt @@ -38,7 +38,7 @@ class ElectabuzzModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("electabuzz", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("electabuzz", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectrodeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectrodeModel.kt index 743423072f..31c91e9d9f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectrodeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ElectrodeModel.kt @@ -29,7 +29,7 @@ class ElectrodeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("electrode", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("electrode", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggcuteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggcuteModel.kt index dbc3d7c09b..645ca419db 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggcuteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggcuteModel.kt @@ -33,12 +33,12 @@ class ExeggcuteModel(root: ModelPart) : PokemonPoseableModel() { lateinit var uiPortrait: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink") { bedrockStateful("exeggcute", "blink").setPreventsIdle(false) } - val blink2 = quirk("blink") { bedrockStateful("exeggcute", "blink2").setPreventsIdle(false) } - val blink3 = quirk("blink") { bedrockStateful("exeggcute", "blink3").setPreventsIdle(false) } - val blink4 = quirk("blink") { bedrockStateful("exeggcute", "blink4").setPreventsIdle(false) } - val blink5 = quirk("blink") { bedrockStateful("exeggcute", "blink5").setPreventsIdle(false) } - val blink6 = quirk("blink") { bedrockStateful("exeggcute", "blink6").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("exeggcute", "blink") } + val blink2 = quirk { bedrockStateful("exeggcute", "blink2") } + val blink3 = quirk { bedrockStateful("exeggcute", "blink3") } + val blink4 = quirk { bedrockStateful("exeggcute", "blink4") } + val blink5 = quirk { bedrockStateful("exeggcute", "blink5") } + val blink6 = quirk { bedrockStateful("exeggcute", "blink6") } uiPortrait = registerPose( poseName = "portrait", poseType = PoseType.PORTRAIT, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorAlolanModel.kt index da3f07af8f..e7800a920d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorAlolanModel.kt @@ -48,10 +48,10 @@ class ExeggutorAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFram lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink").setPreventsIdle(false) } - val blink2 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink2").setPreventsIdle(false) } - val blink3 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink3").setPreventsIdle(false) } - val blink4 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink4").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("exeggutor_alolan", "blink") } + val blink2 = quirk { bedrockStateful("exeggutor_alolan", "blink2") } + val blink3 = quirk { bedrockStateful("exeggutor_alolan", "blink3") } + val blink4 = quirk { bedrockStateful("exeggutor_alolan", "blink4") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("exeggutor_alolan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorModel.kt index bdc0b9d36c..8a4e08a594 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ExeggutorModel.kt @@ -50,9 +50,9 @@ class ExeggutorModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink") { bedrockStateful("exeggutor", "blink").setPreventsIdle(false) } - val blink2 = quirk("blink") { bedrockStateful("exeggutor", "blink2").setPreventsIdle(false) } - val blink3 = quirk("blink") { bedrockStateful("exeggutor", "blink3").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("exeggutor", "blink") } + val blink2 = quirk { bedrockStateful("exeggutor", "blink2") } + val blink3 = quirk { bedrockStateful("exeggutor", "blink3") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("exeggutor", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdGalarianModel.kt index efdf44f7b7..8059df67e8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdGalarianModel.kt @@ -35,10 +35,10 @@ class FarfetchdGalarianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFr lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd_galar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd_galar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("farfetchd_galar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("farfetchd_galar", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdModel.kt index a7110108f2..fa4c93c8d4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FarfetchdModel.kt @@ -37,13 +37,13 @@ class FarfetchdModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("farfetchd", "blink").setPreventsIdle(false) } - val leakflipidle = quirk("leakflipidle", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_idle").setPreventsIdle(false) } - val leakflipwalk = quirk("leakflipwalk", secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_walk").setPreventsIdle(false) } - val wink = quirk("wink", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_wink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("farfetchd", "blink") } + val leakflipidle = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_idle") } + val leakflipwalk = quirk(secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_walk") } + val wink = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_wink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FearowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FearowModel.kt index 4b47560c1f..c35adb6ea7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FearowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FearowModel.kt @@ -44,10 +44,10 @@ class FearowModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fearow", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fearow", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("fearow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fearow", "blink") } stand = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FlareonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FlareonModel.kt index f4d103d844..59de3fa4da 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FlareonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/FlareonModel.kt @@ -31,7 +31,7 @@ class FlareonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flareon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flareon", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyModel.kt index f8193be83e..294cb11585 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyModel.kt @@ -32,7 +32,7 @@ class GastlyModel(root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk(name = "blink") { bedrockStateful("gastly", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gastly", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyShinyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyShinyModel.kt index 7ee117e5e3..d8d649b160 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyShinyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GastlyShinyModel.kt @@ -31,7 +31,7 @@ class GastlyShinyModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk(name = "blink") { bedrockStateful("gastly_shiny", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gastly_shiny", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GeodudeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GeodudeModel.kt index 20acfdac30..500d592925 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GeodudeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GeodudeModel.kt @@ -31,7 +31,7 @@ class GeodudeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("geodude", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("geodude", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("geodude", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolbatModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolbatModel.kt index a86fe7960b..a6e1ba5029 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolbatModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolbatModel.kt @@ -33,10 +33,10 @@ class GolbatModel(root: ModelPart) : PokemonPoseableModel() { lateinit var fly: PokemonPose lateinit var battleidle: PokemonPose -// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golbat", "cry").setPreventsIdle(false) } +// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golbat", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golbat", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("golbat", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolduckModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolduckModel.kt index 15ead3a4b4..1f7419b5b4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolduckModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolduckModel.kt @@ -33,7 +33,7 @@ class GolduckModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golduck", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("golduck", "blink")} standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolemModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolemModel.kt index de817c6453..63d7d173bc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolemModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GolemModel.kt @@ -36,7 +36,7 @@ class GolemModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFr lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golem", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("golem", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GravelerModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GravelerModel.kt index 6ee2f148f9..914c30a01c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GravelerModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GravelerModel.kt @@ -34,7 +34,7 @@ class GravelerModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("graveler", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("graveler", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrimerModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrimerModel.kt index 93b5ccb9d0..b1b7b01992 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrimerModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrimerModel.kt @@ -31,7 +31,7 @@ class GrimerModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("grimer", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("grimer", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrowlitheModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrowlitheModel.kt index ebddb1c022..315320a951 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrowlitheModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GrowlitheModel.kt @@ -39,7 +39,7 @@ class GrowlitheModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("growlithe", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("growlithe", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("growlithe", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GyaradosModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GyaradosModel.kt index 12d69ce2ef..439e1aa732 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GyaradosModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/GyaradosModel.kt @@ -61,7 +61,7 @@ class GyaradosModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { override val profileTranslation = Vec3d(-0.1, 0.65, 0.0) override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gyarados", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("gyarados", "blink")} registerPose( poseName = "land", poseTypes = STANDING_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HaunterModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HaunterModel.kt index b0e853cea3..d55c7ada08 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HaunterModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HaunterModel.kt @@ -32,7 +32,7 @@ class HaunterModel(root: ModelPart) : PokemonPoseableModel() { val offsetY = -3.0 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("haunter", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("haunter", "blink")} standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonchanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonchanModel.kt index ab2d34cfba..d838f75dae 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonchanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonchanModel.kt @@ -43,7 +43,7 @@ class HitmonchanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("hitmonchan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("hitmonchan", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonleeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonleeModel.kt index cceba24d49..aa18ef366d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonleeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HitmonleeModel.kt @@ -41,7 +41,7 @@ class HitmonleeModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, Bima lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("hitmonlee", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("hitmonlee", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HorseaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HorseaModel.kt index aa1f4235ae..40b06ef2ab 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HorseaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HorseaModel.kt @@ -30,7 +30,7 @@ class HorseaModel(root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("horsea", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("horsea", "blink") } standing = registerPose( poseName = "standing", poseType = PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HypnoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HypnoModel.kt index 2af29a3d66..8f4d3c2f1f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HypnoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/HypnoModel.kt @@ -38,7 +38,7 @@ class HypnoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFr lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("hypno", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("hypno", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("hypno", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/IvysaurModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/IvysaurModel.kt index 97f12c6af6..f07b8519a0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/IvysaurModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/IvysaurModel.kt @@ -39,10 +39,10 @@ class IvysaurModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ivysaur", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ivysaur", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ivysaur", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ivysaur", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JigglypuffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JigglypuffModel.kt index 21b454bb45..26fff984c4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JigglypuffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JigglypuffModel.kt @@ -33,7 +33,7 @@ class JigglypuffModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("jigglypuff", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("jigglypuff", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("jigglypuff", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JolteonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JolteonModel.kt index 272a26997b..bb09b4df6d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JolteonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JolteonModel.kt @@ -31,7 +31,7 @@ class JolteonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("jolteon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("jolteon", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JynxModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JynxModel.kt index f6b2536551..aa139166e4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JynxModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/JynxModel.kt @@ -31,7 +31,7 @@ class JynxModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("jynx", "blink").setPreventsIdle(false)} +// val blink = quirk { bedrockStateful("jynx", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KadabraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KadabraModel.kt index d423b6fc6b..934d97e66e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KadabraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KadabraModel.kt @@ -42,7 +42,7 @@ class KadabraModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kadabra", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("kadabra", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KakunaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KakunaModel.kt index f44f711299..9ff6429590 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KakunaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KakunaModel.kt @@ -31,7 +31,7 @@ class KakunaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var standing: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kakuna", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kakuna", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KangaskhanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KangaskhanModel.kt index 1dc7381e56..68b4f171ce 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KangaskhanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KangaskhanModel.kt @@ -31,8 +31,8 @@ class KangaskhanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kangaskhan", "blink").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("kangaskhan", "blink2").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("kangaskhan", "blink")} + val blink2 = quirk { bedrockStateful("kangaskhan", "blink2")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KoffingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KoffingModel.kt index 66c5a61cb7..0e2c02e5fe 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KoffingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KoffingModel.kt @@ -29,7 +29,7 @@ class KoffingModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("koffing", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("koffing", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KrabbyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KrabbyModel.kt index cc3412b250..7e948ee7a8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KrabbyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/KrabbyModel.kt @@ -31,9 +31,9 @@ class KrabbyModel(root: ModelPart) : PokemonPoseableModel() { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("krabby", "blink").setPreventsIdle(false)} - val snipLeft = quirk("blink") { bedrockStateful("krabby", "snip_left").setPreventsIdle(false)} - val snipRight = quirk("blink") { bedrockStateful("krabby", "snip_right").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("krabby", "blink")} + val snipLeft = quirk { bedrockStateful("krabby", "snip_left")} + val snipRight = quirk { bedrockStateful("krabby", "snip_right")} standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LaprasModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LaprasModel.kt index 99eabadce7..7dc66c05bc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LaprasModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LaprasModel.kt @@ -34,7 +34,7 @@ class LaprasModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var underwaterMove: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lapras", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lapras", "blink") } landIdle = registerPose( poseName = "land_idle", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LickitungModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LickitungModel.kt index d68a72da74..15763bfbab 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LickitungModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/LickitungModel.kt @@ -39,7 +39,7 @@ class LickitungModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lickitung", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("lickitung", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachampModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachampModel.kt index f91b7f75a4..f72d3ad42b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachampModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachampModel.kt @@ -32,7 +32,7 @@ class MachampModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("machamp", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("machamp", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachokeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachokeModel.kt index 0a184c3070..ff7ab6da7d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachokeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachokeModel.kt @@ -31,7 +31,7 @@ class MachokeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("machoke", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("machoke", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachopModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachopModel.kt index cb9a3b9a9a..d677b9ca2a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachopModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MachopModel.kt @@ -31,7 +31,7 @@ class MachopModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("machop", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("machop", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagikarpModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagikarpModel.kt index 03c3b42386..1bade8f58a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagikarpModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagikarpModel.kt @@ -33,7 +33,7 @@ class MagikarpModel(root: ModelPart) : PokemonPoseableModel() { override val profileTranslation = Vec3d(0.0, 0.40, 0.0) override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magikarp", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("magikarp", "blink")} registerPose( poseName = "land", poseTypes = STANDING_POSES + PoseType.PROFILE, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnemiteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnemiteModel.kt index 441ab8587b..217c4a48fc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnemiteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnemiteModel.kt @@ -31,7 +31,7 @@ class MagnemiteModel(root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magnemite", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("magnemite", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("magnemite", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnetonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnetonModel.kt index 426bda650d..fc9ea1a163 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnetonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MagnetonModel.kt @@ -31,7 +31,7 @@ class MagnetonModel(root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magneton", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("magneton", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("magneton", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MankeyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MankeyModel.kt index 6839b57fb9..d6450dd46d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MankeyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MankeyModel.kt @@ -33,10 +33,10 @@ class MankeyModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mankey", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mankey", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mankey", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mankey", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthAlolanModel.kt index fa327778ad..c6e18cfe9d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthAlolanModel.kt @@ -42,7 +42,7 @@ class MeowthAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("meowth_alolan", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("meowth_alolan", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthGalarianModel.kt index 8c6f109e1d..9d89420f59 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthGalarianModel.kt @@ -42,7 +42,7 @@ class MeowthGalarianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("meowth_galarian", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("meowth_galarian", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("meowth_galarian", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthModel.kt index ad8ce38bdf..df5f859f80 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MeowthModel.kt @@ -42,7 +42,7 @@ class MeowthModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("meowth", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("meowth", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MetapodModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MetapodModel.kt index cf8224065c..0bfe2985b8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MetapodModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MetapodModel.kt @@ -29,10 +29,10 @@ class MetapodModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var standing: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metapod", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metapod", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("metapod", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("metapod", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("metapod", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MewtwoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MewtwoModel.kt index fff2d99fdc..cc47043ce4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MewtwoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MewtwoModel.kt @@ -40,7 +40,7 @@ class MewtwoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bimanu lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mewtwo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mewtwo", "blink") } standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MrmimeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MrmimeModel.kt index 22d1879ea6..2b59b70dbf 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MrmimeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MrmimeModel.kt @@ -35,7 +35,7 @@ class MrmimeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mr_mime", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("mr_mime", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MukModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MukModel.kt index 487f8545a6..06dfa90db5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MukModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/MukModel.kt @@ -31,7 +31,7 @@ class MukModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("muk", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("muk", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidokingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidokingModel.kt index e3ebd04160..53af894807 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidokingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidokingModel.kt @@ -41,7 +41,7 @@ class NidokingModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nidoking", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("nidoking", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidoqueenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidoqueenModel.kt index 8e3598fa1b..6ef8205a1b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidoqueenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidoqueenModel.kt @@ -41,8 +41,8 @@ class NidoqueenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nidoqueen", "blink").setPreventsIdle(false)} - val spg = quirk("SPG", secondsBetweenOccurrences = 600F to 900F) { bedrockStateful("nidoqueen", "spgs_happy_place").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("nidoqueen", "blink")} + val spg = quirk(secondsBetweenOccurrences = 600F to 900F) { bedrockStateful("nidoqueen", "spgs_happy_place") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinaModel.kt index b7464e68eb..ac7610f4a7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinaModel.kt @@ -40,7 +40,7 @@ class NidorinaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nidorina", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("nidorina", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinoModel.kt index 045779c843..41825af24e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NidorinoModel.kt @@ -37,7 +37,7 @@ class NidorinoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nidorino", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("nidorino", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesAlolanModel.kt index 32404315ad..7c15090ea1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesAlolanModel.kt @@ -47,7 +47,7 @@ class NinetalesAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFram lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ninetales_alolan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("ninetales_alolan", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("ninetales_alolan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesModel.kt index 86feb40436..b7d309c4ad 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/NinetalesModel.kt @@ -47,7 +47,7 @@ class NinetalesModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ninetales", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("ninetales", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("ninetales", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OddishModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OddishModel.kt index 5d18836091..66e8a6b453 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OddishModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OddishModel.kt @@ -33,7 +33,7 @@ class OddishModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("oddish", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("oddish", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OnixModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OnixModel.kt index edefb5010f..2d6f9dd83d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OnixModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/OnixModel.kt @@ -37,10 +37,10 @@ class OnixModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("onix", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("onix", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("onix", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("onix", "blink") } ui = registerPose( poseName = "ui", poseTypes = UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ParasModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ParasModel.kt index 60147112d3..f7e86f9deb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ParasModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ParasModel.kt @@ -36,7 +36,7 @@ class ParasModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("paras", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("paras", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES + SHOULDER_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianAlolanModel.kt index 75558f4d5f..087627a751 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianAlolanModel.kt @@ -40,7 +40,7 @@ class PersianAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("persian_alolan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("persian_alolan", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianModel.kt index 49624eb604..c318bf03f4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PersianModel.kt @@ -40,7 +40,7 @@ class PersianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("persian", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("persian", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeotModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeotModel.kt index 06ecf3d31c..1de63b212b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeotModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeotModel.kt @@ -44,7 +44,7 @@ class PidgeotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeot", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeot", "cry") } override fun registerPoses() { sleep = registerPose( @@ -52,7 +52,7 @@ class PidgeotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped idleAnimations = arrayOf(bedrock("pidgeot", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("pidgeot", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("pidgeot", "blink")} stand = registerPose( poseName = "stand", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeottoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeottoModel.kt index 940dcd1103..34356da4b2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeottoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeottoModel.kt @@ -46,14 +46,14 @@ class PidgeottoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeotto", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeotto", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("pidgeotto", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("pidgeotto", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("pidgeotto", "blink")} stand = registerPose( poseName = "stand", poseTypes = STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeyModel.kt index 62b60d0c96..272a9c91f0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PidgeyModel.kt @@ -46,14 +46,14 @@ class PidgeyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgey", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgey", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("pidgey", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("pidgey", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pidgey", "blink") } stand = registerPose( poseName = "standing", poseTypes = SHOULDER_POSES + UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PikachuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PikachuModel.kt index e0e4946beb..22510176f0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PikachuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PikachuModel.kt @@ -40,10 +40,10 @@ class PikachuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffset = 1.5 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pikachu", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pikachu", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pikachu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pikachu", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PinsirModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PinsirModel.kt index b68ae03390..39231aaf96 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PinsirModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PinsirModel.kt @@ -29,7 +29,7 @@ class PinsirModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pinsir", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("pinsir", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwagModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwagModel.kt index 94199160f8..816e9db4b8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwagModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwagModel.kt @@ -31,7 +31,7 @@ class PoliwagModel(root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("poliwag", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("poliwag", "blink")} standing = registerPose( poseName = "standing", poseTypes = STANDING_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwhirlModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwhirlModel.kt index a0e28da719..e7784d3b39 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwhirlModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwhirlModel.kt @@ -30,7 +30,7 @@ class PoliwhirlModel(root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("poliwhirl", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("poliwhirl", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwrathModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwrathModel.kt index e8abc4a06d..d151765690 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwrathModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PoliwrathModel.kt @@ -30,7 +30,7 @@ class PoliwrathModel(root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("poliwrath", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("poliwrath", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STANDING_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaGalarianModel.kt index 43ff2bcc6a..9f451b14fd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaGalarianModel.kt @@ -38,11 +38,11 @@ class PonytaGalarianModel (root: ModelPart) : PokemonPoseableModel(), HeadedFram lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ponyta_galar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ponyta_galar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ponyta_galar", "blink").setPreventsIdle(false) } - val quirk = quirk("quirk", secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("ponyta_galar", "quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ponyta_galar", "blink") } + val quirk = quirk(secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("ponyta_galar", "quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaModel.kt index f54360beaf..81d128cd1a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PonytaModel.kt @@ -41,11 +41,11 @@ class PonytaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ponyta", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ponyta", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ponyta", "blink").setPreventsIdle(false) } - val quirk = quirk("quirk", secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("ponyta", "quirk1").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ponyta", "blink") } + val quirk = quirk(secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("ponyta", "quirk1") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PorygonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PorygonModel.kt index 0d1af7f98d..30383ef4b1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PorygonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PorygonModel.kt @@ -38,7 +38,7 @@ class PorygonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("porygonz", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("porygonz", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("porygon", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PrimeapeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PrimeapeModel.kt index b42e333bbf..8dfa17dc68 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PrimeapeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PrimeapeModel.kt @@ -33,10 +33,10 @@ class PrimeapeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("primeape", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("primeape", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("primeape", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("primeape", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PsyduckModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PsyduckModel.kt index 45d1dae8c9..93f5450ec4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PsyduckModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/PsyduckModel.kt @@ -35,7 +35,7 @@ class PsyduckModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("psyduck", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("psyduck", "blink")} standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuAlolanModel.kt index 471372c30d..9224e60ba8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuAlolanModel.kt @@ -34,10 +34,10 @@ class RaichuAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raichu_alolan", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raichu_alolan", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("raichu_alolan", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("raichu_alolan", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuModel.kt index dfb8b51e55..fdd5d0cbb1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaichuModel.kt @@ -34,10 +34,10 @@ class RaichuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raichu", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raichu", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("raichu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("raichu", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashGalarianModel.kt index d94619e3cb..7d82b9f031 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashGalarianModel.kt @@ -36,10 +36,10 @@ class RapidashGalarianModel (root: ModelPart) : PokemonPoseableModel(), HeadedFr lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rapidash_galar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rapidash_galar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rapidash_galar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("rapidash_galar", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashModel.kt index bbc6299132..3bc6013b63 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RapidashModel.kt @@ -42,10 +42,10 @@ class RapidashModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var sleep: PokemonPose lateinit var battling: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rapidash", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rapidash", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rapidash", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("rapidash", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("rapidash", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateAlolanModel.kt index 32258aade7..387645a95d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateAlolanModel.kt @@ -40,10 +40,10 @@ class RaticateAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raticate_alolan", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raticate_alolan", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("raticate_alolan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("raticate_alolan", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("raticate_alolan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateModel.kt index fee57c98bf..ced6ee4609 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RaticateModel.kt @@ -40,14 +40,14 @@ class RaticateModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Eare lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raticate", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raticate", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("raticate", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("raticate", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("raticate", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataAlolanModel.kt index 45065f766b..3fae5248e1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataAlolanModel.kt @@ -44,10 +44,10 @@ class RattataAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rattata_alolan", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rattata_alolan", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rattata_alolan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("rattata_alolan", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("rattata_alolan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataModel.kt index 39bd0d8f7e..70b3e83f01 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/RattataModel.kt @@ -44,14 +44,14 @@ class RattataModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rattata", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rattata", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("rattata", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("rattata", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("rattata", "blink")} standing = registerPose( poseName = "standing", poseTypes = setOf(PoseType.NONE, PoseType.PROFILE, PoseType.STAND, PoseType.FLOAT, PoseType.PORTRAIT, PoseType.SHOULDER_LEFT, PoseType.SHOULDER_RIGHT), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandshrewModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandshrewModel.kt index 7f6a15b4dc..05e247f312 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandshrewModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandshrewModel.kt @@ -35,7 +35,7 @@ class SandshrewModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sandshrew", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("sandshrew", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandslashModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandslashModel.kt index 72bd832650..f5e6ac0ca1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandslashModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SandslashModel.kt @@ -33,7 +33,7 @@ class SandslashModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sandslash", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("sandslash", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ScytherModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ScytherModel.kt index f4ee59d94a..bd2ce9e289 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ScytherModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ScytherModel.kt @@ -44,7 +44,7 @@ class ScytherModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("scyther", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("scyther", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES - PoseType.HOVER, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SeadraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SeadraModel.kt index 5eebf8b96d..37f44ad580 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SeadraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SeadraModel.kt @@ -32,7 +32,7 @@ class SeadraModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("seadra", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("seadra", "blink")} standing = registerPose( poseName = "standing", poseType = PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowbroModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowbroModel.kt index 23bcd124ee..7a2e0505ad 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowbroModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowbroModel.kt @@ -33,9 +33,9 @@ class SlowbroModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("slowbro", "blink1").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("slowbro", "blink2").setPreventsIdle(false) } - val bite = quirk("bite", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("slowbro", "bite_quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("slowbro", "blink1") } + val blink2 = quirk { bedrockStateful("slowbro", "blink2") } + val bite = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("slowbro", "bite_quirk") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowpokeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowpokeModel.kt index 79babdec74..f921012f40 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowpokeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SlowpokeModel.kt @@ -40,7 +40,7 @@ class SlowpokeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("slowpoke", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("slowpoke", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SpearowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SpearowModel.kt index 7ca4e85d91..a36d5274d4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SpearowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SpearowModel.kt @@ -45,10 +45,10 @@ class SpearowModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("spearow", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("spearow", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("spearow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("spearow", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SquirtleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SquirtleModel.kt index db7a3f5ee9..5061fa46ba 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SquirtleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/SquirtleModel.kt @@ -42,10 +42,10 @@ class SquirtleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var swim: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("squirtle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("squirtle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("squirtle", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("squirtle", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TaurosModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TaurosModel.kt index 3d4fd4d337..7a6835d636 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TaurosModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TaurosModel.kt @@ -31,10 +31,10 @@ class TaurosModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tauros", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tauros", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tauros", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("tauros", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacoolModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacoolModel.kt index 6873a2f8fb..b31c5db3c8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacoolModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacoolModel.kt @@ -32,7 +32,7 @@ class TentacoolModel(root: ModelPart) : PokemonPoseableModel() { lateinit var watersleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tentacool", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("tentacool", "blink")} standing = registerPose( poseName = "standing", poseType = PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacruelModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacruelModel.kt index 535c2ab602..946401036e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacruelModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/TentacruelModel.kt @@ -32,7 +32,7 @@ class TentacruelModel(root: ModelPart) : PokemonPoseableModel() { lateinit var watersleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tentacruel", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("tentacruel", "blink")} standing = registerPose( poseName = "standing", poseType = PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VaporeonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VaporeonModel.kt index 3385dd8b13..7465d1989f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VaporeonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VaporeonModel.kt @@ -33,7 +33,7 @@ class VaporeonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var swimIdle: PokemonPose lateinit var swimMove: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("vaporeon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("vaporeon", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VenusaurModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VenusaurModel.kt index b8759330b7..aa9b461de0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VenusaurModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VenusaurModel.kt @@ -40,10 +40,10 @@ class VenusaurModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("venusaur", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("venusaur", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("turtwig", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("turtwig", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VileplumeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VileplumeModel.kt index 550eb7db85..9f178cbb13 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VileplumeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VileplumeModel.kt @@ -33,7 +33,7 @@ class VileplumeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("vileplume", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("vileplume", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VoltorbModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VoltorbModel.kt index fa3db8732f..ac9807292b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VoltorbModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VoltorbModel.kt @@ -29,7 +29,7 @@ class VoltorbModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("voltorb", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("voltorb", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixAlolanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixAlolanModel.kt index 6d696cd22c..695102230d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixAlolanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixAlolanModel.kt @@ -40,7 +40,7 @@ class VulpixAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("vulpix_alolan", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("vulpix_alolan", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("vulpix_alolan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixModel.kt index 6506ae7625..0dfae61bd3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/VulpixModel.kt @@ -40,7 +40,7 @@ class VulpixModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("vulpix", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("vulpix", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("vulpix", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WartortleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WartortleModel.kt index 7637c2d038..75d3ec5a7b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WartortleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WartortleModel.kt @@ -50,10 +50,10 @@ class WartortleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var swimIdle: PokemonPose lateinit var swim: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wartortle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wartortle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wartortle", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("wartortle", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeedleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeedleModel.kt index 40f04dea37..9347e7cf9c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeedleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeedleModel.kt @@ -34,10 +34,10 @@ class WeedleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("weedle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("weedle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("weedle", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("weedle", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("weedle", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeezingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeezingModel.kt index ef8f574f34..8ffd753f1a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeezingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WeezingModel.kt @@ -29,8 +29,8 @@ class WeezingModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("weezing", "blink").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("weezing", "blink2").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("weezing", "blink")} + val blink2 = quirk { bedrockStateful("weezing", "blink2")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WigglytuffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WigglytuffModel.kt index 79b5f16455..0065f7d4e5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WigglytuffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/WigglytuffModel.kt @@ -31,7 +31,7 @@ class WigglytuffModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wigglytuff", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("wigglytuff", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("wigglytuff", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ZubatModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ZubatModel.kt index f2868955cb..09f0b1ac12 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ZubatModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen1/ZubatModel.kt @@ -39,10 +39,10 @@ class ZubatModel(root: ModelPart) : PokemonPoseableModel() { val shoulderOffset = 0 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("zubat", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("zubat", "cry") } override fun registerPoses() { - val twitch = quirk("twitch") { bedrockStateful("zubat", "eartwitch").setPreventsIdle(false) } + val twitch = quirk { bedrockStateful("zubat", "eartwitch") } sleep = registerPose( poseType = PoseType.SLEEP, transformedParts = arrayOf( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AipomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AipomModel.kt index 975a06de2e..2ebe14fb34 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AipomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AipomModel.kt @@ -38,10 +38,10 @@ class AipomModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("aipom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("aipom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("aipom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("aipom", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("aipom", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AmpharosModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AmpharosModel.kt index 844aeda41e..071480a0aa 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AmpharosModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/AmpharosModel.kt @@ -33,12 +33,12 @@ class AmpharosModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ampharos", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ampharos", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ampharos", "blink").setPreventsIdle(false) } - val glow = quirk("glow") { bedrockStateful("ampharos", "quirk_glow").setPreventsIdle(false) } - val quirk = quirk("quirk", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("ampharos", "quirk_toes").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ampharos", "blink") } + val glow = quirk { bedrockStateful("ampharos", "quirk_glow") } + val quirk = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("ampharos", "quirk_toes") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("ampharos", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BayleefModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BayleefModel.kt index 7016171268..0b777c6d96 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BayleefModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BayleefModel.kt @@ -31,10 +31,10 @@ class BayleefModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bayleef", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bayleef", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bayleef", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bayleef", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("bayleef", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BellossomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BellossomModel.kt index 455219382a..19a686c242 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BellossomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/BellossomModel.kt @@ -32,7 +32,7 @@ class BellossomModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bellossom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bellossom", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES + SHOULDER_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChikoritaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChikoritaModel.kt index b5a01edc94..8505aefe6f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChikoritaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChikoritaModel.kt @@ -31,10 +31,10 @@ class ChikoritaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chikorita", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chikorita", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chikorita", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("chikorita", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("chikorita", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChinchouModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChinchouModel.kt index 50ee820832..3818e9c382 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChinchouModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ChinchouModel.kt @@ -27,7 +27,7 @@ class ChinchouModel (root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chinchou", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("chinchou", "blink")} standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CleffaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CleffaModel.kt index 5aea466843..e006bd6e28 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CleffaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CleffaModel.kt @@ -36,10 +36,10 @@ class CleffaModel(root: ModelPart) : PokemonPoseableModel() { lateinit var leftShoulder: PokemonPose lateinit var rightShoulder: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cleffa", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cleffa", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cleffa", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cleffa", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CrobatModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CrobatModel.kt index c7e8620297..49623ebdbd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CrobatModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CrobatModel.kt @@ -31,10 +31,10 @@ class CrobatModel(root: ModelPart) : PokemonPoseableModel() { lateinit var fly: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crobat", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crobat", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("crobat", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("crobat", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CroconawModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CroconawModel.kt index 22d9aebd6d..d271ce3ba1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CroconawModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CroconawModel.kt @@ -46,10 +46,10 @@ class CroconawModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip val wateroffset = -10 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("croconaw", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("croconaw", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("croconaw", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("croconaw", "blink")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CyndaquilModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CyndaquilModel.kt index deafd237f8..63765b396a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CyndaquilModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/CyndaquilModel.kt @@ -31,10 +31,10 @@ class CyndaquilModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("cyndaquil", "battle_cry").setPreventsIdle(false) else bedrockStateful("cyndaquil", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("cyndaquil", "battle_cry") else bedrockStateful("cyndaquil", "cry") } override fun registerPoses() { -// val sneeze = quirk("sneeze") { bedrockStateful("cyndaquil", "sneeze_quirk").setPreventsIdle(false) } +// val sneeze = quirk { bedrockStateful("cyndaquil", "sneeze_quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/DonphanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/DonphanModel.kt index fb60ece63f..e27971c79c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/DonphanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/DonphanModel.kt @@ -34,7 +34,7 @@ class DonphanModel (root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("donphan", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("donphan", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ElekidModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ElekidModel.kt index 1532803b03..9ca83a206b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ElekidModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ElekidModel.kt @@ -37,7 +37,7 @@ class ElekidModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, Bimanua lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("elekid", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("elekid", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/EspeonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/EspeonModel.kt index 628da3d671..8a8d1b47cc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/EspeonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/EspeonModel.kt @@ -31,10 +31,10 @@ class EspeonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("espeon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("espeon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("espeon", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("espeon", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FeraligatrModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FeraligatrModel.kt index 683e3dae73..4b9c517148 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FeraligatrModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FeraligatrModel.kt @@ -46,10 +46,10 @@ class FeraligatrModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B val wateroffset = -10 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("feraligatr", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("feraligatr", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("feraligatr", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("feraligatr", "blink")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FlaaffyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FlaaffyModel.kt index cec1701f48..7b5c890c5d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FlaaffyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/FlaaffyModel.kt @@ -33,10 +33,10 @@ class FlaaffyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flaaffy", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flaaffy", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("flaaffy", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("flaaffy", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("flaaffy", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ForretressModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ForretressModel.kt index 13260acf53..2921b423c1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ForretressModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ForretressModel.kt @@ -30,7 +30,7 @@ class ForretressModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("forretress", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("forretress", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GligarModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GligarModel.kt index e49ffa54d9..668a25b08c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GligarModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GligarModel.kt @@ -37,7 +37,7 @@ class GligarModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame { override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gligar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gligar", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GranbullModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GranbullModel.kt index ede54c6ef3..3cef7d3865 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GranbullModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/GranbullModel.kt @@ -33,10 +33,10 @@ class GranbullModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("granbull", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("granbull", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("granbull", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("granbull", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("granbull", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HitmontopModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HitmontopModel.kt index a4295ba6dd..c24cae22b4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HitmontopModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HitmontopModel.kt @@ -32,10 +32,10 @@ class HitmontopModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose -// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("hitmontop", "cry").setPreventsIdle(false) } +// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("hitmontop", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("hitmontop", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("hitmontop", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("hitmontop", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HoothootModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HoothootModel.kt index e9f2fa1b2d..c374144c11 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HoothootModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/HoothootModel.kt @@ -30,11 +30,11 @@ class HoothootModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("hoothoot", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("hoothoot", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("hoothoot", "blink").setPreventsIdle(false)} - val quirk = quirk("quirk") { bedrockStateful("hoothoot", "quirk_foot").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("hoothoot", "blink")} + val quirk = quirk { bedrockStateful("hoothoot", "quirk_foot")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/IgglybuffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/IgglybuffModel.kt index c210777261..4d76c2ee6d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/IgglybuffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/IgglybuffModel.kt @@ -29,7 +29,7 @@ class IgglybuffModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("igglybuff", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("igglybuff", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/KingdraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/KingdraModel.kt index b4c79c461c..a23f626896 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/KingdraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/KingdraModel.kt @@ -34,7 +34,7 @@ class KingdraModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kingdra", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("kingdra", "blink") } standing = registerPose( poseName = "standing", poseType = PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/LanturnModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/LanturnModel.kt index 8d550e79b3..24d689b0c2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/LanturnModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/LanturnModel.kt @@ -27,7 +27,7 @@ class LanturnModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lanturn", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("lanturn", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoModel.kt index 65a77ce9a1..1f5b6f4aa4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoModel.kt @@ -33,7 +33,7 @@ class MagcargoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magcargo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("magcargo", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoShinyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoShinyModel.kt index bcdf32d7a4..0974ac3e76 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoShinyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MagcargoShinyModel.kt @@ -33,7 +33,7 @@ class MagcargoShinyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magcargo_shiny", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("magcargo_shiny", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MareepModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MareepModel.kt index d443584e92..12434ab91d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MareepModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MareepModel.kt @@ -39,10 +39,10 @@ class MareepModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var shearedsleep: PokemonPose lateinit var shearedbattleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mareep", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mareep", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mareep", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mareep", "blink") } sleep = registerPose( poseName = "unsheared_sleep", poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MeganiumModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MeganiumModel.kt index 223f6a0806..f276ee1077 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MeganiumModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MeganiumModel.kt @@ -31,10 +31,10 @@ class MeganiumModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("meganium", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("meganium", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("meganium", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("meganium", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("meganium", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MiltankModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MiltankModel.kt index 47ba7c834f..992e7032c9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MiltankModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MiltankModel.kt @@ -37,7 +37,7 @@ class MiltankModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("miltank", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("miltank", "cry") } override fun registerPoses() { sleep = registerPose( @@ -45,7 +45,7 @@ class MiltankModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe idleAnimations = arrayOf(bedrock("miltank", "ground_sleep")) ) - val blink = quirk("blink") { bedrockStateful("miltank", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("miltank", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MisdreavusModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MisdreavusModel.kt index 384e55f1fd..eb29414526 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MisdreavusModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MisdreavusModel.kt @@ -29,7 +29,7 @@ class MisdreavusModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("misdreavus", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("misdreavus", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MurkrowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MurkrowModel.kt index dd7aafc828..319765e7d8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MurkrowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/MurkrowModel.kt @@ -34,7 +34,7 @@ class MurkrowModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var fly: PokemonPose lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("murkrow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("murkrow", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NatuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NatuModel.kt index 9d0462c8c1..ba4462b8fa 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NatuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NatuModel.kt @@ -31,7 +31,7 @@ class NatuModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("natu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("natu", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NoctowlModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NoctowlModel.kt index a5600c64f5..455682ca33 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NoctowlModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/NoctowlModel.kt @@ -41,10 +41,10 @@ class NoctowlModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("noctowl", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("noctowl", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("noctowl", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("noctowl", "blink")} standing = registerPose( poseName = "stand", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PhanpyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PhanpyModel.kt index 43dc688099..33a5ce999f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PhanpyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PhanpyModel.kt @@ -36,7 +36,7 @@ class PhanpyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("phanpy", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("phanpy", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PichuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PichuModel.kt index 4d37b55778..5e7a009fd8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PichuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PichuModel.kt @@ -38,10 +38,10 @@ class PichuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffset = 0.5 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pichu", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pichu", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pichu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pichu", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PinecoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PinecoModel.kt index c785b5aefa..c85dfc1659 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PinecoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/PinecoModel.kt @@ -30,7 +30,7 @@ class PinecoModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pineco", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("pineco", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/Porygon2Model.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/Porygon2Model.kt index dc6daea178..c9c295b347 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/Porygon2Model.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/Porygon2Model.kt @@ -38,7 +38,7 @@ class Porygon2Model(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("porygon2", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("porygon2", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("porygon2", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuagsireModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuagsireModel.kt index 67823addfd..1c1e0bbace 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuagsireModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuagsireModel.kt @@ -40,10 +40,10 @@ class QuagsireModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quagsire", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quagsire", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quagsire", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("quagsire", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuilavaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuilavaModel.kt index 6f265e4e4d..e1c453cc12 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuilavaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/QuilavaModel.kt @@ -8,6 +8,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen2 +import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPose @@ -31,10 +32,10 @@ class QuilavaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("quilava", "battle_cry").setPreventsIdle(false) else bedrockStateful("quilava", "cry").setPreventsIdle(true) } + override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("quilava", "battle_cry") else PrimaryAnimation(bedrockStateful("quilava", "cry")) } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quilava", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("quilava", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ScizorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ScizorModel.kt index 4c3297af7a..227d4f5fde 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ScizorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ScizorModel.kt @@ -48,7 +48,7 @@ class ScizorModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("scizor", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("scizor", "blink") } standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ShuckleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ShuckleModel.kt index d615d795ef..2b7ebbbbd1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ShuckleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/ShuckleModel.kt @@ -32,7 +32,7 @@ class ShuckleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ditto", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("ditto", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlowkingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlowkingModel.kt index fa79e662fc..098fa89050 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlowkingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlowkingModel.kt @@ -33,8 +33,8 @@ class SlowkingModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("slowking", "blink").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("slowking", "blink2").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("slowking", "blink") } + val blink2 = quirk { bedrockStateful("slowking", "blink2") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaModel.kt index f3135793b7..b874f5d959 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaModel.kt @@ -33,7 +33,7 @@ class SlugmaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("slugma", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("slugma", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaShinyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaShinyModel.kt index 03e9d78bcf..aa49ed5487 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaShinyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SlugmaShinyModel.kt @@ -33,7 +33,7 @@ class SlugmaShinyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var shiny_walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("slugma_shiny", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("slugma_shiny", "blink") } shiny_sleep = registerPose( poseName = "shiny_sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SmoochumModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SmoochumModel.kt index 3992da91c1..05e9c7c535 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SmoochumModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SmoochumModel.kt @@ -31,7 +31,7 @@ class SmoochumModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("smoochum", "blink").setPreventsIdle(false) } +// val blink = quirk { bedrockStateful("smoochum", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SneaselModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SneaselModel.kt index f80d6f6989..518ce105a1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SneaselModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SneaselModel.kt @@ -38,7 +38,7 @@ class SneaselModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sneasel", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sneasel", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SnubbullModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SnubbullModel.kt index d0105ef856..ba06694e98 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SnubbullModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SnubbullModel.kt @@ -38,7 +38,7 @@ class SnubbullModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("snubbull", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("snubbull", "cry") } override fun registerPoses() { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/StantlerModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/StantlerModel.kt index 257a21a383..e920349d3a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/StantlerModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/StantlerModel.kt @@ -36,7 +36,7 @@ class StantlerModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("stantler", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("stantler", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SteelixModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SteelixModel.kt index 7b80daf072..fbcf17518e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SteelixModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SteelixModel.kt @@ -34,11 +34,11 @@ class SteelixModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("steelix", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("steelix", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("steelix", "blink").setPreventsIdle(false) } - val jitter = quirk("jitter") { bedrockStateful("steelix", "quirk_jawjitter").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("steelix", "blink") } + val jitter = quirk { bedrockStateful("steelix", "quirk_jawjitter") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("steelix", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SudowoodoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SudowoodoModel.kt index 1da28b17a7..7981953f8c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SudowoodoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/SudowoodoModel.kt @@ -40,7 +40,7 @@ class SudowoodoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sudowoodo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sudowoodo", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TeddiursaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TeddiursaModel.kt index 1e653803e5..a28f35b582 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TeddiursaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TeddiursaModel.kt @@ -30,10 +30,10 @@ class TeddiursaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("teddiursa", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("teddiursa", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("teddiursa", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("teddiursa", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TotodileModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TotodileModel.kt index 9629a9b5be..de04a88c7c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TotodileModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TotodileModel.kt @@ -49,12 +49,12 @@ class TotodileModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip val wateroffset = -10 val shoulderOffset = 5.5 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("totodile", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("totodile", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("totodile", "blink").setPreventsIdle(false)} - val sleepQuirk = quirk("sleep_quirk", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("totodile", "sleep_quirk").setPreventsIdle(false)} - val biteyQuirk = quirk("bite_quirk", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("totodile", "bitey_quirk").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("totodile", "blink")} + val sleepQuirk = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("totodile", "sleep_quirk")} + val biteyQuirk = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("totodile", "bitey_quirk")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyphlosionModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyphlosionModel.kt index 0b6ae30f05..f90e4bc5a0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyphlosionModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyphlosionModel.kt @@ -31,10 +31,10 @@ class TyphlosionModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("typhlosion", "battle_cry").setPreventsIdle(false) else bedrockStateful("typhlosion", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("typhlosion", "battle_cry") else bedrockStateful("typhlosion", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("typhlosion", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("typhlosion", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyrogueModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyrogueModel.kt index d3a19b882c..f70f83b575 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyrogueModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/TyrogueModel.kt @@ -39,10 +39,10 @@ class TyrogueModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffset = 3 -// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tyrogue", "cry").setPreventsIdle(false) } +// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tyrogue", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tyrogue", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tyrogue", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("tyrogue", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UmbreonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UmbreonModel.kt index eaf98ecbda..5545d12b66 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UmbreonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UmbreonModel.kt @@ -31,10 +31,10 @@ class UmbreonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("umbreon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("umbreon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("umbreon", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("umbreon", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UrsaringModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UrsaringModel.kt index fa303d315f..2c050d4561 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UrsaringModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/UrsaringModel.kt @@ -38,7 +38,7 @@ class UrsaringModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ursaring", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ursaring", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperModel.kt index 4e90479893..dcbcaf142b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperModel.kt @@ -41,11 +41,11 @@ class WooperModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var float: PokemonPose lateinit var swim: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooper", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooper", "cry") } val shoulderOffset = 2.5 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wooper", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wooper", "blink") } sleep = registerPose( poseName = "sleep", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperPaldeanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperPaldeanModel.kt index 2cd1956654..a9fd90f656 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperPaldeanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/WooperPaldeanModel.kt @@ -41,11 +41,11 @@ class WooperPaldeanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame lateinit var float: PokemonPose lateinit var swim: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooper_paldean", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooper_paldean", "cry") } val shoulderOffset = 2.5 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wooper_paldean", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wooper_paldean", "blink") } sleep = registerPose( poseName = "sleep", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/XatuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/XatuModel.kt index a4d2f809ea..09ccae843e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/XatuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen2/XatuModel.kt @@ -27,7 +27,7 @@ class XatuModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("xatu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("xatu", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BarboachModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BarboachModel.kt index 8c5ace867b..d79b020036 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BarboachModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BarboachModel.kt @@ -31,7 +31,7 @@ class BarboachModel (root: ModelPart) : PokemonPoseableModel() { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("barboach", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("barboach", "blink") } watersleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BeldumModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BeldumModel.kt index f7997443a8..7c18f9e435 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BeldumModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BeldumModel.kt @@ -31,11 +31,11 @@ class BeldumModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beldum", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beldum", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("beldum", "blink").setPreventsIdle(false)} - val quirk = quirk("quirk") { bedrockStateful("beldum", "quirk_spin").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("beldum", "blink")} + val quirk = quirk { bedrockStateful("beldum", "quirk_spin")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BlazikenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BlazikenModel.kt index e5c9be5959..ddaa239567 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BlazikenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BlazikenModel.kt @@ -36,10 +36,10 @@ class BlazikenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("blaziken", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("blaziken", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("blaziken", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("blaziken", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BreloomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BreloomModel.kt index 09d409ba0b..d130d007fd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BreloomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/BreloomModel.kt @@ -40,10 +40,10 @@ class BreloomModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var sleeping: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("breloom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("breloom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("breloom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("breloom", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacneaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacneaModel.kt index 8b89cb609c..f73833c6e5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacneaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacneaModel.kt @@ -36,7 +36,7 @@ class CacneaModel (root: ModelPart) : PokemonPoseableModel(), BimanualFrame, Bip lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cacnea", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cacnea", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("cacnea", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacturneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacturneModel.kt index d80e55f31b..5fd115e761 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacturneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CacturneModel.kt @@ -38,7 +38,7 @@ class CacturneModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bim lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cacturne", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cacturne", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("cacturne", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CameruptModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CameruptModel.kt index 2b06c79bf8..cd4c0eb759 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CameruptModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CameruptModel.kt @@ -36,7 +36,7 @@ class CameruptModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("camerupt", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("camerupt", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ChimechoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ChimechoModel.kt index 982c57b4a6..51b01bad10 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ChimechoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ChimechoModel.kt @@ -30,7 +30,7 @@ class ChimechoModel(root: ModelPart) : PokemonPoseableModel() { lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chimecho", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("chimecho", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("chimecho", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ClaydolModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ClaydolModel.kt index 1ffe931d94..bbc5363e5f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ClaydolModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ClaydolModel.kt @@ -33,7 +33,7 @@ class ClaydolModel(root: ModelPart) : PokemonPoseableModel() { idleAnimations = arrayOf(bedrock("claydol", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("claydol", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("claydol", "blink") } standing = registerPose( poseName = "hover", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CombuskenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CombuskenModel.kt index e79c9f5b50..a72ee71d0e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CombuskenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/CombuskenModel.kt @@ -36,10 +36,10 @@ class CombuskenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("combusken", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("combusken", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("combusken", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("combusken", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/DusclopsModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/DusclopsModel.kt index 19f518d82c..e802ca0b12 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/DusclopsModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/DusclopsModel.kt @@ -33,7 +33,7 @@ class DusclopsModel (root: ModelPart) : PokemonPoseableModel() { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dusclops", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dusclops", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GardevoirModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GardevoirModel.kt index d901ed4020..4ae39a0655 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GardevoirModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GardevoirModel.kt @@ -38,10 +38,10 @@ class GardevoirModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gardevoir", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gardevoir", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gardevoir", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gardevoir", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GrovyleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GrovyleModel.kt index 94fa2ccaa3..ebf957c458 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GrovyleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/GrovyleModel.kt @@ -36,7 +36,7 @@ class GrovyleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grovyle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grovyle", "cry") } override fun registerPoses() { sleep = registerPose( @@ -44,7 +44,7 @@ class GrovyleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe idleAnimations = arrayOf(bedrock("grovyle", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("grovyle", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("grovyle", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/IllumiseModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/IllumiseModel.kt index e109218808..e81e0932e8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/IllumiseModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/IllumiseModel.kt @@ -39,7 +39,7 @@ class IllumiseModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("illumise", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("illumise", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/KirliaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/KirliaModel.kt index 99ee78f31b..9e041136ea 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/KirliaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/KirliaModel.kt @@ -38,10 +38,10 @@ class KirliaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kirlia", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kirlia", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kirlia", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("kirlia", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneGalarianModel.kt index fafcd059bf..c2e5916915 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneGalarianModel.kt @@ -36,7 +36,7 @@ class LinooneGalarianModel (root: ModelPart) : PokemonPoseableModel(), HeadedFra lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("linoone_galarian", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("linoone_galarian", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneModel.kt index ab1229439b..7dbaf06a5b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LinooneModel.kt @@ -33,7 +33,7 @@ class LinooneModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("linoone", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("linoone", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("linoone", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LombreModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LombreModel.kt index 76595c9009..670c78e3bc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LombreModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LombreModel.kt @@ -47,7 +47,7 @@ class LombreModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped val wateroffset = 1 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lombre", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lombre", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LotadModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LotadModel.kt index 07fe0e7435..b68c499439 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LotadModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LotadModel.kt @@ -44,7 +44,7 @@ class LotadModel (root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { val wateroffset = -2 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("charmander", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("charmander", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LudicoloModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LudicoloModel.kt index c3cbb0ea44..2fb9b582db 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LudicoloModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LudicoloModel.kt @@ -41,7 +41,7 @@ class LudicoloModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ludicolo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ludicolo", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LuvdiscModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LuvdiscModel.kt index 43b24c8187..b03f5fc61b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LuvdiscModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/LuvdiscModel.kt @@ -33,7 +33,7 @@ class LuvdiscModel (root: ModelPart) : PokemonPoseableModel() { lateinit var swim: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("luvdisc", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("luvdisc", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("luvdisc", "ground_sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MarshtompModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MarshtompModel.kt index c2d2f61c67..000ad2e431 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MarshtompModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MarshtompModel.kt @@ -36,10 +36,10 @@ class MarshtompModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("marshtomp", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("marshtomp", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("marshtomp", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("marshtomp", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MasquerainModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MasquerainModel.kt index c844aaebe0..5a6ee8d8ab 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MasquerainModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MasquerainModel.kt @@ -28,7 +28,7 @@ class MasquerainModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var standing: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("masquerain", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("masquerain", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MawileModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MawileModel.kt index 2bd2cd9348..ebb6f400cd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MawileModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MawileModel.kt @@ -36,7 +36,7 @@ class MawileModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mawile", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mawile", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("mawile", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetagrossModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetagrossModel.kt index 1c3dce4500..b7038fb0d7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetagrossModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetagrossModel.kt @@ -31,10 +31,10 @@ class MetagrossModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metagross", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metagross", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("metagross", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("metagross", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetangModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetangModel.kt index 72dc4097ab..7402eb2c38 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetangModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MetangModel.kt @@ -31,10 +31,10 @@ class MetangModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metang", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metang", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("metang", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("metang", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MightyenaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MightyenaModel.kt index 4e4b7c3fff..dccd3b2905 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MightyenaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MightyenaModel.kt @@ -38,13 +38,13 @@ class MightyenaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mightyena", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mightyena", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mightyena", "blink").setPreventsIdle(false) } - val laugh_out_battle = quirk("laugh_out_battle", secondsBetweenOccurrences = 120F to 240F) { bedrockStateful("mightyena", "quirk").setPreventsIdle(false) } - val laugh_in_battle = quirk("laugh_in_battle", secondsBetweenOccurrences = 30F to 60F) { bedrockStateful("mightyena", "quirk").setPreventsIdle(false) } - val sleep_quirk = quirk("sleep_quirk", secondsBetweenOccurrences = 30F to 60F) { bedrockStateful("mightyena", "sleep_quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mightyena", "blink") } + val laugh_out_battle = quirk(secondsBetweenOccurrences = 120F to 240F) { bedrockStateful("mightyena", "quirk") } + val laugh_in_battle = quirk(secondsBetweenOccurrences = 30F to 60F) { bedrockStateful("mightyena", "quirk") } + val sleep_quirk = quirk(secondsBetweenOccurrences = 30F to 60F) { bedrockStateful("mightyena", "sleep_quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MinunModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MinunModel.kt index 2741df921d..614833b311 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MinunModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MinunModel.kt @@ -36,7 +36,7 @@ class MinunModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFr lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("minun", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("minun", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MudkipModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MudkipModel.kt index ff24d225af..1fae009fcb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MudkipModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/MudkipModel.kt @@ -39,10 +39,10 @@ class MudkipModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var float: PokemonPose lateinit var swim: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudkip", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudkip", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mudkip", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mudkip", "blink") } standing = registerPose( poseName = "standing", poseTypes = UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NincadaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NincadaModel.kt index 2489f63fb1..5566492fce 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NincadaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NincadaModel.kt @@ -36,11 +36,11 @@ class NincadaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nincada", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nincada", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nincada", "blink").setPreventsIdle(false) } - val flutter = quirk("wing_flutter") { bedrockStateful("nincada", "quirk_wingflutter").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("nincada", "blink") } + val flutter = quirk { bedrockStateful("nincada", "quirk_wingflutter") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NinjaskModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NinjaskModel.kt index dd9daf04a7..3174e13a13 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NinjaskModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NinjaskModel.kt @@ -35,11 +35,11 @@ class NinjaskModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ninjask", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ninjask", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ninjask", "blink").setPreventsIdle(false) } - val barrelRoll = quirk("run_quirk") { bedrockStateful("ninjask", "run_quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ninjask", "blink") } + val barrelRoll = quirk { bedrockStateful("ninjask", "run_quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NumelModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NumelModel.kt index 60f5abbee6..c1acbcb722 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NumelModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NumelModel.kt @@ -36,7 +36,7 @@ class NumelModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("numel", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("numel", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NuzleafModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NuzleafModel.kt index 422ca58d30..6f50d05795 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NuzleafModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/NuzleafModel.kt @@ -38,7 +38,7 @@ class NuzleafModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nuzleaf", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("nuzleaf", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PelipperModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PelipperModel.kt index 5111e8eadc..5f2d761f32 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PelipperModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PelipperModel.kt @@ -43,7 +43,7 @@ class PelipperModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame, BiWi val wateroffset = -6 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pelipper", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pelipper", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, condition = { !it.isTouchingWater }, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PlusleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PlusleModel.kt index dd2c0305b9..738667eaf5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PlusleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PlusleModel.kt @@ -36,7 +36,7 @@ class PlusleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("plusle", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("plusle", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PoochyenaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PoochyenaModel.kt index c9bdc11c08..212e34a8bf 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PoochyenaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/PoochyenaModel.kt @@ -38,10 +38,10 @@ class PoochyenaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("poochyena", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("poochyena", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("poochyena", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("poochyena", "blink") } standing = registerPose( poseName = "standing", poseTypes = UI_POSES + STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/RaltsModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/RaltsModel.kt index dd7407cb63..b3307e6cfb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/RaltsModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/RaltsModel.kt @@ -38,10 +38,10 @@ class RaltsModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ralts", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ralts", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ralts", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ralts", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SceptileModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SceptileModel.kt index dc2965d4da..a5027c5b7c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SceptileModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SceptileModel.kt @@ -36,14 +36,14 @@ class SceptileModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sceptile", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sceptile", "cry") } override fun registerPoses() { sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("sceptile", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("sceptile", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sceptile", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SeedotModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SeedotModel.kt index 2532b53e5e..b946576cd8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SeedotModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SeedotModel.kt @@ -32,7 +32,7 @@ class SeedotModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("seedot", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("seedot", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShedinjaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShedinjaModel.kt index 17b5b0bcd8..69923271a6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShedinjaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShedinjaModel.kt @@ -33,10 +33,10 @@ class ShedinjaModel (root: ModelPart) : PokemonPoseableModel() { lateinit var fly: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shedinja", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shedinja", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("shedinja", "blink_WIP").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("shedinja", "blink_WIP") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShiftryModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShiftryModel.kt index 3e0334d334..84384c9101 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShiftryModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShiftryModel.kt @@ -38,7 +38,7 @@ class ShiftryModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("shiftry", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("shiftry", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShroomishModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShroomishModel.kt index 7e2e241cef..9b2f70353d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShroomishModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ShroomishModel.kt @@ -40,10 +40,10 @@ class ShroomishModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleeping: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shroomish", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shroomish", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("shroomish", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("shroomish", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SurskitModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SurskitModel.kt index 6601909e22..c86188f763 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SurskitModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SurskitModel.kt @@ -35,7 +35,7 @@ class SurskitModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val wateroffset = -8 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("surskit", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("surskit", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwampertModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwampertModel.kt index 78980171b7..5627b9b66d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwampertModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwampertModel.kt @@ -39,10 +39,10 @@ class SwampertModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("swampert", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("swampert", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("swampert", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("swampert", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwellowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwellowModel.kt index 842588a98b..90dffe287d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwellowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/SwellowModel.kt @@ -38,10 +38,10 @@ class SwellowModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("swellow", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("swellow", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("swellow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("swellow", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("swellow", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TaillowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TaillowModel.kt index 8ea2166f15..e20b3acf36 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TaillowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TaillowModel.kt @@ -38,10 +38,10 @@ class TaillowModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("taillow", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("taillow", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("taillow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("taillow", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("taillow", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TorchicModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TorchicModel.kt index 38d12739ad..0e0711cc67 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TorchicModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TorchicModel.kt @@ -36,10 +36,10 @@ class TorchicModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torchic", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torchic", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("torchic", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("torchic", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TreeckoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TreeckoModel.kt index 2599f1ed8b..0c1742113b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TreeckoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/TreeckoModel.kt @@ -36,7 +36,7 @@ class TreeckoModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("treecko", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("treecko", "cry") } override fun registerPoses() { sleep = registerPose( @@ -44,7 +44,7 @@ class TreeckoModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe idleAnimations = arrayOf(bedrock("treecko", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("treecko", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("treecko", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/VolbeatModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/VolbeatModel.kt index ba618b3fdc..f962975df7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/VolbeatModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/VolbeatModel.kt @@ -39,7 +39,7 @@ class VolbeatModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("volbeat", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("volbeat", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WailordModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WailordModel.kt index 3e37dced36..5c2de9f9cd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WailordModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WailordModel.kt @@ -34,7 +34,7 @@ class WailordModel(root: ModelPart) : PokemonPoseableModel() { val offsetY = 0.0 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wailord", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("wailord", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WingullModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WingullModel.kt index 9050c12298..c58d68c494 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WingullModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/WingullModel.kt @@ -43,7 +43,7 @@ class WingullModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame, BiWin val wateroffset = -9 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wingull", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wingull", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, condition = { !it.isTouchingWater }, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonGalarianModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonGalarianModel.kt index c6e1ecf1f4..c24b0d894b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonGalarianModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonGalarianModel.kt @@ -36,7 +36,7 @@ class ZigzagoonGalarianModel (root: ModelPart) : PokemonPoseableModel(), HeadedF lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("zigzagoon_galarian", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("zigzagoon_galarian", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonModel.kt index 542b39b3b2..9633856e08 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen3/ZigzagoonModel.kt @@ -40,7 +40,7 @@ class ZigzagoonModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffsetZ = -0.5 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("zigzagoon", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("zigzagoon", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("zigzagoon", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/AmbipomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/AmbipomModel.kt index 50f534f8a0..1ccdf01da9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/AmbipomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/AmbipomModel.kt @@ -38,10 +38,10 @@ class AmbipomModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ambipom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ambipom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ambipom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ambipom", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("ambipom", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BibarelModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BibarelModel.kt index 8d641995a2..f0b238a3d3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BibarelModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BibarelModel.kt @@ -44,7 +44,7 @@ class BibarelModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr val wateroffset = -1 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bibarel", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bibarel", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BidoofModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BidoofModel.kt index 1bba8e403b..aa7ff751c2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BidoofModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BidoofModel.kt @@ -48,7 +48,7 @@ class BidoofModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru val wateroffset = -2 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bidoof", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bidoof", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BonslyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BonslyModel.kt index 712e5aa2d0..a1a8a78a8e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BonslyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BonslyModel.kt @@ -39,7 +39,7 @@ class BonslyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var battlesleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bonsly", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bonsly", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BuizelModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BuizelModel.kt index 8b44f37389..d118c6c995 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BuizelModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BuizelModel.kt @@ -38,7 +38,7 @@ class BuizelModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped // lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("buizel", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("buizel", "blink") } // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("buizel", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BunearyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BunearyModel.kt index ed99d7b67d..cef52a72dc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BunearyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/BunearyModel.kt @@ -36,10 +36,10 @@ class BunearyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("buneary", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("buneary", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("buneary", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("buneary", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CarnivineModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CarnivineModel.kt index 475aa39674..ad2a11b69b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CarnivineModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CarnivineModel.kt @@ -29,7 +29,7 @@ class CarnivineModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame{ lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("carnivine", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("carnivine", "blink") } standing = registerPose( poseName = "standing", poseTypes = ALL_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChatotModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChatotModel.kt index 035cf0f1df..9af288dc05 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChatotModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChatotModel.kt @@ -46,7 +46,7 @@ class ChatotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var walk: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chatot", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chatot", "cry") } override fun registerPoses() { @@ -56,7 +56,7 @@ class ChatotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF // idleAnimations = arrayOf(bedrock("chatot", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("chatot", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("chatot", "blink") } stand = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChimcharModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChimcharModel.kt index 7d7cd3dc77..0acd192459 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChimcharModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChimcharModel.kt @@ -39,10 +39,10 @@ class ChimcharModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chimchar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chimchar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chimchar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("chimchar", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChinglingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChinglingModel.kt index 41ddcc0692..4be03418a3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChinglingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ChinglingModel.kt @@ -36,11 +36,11 @@ class ChinglingModel(root: ModelPart) : PokemonPoseableModel() { lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chingling", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chingling", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chingling", "blink").setPreventsIdle(false) } - val sleepquirk = quirk("sleepquirk") { bedrockStateful("chingling", "sleep_quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("chingling", "blink") } + val sleepquirk = quirk { bedrockStateful("chingling", "sleep_quirk") } sleep = registerPose( poseType = PoseType.SLEEP, quirks = arrayOf(sleepquirk), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CombeeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CombeeModel.kt index 39de9bb465..4ad676c323 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CombeeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/CombeeModel.kt @@ -30,9 +30,9 @@ class CombeeModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink") { bedrockStateful("combee", "blink_right").setPreventsIdle(false) } - val blink2 = quirk("blink") { bedrockStateful("combee", "blink_gender").setPreventsIdle(false) } - val blink3 = quirk("blink") { bedrockStateful("combee", "blink_left").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("combee", "blink_right") } + val blink2 = quirk { bedrockStateful("combee", "blink_gender") } + val blink3 = quirk { bedrockStateful("combee", "blink_left") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifblimModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifblimModel.kt index 591c6f10ba..9e3848862d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifblimModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifblimModel.kt @@ -29,7 +29,7 @@ class DrifblimModel (root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk(name = "blink") { bedrockStateful("drifblim", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("drifblim", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifloonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifloonModel.kt index c4ea36fb54..270248f5ef 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifloonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DrifloonModel.kt @@ -29,7 +29,7 @@ class DrifloonModel (root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk(name = "blink") { bedrockStateful("drifloon", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("drifloon", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DusknoirModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DusknoirModel.kt index 28f52ab643..50649ec28b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DusknoirModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/DusknoirModel.kt @@ -33,7 +33,7 @@ class DusknoirModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dusknoir", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dusknoir", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ElectivireModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ElectivireModel.kt index 5b2fea6c6e..c7ca923232 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ElectivireModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ElectivireModel.kt @@ -38,7 +38,7 @@ class ElectivireModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("electivire", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("electivire", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/EmpoleonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/EmpoleonModel.kt index 9c1e1b843c..9e86f7daeb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/EmpoleonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/EmpoleonModel.kt @@ -38,10 +38,10 @@ class EmpoleonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var swim: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("empoleon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("empoleon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("empoleon", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("empoleon", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("empoleon", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/FloatzelModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/FloatzelModel.kt index 8cf1ee718d..d5cac46bd6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/FloatzelModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/FloatzelModel.kt @@ -38,7 +38,7 @@ class FloatzelModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip // lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("floatzel", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("floatzel", "blink") } // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("floatzel", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GabiteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GabiteModel.kt index 1617bf7218..bf27a5af82 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GabiteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GabiteModel.kt @@ -37,7 +37,7 @@ class GabiteModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gabite", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gabite", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GalladeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GalladeModel.kt index d4fd723bd2..4797b229bb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GalladeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GalladeModel.kt @@ -9,6 +9,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen4 import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPose @@ -33,11 +34,11 @@ class GalladeModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gallade", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gallade", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gallade", "blink").setPreventsIdle(false) } - val quirk = quirk("quirk", secondsBetweenOccurrences = 10F to 60F) { bedrockStateful("gallade", "battle_quirk").setPreventsIdle(true) } + val blink = quirk { bedrockStateful("gallade", "blink") } + val quirk = quirk(secondsBetweenOccurrences = 10F to 60F) { PrimaryAnimation(bedrockStateful("gallade", "battle_quirk")) } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("gallade", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GarchompModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GarchompModel.kt index 081f68a53d..9acb6bda2f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GarchompModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GarchompModel.kt @@ -39,7 +39,7 @@ class GarchompModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("garchomp", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("garchomp", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GibleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GibleModel.kt index d248a27f7a..0f46f8875d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GibleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GibleModel.kt @@ -34,7 +34,7 @@ class GibleModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, Bimanual lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gible", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gible", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GlaceonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GlaceonModel.kt index acc0ce8374..3d230adf2e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GlaceonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GlaceonModel.kt @@ -31,10 +31,10 @@ class GlaceonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glaceon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glaceon", "cry") } override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("glaceon", "blink").setPreventsIdle(false)} +// val blink = quirk { bedrockStateful("glaceon", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GliscorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GliscorModel.kt index 9fc3b7443b..93645485c2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GliscorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GliscorModel.kt @@ -36,7 +36,7 @@ class GliscorModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame { override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gliscor", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gliscor", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GrotleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GrotleModel.kt index c394d0bbd6..bd53b375a5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GrotleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/GrotleModel.kt @@ -38,11 +38,11 @@ class GrotleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grotle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grotle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("grotle", "blink").setPreventsIdle(false) } - val shake = quirk("shake", secondsBetweenOccurrences = 30F to 360F) { bedrockStateful("grotle", "quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("grotle", "blink") } + val shake = quirk(secondsBetweenOccurrences = 30F to 360F) { bedrockStateful("grotle", "quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/HonchkrowModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/HonchkrowModel.kt index cbf1f6f290..8e52439535 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/HonchkrowModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/HonchkrowModel.kt @@ -43,7 +43,7 @@ class HonchkrowModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("honchkrow", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("honchkrow", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/InfernapeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/InfernapeModel.kt index b53b7e00d3..3bdbc28704 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/InfernapeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/InfernapeModel.kt @@ -41,10 +41,10 @@ class InfernapeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("infernape", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("infernape", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("infernape", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("infernape", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketotModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketotModel.kt index 0492499dd3..8f42ec8e16 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketotModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketotModel.kt @@ -44,7 +44,7 @@ class KricketotModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame, Hea val shoulderOffsetZ = 0 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kricketot", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("kricketot", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("kricketot", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketuneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketuneModel.kt index 7aa21a8e4c..7e2899cc48 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketuneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/KricketuneModel.kt @@ -42,7 +42,7 @@ class KricketuneModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var fly: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kricketune", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("kricketune", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("kricketune", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LeafeonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LeafeonModel.kt index a4766a78c7..4a9a7f819b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LeafeonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LeafeonModel.kt @@ -31,10 +31,10 @@ class LeafeonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("leafeon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("leafeon", "cry") } override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("leafeon", "blink").setPreventsIdle(false)} +// val blink = quirk { bedrockStateful("leafeon", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LickilickyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LickilickyModel.kt index 0494b93606..ad4f07ac60 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LickilickyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LickilickyModel.kt @@ -40,7 +40,7 @@ class LickilickyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var battleidle: PokemonPose lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lickilicky", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lickilicky", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("lickilicky", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LopunnyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LopunnyModel.kt index c8fb7d97ec..688b2a312c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LopunnyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LopunnyModel.kt @@ -36,9 +36,9 @@ class LopunnyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lopunny", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lopunny", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lopunny", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lopunny", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LucarioModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LucarioModel.kt index 099a6ece1c..8b38226635 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LucarioModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LucarioModel.kt @@ -38,10 +38,10 @@ class LucarioModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lucario", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lucario", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lucario", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lucario", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxioModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxioModel.kt index 3f1e6f2a6b..f6b84e6645 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxioModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxioModel.kt @@ -37,7 +37,7 @@ class LuxioModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var sleep: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("luxio", "blink").setPreventsIdle(false) } +// val blink = quirk { bedrockStateful("luxio", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("luxio", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxrayModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxrayModel.kt index 7ae98d29e9..6a0c4beb98 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxrayModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/LuxrayModel.kt @@ -36,7 +36,7 @@ class LuxrayModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var walk: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("luxray", "blink").setPreventsIdle(false) } +// val blink = quirk { bedrockStateful("luxray", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MagnezoneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MagnezoneModel.kt index 90b90f47d2..e9863b9231 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MagnezoneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MagnezoneModel.kt @@ -29,7 +29,7 @@ class MagnezoneModel(root: ModelPart) : PokemonPoseableModel() { override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("magnezone", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("magnezone", "blink") } // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("magnezone", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MamoswineModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MamoswineModel.kt index 50103181b3..037ff4bef9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MamoswineModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MamoswineModel.kt @@ -42,7 +42,7 @@ class MamoswineModel(root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { idleAnimations = arrayOf(bedrock("mamoswine", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("mamoswine", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mamoswine", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MimejrModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MimejrModel.kt index c0de414362..2f321f4bdc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MimejrModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MimejrModel.kt @@ -31,7 +31,7 @@ class MimejrModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mimejr", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mimejr", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MismagiusModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MismagiusModel.kt index 3e3ce5cdee..55f29c7ce1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MismagiusModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MismagiusModel.kt @@ -29,7 +29,7 @@ class MismagiusModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mismagius", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mismagius", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MonfernoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MonfernoModel.kt index b92116ba16..585a0467d3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MonfernoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MonfernoModel.kt @@ -39,10 +39,10 @@ class MonfernoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("monferno", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("monferno", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("monferno", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("monferno", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MunchlaxModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MunchlaxModel.kt index f3cf6c9c79..868bab0e69 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MunchlaxModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/MunchlaxModel.kt @@ -31,7 +31,7 @@ class MunchlaxModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("munchlax", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("munchlax", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PachirisuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PachirisuModel.kt index 188100f80e..e6762e4dc0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PachirisuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PachirisuModel.kt @@ -36,7 +36,7 @@ class PachirisuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pachirisu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pachirisu", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PiplupModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PiplupModel.kt index 991e8a58e9..7dbcdd0838 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PiplupModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PiplupModel.kt @@ -38,10 +38,10 @@ class PiplupModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var swim: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("piplup", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("piplup", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("piplup", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("piplup", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("piplup", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PorygonzModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PorygonzModel.kt index 41f6b2f813..4454a539f0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PorygonzModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PorygonzModel.kt @@ -35,13 +35,13 @@ class PorygonzModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("porygonz", "blink").setPreventsIdle(false) } - val twitch1 = quirk("twitch1") { bedrockStateful("porygonz", "twitch1").setPreventsIdle(false) } - val twitch2 = quirk("twitch2") { bedrockStateful("porygonz", "twitch2").setPreventsIdle(false) } - val twitch3 = quirk("twitch3") { bedrockStateful("porygonz", "twitch3").setPreventsIdle(false) } - val twitch4 = quirk("twitch4") { bedrockStateful("porygonz", "twitch4").setPreventsIdle(false) } - val twitch5 = quirk("twitch5") { bedrockStateful("porygonz", "twitch5").setPreventsIdle(false) } - val twitch6 = quirk("twitch6") { bedrockStateful("porygonz", "twitch6").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("porygonz", "blink") } + val twitch1 = quirk { bedrockStateful("porygonz", "twitch1") } + val twitch2 = quirk { bedrockStateful("porygonz", "twitch2") } + val twitch3 = quirk { bedrockStateful("porygonz", "twitch3") } + val twitch4 = quirk { bedrockStateful("porygonz", "twitch4") } + val twitch5 = quirk { bedrockStateful("porygonz", "twitch5") } + val twitch6 = quirk { bedrockStateful("porygonz", "twitch6") } sleep = registerPose( poseType = PoseType.SLEEP, quirks = arrayOf(twitch1, twitch2, twitch3, twitch4, twitch5, twitch6), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PrinplupModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PrinplupModel.kt index fca46c9859..9886e3f398 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PrinplupModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/PrinplupModel.kt @@ -38,10 +38,10 @@ class PrinplupModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var swim: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("prinplup", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("prinplup", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("prinplup", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("prinplup", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("prinplup", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ProbopassModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ProbopassModel.kt index 2c698712a1..20e6d3861f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ProbopassModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ProbopassModel.kt @@ -33,7 +33,7 @@ class ProbopassModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("probopass", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("probopass", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/RioluModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/RioluModel.kt index 343a8098a1..cb9bb8b8f5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/RioluModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/RioluModel.kt @@ -38,10 +38,10 @@ class RioluModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("riolu", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("riolu", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("riolu", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("riolu", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ShinxModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ShinxModel.kt index 866d6a28b6..071be999ce 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ShinxModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/ShinxModel.kt @@ -36,7 +36,7 @@ class ShinxModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var walk: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("shinx", "blink").setPreventsIdle(false) } +// val blink = quirk { bedrockStateful("shinx", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraptorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraptorModel.kt index 923b2408fa..7dc10b76be 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraptorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraptorModel.kt @@ -47,7 +47,7 @@ class StaraptorModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi // idleAnimations = arrayOf(bedrock("staraptor", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("staraptor", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("staraptor", "blink")} stand = registerPose( poseName = "stand", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraviaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraviaModel.kt index c6a452b5d3..3bcf2a5cf5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraviaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StaraviaModel.kt @@ -42,14 +42,14 @@ class StaraviaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var hover: PokemonPose lateinit var fly: PokemonPose -// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("staravia", "cry").setPreventsIdle(false) } +// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("staravia", "cry") } override fun registerPoses() { // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("staravia", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("staravia", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("staravia", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StarlyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StarlyModel.kt index 0491910a70..44dde7eede 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StarlyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/StarlyModel.kt @@ -48,7 +48,7 @@ class StarlyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("starly", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("starly", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("starly", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TangrowthModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TangrowthModel.kt index b1d7470988..cf01b57e6f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TangrowthModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TangrowthModel.kt @@ -29,7 +29,7 @@ class TangrowthModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tangrowth", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tangrowth", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraCherryModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraCherryModel.kt index bf4cbd725c..362d9180a6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraCherryModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraCherryModel.kt @@ -37,10 +37,10 @@ class TorterraCherryModel (root: ModelPart) : PokemonPoseableModel(), HeadedFram lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torterra_cherry", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torterra_cherry", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("torterra_cherry", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("torterra_cherry", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("torterra_cherry", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraModel.kt index 9bbe272d61..1c6964d7e8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TorterraModel.kt @@ -37,10 +37,10 @@ class TorterraModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torterra", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torterra", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("torterra", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("torterra", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("torterra", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TurtwigModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TurtwigModel.kt index 3cedec7279..d81cd67142 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TurtwigModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/TurtwigModel.kt @@ -43,10 +43,10 @@ class TurtwigModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad val shoulderOffset = 3 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("turtwig", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("turtwig", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("turtwig", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("turtwig", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("turtwig", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/VespiquenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/VespiquenModel.kt index 5eba991452..a7eec595c0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/VespiquenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/VespiquenModel.kt @@ -31,8 +31,8 @@ class VespiquenModel (root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink") { bedrockStateful("vespiquen", "blink").setPreventsIdle(false) } - val wingsleep = quirk("wingsleep") { bedrockStateful("vespiquen", "sleep_flap").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("vespiquen", "blink") } + val wingsleep = quirk { bedrockStateful("vespiquen", "sleep_flap") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/WeavileModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/WeavileModel.kt index 4a961cad1c..68edeecd61 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/WeavileModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen4/WeavileModel.kt @@ -38,7 +38,7 @@ class WeavileModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("weavile", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("weavile", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BoldoreModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BoldoreModel.kt index 8ed754b051..02480af048 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BoldoreModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BoldoreModel.kt @@ -34,7 +34,7 @@ class BoldoreModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("boldore", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("boldore", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BouffalantModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BouffalantModel.kt index a4ddbff78d..9ec8a3cca9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BouffalantModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/BouffalantModel.kt @@ -30,7 +30,7 @@ class BouffalantModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("charmander", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("charmander", "blink")} // bouffalant does not have a blink!! someone fix pls standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ChandelureModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ChandelureModel.kt index 726c91ca3e..5c73f03a8a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ChandelureModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ChandelureModel.kt @@ -29,7 +29,7 @@ class ChandelureModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { -// val blink = quirk("blink") { bedrockStateful("chandelure", "blink").setPreventsIdle(false) } +// val blink = quirk { bedrockStateful("chandelure", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CofagrigusModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CofagrigusModel.kt index a7a49d6424..b4d5bc95f9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CofagrigusModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CofagrigusModel.kt @@ -31,10 +31,10 @@ class CofagrigusModel (root: ModelPart) : PokemonPoseableModel() { lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cofagrigus", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cofagrigus", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cofagrigus", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cofagrigus", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ConkeldurrModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ConkeldurrModel.kt index 0f5f9890c5..c578d2b531 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ConkeldurrModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ConkeldurrModel.kt @@ -34,7 +34,7 @@ class ConkeldurrModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("conkeldurr", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("conkeldurr", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CottoneeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CottoneeModel.kt index 0c10c9b339..71ee5d4c9a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CottoneeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CottoneeModel.kt @@ -30,10 +30,10 @@ class CottoneeModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame{ lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cottonee", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cottonee", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cottonee", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cottonee", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CrustleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CrustleModel.kt index f38276ce45..58dd0c3bd3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CrustleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CrustleModel.kt @@ -31,7 +31,7 @@ class CrustleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crustle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crustle", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CryogonalModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CryogonalModel.kt index 91529b0970..f73b6f6db8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CryogonalModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/CryogonalModel.kt @@ -32,7 +32,7 @@ class CryogonalModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cryogonal", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cryogonal", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DewottModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DewottModel.kt index bc3d268406..568638a1da 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DewottModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DewottModel.kt @@ -41,10 +41,10 @@ class DewottModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dewott", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dewott", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dewott", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dewott", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DurantModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DurantModel.kt index d3a720f50d..22e7a5b5ec 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DurantModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DurantModel.kt @@ -29,7 +29,7 @@ class DurantModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("durant", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("durant", "blink") } standing = registerPose( poseName = "standing", quirks = arrayOf(blink), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DwebbleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DwebbleModel.kt index 1dc1306421..ccce1f5469 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DwebbleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/DwebbleModel.kt @@ -31,7 +31,7 @@ class DwebbleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dwebble", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dwebble", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmboarModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmboarModel.kt index 429ba15d73..ac85acc662 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmboarModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmboarModel.kt @@ -37,10 +37,10 @@ class EmboarModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("emboar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("emboar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("emboar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("emboar", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmolgaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmolgaModel.kt index 3ff07914e4..26f1ff3e28 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmolgaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/EmolgaModel.kt @@ -43,7 +43,7 @@ class EmolgaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var flying: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("emolga", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("emolga", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES - PoseType.HOVER, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GalvantulaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GalvantulaModel.kt index 97c0b25c2f..5351e2ae42 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GalvantulaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GalvantulaModel.kt @@ -27,8 +27,8 @@ class GalvantulaModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("galvantula", "blink1").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("galvantula", "blink2").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("galvantula", "blink1") } + val blink2 = quirk { bedrockStateful("galvantula", "blink2") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GigalithModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GigalithModel.kt index b58482d9a2..eb8e1493b5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GigalithModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GigalithModel.kt @@ -39,7 +39,7 @@ class GigalithModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gigalith", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gigalith", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolettModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolettModel.kt index 3c2d9a5304..aa1f6b03b8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolettModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolettModel.kt @@ -41,7 +41,7 @@ class GolettModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golett", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("golett", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolurkModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolurkModel.kt index 8fb94cfadc..1a177ced93 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolurkModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GolurkModel.kt @@ -34,7 +34,7 @@ class GolurkModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golurk", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("golurk", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GurdurrModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GurdurrModel.kt index 0e9d042838..2a1c1e227f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GurdurrModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/GurdurrModel.kt @@ -34,7 +34,7 @@ class GurdurrModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gurdurr", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gurdurr", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HeatmorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HeatmorModel.kt index 87a3c532cd..2f2b72136e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HeatmorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HeatmorModel.kt @@ -37,7 +37,7 @@ class HeatmorModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("heatmor", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("heatmor", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("heatmor", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HerdierModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HerdierModel.kt index 72f7a9178f..d2d08d2cb9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HerdierModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/HerdierModel.kt @@ -36,10 +36,10 @@ class HerdierModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("herdier", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("herdier", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("herdier", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("herdier", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/JoltikModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/JoltikModel.kt index 3a461069f6..c65e3a3912 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/JoltikModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/JoltikModel.kt @@ -27,8 +27,8 @@ class JoltikModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("joltik", "blink1").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("joltik", "blink2").setPreventsIdle(false) } + val blink1 = quirk { bedrockStateful("joltik", "blink1") } + val blink2 = quirk { bedrockStateful("joltik", "blink2") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LampentModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LampentModel.kt index 5778229c09..17df1eeec4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LampentModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LampentModel.kt @@ -29,7 +29,7 @@ class LampentModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lampent", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lampent", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LillipupModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LillipupModel.kt index de8f88e399..b46de53117 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LillipupModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LillipupModel.kt @@ -36,10 +36,10 @@ class LillipupModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lillipup", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("lillipup", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("lillipup", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lillipup", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LitwickModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LitwickModel.kt index cc2ce48265..6603342d20 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LitwickModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/LitwickModel.kt @@ -29,7 +29,7 @@ class LitwickModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("litwick", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("litwick", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/MaractusModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/MaractusModel.kt index 06b8485c7c..f282d8f502 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/MaractusModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/MaractusModel.kt @@ -36,10 +36,10 @@ class MaractusModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bima lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("maractus", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("maractus", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("maractus", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("maractus", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/OshawottModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/OshawottModel.kt index 134b33378b..909576429b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/OshawottModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/OshawottModel.kt @@ -39,10 +39,10 @@ class OshawottModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("oshawott", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("oshawott", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("oshawott", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("oshawott", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PatratModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PatratModel.kt index 249b681f01..1b969bc1a8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PatratModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PatratModel.kt @@ -30,10 +30,10 @@ class PatratModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("patrat", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("patrat", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("patrat", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("patrat", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PidoveModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PidoveModel.kt index 05022142fb..55d22b0d53 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PidoveModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PidoveModel.kt @@ -44,14 +44,14 @@ class PidoveModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidove", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidove", "cry") } override fun registerPoses() { // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("pidove", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("pidove", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pidove", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PigniteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PigniteModel.kt index 70b0abaad8..b89fd403ee 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PigniteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/PigniteModel.kt @@ -37,10 +37,10 @@ class PigniteModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pignite", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pignite", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pignite", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pignite", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/RoggenrolaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/RoggenrolaModel.kt index 3d3b5a015f..b95debfea5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/RoggenrolaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/RoggenrolaModel.kt @@ -34,10 +34,10 @@ class RoggenrolaModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("roggenrola", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("roggenrola", "cry") } override fun registerPoses() { - val twitch = quirk("twitch", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("roggenrola", "quirk_twitch").setPreventsIdle(false) } + val twitch = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("roggenrola", "quirk_twitch") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("roggenrola", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SamurottModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SamurottModel.kt index 4deae21806..d957ed4008 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SamurottModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SamurottModel.kt @@ -38,10 +38,10 @@ class SamurottModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("samurott", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("samurott", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("samurott", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("samurott", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ScolipedeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ScolipedeModel.kt index 96953d3d3f..163e0f8657 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ScolipedeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ScolipedeModel.kt @@ -29,10 +29,10 @@ class ScolipedeModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scolipede", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scolipede", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("scolipede", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("scolipede", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SerperiorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SerperiorModel.kt index 0c322124f9..3019930e64 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SerperiorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SerperiorModel.kt @@ -30,10 +30,10 @@ class SerperiorModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("serperior", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("serperior", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("serperior", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("serperior", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("serperior", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ServineModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ServineModel.kt index 2fa00b58d5..2acc7e123d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ServineModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/ServineModel.kt @@ -35,10 +35,10 @@ class ServineModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("servine", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("servine", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("servine", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("servine", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SnivyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SnivyModel.kt index f8265002fe..2edb7b7e24 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SnivyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/SnivyModel.kt @@ -35,10 +35,10 @@ class SnivyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("snivy", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("snivy", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("snivy", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("snivy", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/StoutlandModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/StoutlandModel.kt index 94405818a8..4cfc39c9ec 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/StoutlandModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/StoutlandModel.kt @@ -36,10 +36,10 @@ class StoutlandModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qu lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("stoutland", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("stoutland", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("stoutland", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("stoutland", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TepigModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TepigModel.kt index 1448884cb8..790842b5af 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TepigModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TepigModel.kt @@ -36,10 +36,10 @@ class TepigModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tepig", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tepig", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tepig", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tepig", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TimburrModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TimburrModel.kt index 3e1c2be0e7..b0c0566f05 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TimburrModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TimburrModel.kt @@ -34,7 +34,7 @@ class TimburrModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("timburr", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("timburr", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TranquillModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TranquillModel.kt index 8831bf209f..1cabeeac79 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TranquillModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/TranquillModel.kt @@ -44,14 +44,14 @@ class TranquillModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tranquill", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tranquill", "cry") } override fun registerPoses() { // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("tranquill", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("tranquill", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tranquill", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/UnfezantModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/UnfezantModel.kt index 3cf41004d2..72dd3b6427 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/UnfezantModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/UnfezantModel.kt @@ -48,7 +48,7 @@ class UnfezantModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("unfezant", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("unfezant", "cry") } override fun registerPoses() { // sleep = registerPose( @@ -56,7 +56,7 @@ class UnfezantModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip // idleAnimations = arrayOf(bedrock("unfezant", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("unfezant", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("unfezant", "blink")} stand = registerPose( poseName = "stand", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/VenipedeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/VenipedeModel.kt index 24ca3d9eaa..b171dad65b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/VenipedeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/VenipedeModel.kt @@ -28,11 +28,11 @@ class VenipedeModel (root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("venipede", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("venipede", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("venipede", "blink").setPreventsIdle(false) } - val twitch = quirk("twitch") { bedrockStateful("venipede", "twitch").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("venipede", "blink") } + val twitch = quirk { bedrockStateful("venipede", "twitch") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WatchogModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WatchogModel.kt index d70bb5214f..c1335d71ae 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WatchogModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WatchogModel.kt @@ -30,10 +30,10 @@ class WatchogModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("watchog", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("watchog", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("watchog", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("watchog", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhimsicottModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhimsicottModel.kt index eaf4939372..79cdab0eca 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhimsicottModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhimsicottModel.kt @@ -38,10 +38,10 @@ class WhimsicottModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("whimsicott", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("whimsicott", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("whimsicott", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("whimsicott", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhirlipedeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhirlipedeModel.kt index 96909c8c45..1399250587 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhirlipedeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/WhirlipedeModel.kt @@ -29,10 +29,10 @@ class WhirlipedeModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("whirlipede", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("whirlipede", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("whirlipede", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("whirlipede", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/YamaskModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/YamaskModel.kt index 30e39fbae6..a1c9ecc6a7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/YamaskModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen5/YamaskModel.kt @@ -34,7 +34,7 @@ class YamaskModel (root: ModelPart) : PokemonPoseableModel(), BimanualFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("yamask", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("yamask", "cry") } override fun registerPoses() { sleep = registerPose( @@ -42,7 +42,7 @@ class YamaskModel (root: ModelPart) : PokemonPoseableModel(), BimanualFrame { idleAnimations = arrayOf(bedrock("yamask", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("yamask", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("yamask", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AegislashModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AegislashModel.kt index 34eb9636cf..423f4385af 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AegislashModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AegislashModel.kt @@ -27,10 +27,10 @@ class AegislashModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("aegislash", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("aegislash", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("aegislash", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("aegislash", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AvaluggModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AvaluggModel.kt index 0294915343..abeb3ef73b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AvaluggModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/AvaluggModel.kt @@ -45,10 +45,10 @@ class AvaluggModel (root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame, H val wateroffset = -3.5 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("avalugg", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("avalugg", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("avalugg", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("avalugg", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("avalugg", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BergmiteModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BergmiteModel.kt index 9f188e07b3..c58c325985 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BergmiteModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BergmiteModel.kt @@ -37,10 +37,10 @@ class BergmiteModel (root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bergmite", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bergmite", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bergmite", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bergmite", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("bergmite", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BraixenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BraixenModel.kt index 555bcafcd6..5f2d6d174c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BraixenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BraixenModel.kt @@ -41,10 +41,10 @@ class BraixenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("braixen", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("braixen", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("braixen", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("braixen", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BunnelbyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BunnelbyModel.kt index 2172b47143..2ee0a450ac 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BunnelbyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/BunnelbyModel.kt @@ -31,12 +31,12 @@ class BunnelbyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bunnelby", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bunnelby", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bunnelby", "blink").setPreventsIdle(false) } - val sleep1 = quirk("sleep1", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("bunnelby", "quirk_sleep").setPreventsIdle(false) } - val sleep2 = quirk("sleep2", secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("bunnelby", "quirk_sleep2").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bunnelby", "blink") } + val sleep1 = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("bunnelby", "quirk_sleep") } + val sleep2 = quirk(secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("bunnelby", "quirk_sleep2") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChesnaughtModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChesnaughtModel.kt index 5a8c2fb3e3..c79c00cbc8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChesnaughtModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChesnaughtModel.kt @@ -40,10 +40,10 @@ class ChesnaughtModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chesnaught", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chesnaught", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chesnaught", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("chesnaught", "blink")} standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChespinModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChespinModel.kt index 62a42560df..fb1f87c63f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChespinModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ChespinModel.kt @@ -36,10 +36,10 @@ class ChespinModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chespin", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("chespin", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("chespin", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("chespin", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DelphoxModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DelphoxModel.kt index 9647887e5b..2d174ac7a1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DelphoxModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DelphoxModel.kt @@ -42,10 +42,10 @@ class DelphoxModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var battleidle: PokemonPose lateinit var battlewalk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("delphox", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("delphox", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("delphox", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("delphox", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DiggersbyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DiggersbyModel.kt index bb5152c310..a04b3c694c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DiggersbyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DiggersbyModel.kt @@ -32,10 +32,10 @@ class DiggersbyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose lateinit var portrait: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("diggersby", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("diggersby", "cry") } override fun registerPoses() { - val sleep1 = quirk("sleep1", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("diggersby", "quirk_sleep").setPreventsIdle(false) } + val sleep1 = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("diggersby", "quirk_sleep") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DoubladeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DoubladeModel.kt index 2307510a81..d4176e4f90 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DoubladeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DoubladeModel.kt @@ -27,10 +27,10 @@ class DoubladeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("doublade", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("doublade", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("doublade", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("doublade", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DragalgeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DragalgeModel.kt index 4b6e27eaba..eaf09a812e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DragalgeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/DragalgeModel.kt @@ -29,10 +29,10 @@ class DragalgeModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dragalge", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dragalge", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dragalge", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dragalge", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FennekinModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FennekinModel.kt index f4546cb73b..3ec2e25971 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FennekinModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FennekinModel.kt @@ -33,10 +33,10 @@ class FennekinModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fennekin", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fennekin", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("fennekin", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fennekin", "blink") } standing = registerPose( poseName = "standing", poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchinderModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchinderModel.kt index 3ab2304617..1906befda5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchinderModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchinderModel.kt @@ -44,14 +44,14 @@ class FletchinderModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fletchinder", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fletchinder", "cry") } override fun registerPoses() { // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("fletchinder", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("fletchinder", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fletchinder", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchlingModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchlingModel.kt index f304082c96..2c6356a1d7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchlingModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FletchlingModel.kt @@ -44,14 +44,14 @@ class FletchlingModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fletchling", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fletchling", "cry") } override fun registerPoses() { // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("fletchling", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("fletchling", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fletchling", "blink") } stand = registerPose( poseName = "standing", poseTypes = PoseType.SHOULDER_POSES + PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FroakieModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FroakieModel.kt index aae7702453..fc09e17590 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FroakieModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FroakieModel.kt @@ -41,10 +41,10 @@ class FroakieModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("froakie", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("froakie", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("froakie", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("froakie", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FrogadierModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FrogadierModel.kt index f4bc7f8cc8..3456608a46 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FrogadierModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/FrogadierModel.kt @@ -41,10 +41,10 @@ class FrogadierModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("frogadier", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("frogadier", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("frogadier", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("frogadier", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GourgeistModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GourgeistModel.kt index ba68234c27..9abd417fa9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GourgeistModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GourgeistModel.kt @@ -32,10 +32,10 @@ class GourgeistModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gourgeist", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("gourgeist", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("gourgeist", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("gourgeist", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.UI_POSES + PoseType.STAND, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GreninjaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GreninjaModel.kt index 6523ce3213..a9fff48bc1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GreninjaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/GreninjaModel.kt @@ -44,10 +44,10 @@ class GreninjaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("greninja", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("greninja", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("greninja", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("greninja", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/HonedgeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/HonedgeModel.kt index 6c08f3f62e..ee61d0aa12 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/HonedgeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/HonedgeModel.kt @@ -27,10 +27,10 @@ class HonedgeModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("honedge", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("honedge", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("honedge", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("honedge", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PhantumpModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PhantumpModel.kt index 36d5b700cd..7754189a4e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PhantumpModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PhantumpModel.kt @@ -33,10 +33,10 @@ class PhantumpModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("phantump", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("phantump", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("phantump", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("phantump", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("phantump", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PumpkabooModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PumpkabooModel.kt index 8ea04def83..c2ecae714a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PumpkabooModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/PumpkabooModel.kt @@ -30,10 +30,10 @@ class PumpkabooModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pumpkaboo", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pumpkaboo", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("pumpkaboo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("pumpkaboo", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/QuilladinModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/QuilladinModel.kt index 0f6f405ac7..b188eb6ee7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/QuilladinModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/QuilladinModel.kt @@ -39,10 +39,10 @@ class QuilladinModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quilladin", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quilladin", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quilladin", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("quilladin", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ScatterbugModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ScatterbugModel.kt index c5b20de014..621c7e5d88 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ScatterbugModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/ScatterbugModel.kt @@ -32,11 +32,11 @@ class ScatterbugModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scatterbug", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scatterbug", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("scatterbug", "blink").setPreventsIdle(false) } - val lookquirk = quirk("lookquirk") { bedrockStateful("scatterbug", "quirk").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("scatterbug", "blink") } + val lookquirk = quirk { bedrockStateful("scatterbug", "quirk") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SkrelpModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SkrelpModel.kt index f06d71c6aa..262744905e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SkrelpModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SkrelpModel.kt @@ -29,10 +29,10 @@ class SkrelpModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("skrelp", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("skrelp", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("skrelp", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("skrelp", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SpewpaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SpewpaModel.kt index cd8fa98c5d..1d10e34cd9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SpewpaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SpewpaModel.kt @@ -32,11 +32,11 @@ class SpewpaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("spewpa", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("spewpa", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("spewpa", "blink").setPreventsIdle(false) } - val fluff = quirk("fluff", secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("spewpa", "quirk_fluff").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("spewpa", "blink") } + val fluff = quirk(secondsBetweenOccurrences = 60F to 360F) { bedrockStateful("spewpa", "quirk_fluff") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SylveonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SylveonModel.kt index 6a19a25999..49721576ac 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SylveonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/SylveonModel.kt @@ -31,10 +31,10 @@ class SylveonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sylveon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sylveon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sylveon", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sylveon", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TalonflameModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TalonflameModel.kt index 76c2c486ee..350326b96a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TalonflameModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TalonflameModel.kt @@ -42,7 +42,7 @@ class TalonflameModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("talonflame", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("talonflame", "cry") } override fun registerPoses() { // sleep = registerPose( @@ -50,7 +50,7 @@ class TalonflameModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B // idleAnimations = arrayOf(bedrock("talonflame", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("talonflame", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("talonflame", "blink")} stand = registerPose( poseName = "stand", poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TrevenantModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TrevenantModel.kt index df877c428e..4ccd2ab780 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TrevenantModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/TrevenantModel.kt @@ -31,10 +31,10 @@ class TrevenantModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("trevenant", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("trevenant", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("trevenant", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("trevenant", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("trevenant", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/VivillonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/VivillonModel.kt index 1159163ea2..fa1df70ce8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/VivillonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen6/VivillonModel.kt @@ -35,10 +35,10 @@ class VivillonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BiWi lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("vivillon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("vivillon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("vivillon", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("vivillon", "blink")} sleep = registerPose( poseName = "sleep", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BewearModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BewearModel.kt index 197c55be35..c1448f02b2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BewearModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BewearModel.kt @@ -43,10 +43,10 @@ class BewearModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bewear", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bewear", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("bewear", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("bewear", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BrionneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BrionneModel.kt index 4fe47cb64e..64e05f9b76 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BrionneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/BrionneModel.kt @@ -36,10 +36,10 @@ class BrionneModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var battleidle: PokemonPose // lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("brionne", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("brionne", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("brionne", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("brionne", "blink") } // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("brionne", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ComfeyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ComfeyModel.kt index 84273f5b96..c87cd4ca48 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ComfeyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ComfeyModel.kt @@ -38,7 +38,7 @@ class ComfeyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biman val shoulderOffset = 1.5 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("comfey", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("comfey", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("comfey", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DartrixModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DartrixModel.kt index 83e678c9a5..4b296b0a8b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DartrixModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DartrixModel.kt @@ -45,7 +45,7 @@ class DartrixModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, BiWing lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dartrix", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dartrix", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DecidueyeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DecidueyeModel.kt index 04c12bfefb..a84023f421 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DecidueyeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/DecidueyeModel.kt @@ -50,10 +50,10 @@ class DecidueyeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var hover: PokemonPose lateinit var fly: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("decidueye", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("decidueye", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("decidueye", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("decidueye", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES - PoseType.HOVER + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/GolisopodModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/GolisopodModel.kt index 8814ed5386..388980c4f3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/GolisopodModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/GolisopodModel.kt @@ -36,10 +36,10 @@ class GolisopodModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golisopod", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golisopod", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("golisopod", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("golisopod", "blink")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/IncineroarModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/IncineroarModel.kt index 883c57bd6c..a639b34724 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/IncineroarModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/IncineroarModel.kt @@ -40,10 +40,10 @@ class IncineroarModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, B lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("incineroar", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("incineroar", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("incineroar", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("incineroar", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/KomalaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/KomalaModel.kt index 57dcf6adad..3db315814a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/KomalaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/KomalaModel.kt @@ -24,10 +24,10 @@ class KomalaModel (root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose -// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("komala", "cry").setPreventsIdle(false) } +// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("komala", "cry") } override fun registerPoses() { - val doze = quirk("doze", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("komala", "quirk_doze_off").setPreventsIdle(false)} + val doze = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("komala", "quirk_doze_off")} standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/LittenModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/LittenModel.kt index 9d127f5480..a3eb631ec2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/LittenModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/LittenModel.kt @@ -38,10 +38,10 @@ class LittenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("litten", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("litten", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("litten", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("litten", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MimikyuModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MimikyuModel.kt index 46bf5e813d..fdbdb79e64 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MimikyuModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MimikyuModel.kt @@ -36,7 +36,7 @@ class MimikyuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mimikyu", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mimikyu", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MorelullModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MorelullModel.kt index 6dfcfbab37..76cb684ba6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MorelullModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MorelullModel.kt @@ -26,7 +26,7 @@ class MorelullModel(root: ModelPart) : PokemonPoseableModel() { lateinit var standing: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("morelull", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("morelull", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudbrayModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudbrayModel.kt index 8badc97c79..dbdd208add 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudbrayModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudbrayModel.kt @@ -36,10 +36,10 @@ class MudbrayModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudbray", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudbray", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mudbray", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mudbray", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudsdaleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudsdaleModel.kt index 0454f35968..1ccd18acba 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudsdaleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/MudsdaleModel.kt @@ -36,10 +36,10 @@ class MudsdaleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudsdale", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mudsdale", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mudsdale", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mudsdale", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PoipoleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PoipoleModel.kt index 9160a17044..148ee84e4f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PoipoleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PoipoleModel.kt @@ -41,7 +41,7 @@ class PoipoleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biman lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("poipole", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("poipole", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PopplioModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PopplioModel.kt index a655995eed..018a36a43c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PopplioModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PopplioModel.kt @@ -42,10 +42,10 @@ class PopplioModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffset = 1 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("popplio", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("popplio", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("popplio", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("popplio", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("popplio", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PrimarinaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PrimarinaModel.kt index 0e2290ff49..dbc780ade6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PrimarinaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/PrimarinaModel.kt @@ -36,10 +36,10 @@ class PrimarinaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("primarina", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("primarina", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("primarina", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("primarina", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/RowletModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/RowletModel.kt index 5b46c3f563..312a3b4a15 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/RowletModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/RowletModel.kt @@ -45,10 +45,10 @@ class RowletModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, BiWinge lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rowlet", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rowlet", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rowlet", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("rowlet", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES - PoseType.HOVER + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ShiinoticModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ShiinoticModel.kt index d3805abdaa..999085b39f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ShiinoticModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/ShiinoticModel.kt @@ -38,7 +38,7 @@ class ShiinoticModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("shiinotic", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("shiinotic", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/SteeneeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/SteeneeModel.kt index 6418a3bb0a..1d8401486d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/SteeneeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/SteeneeModel.kt @@ -40,7 +40,7 @@ class SteeneeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biman lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("steenee", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("steenee", "blink")} standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/StuffulModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/StuffulModel.kt index b9c330075d..ed77a6a1b5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/StuffulModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/StuffulModel.kt @@ -39,10 +39,10 @@ class StuffulModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("stufful", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("stufful", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("stufful", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("stufful", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TorracatModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TorracatModel.kt index 0afb448ea1..bab10cf83b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TorracatModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TorracatModel.kt @@ -38,10 +38,10 @@ class TorracatModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torracat", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("torracat", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("torracat", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("torracat", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TsareenaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TsareenaModel.kt index b25f21c071..16627f17de 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TsareenaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/TsareenaModel.kt @@ -36,7 +36,7 @@ class TsareenaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tsareena", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tsareena", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WimpodModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WimpodModel.kt index 0a6a46bc77..fd3af172ff 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WimpodModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WimpodModel.kt @@ -38,12 +38,12 @@ class WimpodModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var swimming: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wimpod", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wimpod", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wimpod", "blink").setPreventsIdle(false)} - val leftTwitch = quirk("left_twitch") { bedrockStateful("wimpod", "twitch_quirk_left").setPreventsIdle(false)} - val rightTwitch = quirk("right_twitch") { bedrockStateful("wimpod", "twitch_quirk_right").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("wimpod", "blink")} + val leftTwitch = quirk { bedrockStateful("wimpod", "twitch_quirk_left")} + val rightTwitch = quirk { bedrockStateful("wimpod", "twitch_quirk_right")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WishiwashiSoloModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WishiwashiSoloModel.kt index f5b23fc851..ef383676e2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WishiwashiSoloModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen7/WishiwashiSoloModel.kt @@ -30,7 +30,7 @@ class WishiwashiSoloModel (root: ModelPart) : PokemonPoseableModel(){ lateinit var watersleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wishiwashi_solo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wishiwashi_solo", "blink") } watersleep = registerPose( poseType = PoseType.SLEEP, condition = { it.isTouchingWater }, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/AlcremieModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/AlcremieModel.kt index b7286795a4..811989739f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/AlcremieModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/AlcremieModel.kt @@ -42,7 +42,7 @@ class AlcremieModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bim val shoulderOffset = 5.5 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("alcremie", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("alcremie", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("alcremie", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ArrokudaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ArrokudaModel.kt index 8170250d7c..f6cc681564 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ArrokudaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ArrokudaModel.kt @@ -33,8 +33,8 @@ class ArrokudaModel (root: ModelPart) : PokemonPoseableModel() { lateinit var waterbattleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("arrokuda", "blink").setPreventsIdle(false)} - val flop = quirk("flop") { bedrockStateful("arrokuda", "ground_quirk").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("arrokuda", "blink")} + val flop = quirk { bedrockStateful("arrokuda", "ground_quirk")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BarraskewdaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BarraskewdaModel.kt index df1533d41f..9484b165db 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BarraskewdaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BarraskewdaModel.kt @@ -33,7 +33,7 @@ class BarraskewdaModel (root: ModelPart) : PokemonPoseableModel() { lateinit var waterbattleidle: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("barraskewda", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("barraskewda", "blink")} sleep = registerPose( poseName = "sleeping", transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BoltundModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BoltundModel.kt index 1f3a9b1079..6ad79c1615 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BoltundModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/BoltundModel.kt @@ -33,10 +33,10 @@ class BoltundModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("boltund", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("boltund", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("boltund", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("boltund", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("boltund", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CinderaceModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CinderaceModel.kt index f74ddb6283..ba739b5184 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CinderaceModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CinderaceModel.kt @@ -36,10 +36,10 @@ class CinderaceModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cinderace", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cinderace", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cinderace", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cinderace", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorviknightModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorviknightModel.kt index f45e2cc4a4..9ad538f07c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorviknightModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorviknightModel.kt @@ -45,10 +45,10 @@ class CorviknightModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("corviknight", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("corviknight", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("corviknight", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("corviknight", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("corviknight", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorvisquireModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorvisquireModel.kt index 900e71d556..39a54672fd 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorvisquireModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/CorvisquireModel.kt @@ -40,11 +40,11 @@ class CorvisquireModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("corvisquire", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("corvisquire", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("corvisquire", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("corvisquire", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("corvisquire", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DrizzileModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DrizzileModel.kt index fae0b7d24c..8f6c335460 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DrizzileModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DrizzileModel.kt @@ -39,10 +39,10 @@ class DrizzileModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("drizzile", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("drizzile", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("drizzile", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("drizzile", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DubwoolModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DubwoolModel.kt index f80dea4950..259449064a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DubwoolModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/DubwoolModel.kt @@ -43,10 +43,10 @@ class DubwoolModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var shearedstanding: PokemonPose lateinit var shearedwalk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dubwool", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dubwool", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dubwool", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dubwool", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/EiscueModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/EiscueModel.kt index e817c56fd5..adb336afbc 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/EiscueModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/EiscueModel.kt @@ -32,7 +32,7 @@ class EiscueModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("eiscue_ice", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("eiscue_ice", "blink")} sleep = registerPose( poseType = PoseType.SLEEP, transformTicks = 10, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/FalinksModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/FalinksModel.kt index e142747fa7..df447770c1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/FalinksModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/FalinksModel.kt @@ -29,12 +29,12 @@ class FalinksModel (root: ModelPart) : PokemonPoseableModel(){ lateinit var uipose: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("falinks", "blink").setPreventsIdle(false) } - val blink2 = quirk("blink2") { bedrockStateful("falinks", "blink2").setPreventsIdle(false) } - val blink3 = quirk("blink3") { bedrockStateful("falinks", "blink3").setPreventsIdle(false) } - val blink4 = quirk("blink4") { bedrockStateful("falinks", "blink4").setPreventsIdle(false) } - val blink5 = quirk("blink5") { bedrockStateful("falinks", "blink5").setPreventsIdle(false) } - val blink6 = quirk("blink6") { bedrockStateful("falinks", "blink6").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("falinks", "blink") } + val blink2 = quirk { bedrockStateful("falinks", "blink2") } + val blink3 = quirk { bedrockStateful("falinks", "blink3") } + val blink4 = quirk { bedrockStateful("falinks", "blink4") } + val blink5 = quirk { bedrockStateful("falinks", "blink5") } + val blink6 = quirk { bedrockStateful("falinks", "blink6") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/GrookeyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/GrookeyModel.kt index 6129ca6e1c..b202dce1ec 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/GrookeyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/GrookeyModel.kt @@ -40,10 +40,10 @@ class GrookeyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grookey", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grookey", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("grookey", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("grookey", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/InteleonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/InteleonModel.kt index 8e1e289edc..3ff158de32 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/InteleonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/InteleonModel.kt @@ -38,10 +38,10 @@ class InteleonModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("inteleon", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("inteleon", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("inteleon", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("inteleon", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/KleavorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/KleavorModel.kt index 0abd9cc10c..b3bb813e1c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/KleavorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/KleavorModel.kt @@ -34,7 +34,7 @@ class KleavorModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("kleavor", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("kleavor", "blink")} standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/NickitModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/NickitModel.kt index 1fc42b7d07..17e67294ab 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/NickitModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/NickitModel.kt @@ -39,14 +39,14 @@ class NickitModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nickit", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nickit", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("nickit", "blink").setPreventsIdle(false)} - val glanceleft = quirk("glanceleft") { bedrockStateful("nickit", "quirk_shiftyglance_left").setPreventsIdle(false)} - val glanceright = quirk("glanceright") { bedrockStateful("nickit", "quirk_shiftyglance_right").setPreventsIdle(false)} - val eartwitchleft = quirk("eartwitchleft") { bedrockStateful("nickit", "quirk_eartwitch_left").setPreventsIdle(false)} - val eartwitchright = quirk("eartwitchright") { bedrockStateful("nickit", "quirk_eartwitch_right").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("nickit", "blink")} + val glanceleft = quirk { bedrockStateful("nickit", "quirk_shiftyglance_left")} + val glanceright = quirk { bedrockStateful("nickit", "quirk_shiftyglance_right")} + val eartwitchleft = quirk { bedrockStateful("nickit", "quirk_eartwitch_left")} + val eartwitchright = quirk { bedrockStateful("nickit", "quirk_eartwitch_right")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ObstagoonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ObstagoonModel.kt index 0b9c85f7cd..eb45e53df3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ObstagoonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ObstagoonModel.kt @@ -34,7 +34,7 @@ class ObstagoonModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("obstagoon", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("obstagoon", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/PerrserkerModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/PerrserkerModel.kt index 5c520ea9e9..7f4abdc860 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/PerrserkerModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/PerrserkerModel.kt @@ -41,7 +41,7 @@ class PerrserkerModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("perrserker", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("perrserker", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RabootModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RabootModel.kt index 9fa9fba11a..2e5970e034 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RabootModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RabootModel.kt @@ -36,10 +36,10 @@ class RabootModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raboot", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("raboot", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("raboot", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("raboot", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RillaboomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RillaboomModel.kt index cb529ca141..8059ec29f1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RillaboomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RillaboomModel.kt @@ -41,10 +41,10 @@ class RillaboomModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rillaboom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rillaboom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rillaboom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("rillaboom", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RookideeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RookideeModel.kt index 4cd2b40ece..0738724834 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RookideeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/RookideeModel.kt @@ -38,10 +38,10 @@ class RookideeModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame, BiWi lateinit var fly: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rookidee", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("rookidee", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("rookidee", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("rookidee", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("rookidee", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ScorbunnyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ScorbunnyModel.kt index a98c857161..8b58c55b1a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ScorbunnyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ScorbunnyModel.kt @@ -38,10 +38,10 @@ class ScorbunnyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi // lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scorbunny", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("scorbunny", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("scorbunny", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("scorbunny", "blink") } // sleep = registerPose( // poseType = PoseType.SLEEP, // idleAnimations = arrayOf(bedrock("scorbunny", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SirfetchdModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SirfetchdModel.kt index 1fa7cb8395..5780ebfaa9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SirfetchdModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SirfetchdModel.kt @@ -9,6 +9,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen8 import com.cobblemon.mod.common.client.render.models.blockbench.animation.BipedWalkAnimation +import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider @@ -34,11 +35,11 @@ class SirfetchdModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sirfetchd", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sirfetchd", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sirfetchd", "blink").setPreventsIdle(false) } - val swag = quirk("swag") { bedrockStateful("sirfetchd", "quirk").setPreventsIdle(true) } + val blink = quirk { bedrockStateful("sirfetchd", "blink") } + val swag = quirk { PrimaryAnimation(bedrockStateful("sirfetchd", "quirk")) } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SobbleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SobbleModel.kt index d8231db523..f92b83ed27 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SobbleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/SobbleModel.kt @@ -36,10 +36,10 @@ class SobbleModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sobble", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sobble", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sobble", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sobble", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThievulModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThievulModel.kt index 459b05da52..e496231aac 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThievulModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThievulModel.kt @@ -37,11 +37,11 @@ class ThievulModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("thievul", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("thievul", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("thievul", "blink").setPreventsIdle(false)} - val sleepquirk = quirk("sleepquirk") { bedrockStateful("thievul", "quirk_sleep").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("thievul", "blink")} + val sleepquirk = quirk { bedrockStateful("thievul", "quirk_sleep")} sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThwackeyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThwackeyModel.kt index 763e5bce11..36dc260c85 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThwackeyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/ThwackeyModel.kt @@ -42,10 +42,10 @@ class ThwackeyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("thwackey", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("thwackey", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("thwackey", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("thwackey", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/UrsalunaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/UrsalunaModel.kt index 0e88c66cda..4635fbeb0b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/UrsalunaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/UrsalunaModel.kt @@ -37,7 +37,7 @@ class UrsalunaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ursaluna", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ursaluna", "cry") } override fun registerPoses() { // sleep = registerPose( @@ -45,7 +45,7 @@ class UrsalunaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua // idleAnimations = arrayOf(bedrock("ursaluna", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("ursaluna", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ursaluna", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WoolooModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WoolooModel.kt index f8833480f4..0207265cc4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WoolooModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WoolooModel.kt @@ -40,10 +40,10 @@ class WoolooModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadru lateinit var shearedstanding: PokemonPose lateinit var shearedwalk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooloo", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("wooloo", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wooloo", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wooloo", "blink") } standing = registerPose( poseName = "standing", poseTypes = setOf(PoseType.NONE, PoseType.STAND, PoseType.PORTRAIT, PoseType.PROFILE), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WyrdeerModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WyrdeerModel.kt index d8a4303578..c0a867a099 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WyrdeerModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/WyrdeerModel.kt @@ -36,7 +36,7 @@ class WyrdeerModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("wyrdeer", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("wyrdeer", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/YamperModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/YamperModel.kt index 4621a5eeb1..21c997c302 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/YamperModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen8/YamperModel.kt @@ -36,10 +36,10 @@ class YamperModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("yamper", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("yamper", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("yamper", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("yamper", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/AnnihilapeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/AnnihilapeModel.kt index 4449292a5c..86fd1fe07f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/AnnihilapeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/AnnihilapeModel.kt @@ -38,10 +38,10 @@ class AnnihilapeModel (root: ModelPart) : PokemonPoseableModel(), BipedFrame, Bi lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("annihilape", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("annihilape", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("annihilape", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("annihilape", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ArmarougeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ArmarougeModel.kt index c05d0a631c..bd508da057 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ArmarougeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ArmarougeModel.kt @@ -43,10 +43,10 @@ class ArmarougeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("armarouge", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("armarouge", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("armarouge", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("armarouge", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("armarouge", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CeruledgeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CeruledgeModel.kt index 5482d1c16f..101b50a87d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CeruledgeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CeruledgeModel.kt @@ -48,10 +48,10 @@ class CeruledgeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ceruledge", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ceruledge", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ceruledge", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ceruledge", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, transformedParts = arrayOf( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetitanModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetitanModel.kt index 6f180fb513..167507739c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetitanModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetitanModel.kt @@ -35,10 +35,10 @@ class CetitanModel(root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cetitan", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cetitan", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cetitan", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cetitan", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("cetitan", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetoddleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetoddleModel.kt index 2989757e4f..6d942ee8a3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetoddleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CetoddleModel.kt @@ -35,10 +35,10 @@ class CetoddleModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cetoddle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("cetoddle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("cetoddle", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("cetoddle", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("cetoddle", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CharcadetModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CharcadetModel.kt index 7349b3b22e..7ec7663db9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CharcadetModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CharcadetModel.kt @@ -42,10 +42,10 @@ class CharcadetModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walking: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charcadet", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charcadet", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("charcadet", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("charcadet", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("charcadet", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ClodsireModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ClodsireModel.kt index 72a7ddd957..2cd784fff0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ClodsireModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ClodsireModel.kt @@ -38,10 +38,10 @@ class ClodsireModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clodsire", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clodsire", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("clodsire", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("clodsire", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CrocalorModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CrocalorModel.kt index e09e5cfe8c..498555ae99 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CrocalorModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/CrocalorModel.kt @@ -31,10 +31,10 @@ class CrocalorModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame{ lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crocalor", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("crocalor", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("crocalor", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("crocalor", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("crocalor", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/DachsbunModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/DachsbunModel.kt index cdf8510225..96e858ceb4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/DachsbunModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/DachsbunModel.kt @@ -39,10 +39,10 @@ class DachsbunModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad lateinit var walking: PokemonPose lateinit var sleeping: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dachsbun", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("dachsbun", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("dachsbun", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("dachsbun", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/EspathraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/EspathraModel.kt index 90106be189..f8e9b05437 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/EspathraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/EspathraModel.kt @@ -35,10 +35,10 @@ class EspathraModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("espathra", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("espathra", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("espathra", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("espathra", "blink") } sleep = registerPose( poseName = "sleep", poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FidoughModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FidoughModel.kt index 015e74de5f..4e5c50f36b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FidoughModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FidoughModel.kt @@ -39,10 +39,10 @@ class FidoughModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr lateinit var walking: PokemonPose lateinit var sleeping: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fidough", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fidough", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("fidough", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fidough", "blink") } standing = registerPose( poseName = "standing", poseTypes = STATIONARY_POSES + UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FlittleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FlittleModel.kt index 673f06618e..fc2a28d0c9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FlittleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FlittleModel.kt @@ -41,10 +41,10 @@ class FlittleModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { val shoulderOffsetX = 6 val shoulderOffsetY = 6 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flittle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flittle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("flittle", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("flittle", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("flittle", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FloragatoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FloragatoModel.kt index 264864cf99..f9f36f65bb 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FloragatoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FloragatoModel.kt @@ -31,10 +31,10 @@ class FloragatoModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("floragato", "battle_cry").setPreventsIdle(false) else bedrockStateful("floragato", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { entity, _ -> if (entity.isBattling) bedrockStateful("floragato", "battle_cry") else bedrockStateful("floragato", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("floragato", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("floragato", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("floragato", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FuecocoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FuecocoModel.kt index 19bc4f962b..748b61fa2a 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FuecocoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/FuecocoModel.kt @@ -33,10 +33,10 @@ class FuecocoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fuecoco", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fuecoco", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("fuecoco", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("fuecoco", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("fuecoco", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GarganaclModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GarganaclModel.kt index 2b1143f29e..b245cc0de1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GarganaclModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GarganaclModel.kt @@ -41,7 +41,7 @@ class GarganaclModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var walk: PokemonPose lateinit var portrait: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("garganacl", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("garganacl", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmetModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmetModel.kt index c9ded882ad..07428a7b33 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmetModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmetModel.kt @@ -30,10 +30,10 @@ class GlimmetModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glimmet", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glimmet", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("glimmet", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("glimmet", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("glimmet", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmoraModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmoraModel.kt index 979e869972..6de8ceda36 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmoraModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GlimmoraModel.kt @@ -31,10 +31,10 @@ class GlimmoraModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glimmora", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("glimmora", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("glimmora", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("glimmora", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("glimmora", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GrafaiaiModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GrafaiaiModel.kt index 66a3e620ed..bb162554a5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GrafaiaiModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/GrafaiaiModel.kt @@ -30,10 +30,10 @@ class GrafaiaiModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walking: PokemonPose lateinit var sleeping: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grafaiai", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("grafaiai", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("grafaiai", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("grafaiai", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/IronleavesModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/IronleavesModel.kt index 1eb0f1ce7a..b32920aaa1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/IronleavesModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/IronleavesModel.kt @@ -34,7 +34,7 @@ class IronleavesModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("ironleaves", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("ironleaves", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/LechonkModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/LechonkModel.kt index d54435c9f4..9b6b6b2cd9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/LechonkModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/LechonkModel.kt @@ -40,7 +40,7 @@ class LechonkModel (root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { // idleAnimations = arrayOf(bedrock("lechonk", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("lechonk", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("lechonk", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MabosstiffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MabosstiffModel.kt index 8374f00715..094590a8b5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MabosstiffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MabosstiffModel.kt @@ -36,10 +36,10 @@ class MabosstiffModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Q lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mabosstiff", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mabosstiff", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("mabosstiff", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("mabosstiff", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MaschiffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MaschiffModel.kt index e2355f3d1b..b92f9f9fff 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MaschiffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MaschiffModel.kt @@ -36,10 +36,10 @@ class MaschiffModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("maschiff", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("maschiff", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("maschiff", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("maschiff", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdModel.kt index 0c7694855d..be3f150b40 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdModel.kt @@ -34,9 +34,9 @@ class MausholdModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("maushold_four", "blink1").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("maushold_four", "blink2").setPreventsIdle(false)} - val blink3 = quirk("blink3") { bedrockStateful("maushold_four", "blink3").setPreventsIdle(false)} + val blink1 = quirk { bedrockStateful("maushold_four", "blink1")} + val blink2 = quirk { bedrockStateful("maushold_four", "blink2")} + val blink3 = quirk { bedrockStateful("maushold_four", "blink3")} val head2 = object : HeadedFrame { override val rootPart = this@MausholdModel.rootPart diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdfourModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdfourModel.kt index 8270b1c2a5..c7164ecae3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdfourModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MausholdfourModel.kt @@ -34,10 +34,10 @@ class MausholdfourModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("maushold_four", "blink1").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("maushold_four", "blink2").setPreventsIdle(false)} - val blink3 = quirk("blink3") { bedrockStateful("maushold_four", "blink3").setPreventsIdle(false)} - val blink4 = quirk("blink4") { bedrockStateful("maushold_four", "blink4").setPreventsIdle(false)} + val blink1 = quirk { bedrockStateful("maushold_four", "blink1")} + val blink2 = quirk { bedrockStateful("maushold_four", "blink2")} + val blink3 = quirk { bedrockStateful("maushold_four", "blink3")} + val blink4 = quirk { bedrockStateful("maushold_four", "blink4")} val head2 = object : HeadedFrame { override val rootPart = this@MausholdfourModel.rootPart diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MeowscaradaModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MeowscaradaModel.kt index 79a1cdcc30..557d97b713 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MeowscaradaModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/MeowscaradaModel.kt @@ -31,14 +31,14 @@ class MeowscaradaModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("meowscarada", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("meowscarada", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("meowscarada", "blink").setPreventsIdle(false) } - val sleep1 = quirk("sleep1", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("meowscarada", "sleep_quirk").setPreventsIdle(false) } - val sleep2 = quirk("sleep2", secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("meowscarada", "sleep_quirk2").setPreventsIdle(false) } - val sleep3 = quirk("sleep3", secondsBetweenOccurrences = 20F to 60F) { bedrockStateful("meowscarada", "sleep_quirk3").setPreventsIdle(false) } - val sleep4 = quirk("sleep4", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("meowscarada", "sleep_quirk4").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("meowscarada", "blink") } + val sleep1 = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("meowscarada", "sleep_quirk") } + val sleep2 = quirk(secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("meowscarada", "sleep_quirk2") } + val sleep3 = quirk(secondsBetweenOccurrences = 20F to 60F) { bedrockStateful("meowscarada", "sleep_quirk3") } + val sleep4 = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("meowscarada", "sleep_quirk4") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NacliModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NacliModel.kt index 603dcc1a37..8a44709e44 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NacliModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NacliModel.kt @@ -31,7 +31,7 @@ class NacliModel(root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nacli", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("nacli", "cry") } override fun registerPoses() { sleep = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NaclstackModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NaclstackModel.kt index fa4ee4f844..3160a6f0c4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NaclstackModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/NaclstackModel.kt @@ -36,7 +36,7 @@ class NaclstackModel(root: ModelPart) : PokemonPoseableModel(), QuadrupedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("naclstack", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("naclstack", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/OinkologneModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/OinkologneModel.kt index 9495b0cda7..b5abc5f1ea 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/OinkologneModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/OinkologneModel.kt @@ -42,7 +42,7 @@ class OinkologneModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Q // idleAnimations = arrayOf(bedrock("oinkologne", "sleep")) // ) - val blink = quirk("blink") { bedrockStateful("oinkologne", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("oinkologne", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaquavalModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaquavalModel.kt index a16a823c7a..bac8735601 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaquavalModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaquavalModel.kt @@ -39,10 +39,10 @@ class QuaquavalModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaquaval", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaquaval", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quaquaval", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("quaquaval", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("quaquaval", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxlyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxlyModel.kt index 6387b9d868..f7cdeb5c8f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxlyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxlyModel.kt @@ -47,10 +47,10 @@ class QuaxlyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF val wateroffset = -10 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaxly", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaxly", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quaxly", "blink").setPreventsIdle(false)} + val blink = quirk { bedrockStateful("quaxly", "blink")} sleep = registerPose( poseName = "sleeping", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxwellModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxwellModel.kt index 1dc5e23f58..c739ca7b30 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxwellModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/QuaxwellModel.kt @@ -34,10 +34,10 @@ class QuaxwellModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaxwell", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("quaxwell", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("quaxwell", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("quaxwell", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("quaxwell", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/RevavroomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/RevavroomModel.kt index fc3d7d9ba5..afd81ff7a0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/RevavroomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/RevavroomModel.kt @@ -28,10 +28,10 @@ class RevavroomModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("revavroom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("revavroom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("revavroom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("revavroom", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("revavroom", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ShroodleModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ShroodleModel.kt index ef00ab7045..2ec7855e79 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ShroodleModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/ShroodleModel.kt @@ -28,10 +28,10 @@ class ShroodleModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walking: PokemonPose lateinit var sleeping: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shroodle", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("shroodle", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("shroodle", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("shroodle", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SkeledirgeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SkeledirgeModel.kt index fdd99b1b2b..e61799e0e2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SkeledirgeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SkeledirgeModel.kt @@ -29,10 +29,10 @@ class SkeledirgeModel (root: ModelPart) : PokemonPoseableModel() { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("skeledirge", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("skeledirge", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("skeledirge", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("skeledirge", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("skeledirge", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SprigatitoModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SprigatitoModel.kt index dd99b9695b..76469a0eb2 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SprigatitoModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SprigatitoModel.kt @@ -31,12 +31,12 @@ class SprigatitoModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sprigatito", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("sprigatito", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("sprigatito", "blink").setPreventsIdle(false) } - val earTwitchRight = quirk("ear_twitch_right", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("sprigatito", "quirk_ear-twitch-left").setPreventsIdle(false) } - val earTwitchLeft = quirk("ear_twitch_left", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("sprigatito", "quirk_ear-twitch-right").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("sprigatito", "blink") } + val earTwitchRight = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("sprigatito", "quirk_ear-twitch-left") } + val earTwitchLeft = quirk(secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("sprigatito", "quirk_ear-twitch-right") } sleep = registerPose( poseType = PoseType.SLEEP, quirks = arrayOf(earTwitchRight, earTwitchLeft), diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SquawkabillyModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SquawkabillyModel.kt index bcb9093eb4..0d5c1eca09 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SquawkabillyModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/SquawkabillyModel.kt @@ -46,12 +46,12 @@ class SquawkabillyModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, lateinit var shoulderLeft: PokemonPose lateinit var shoulderRight: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("squawkabilly", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("squawkabilly", "cry") } val shoulderOffsetX = -1.0 val shoulderOffsetY = 0 override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("squawkabilly", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("squawkabilly", "blink") } standing = registerPose( poseName = "standing", diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TandemausModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TandemausModel.kt index a14dffc4c8..d082484499 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TandemausModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TandemausModel.kt @@ -33,12 +33,12 @@ class TandemausModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var walk: PokemonPose // lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tandemaus", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tandemaus", "cry") } override fun registerPoses() { - val blink1 = quirk("blink1") { bedrockStateful("tandemaus", "blink1").setPreventsIdle(false)} - val blink2 = quirk("blink2") { bedrockStateful("tandemaus", "blink2").setPreventsIdle(false)} + val blink1 = quirk { bedrockStateful("tandemaus", "blink1")} + val blink2 = quirk { bedrockStateful("tandemaus", "blink2")} val head2 = object : HeadedFrame { override val rootPart = this@TandemausModel.rootPart diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TatsugiriModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TatsugiriModel.kt index 81217b840c..a74a16849d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TatsugiriModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TatsugiriModel.kt @@ -30,7 +30,7 @@ class TatsugiriModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame { lateinit var standing: PokemonPose lateinit var walk: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tatsugiri", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tatsugiri", "cry") } override fun registerPoses() { standing = registerPose( diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatinkModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatinkModel.kt index d06345d4b8..303cf3963c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatinkModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatinkModel.kt @@ -45,10 +45,10 @@ class TinkatinkModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi val shoulderOffset = 1 - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkatink", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkatink", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tinkatink", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tinkatink", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatonModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatonModel.kt index e63dcb2606..01f56c6821 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatonModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatonModel.kt @@ -39,10 +39,10 @@ class TinkatonModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkaton", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkaton", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tinkaton", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tinkaton", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("tinkaton", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatuffModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatuffModel.kt index 2a86bba30e..7efb7227f5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatuffModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/TinkatuffModel.kt @@ -39,10 +39,10 @@ class TinkatuffModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi lateinit var sleep: PokemonPose lateinit var battleidle: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkatuff", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("tinkatuff", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("tinkatuff", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("tinkatuff", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("tinkatuff", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/VaroomModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/VaroomModel.kt index 7237781cea..079e8d9dcf 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/VaroomModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/VaroomModel.kt @@ -28,10 +28,10 @@ class VaroomModel (root: ModelPart) : PokemonPoseableModel() { lateinit var walk: PokemonPose lateinit var sleep: PokemonPose - override val cryAnimation = CryProvider { _, _ -> bedrockStateful("varoom", "cry").setPreventsIdle(false) } + override val cryAnimation = CryProvider { _, _ -> bedrockStateful("varoom", "cry") } override fun registerPoses() { - val blink = quirk("blink") { bedrockStateful("varoom", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("varoom", "blink") } sleep = registerPose( poseType = PoseType.SLEEP, idleAnimations = arrayOf(bedrock("varoom", "sleep")) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/WalkingwakeModel.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/WalkingwakeModel.kt index a6b2e5dc92..822bfe68ec 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/WalkingwakeModel.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/gen9/WalkingwakeModel.kt @@ -52,7 +52,7 @@ class WalkingwakeModel (root: ModelPart) : PokemonPoseableModel(), HeadedFrame, idleAnimations = arrayOf(bedrock("walkingwake", "sleep")) ) - val blink = quirk("blink") { bedrockStateful("walkingwake", "blink").setPreventsIdle(false) } + val blink = quirk { bedrockStateful("walkingwake", "blink") } standing = registerPose( poseName = "standing", poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pose/Pose.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pose/Pose.kt index e96c917070..b1601d6de8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pose/Pose.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pose/Pose.kt @@ -8,6 +8,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.pose +import com.cobblemon.mod.common.api.molang.ExpressionLike import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation @@ -21,26 +22,27 @@ import net.minecraft.entity.Entity * A pose for a model. */ class Pose( - val poseName: String, + var poseName: String, val poseTypes: Set, val condition: ((T) -> Boolean)?, val onTransitionedInto: (PoseableEntityState?) -> Unit = {}, val transformTicks: Int, + val animations: MutableMap = mutableMapOf(), val idleAnimations: Array>, val transformedParts: Array, val quirks: Array> ) { fun isSuitable(entity: T) = condition?.invoke(entity) ?: true - val transitions = mutableMapOf, (Pose, Pose) -> StatefulAnimation>() + val transitions = mutableMapOf, Pose) -> StatefulAnimation>() fun idleStateless(model: PoseableEntityModel, state: PoseableEntityState?, limbSwing: Float = 0F, limbSwingAmount: Float = 0F, ageInTicks: Float = 0F, headYaw: Float = 0F, headPitch: Float = 0F, intensity: Float) { idleAnimations.forEach { it.apply(null, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, intensity) } } - fun idleStateful(entity: T?, model: PoseableEntityModel, state: PoseableEntityState, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { + fun idleStateful(entity: T?, model: PoseableEntityModel, state: PoseableEntityState, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float) { idleAnimations.filter { state.shouldIdleRun(it, 0F) }.forEach { idleAnimation -> - idleAnimation.apply(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, intensity * state.getIdleIntensity(idleAnimation)) + idleAnimation.apply(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, state.getIdleIntensity(idleAnimation)) } } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/ModelQuirk.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/ModelQuirk.kt index 1523e59600..65e32eb86e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/ModelQuirk.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/ModelQuirk.kt @@ -12,7 +12,7 @@ import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityMo import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState import net.minecraft.entity.Entity -abstract class ModelQuirk>(val name: String) { +abstract class ModelQuirk> { abstract fun createData(): D protected abstract fun tick(state: PoseableEntityState, data: D) fun tick(entity: T?, model: PoseableEntityModel, state: PoseableEntityState, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/QuirkData.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/QuirkData.kt index 26374d5832..bef3cd6777 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/QuirkData.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/QuirkData.kt @@ -10,13 +10,18 @@ package com.cobblemon.mod.common.client.render.models.blockbench.quirk import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation import net.minecraft.entity.Entity -open class QuirkData(val name: String) { +open class QuirkData { val animations = mutableListOf>() + var primaryAnimation: PrimaryAnimation? = null open fun run(entity: T?, model: PoseableEntityModel, state: PoseableEntityState, limbSwing: Float, limbSwingAmount: Float, ageInTicks: Float, headYaw: Float, headPitch: Float, intensity: Float) { + if (primaryAnimation != null && state.primaryAnimation != primaryAnimation) { + primaryAnimation = null + } animations.removeIf { !it.run(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, intensity) } } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirk.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirk.kt index 889eaec9d8..be4ade62d1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirk.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirk.kt @@ -9,20 +9,21 @@ package com.cobblemon.mod.common.client.render.models.blockbench.quirk import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState +import com.cobblemon.mod.common.client.render.models.blockbench.animation.PrimaryAnimation import com.cobblemon.mod.common.client.render.models.blockbench.animation.StatefulAnimation import com.cobblemon.mod.common.util.math.random import kotlin.random.Random import net.minecraft.entity.Entity + class SimpleQuirk( - name: String, private val secondsBetweenOccurrences: Pair, val condition: (state: PoseableEntityState) -> Boolean = { true }, val loopTimes: IntRange = 1..1, val animations: (state: PoseableEntityState) -> Iterable> -) : ModelQuirk>(name) { - override fun createData(): SimpleQuirkData = SimpleQuirkData(name) +) : ModelQuirk>() { + override fun createData(): SimpleQuirkData = SimpleQuirkData() override fun tick(state: PoseableEntityState, data: SimpleQuirkData) { - if (data.animations.isNotEmpty()) { + if (data.animations.isNotEmpty() || data.primaryAnimation != null) { return } @@ -31,7 +32,7 @@ class SimpleQuirk( } if (data.remainingLoops > 0) { - data.animations.addAll(animations(state)) + applyAnimations(state, data) data.remainingLoops-- } @@ -40,12 +41,22 @@ class SimpleQuirk( // Is it time? if (data.nextOccurrenceSeconds <= state.animationSeconds) { data.remainingLoops = loopTimes.random() - 1 - data.animations.addAll(animations(state)) + applyAnimations(state, data) data.nextOccurrenceSeconds = -1F } } else { - data.nextOccurrenceSeconds = state.animationSeconds + Random.nextFloat() * secondsBetweenOccurrences.random() + data.nextOccurrenceSeconds = state.animationSeconds + secondsBetweenOccurrences.random() } } } + + private fun applyAnimations(state: PoseableEntityState, data: SimpleQuirkData) { + val (primary, stateful) = animations(state).partition { it is PrimaryAnimation } + data.animations.addAll(stateful) + if (primary.isNotEmpty()) { + val primaryAnimation = primary.first() as PrimaryAnimation + data.primaryAnimation = primaryAnimation + state.addPrimaryAnimation(primaryAnimation) + } + } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirkData.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirkData.kt index b3d16b3d61..294cfc2190 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirkData.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/quirk/SimpleQuirkData.kt @@ -9,7 +9,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.quirk import net.minecraft.entity.Entity -class SimpleQuirkData(name: String) : QuirkData(name) { +class SimpleQuirkData : QuirkData() { var nextOccurrenceSeconds = -1F var remainingLoops = 0 } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/FossilModelRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/FossilModelRepository.kt index fca6966e56..746fc222b6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/FossilModelRepository.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/FossilModelRepository.kt @@ -21,7 +21,7 @@ import com.google.gson.JsonObject import net.minecraft.entity.Entity /** - * Repository for models referenced by fossils, to render in the tube. + * Repository for models referenced by fossils, to render in the tank. */ object FossilModelRepository : VaryingModelRepository() { override val title = "Fossil Pokémon" @@ -39,13 +39,16 @@ object FossilModelRepository : VaryingModelRepository() { val animations = jsonObject.getAsJsonArray("animations") val maxScale = jsonObject.get("maxScale")?.asFloat ?: 1F val yTranslation = jsonObject.get("yTranslation")?.asFloat ?: 0F + val yGrowthPoint = jsonObject.get("yGrowthPoint")?.asFloat ?: 0F + return { bone -> val model = FossilModel(bone) model.maxScale = maxScale model.yTranslation = yTranslation + model.yGrowthPoint = yGrowthPoint // Refactor this bullshit to not mention pokemon at all, it should be common to anything using animation factories. // Even better: move to molang functions, this is ass - model.animations = animations.mapNotNull { + model.tankAnimations = animations.mapNotNull { val animString = it.asString val anim = animString.substringBefore("(") if (JsonPokemonPoseableModel.ANIMATION_FACTORIES.contains(anim)) { @@ -58,20 +61,17 @@ object FossilModelRepository : VaryingModelRepository() { // borrowed code from JsonPokemonPoseableModel's PoseAdapter Deserializer val tankQuirks = (jsonObject.get("quirks")?.asJsonArray ?: JsonArray()).map { json -> json as JsonObject - val name = json.get("name").asString val quirkAnimations: (state: PoseableEntityState) -> List> = { _ -> (json.get("animations")?.asJsonArray ?: JsonArray()).mapNotNull { animJson -> val animString = animJson.asString val anim = animString.substringBefore("(") - JsonPokemonPoseableModel.StatefulAnimationAdapter.preventsIdleDefault = false val animation = if (JsonPokemonPoseableModel.ANIMATION_FACTORIES.contains(anim)) { JsonPokemonPoseableModel.ANIMATION_FACTORIES[anim]?.stateful(model, animString) } else { null } - JsonPokemonPoseableModel.StatefulAnimationAdapter.preventsIdleDefault = true animation } } @@ -80,7 +80,6 @@ object FossilModelRepository : VaryingModelRepository() { val maxSeconds = json.get("maxSecondsBetweenOccurrences")?.asFloat ?: 30F model.quirkMultiple( - name = name, secondsBetweenOccurrences = minSeconds to maxSeconds, condition = { true }, loopTimes = 1..loopTimes, diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/GenericBedrockEntityModelRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/GenericBedrockEntityModelRepository.kt new file mode 100644 index 0000000000..d20713c053 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/GenericBedrockEntityModelRepository.kt @@ -0,0 +1,35 @@ +/* + * 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.repository + +import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel +import com.cobblemon.mod.common.client.render.models.blockbench.generic.JsonGenericPoseableModel +import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity +import com.cobblemon.mod.common.util.cobblemonResource + +object GenericBedrockEntityModelRepository : VaryingModelRepository>() { + override val title = "Generic" + override val type = "generic" + override val variationDirectories: List = listOf("bedrock/$type/variations") + override val poserDirectories: List = listOf("bedrock/$type/posers") + override val modelDirectories: List = listOf("bedrock/$type/models") + override val animationDirectories: List = listOf("bedrock/$type/animations") + override val isForLivingEntityRenderer = false + + override val fallback = cobblemonResource("substitute") + + override fun registerInBuiltPosers() {} + override fun loadJsonPoser(json: String): (Bone) -> PoseableEntityModel { + return { + JsonGenericPoseableModel.JsonGenericPoseableModelAdapter.modelPart = it + JsonGenericPoseableModel.gson.fromJson(json, JsonGenericPoseableModel::class.java) + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/MiscModelRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/MiscModelRepository.kt new file mode 100644 index 0000000000..83beed0ff4 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/MiscModelRepository.kt @@ -0,0 +1,49 @@ +/* + * 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.repository + +import com.cobblemon.mod.common.Cobblemon +import com.cobblemon.mod.common.api.data.JsonDataRegistry +import com.cobblemon.mod.common.api.reactive.SimpleObservable +import com.cobblemon.mod.common.client.render.models.blockbench.TexturedModel +import com.cobblemon.mod.common.util.cobblemonResource +import com.google.gson.Gson +import com.google.gson.reflect.TypeToken +import net.minecraft.client.model.ModelPart + +import net.minecraft.resource.ResourceType +import net.minecraft.server.network.ServerPlayerEntity +import net.minecraft.util.Identifier + +/** + * The data registry responsible for "one off" models that are usually used in BERs and don't really need their own repo + * This is only present on the client. + */ +object MiscModelRepository : JsonDataRegistry { + + override val id = cobblemonResource("misc_models") + override val type = ResourceType.CLIENT_RESOURCES + override val observable = SimpleObservable() + override val gson: Gson = TexturedModel.GSON + override val typeToken: TypeToken = TypeToken.get(TexturedModel::class.java) + override val resourcePath = "bedrock/misc" + private val models = hashMapOf() + + override fun sync(player: ServerPlayerEntity) {} + + override fun reload(data: Map) { + data.forEach { (identifier, model) -> + this.models[identifier] = model.create(false).createModel() + } + observable.emit(this) + Cobblemon.LOGGER.info("Loaded {} misc models",this.models.size) + } + + fun modelOf(identifier: Identifier) = this.models[identifier] +} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/PokemonModelRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/PokemonModelRepository.kt index fdcef235dd..bcd1c158a3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/PokemonModelRepository.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/PokemonModelRepository.kt @@ -22,7 +22,6 @@ import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen9.* import com.cobblemon.mod.common.client.render.models.blockbench.pose.Bone import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.util.cobblemonResource -import com.cobblemon.mod.common.util.fromJson import com.google.gson.JsonObject object PokemonModelRepository : VaryingModelRepository() { @@ -45,7 +44,6 @@ object PokemonModelRepository : VaryingModelRepository pose.poseName = poseName } + } } } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/VaryingModelRepository.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/VaryingModelRepository.kt index 6618705bc0..e3bd45700b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/VaryingModelRepository.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/repository/VaryingModelRepository.kt @@ -33,7 +33,6 @@ import net.minecraft.util.Pair abstract class VaryingModelRepository> { val posers = mutableMapOf M>() val variations = mutableMapOf>() - val texturedModels = mutableMapOf Bone>() abstract val title: String diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/wavefunction/WaveFunction.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/wavefunction/WaveFunction.kt index 10f58e73fa..16581edd7d 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/wavefunction/WaveFunction.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/wavefunction/WaveFunction.kt @@ -23,6 +23,19 @@ fun gradient(function: WaveFunction, t0: Float, t1: Float) = (function(t1) - fun operator fun WaveFunction.plus(other: WaveFunction): WaveFunction = { t -> this(t) + other(t) } operator fun WaveFunction.times(other: WaveFunction): WaveFunction = { t -> this(t) * other(t) } +fun WaveFunction.rerange(min: Float, max: Float): WaveFunction = { t -> + if (t in min..max) { + val newTime = (t - min) / (max - min) + this(newTime) + } else { + this(0F) + } +} +fun WaveFunction.shift(shift: Float): WaveFunction = { t -> this(t + shift) } +fun WaveFunction.timeDilate(dilation: Float): WaveFunction = { t -> this(t * dilation) } +fun WaveFunction.min(other: Float): WaveFunction = { t -> minOf(this(t), other) } +fun WaveFunction.max(other: Float): WaveFunction = { t -> maxOf(this(t), other) } +fun WaveFunction.clamp(min: Float, max: Float): WaveFunction = { t -> this(t).coerceIn(min, max) } fun WaveFunction.aggregate(func: WaveFunction): WaveFunction = { t -> func(this(t)) } fun linearFunction(gradient: Float = 1F, yIntercept: Float = 0F): WaveFunction = { t -> gradient * t + yIntercept } fun sineFunction(amplitude: Float = 1F, period: Float = 1F, phaseShift: Float = 0F, verticalShift: Float = 0F): WaveFunction = { t -> sin(2*PI/period * (t - phaseShift)) * amplitude + verticalShift } @@ -86,3 +99,28 @@ fun parabolaFunction( } } +object WaveFunctions { + val functions = mutableMapOf( + "symmetrical" to { t -> + if (t < 0.1) { + t * 10 + } else if (t < 0.9) { + 1F + } else { + 1F - (t - 0.9F) * 10 + } + }, + "symmetrical_wide" to { t -> + if (t < 0.2) { + val t2 = t * 5 + 0.5F * sin(PI*(t2 - 0.5F)) + 0.5F + } else if (t < 0.8) { + 1F + } else { + val t2 = (1 - t) * 5 + 0.5F * sin(PI*(t2 - 0.5F)) + 0.5F + } + }, + "one" to { 1F } + ) +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokeball/PokeBallPoseableState.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokeball/PokeBallPoseableState.kt index e05fb88beb..d3ec433f6b 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokeball/PokeBallPoseableState.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokeball/PokeBallPoseableState.kt @@ -22,7 +22,8 @@ import kotlin.random.Random abstract class PokeBallPoseableState : PoseableEntityState(), Schedulable { abstract val stateEmitter: SettableObservable abstract val shakeEmitter: Observable - private val group = if (this.currentModel is AncientPokeBallModel) "ancient_poke_ball" else "poke_ball" + private val group: String + get() = if (this.currentModel is AncientPokeBallModel) "ancient_poke_ball" else "poke_ball" open fun initSubscriptions() { stateEmitter.subscribe { state -> @@ -47,23 +48,23 @@ abstract class PokeBallPoseableState : PoseableEntityState( EmptyPokeBallEntity.CaptureState.FALL -> {} EmptyPokeBallEntity.CaptureState.SHAKE -> { doLater { - setStatefulAnimations(currentModel!!.bedrockStateful(group, "bounce").setPreventsIdle(false)) + setStatefulAnimations(currentModel!!.bedrockStateful(group, "bounce")) } shakeEmitter .pipe(Observable.emitWhile { stateEmitter.get() == EmptyPokeBallEntity.CaptureState.SHAKE }) .subscribe { val bob = "bob${Random.Default.nextInt(6) + 1}" - doLater { setStatefulAnimations(currentModel!!.bedrockStateful(group, bob).setPreventsIdle(false)) } + doLater { setStatefulAnimations(currentModel!!.bedrockStateful(group, bob)) } } } EmptyPokeBallEntity.CaptureState.CAPTURED -> { doLater { - setStatefulAnimations(currentModel!!.bedrockStateful(group, "capture").setPreventsIdle(false)) + setStatefulAnimations(currentModel!!.bedrockStateful(group, "capture")) } } EmptyPokeBallEntity.CaptureState.CAPTURED_CRITICAL -> { doLater { - setStatefulAnimations(currentModel!!.bedrockStateful(group, "critical").setPreventsIdle(false)) + setStatefulAnimations(currentModel!!.bedrockStateful(group, "critical")) } } else -> {} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokemon/PokemonRenderer.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokemon/PokemonRenderer.kt index 1028fb161a..ebad6ed3da 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokemon/PokemonRenderer.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/pokemon/PokemonRenderer.kt @@ -9,6 +9,8 @@ package com.cobblemon.mod.common.client.render.pokemon import com.cobblemon.mod.common.api.text.add +import com.cobblemon.mod.common.client.CobblemonClient +import com.cobblemon.mod.common.client.battle.ClientBallDisplay import com.cobblemon.mod.common.client.entity.PokemonClientDelegate import com.cobblemon.mod.common.client.entity.PokemonClientDelegate.Companion.BEAM_EXTEND_TIME import com.cobblemon.mod.common.client.entity.PokemonClientDelegate.Companion.BEAM_SHRINK_TIME @@ -17,6 +19,7 @@ import com.cobblemon.mod.common.client.keybind.keybinds.PartySendBinding import com.cobblemon.mod.common.client.render.addVertex import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPoseableModel +import com.cobblemon.mod.common.client.render.models.blockbench.repository.PokeBallModelRepository import com.cobblemon.mod.common.client.render.models.blockbench.repository.PokemonModelRepository import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.parabolaFunction import com.cobblemon.mod.common.client.render.pokeball.PokeBallPoseableState @@ -24,46 +27,58 @@ import com.cobblemon.mod.common.client.render.renderBeaconBeam import com.cobblemon.mod.common.client.settings.ServerSettings import com.cobblemon.mod.common.entity.pokeball.EmptyPokeBallEntity import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.pokeball.PokeBall import com.cobblemon.mod.common.util.isLookingAt import com.cobblemon.mod.common.util.lang import com.cobblemon.mod.common.util.math.DoubleRange import com.cobblemon.mod.common.util.math.geometry.toRadians import com.cobblemon.mod.common.util.math.remap +import com.mojang.blaze3d.systems.RenderSystem import net.minecraft.client.MinecraftClient import net.minecraft.client.font.TextRenderer +import net.minecraft.client.gl.GlUniform +import net.minecraft.client.gl.ShaderProgram +import net.minecraft.client.gl.Uniform +import net.minecraft.client.render.GameRenderer import net.minecraft.client.render.LightmapTextureManager import net.minecraft.client.render.RenderLayer +import net.minecraft.client.render.RenderPhase import net.minecraft.client.render.VertexConsumerProvider +import net.minecraft.client.network.ClientPlayerEntity +import net.minecraft.client.render.* import net.minecraft.client.render.entity.EntityRendererFactory import net.minecraft.client.render.entity.MobEntityRenderer import net.minecraft.client.render.entity.model.EntityModel +import net.minecraft.client.render.item.ItemRenderer import net.minecraft.client.util.math.MatrixStack import net.minecraft.entity.Entity +import net.minecraft.entity.LivingEntity import net.minecraft.entity.player.PlayerEntity import net.minecraft.text.Text import net.minecraft.util.Identifier import net.minecraft.util.math.MathConstants.PI import net.minecraft.util.math.MathHelper import net.minecraft.util.math.RotationAxis +import net.minecraft.util.math.Vec3d +import org.joml.Math import org.joml.Quaternionf import org.joml.Vector3f import org.joml.Vector4f +import kotlin.math.* +import kotlin.properties.Delegates import kotlin.math.max import kotlin.math.min +import kotlin.math.sin import kotlin.math.tan class PokemonRenderer( context: EntityRendererFactory.Context ) : MobEntityRenderer>(context, null, 0.5f) { companion object { - var DELTA_TICKS = 0F - val glowLengthFunction = parabolaFunction( - peak = 1F, - period = 1F - ) - val recallBeamColour = Vector4f(1F, 0.1F, 0.1F, 1F) - val sendOutBeamColour = Vector4f(0.85F, 0.85F, 1F, 0.5F) + fun ease(x: Double): Double { + return 1 - (1 - x).pow(3); + } } override fun getTexture(entity: PokemonEntity): Identifier { @@ -79,68 +94,129 @@ class PokemonRenderer( packedLight: Int ) { shadowRadius = min((entity.boundingBox.maxX - entity.boundingBox.minX), (entity.boundingBox.maxZ) - (entity.boundingBox.minZ)).toFloat() / 1.5F - DELTA_TICKS = partialTicks // TODO move this somewhere universal // or just fecking remove it model = PokemonModelRepository.getPoser(entity.pokemon.species.resourceIdentifier, entity.aspects) val clientDelegate = entity.delegate as PokemonClientDelegate - val beamMode = entity.beamMode val modelNow = model as PoseableEntityModel - val s = clientDelegate.secondsSinceBeamEffectStarted - if (modelNow is PokemonPoseableModel && beamMode != 0) { - if (s > BEAM_EXTEND_TIME) { - val value = (s - BEAM_EXTEND_TIME) / BEAM_SHRINK_TIME - val colourValue = if (beamMode == 1) { - 0.4F + min(0.6F, value) - } else { - 1F - min(0.6F, value) - } - - modelNow.green = colourValue - modelNow.blue = colourValue - } - } - - val phaseTarget = clientDelegate.phaseTarget - val lightColour = if (beamMode == 1) sendOutBeamColour else recallBeamColour - if (phaseTarget != null && beamMode != 0) { - renderBeam(poseMatrix, partialTicks, entity, phaseTarget, lightColour, buffer) - } - clientDelegate.updatePartialTicks(partialTicks) + if (entity.beamMode != 0) { + renderTransition( + modelNow, + entity.beamMode == 1, + entity, + partialTicks, + poseMatrix, + buffer, + packedLight, + clientDelegate + ) + } + modelNow.setLayerContext(buffer, clientDelegate, PokemonModelRepository.getLayers(entity.pokemon.species.resourceIdentifier, entity.aspects)) + + // TODO: Need a way to get a shader from a render layer, and need a way to get the renderlayer for the pokemon's main model + // TODO: Need packet to sync evo time from server to client +// val shader: ShaderProgram? = RenderSystem.getShader() +// shader?.let { shader -> +// if(shader == GameRenderer.getRenderTypeEntityCutoutProgram() || +// shader == GameRenderer.getRenderTypeEntityTranslucentProgram() || +// shader == GameRenderer.getRenderTypeEntityTranslucentEmissiveProgram()){ +// val progressUniform = shader.getUniform("u_evo_progress") +// // TODO: set this to the actual progress, 0->1->0 +// progressUniform?.set((sin(entity.ticksLived/20f) + 1f)/2f) +// } +// } super.render(entity, entityYaw, partialTicks, poseMatrix, buffer, packedLight) modelNow.green = 1F modelNow.blue = 1F modelNow.resetLayerContext() - - if (phaseTarget != null && beamMode != 0) { - val glowMultiplier = if (s > BEAM_EXTEND_TIME && s < BEAM_EXTEND_TIME + BEAM_SHRINK_TIME) { - val t = (s - BEAM_EXTEND_TIME) / BEAM_SHRINK_TIME - glowLengthFunction(t) - } else { - 0F - } - - if (glowMultiplier > 0F) { - renderGlow( - matrixStack = poseMatrix, - entity = entity, - buffer = buffer, - red = lightColour.x, - green = lightColour.y, - blue = lightColour.z, - alpha = 1F, - glowLength = glowMultiplier * entity.width * 1.5F, - glowRangeAngle = PI / 7 - ) - } - } if (this.shouldRenderLabel(entity)) { this.renderLabelIfPresent(entity, entity.displayName, poseMatrix, buffer, packedLight) } +// MinecraftClient.getInstance().bufferBuilders.entityVertexConsumers.draw() + } + + fun renderTransition( + modelNow: PoseableEntityModel, + sendingOut: Boolean, + entity: PokemonEntity, + partialTicks: Float, + poseMatrix: MatrixStack, + buffer: VertexConsumerProvider, + packedLight: Int, + clientDelegate: PokemonClientDelegate + ) { + val s = clientDelegate.secondsSinceBeamEffectStarted + if (modelNow is PokemonPoseableModel && !sendingOut) { + if (s > BEAM_EXTEND_TIME) { + val value = (s - BEAM_EXTEND_TIME) / BEAM_SHRINK_TIME + val colourValue = 1F - min(0.6F, value) + modelNow.green = colourValue + modelNow.blue = colourValue + } + } + + val phaseTarget = clientDelegate.phaseTarget ?: return + poseMatrix.push() + var beamSourcePosition = if (phaseTarget is EmptyPokeBallEntity) { + (phaseTarget.delegate as PokeBallPoseableState).locatorStates["beam"]?.getOrigin() ?: phaseTarget.pos + } else { + phaseTarget as PlayerEntity + if (phaseTarget.uuid == MinecraftClient.getInstance().player?.uuid) { + val lookVec = phaseTarget.rotationVector.rotateY(PI / 2).multiply(1.0, 0.0, 1.0).normalize() + phaseTarget.getCameraPosVec(partialTicks).subtract(0.0, 0.4, 0.0).subtract(lookVec.multiply(0.3)) + } else { + val lookVec = phaseTarget.rotationVector.rotateY(PI / 2 - (phaseTarget.bodyYaw - phaseTarget.pitch).toRadians()).multiply(1.0, 0.0, 1.0).normalize() + phaseTarget.getCameraPosVec(partialTicks).subtract(0.0, 0.7, 0.0).subtract(lookVec.multiply(0.4)) + } + } + + if (clientDelegate.sendOutPosition == null && sendingOut) { + clientDelegate.sendOutPosition = beamSourcePosition + } else if (sendingOut) { + clientDelegate.sendOutPosition = clientDelegate.sendOutPosition!!.add(0.0, 0.04, 0.0) + beamSourcePosition = clientDelegate.sendOutPosition!! + } + val offsetDirection = beamSourcePosition.subtract(entity.pos).normalize().multiply(-clientDelegate.ballOffset.toDouble()) + val facingDir: Vec3d + with(beamSourcePosition.subtract(entity.pos)) { + var newOffset = offsetDirection.multiply(2.0) + val distance = beamSourcePosition.distanceTo(entity.pos) + newOffset = newOffset.multiply((distance / 10.0) * 5) + facingDir = newOffset.normalize() + clientDelegate.sendOutOffset = newOffset + poseMatrix.translate(x+newOffset.x, y+newOffset.y, z+newOffset.z) + } + val dir = beamSourcePosition.subtract(entity.pos).normalize() + val angle = MathHelper.atan2(dir.z, dir.x) - PI / 2 + poseMatrix.multiply(RotationAxis.POSITIVE_Y.rotation(-angle.toFloat() + (180 * Math.PI / 180).toFloat())) + + // TODO: if you want to remove the open ball, add `!clientDelegate.ballDone` to the if statement + if (sendingOut && !clientDelegate.ballDone){ + if(entity.pokemon.caughtBall.name.toString().contains("beast")){ + // get rotation angle on x acis for facingDir + val xAngleFacingDir = MathHelper.atan2(facingDir.y, sqrt(facingDir.x * facingDir.x + facingDir.z * facingDir.z)) + poseMatrix.multiply(RotationAxis.POSITIVE_X.rotation(-xAngleFacingDir.toFloat())) + } + drawPokeBall( + ClientBallDisplay(entity.pokemon.caughtBall, setOf()), + poseMatrix, + scale = clientDelegate.ballOffset, + partialTicks = partialTicks, + buff = buffer, + packedLight = packedLight, + ball = CobblemonClient.storage.myParty.firstOrNull { it?.uuid == entity.pokemon.uuid }?.caughtBall + ?: clientDelegate.currentEntity.pokemon.caughtBall, + distance = ceil(beamSourcePosition.distanceTo(entity.pos)/4f).toInt() + ) + } + poseMatrix.pop() + if (!sendingOut) { + renderBeam(poseMatrix, partialTicks, entity, phaseTarget, buffer, offsetDirection) + } } override fun scale(pEntity: PokemonEntity, pMatrixStack: MatrixStack, pPartialTickTime: Float) { @@ -158,10 +234,10 @@ class PokemonRenderer( * @param colour The colour of the beam. * @param buffer The vertex consumer provider. */ - fun renderBeam(matrixStack: MatrixStack, partialTicks: Float, entity: PokemonEntity, beamTarget: Entity, colour: Vector4f, buffer: VertexConsumerProvider) { + fun renderBeam(matrixStack: MatrixStack, partialTicks: Float, entity: PokemonEntity, beamTarget: Entity, buffer: VertexConsumerProvider, offset: Vec3d) { val clientDelegate = entity.delegate as PokemonClientDelegate val pokemonPosition = entity.pos.add(0.0, entity.height / 2.0 * clientDelegate.entityScaleModifier.toDouble(), 0.0) - val beamSourcePosition = if (beamTarget is EmptyPokeBallEntity) { + var beamSourcePosition = if (beamTarget is EmptyPokeBallEntity) { (beamTarget.delegate as PokeBallPoseableState).locatorStates["beam"]?.getOrigin() ?: beamTarget.pos } else { if (beamTarget.uuid == MinecraftClient.getInstance().player?.uuid) { @@ -172,15 +248,24 @@ class PokemonRenderer( beamTarget.getCameraPosVec(partialTicks).subtract(0.0, 0.7, 0.0).subtract(lookVec.multiply(0.4)) } } + if(clientDelegate.sendOutPosition != null) { + beamSourcePosition = clientDelegate.sendOutPosition!! + } if (beamSourcePosition.distanceTo(pokemonPosition) > 20) { return } - - val direction = pokemonPosition.subtract(beamSourcePosition).let { Vector3f(it.x.toFloat(), it.y.toFloat(), it.z.toFloat()) } + var newOffset = offset.multiply(2.0) + // the further away the source position is, the smaller the newOffset should be. Max distance is 20 blocks + val distance = beamSourcePosition.distanceTo(entity.pos) + newOffset = newOffset.multiply((distance / 10.0) * 5) + newOffset = newOffset.multiply(0.0, 1+ease(clientDelegate.ballOffset.toDouble()), 0.0) + val direction = pokemonPosition.subtract(beamSourcePosition.add(newOffset)).let { Vector3f(it.x.toFloat(), it.y.toFloat(), it.z.toFloat()) } matrixStack.push() - with(beamSourcePosition.subtract(entity.pos)) { matrixStack.translate(x, y, z) } + with(beamSourcePosition.subtract(entity.pos)) { + matrixStack.translate(x + newOffset.x, y + newOffset.y, z + newOffset.z) + } val s = clientDelegate.secondsSinceBeamEffectStarted val ratio = if (s < BEAM_EXTEND_TIME) { @@ -204,11 +289,11 @@ class PokemonRenderer( buffer = buffer, partialTicks = partialTicks, totalLevelTime = entity.world.time, - height = pokemonPosition.distanceTo(beamSourcePosition).toFloat() * ratio, - red = colour.x, - green = colour.y, - blue = colour.z, - alpha = colour.w, + height = pokemonPosition.distanceTo(beamSourcePosition.add(offset)).toFloat() * ratio, + red = recallBeamColour.x, + green = recallBeamColour.y, + blue = recallBeamColour.z, + alpha = recallBeamColour.w, beamRadius = 0.03F, glowRadius = 0.07F, glowAlpha = 0.4F @@ -217,71 +302,6 @@ class PokemonRenderer( matrixStack.pop() } - fun renderGlow( - matrixStack: MatrixStack, - entity: PokemonEntity, - buffer: VertexConsumerProvider, - red: Float, - green: Float, - blue: Float, - alpha: Float, - glowLength: Float, - glowRangeAngle: Float - ) { - val clientDelegate = entity.delegate as PokemonClientDelegate - val totalWorldTicks = entity.world.time - val vectorBuffer = buffer.getBuffer(RenderLayer.getLightning()) //buffer.getBuffer(RenderType.glint()) - - val ray1YRot = (totalWorldTicks + DELTA_TICKS) / 16F - - val startY1 = entity.boundingBox.yLength.toFloat() * 0.5F * clientDelegate.entityScaleModifier - val startY2 = startY1 + entity.boundingBox.yLength.toFloat() * 0.05F * clientDelegate.entityScaleModifier - - val endY1 = startY1 - tan(glowRangeAngle) * glowLength - val endY2 = startY2 + tan(glowRangeAngle) * glowLength - - val startX = 0F - val endX = startX + glowLength - - // Draw 4 rays of red. - repeat(times = 4) { - matrixStack.push() - - val last = matrixStack.peek() - val normal = last.normalMatrix - val pose = matrixStack.peek().positionMatrix - - val newStack = MatrixStack() - newStack.multiply(RotationAxis.POSITIVE_Y.rotation(ray1YRot + (it + 1) * PI / 2)) - val nearTop = Vector4f(startX, startY2, 0F, 1F) - val nearBottom = Vector4f(startX, startY1, 0F, 1F) - val farTop = Vector4f(endX, endY2, 0F, 1F) - val farBottom = Vector4f(endX, endY1, 0F, 1F) - - val poseM = newStack.peek().positionMatrix - nearTop.mul(poseM) - nearBottom.mul(poseM) - farTop.mul(poseM) - farBottom.mul(poseM) - - // "Why are you drawing two quads?" because for some weird reason, a specific vertex order - // only shows a visible quad for 180 degrees, and which 180 degrees changes with the order. - // No idea why, it's like the vertices rotate wrong or something, idk. - - addVertex(pose, normal, vectorBuffer, red, green, blue, alpha, nearTop.y, nearTop.x, nearTop.z, 0F, 1F) // A - addVertex(pose, normal, vectorBuffer, red, green, blue, alpha, nearBottom.y, nearBottom.x, nearBottom.z, 0F, 1F) // B - addVertex(pose, normal, vectorBuffer, red, green, blue, 0F, farBottom.y, farBottom.x, farBottom.z, 0F, 1F) // C - addVertex(pose, normal, vectorBuffer, red, green, blue, 0F, farTop.y, farTop.x, farTop.z, 0F, 1F) // D - - addVertex(pose, normal, vectorBuffer, red, green, blue, alpha, nearBottom.y, nearBottom.x, nearBottom.z, 0F, 1F) // B - addVertex(pose, normal, vectorBuffer, red, green, blue, alpha, nearTop.y, nearTop.x, nearTop.z, 0F, 1F) // A - addVertex(pose, normal, vectorBuffer, red, green, blue, 0F, farTop.y, farTop.x, farTop.z, 0F, 1F) // D - addVertex(pose, normal, vectorBuffer, red, green, blue, 0F, farBottom.y, farBottom.x, farBottom.z, 0F, 1F) // C - - matrixStack.pop() - } - } - override fun getLyingAngle(entity: PokemonEntity?) = 0F // At some point vanilla does something to tha matrix. @@ -339,4 +359,46 @@ class PokemonRenderer( matrices.pop() } } + + + private fun drawPokeBall( + state: ClientBallDisplay, + matrixStack: MatrixStack, + scale: Float = 5F, + partialTicks: Float, + reversed: Boolean = false, + buff: VertexConsumerProvider, + packedLight: Int, + ball: PokeBall, + distance: Int + ) { + matrixStack.push() + matrixStack.scale(0.7F, -0.7F, -0.7F) + val model = PokeBallModelRepository.getPoser(ball.name, state.aspects) + val texture = PokeBallModelRepository.getTexture(ball.name, state.aspects, state.animationSeconds) + if(scale == 1.0f) { + model.moveToPose(null, state, model.open) + } else { + matrixStack.translate(0.0, -0.2, 0.0) + val rot = 360F * distance + if(ball.name.toString().contains("beast")){ + matrixStack.multiply(RotationAxis.NEGATIVE_Z.rotationDegrees(Math.lerp(0F, rot, scale))) + } else { + matrixStack.multiply(RotationAxis.NEGATIVE_X.rotationDegrees(Math.lerp(0F, rot, scale))) + } + matrixStack.translate(0.0, 0.2, 0.0) + } + state.timeEnteredPose = 0F + state.updatePartialTicks(partialTicks) + model.setupAnimStateful(null, state, 0F, 0F, 0F, 0F, 0F) + model.animateModel(null, 0f, 0F, 0F) + val buffer = ItemRenderer.getDirectItemGlintConsumer(buff, model.getLayer(texture), false, false) +// matrixStack.scale(scale, scale, scale) + model.render(matrixStack, buffer, packedLight, OverlayTexture.DEFAULT_UV, 1F, 1F, 1F, 1F) + model.green = 1f + model.blue = 1f + model.red = 1f + model.resetLayerContext() + matrixStack.pop() + } } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/shader/CobblemonShaders.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/shader/CobblemonShaders.kt new file mode 100644 index 0000000000..4bf32ddfd4 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/shader/CobblemonShaders.kt @@ -0,0 +1,36 @@ +/* + * 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.shader + +import com.cobblemon.mod.common.util.ShaderRegistryData +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.client.gl.ShaderProgram +import net.minecraft.client.render.VertexFormats +import net.minecraft.resource.ResourceFactory +import net.minecraft.resource.ResourceManager +import java.util.function.Consumer + +object CobblemonShaders { + val SHADERS_TO_REGISTER = mutableListOf ShaderRegistryData, Consumer>>() + lateinit var PARTICLE_BLEND: ShaderProgram + // This is Material.ALPHA. Weird internal name for "alphatest" shader. + lateinit var PARTICLE_CUTOUT: ShaderProgram + + private fun registerShader(shader: (ResourceFactory) -> ShaderRegistryData, callback: Consumer){ + SHADERS_TO_REGISTER.add(Pair(shader, callback)) + } + fun init(){ + registerShader({rm: ResourceFactory -> ShaderRegistryData(rm, cobblemonResource("particle_add"), VertexFormats.POSITION_COLOR_TEXTURE_LIGHT) }) { + PARTICLE_BLEND = it + } + registerShader({rm: ResourceFactory -> ShaderRegistryData(rm, cobblemonResource("particle_cutout"), VertexFormats.POSITION_COLOR_TEXTURE_LIGHT) }) { + PARTICLE_CUTOUT = it + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundController.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundController.kt new file mode 100644 index 0000000000..732f66e141 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundController.kt @@ -0,0 +1,57 @@ +/* + * 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.sound + +import net.minecraft.client.MinecraftClient +import net.minecraft.client.sound.SoundInstance +import net.minecraft.util.Identifier +import net.minecraft.util.math.BlockPos + +object CancellableSoundController { + + private val manager = MinecraftClient.getInstance().soundManager + private val playingSounds: MutableMap> = emptyMap>().toMutableMap() + + /** Start a new and pause all [filteredCategories] sounds currently playing. */ + fun playSound(newSound: CancellableSoundInstance) { + manager.play(newSound) + + var idMap = playingSounds[newSound.pos] + var soundInstance : SoundInstance? = null + if(idMap == null) { + idMap = emptyMap().toMutableMap() + } else { + soundInstance = idMap[newSound.id] + } + if(soundInstance != null) { + manager.stop(soundInstance) + } + idMap[newSound.id] = newSound + playingSounds[newSound.pos] = idMap + } + + fun stopSound(soundInstance: CancellableSoundInstance) { + this.stopSound(soundInstance.pos, soundInstance.sound.identifier)//import com.cobblemon.mod.common.client.sound.com.cobblemon.mod.common.client.sound.CancellableSoundInstance + + } + fun stopSound(blockPos: BlockPos, identifier: Identifier) { + val idMap = playingSounds.get(blockPos) + if(idMap != null) { + val soundInstance = idMap.get(identifier) + if(soundInstance !== null) { + manager.stop(soundInstance) + idMap.remove(identifier) + if(idMap.keys.size == 0) { + playingSounds.remove(blockPos) + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundInstance.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundInstance.kt new file mode 100644 index 0000000000..7b0f27943e --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/sound/CancellableSoundInstance.kt @@ -0,0 +1,71 @@ +/* + * 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.sound + +import net.minecraft.client.MinecraftClient +import net.minecraft.client.sound.* +import net.minecraft.sound.SoundCategory +import net.minecraft.sound.SoundEvent +import net.minecraft.util.math.BlockPos +import net.minecraft.util.math.Vec3d + +class CancellableSoundInstance(sound: SoundEvent, pos:BlockPos = BlockPos.ORIGIN, repeat: Boolean = false, volume: Float = 1.0F, pitch: Float = 1.0F, ) : + PositionedSoundInstance(sound, SoundCategory.BLOCKS, volume, pitch, SoundInstance.createRandom(), pos), TickableSoundInstance { + + private val soundManager = MinecraftClient.getInstance().soundManager; + private var done: Boolean = false + private var unheardTicks = 0 + private var initVolume = 1.0 + public var pos : BlockPos + + init { + this.relative = false + this.repeat = repeat + this.attenuationType = SoundInstance.AttenuationType.NONE + this.initVolume = volume.toDouble() + this.pos = pos + this.attenuationType = SoundInstance.AttenuationType.LINEAR + } + + override fun isDone(): Boolean { + return this.done + } + + override fun tick() { + if(soundManager.isPlaying(this) && !this.repeat) { + this.done = true + CancellableSoundController.stopSound(this) + } else { + // Using the player's position as a proxy for a SoundListener. + val listenerPos = MinecraftClient.getInstance().player?.pos?.squaredDistanceTo(Vec3d(this.x, this.y, this.z)) + if(listenerPos != null) { + if(listenerPos > ATTENUATION_DISTANCE_MAX_SQUARED * 2) { + // listener is very far away, kill it + this.done = true + CancellableSoundController.stopSound(this) + } else if( listenerPos > ATTENUATION_DISTANCE_MAX_SQUARED) { + ++unheardTicks + // Purpose of this is if a client is pushing in and out of the attenuation range, they won't notice the sound abruptly stopping + if(unheardTicks > UNHEARD_TICKS_MAX) { + this.done = true + this.repeat = false + CancellableSoundController.stopSound(this) + } + } + } else { + unheardTicks = 0 + } + } + } + + companion object { + const val UNHEARD_TICKS_MAX = 200 + const val ATTENUATION_DISTANCE_MAX_SQUARED = 18 * 18 + } +} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/command/TestCommand.kt b/common/src/main/kotlin/com/cobblemon/mod/common/command/TestCommand.kt index b31285b2d9..3221601e77 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/command/TestCommand.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/command/TestCommand.kt @@ -19,10 +19,13 @@ import com.cobblemon.mod.common.battles.BattleSide import com.cobblemon.mod.common.battles.actor.PlayerBattleActor import com.cobblemon.mod.common.battles.actor.PokemonBattleActor import com.cobblemon.mod.common.battles.pokemon.BattlePokemon +import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormParticlePacket import com.cobblemon.mod.common.net.messages.client.trade.TradeStartedPacket +import com.cobblemon.mod.common.particle.SnowstormParticleReader import com.cobblemon.mod.common.trade.ActiveTrade import com.cobblemon.mod.common.trade.DummyTradeParticipant import com.cobblemon.mod.common.trade.PlayerTradeParticipant +import com.cobblemon.mod.common.util.fromJson import com.cobblemon.mod.common.util.party import com.cobblemon.mod.common.util.toPokemon import com.google.gson.GsonBuilder @@ -57,8 +60,9 @@ object TestCommand { try { // readBerryDataFromCSV() - this.testClosestBattle(context) +// this.testClosestBattle(context) //testTrade(context.source.player!!) +// testParticles(context) // extractMovesData() // // Player variables // val player = context.source.entity as ServerPlayerEntity @@ -219,6 +223,16 @@ object TestCommand { } } +// private fun testParticles(context: CommandContext) { +// val file = File("particle.particle.json") +// val effect = SnowstormParticleReader.loadEffect(GsonBuilder().create().fromJson(file.readText())) +// +// val player = context.source.entity as ServerPlayerEntity +// val position = player.pos +// val pkt = SpawnSnowstormParticlePacket(effect, position, 0F, 0F) +// player.sendPacket(pkt) +// } + // private fun extractMovesData() { // val ctx = GraalShowdown.context // ctx.eval("js", """ diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/config/CobblemonConfig.kt b/common/src/main/kotlin/com/cobblemon/mod/common/config/CobblemonConfig.kt index 62e99ed7f7..938ac076f7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/config/CobblemonConfig.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/config/CobblemonConfig.kt @@ -222,4 +222,7 @@ class CobblemonConfig { @NodeCategory(Category.World) var maxInsertedFossilItems = 2 + + @NodeCategory(Category.Battles) + var walkingInBattleAnimations = false } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/data/CobblemonDataProvider.kt b/common/src/main/kotlin/com/cobblemon/mod/common/data/CobblemonDataProvider.kt index 16a8e9b40a..2c5d5f3888 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/data/CobblemonDataProvider.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/data/CobblemonDataProvider.kt @@ -20,6 +20,7 @@ import com.cobblemon.mod.common.api.events.CobblemonEvents import com.cobblemon.mod.common.api.fossil.Fossils import com.cobblemon.mod.common.api.fossil.NaturalMaterials import com.cobblemon.mod.common.api.moves.Moves +import com.cobblemon.mod.common.api.moves.animations.ActionEffects import com.cobblemon.mod.common.api.pokeball.PokeBalls import com.cobblemon.mod.common.api.pokemon.PokemonSpecies import com.cobblemon.mod.common.api.pokemon.feature.GlobalSpeciesFeatures @@ -57,6 +58,7 @@ object CobblemonDataProvider : DataProvider { this.register(SpeciesFeatures) this.register(GlobalSpeciesFeatures) this.register(SpeciesFeatureAssignments) + this.register(ActionEffects) this.register(Moves) this.register(Abilities) this.register(PokemonSpecies) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/MoLangEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/MoLangEntity.kt new file mode 100644 index 0000000000..8c774693db --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/MoLangEntity.kt @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.common.entity + +import com.bedrockk.molang.runtime.MoLangEnvironment +import com.bedrockk.molang.runtime.struct.QueryStruct + +/** + * An interface representing an entity that might like to add some variables to a MoLang environment + * for making animations more adaptive. + * + * @author Hiroku + * @since July 17th, 2023 + */ +interface MoLangEntity { + fun applyQueries(queries: QueryStruct) + fun applyVariables(environment: MoLangEnvironment) +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/Poseable.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/Poseable.kt index 84e980261d..ca3535ea2f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/Poseable.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/Poseable.kt @@ -12,6 +12,6 @@ import com.cobblemon.mod.common.api.entity.EntitySideDelegate import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState interface Poseable { - fun getPoseType(): PoseType + fun getCurrentPoseType(): PoseType val delegate: EntitySideDelegate<*> } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockEntity.kt new file mode 100644 index 0000000000..76ad1aaab7 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockEntity.kt @@ -0,0 +1,138 @@ +/* + * 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.entity.generic + +import com.cobblemon.mod.common.CobblemonEntities +import com.cobblemon.mod.common.CobblemonNetwork +import com.cobblemon.mod.common.api.net.serializers.IdentifierDataSerializer +import com.cobblemon.mod.common.api.net.serializers.PoseTypeDataSerializer +import com.cobblemon.mod.common.api.net.serializers.StringSetDataSerializer +import com.cobblemon.mod.common.api.scheduling.Schedulable +import com.cobblemon.mod.common.api.scheduling.SchedulingTracker +import com.cobblemon.mod.common.entity.PoseType +import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.net.messages.client.spawn.SpawnGenericBedrockPacket +import com.cobblemon.mod.common.util.DataKeys +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.entity.Entity +import net.minecraft.entity.EntityDimensions +import net.minecraft.entity.EntityPose +import net.minecraft.entity.data.DataTracker +import net.minecraft.entity.data.TrackedData +import net.minecraft.entity.data.TrackedDataHandlerRegistry +import net.minecraft.nbt.NbtCompound +import net.minecraft.nbt.NbtList +import net.minecraft.nbt.NbtString +import net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket +import net.minecraft.util.Identifier +import net.minecraft.world.World + +class GenericBedrockEntity(world: World) : Entity(CobblemonEntities.GENERIC_BEDROCK_ENTITY, world), Poseable, Schedulable { + companion object { + val CATEGORY = DataTracker.registerData(GenericBedrockEntity::class.java, IdentifierDataSerializer) + val ASPECTS = DataTracker.registerData(GenericBedrockEntity::class.java, StringSetDataSerializer) + val POSE_TYPE = DataTracker.registerData(GenericBedrockEntity::class.java, PoseTypeDataSerializer) + val SCALE = DataTracker.registerData(GenericBedrockEntity::class.java, TrackedDataHandlerRegistry.FLOAT) + } + + var savesToWorld = false + override val schedulingTracker = SchedulingTracker() + override val delegate = if (world.isClient) { + // Don't import because scanning for imports is a CI job we'll do later to detect errant access to client from server + com.cobblemon.mod.common.client.entity.GenericBedrockClientDelegate() + } else { + GenericBedrockServerDelegate() + } + + var category: Identifier + get() = this.dataTracker.get(CATEGORY) + set(value) { + this.dataTracker.set(CATEGORY, value) + } + + var aspects: Set + get() = this.dataTracker.get(ASPECTS) + set(value) { + this.dataTracker.set(ASPECTS, value) + } + + var scale: Float + get() = this.dataTracker.get(SCALE) + set(value) { + this.dataTracker.set(SCALE, value) + } + + var colliderWidth = 1F + set(value) { + super.getWidth() + field = value + calculateDimensions() + } + + var colliderHeight = 1F + set(value) { + field = value + calculateDimensions() + } + + var syncAge = false + + override fun initDataTracker() { + this.dataTracker.startTracking(CATEGORY, cobblemonResource("generic")) + this.dataTracker.startTracking(ASPECTS, emptySet()) + this.dataTracker.startTracking(SCALE, 1F) + this.dataTracker.startTracking(POSE_TYPE, PoseType.NONE) + } + + override fun readCustomDataFromNbt(nbt: NbtCompound) { + this.category = Identifier(nbt.getString(DataKeys.GENERIC_BEDROCK_CATEGORY)) + this.aspects = nbt.getList(DataKeys.GENERIC_BEDROCK_ASPECTS, NbtString.STRING_TYPE.toInt()).map { it.asString() }.toSet() + this.dataTracker.set(POSE_TYPE, PoseType.values()[nbt.getByte(DataKeys.GENERIC_BEDROCK_POSE_TYPE).toInt()]) + this.scale = nbt.getFloat(DataKeys.GENERIC_BEDROCK_SCALE) + this.colliderWidth = nbt.getFloat(DataKeys.GENERIC_BEDROCK_COLLIDER_WIDTH) + this.colliderHeight = nbt.getFloat(DataKeys.GENERIC_BEDROCK_COLLIDER_HEIGHT) + this.syncAge = nbt.getBoolean(DataKeys.GENERIC_BEDROCK_SYNC_AGE) + } + + override fun writeCustomDataToNbt(nbt: NbtCompound) { + nbt.putString(DataKeys.GENERIC_BEDROCK_CATEGORY, category.toString()) + nbt.put(DataKeys.GENERIC_BEDROCK_ASPECTS, NbtList().also { it.addAll(aspects.map(NbtString::of)) }) + nbt.putByte(DataKeys.GENERIC_BEDROCK_POSE_TYPE, getCurrentPoseType().ordinal.toByte()) + nbt.putFloat(DataKeys.GENERIC_BEDROCK_SCALE, scale) + nbt.putFloat(DataKeys.GENERIC_BEDROCK_COLLIDER_WIDTH, colliderWidth) + nbt.putFloat(DataKeys.GENERIC_BEDROCK_COLLIDER_HEIGHT, colliderHeight) + nbt.putBoolean(DataKeys.GENERIC_BEDROCK_SYNC_AGE, syncAge) + } + + override fun canHit() = true + override fun isCollidable() = true + + override fun shouldSave() = super.shouldSave() && this.savesToWorld + override fun getDimensions(pose: EntityPose) = EntityDimensions.changing(colliderWidth, colliderHeight).scaled(scale) + override fun getCurrentPoseType(): PoseType = this.dataTracker.get(POSE_TYPE) + + override fun createSpawnPacket() = CobblemonNetwork.asVanillaClientBound( + SpawnGenericBedrockPacket( + category = category, + aspects = aspects, + poseType = getCurrentPoseType(), + scale = scale, + width = colliderWidth, + height = colliderHeight, + startAge = if (syncAge) age else 0, + vanillaSpawnPacket = super.createSpawnPacket() as EntitySpawnS2CPacket + ) + ) + + override fun tick() { + super.tick() + delegate.tick(this) + schedulingTracker.update(1/20F) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockServerDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockServerDelegate.kt new file mode 100644 index 0000000000..58d9ae88fd --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/generic/GenericBedrockServerDelegate.kt @@ -0,0 +1,14 @@ +/* + * 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.entity.generic + +import com.cobblemon.mod.common.api.entity.EntitySideDelegate + +class GenericBedrockServerDelegate : EntitySideDelegate { +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt index 9dfae2018a..74fa018813 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt @@ -65,6 +65,7 @@ import net.minecraft.server.network.ServerPlayerEntity import net.minecraft.sound.SoundEvents import net.minecraft.util.hit.BlockHitResult import net.minecraft.util.hit.EntityHitResult +import net.minecraft.util.hit.HitResult import net.minecraft.util.math.MathHelper import net.minecraft.util.math.MathHelper.PI import net.minecraft.util.math.Vec3d @@ -295,35 +296,6 @@ class EmptyPokeBallEntity : ThrownItemEntity, Poseable, WaterDragModifier, Sched discard() return } - - if (captureState == CaptureState.FALL) { - if (isOnGround) { - // We have hit the ground, time to stop falling and start shaking! Calculate capture. - capturingPokemon?.setPositionSafely(pos) - captureState = CaptureState.SHAKE - val thrower = owner as LivingEntity - val captureResult = Cobblemon.config.captureCalculator.processCapture(thrower, this, capturingPokemon!!).let { - val event = PokeBallCaptureCalculatedEvent(thrower = thrower, pokemonEntity = capturingPokemon!!, pokeBallEntity = this, captureResult = it) - CobblemonEvents.POKE_BALL_CAPTURE_CALCULATED.post(event) - event.captureResult - } - - var rollsRemaining = captureResult.numberOfShakes - if (rollsRemaining == 4) { - rollsRemaining-- - } - - taskBuilder() - .iterations(captureResult.numberOfShakes + 1) - .delay(SECONDS_BEFORE_SHAKE) - .interval(SECONDS_BETWEEN_SHAKES) - .execute { - shakeBall(it, rollsRemaining, captureResult) - rollsRemaining-- - } - .build() - } - } } // Look at the target, if the target is known. @@ -350,7 +322,6 @@ class EmptyPokeBallEntity : ThrownItemEntity, Poseable, WaterDragModifier, Sched if (captureResult.isSuccessfulCapture) { captureState = if (captureResult.isCriticalCapture) CaptureState.CAPTURED_CRITICAL else CaptureState.CAPTURED // Do a capture - world.sendParticlesServer(ParticleTypes.CRIT, pos, 10, Vec3d(0.1, -0.5, 0.1), 0.2) world.playSoundServer(pos, CobblemonSounds.POKE_BALL_CAPTURE_SUCCEEDED, volume = 0.8F, pitch = 1F) val pokemon = capturingPokemon ?: return val player = this.owner as? ServerPlayerEntity ?: return @@ -433,12 +404,48 @@ class EmptyPokeBallEntity : ThrownItemEntity, Poseable, WaterDragModifier, Sched velocity = Vec3d.ZERO setNoGravity(true) isOnGround = true + beginCapture() } } } } - override fun getPoseType(): PoseType { + override fun onCollision(hitResult: HitResult) { + super.onCollision(hitResult) + if (captureState == CaptureState.FALL && hitResult.type == HitResult.Type.BLOCK) { + captureState = CaptureState.SHAKE + if (world.isServerSide()) { + beginCapture() + } + } + } + + fun beginCapture() { + // We have hit the ground, time to stop falling and start shaking! Calculate capture. + capturingPokemon?.setPositionSafely(pos) + val thrower = owner as LivingEntity + val captureResult = Cobblemon.config.captureCalculator.processCapture(thrower, this, capturingPokemon!!).let { + val event = PokeBallCaptureCalculatedEvent(thrower = thrower, pokemonEntity = capturingPokemon!!, pokeBallEntity = this, captureResult = it) + CobblemonEvents.POKE_BALL_CAPTURE_CALCULATED.post(event) + event.captureResult + } + + var rollsRemaining = captureResult.numberOfShakes + if (rollsRemaining == 4) { + rollsRemaining-- + } + + taskBuilder() + .iterations(captureResult.numberOfShakes + 1) + .delay(SECONDS_BEFORE_SHAKE) + .interval(SECONDS_BETWEEN_SHAKES) + .execute { + shakeBall(it, rollsRemaining, captureResult) + rollsRemaining-- + } + .build() + } + override fun getCurrentPoseType(): PoseType { return PoseType.NONE } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonEntity.kt index 795369234f..d65b388e01 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonEntity.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonEntity.kt @@ -35,11 +35,12 @@ import com.cobblemon.mod.common.block.entity.PokemonPastureBlockEntity import com.cobblemon.mod.common.client.entity.PokemonClientDelegate import com.cobblemon.mod.common.entity.PoseType import com.cobblemon.mod.common.entity.Poseable +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity import com.cobblemon.mod.common.entity.pokeball.EmptyPokeBallEntity import com.cobblemon.mod.common.entity.pokemon.ai.PokemonMoveControl import com.cobblemon.mod.common.entity.pokemon.ai.PokemonNavigation import com.cobblemon.mod.common.entity.pokemon.ai.goals.* -import com.cobblemon.mod.common.net.messages.client.sound.PokemonCryPacket +import com.cobblemon.mod.common.net.messages.client.animation.PlayPoseableAnimationPacket import com.cobblemon.mod.common.net.messages.client.sound.UnvalidatedPlaySoundS2CPacket import com.cobblemon.mod.common.net.messages.client.spawn.SpawnPokemonPacket import com.cobblemon.mod.common.net.messages.client.ui.InteractPokemonUIPacket @@ -54,6 +55,10 @@ import com.cobblemon.mod.common.pokemon.ai.FormPokemonBehaviour import com.cobblemon.mod.common.pokemon.evolution.variants.ItemInteractionEvolution import com.cobblemon.mod.common.util.* import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules +import java.util.EnumSet +import java.util.Optional +import java.util.UUID +import java.util.concurrent.CompletableFuture import net.minecraft.entity.* import net.minecraft.entity.ai.control.MoveControl import net.minecraft.entity.ai.goal.EatGrassGoal @@ -72,7 +77,6 @@ import net.minecraft.entity.passive.PassiveEntity import net.minecraft.entity.passive.TameableShoulderEntity import net.minecraft.entity.player.PlayerEntity import net.minecraft.fluid.FluidState -import net.minecraft.item.Item import net.minecraft.item.ItemStack import net.minecraft.item.ItemUsage import net.minecraft.item.Items @@ -101,10 +105,6 @@ import net.minecraft.util.math.Vec3d import net.minecraft.world.EntityView import net.minecraft.world.World import net.minecraft.world.event.GameEvent -import java.util.EnumSet -import java.util.Optional -import java.util.UUID -import java.util.concurrent.CompletableFuture @Suppress("unused") open class PokemonEntity( @@ -161,6 +161,8 @@ open class PokemonEntity( /** The player that caused this Pokémon to faint. */ var killer: ServerPlayerEntity? = null + var evolutionEntity: GenericBedrockEntity? = null + var ticksLived = 0 val busyLocks = mutableListOf() val isBusy: Boolean @@ -287,6 +289,10 @@ open class PokemonEntity( if (queuedToDespawn) { return remove(RemovalReason.DISCARDED) } + if (evolutionEntity != null) { + evolutionEntity!!.setPosition(pokemon.entity!!.x, pokemon.entity!!.y, pokemon.entity!!.z) + pokemon.entity!!.navigation.stop() + } delegate.tick(this) ticksLived++ if (this.ticksLived % 20 == 0) { @@ -501,7 +507,7 @@ open class PokemonEntity( goalSelector.clear { true } goalSelector.add(0, PokemonInBattleMovementGoal(this, 10)) goalSelector.add(0, object : Goal() { - override fun canStart() = this@PokemonEntity.dataTracker.get(PHASING_TARGET_ID) != -1 || pokemon.status?.status == Statuses.SLEEP || dataTracker.get(DYING_EFFECTS_STARTED) + override fun canStart() = this@PokemonEntity.dataTracker.get(PHASING_TARGET_ID) != -1 || pokemon.status?.status == Statuses.SLEEP || dataTracker.get(DYING_EFFECTS_STARTED) || evolutionEntity != null override fun shouldContinue(): Boolean { if (pokemon.status?.status == Statuses.SLEEP && !canSleep() && !isBusy) { return false @@ -885,6 +891,10 @@ open class PokemonEntity( if (reason.shouldDestroy() && pokemon.tetheringId != null) { pokemon.tetheringId = null } + if (evolutionEntity != null) { + evolutionEntity!!.kill() + pokemon.entity?.evolutionEntity = null + } } // Copy and paste of how vanilla checks it, unfortunately no util method you can only add then wait for the result @@ -898,7 +908,7 @@ open class PokemonEntity( fun cry() { if(this.isSilent) return - val pkt = PokemonCryPacket(id) + val pkt = PlayPoseableAnimationPacket(id, setOf("cry"), emptySet()) world.getEntitiesByClass(ServerPlayerEntity::class.java, Box.of(pos, 64.0, 64.0, 64.0), { true }).forEach { it.sendPacket(pkt) } @@ -962,7 +972,7 @@ open class PokemonEntity( fun couldStopFlying() = isFlying() && !behaviour.moving.walk.avoidsLand && behaviour.moving.walk.canWalk fun isFalling() = this.fallDistance > 0 && this.world.getBlockState(this.blockPos.down()).isAir && !this.isFlying() fun getIsSubmerged() = isInLava || isSubmergedInWater - override fun getPoseType(): PoseType = this.dataTracker.get(POSE_TYPE) + override fun getCurrentPoseType(): PoseType = this.dataTracker.get(POSE_TYPE) /** * Returns the [Species.translatedName] of the backing [pokemon]. diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonServerDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonServerDelegate.kt index 2e08b42472..03a0401ade 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonServerDelegate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/PokemonServerDelegate.kt @@ -14,6 +14,7 @@ import com.cobblemon.mod.common.api.pokemon.stats.Stats import com.cobblemon.mod.common.api.pokemon.status.Statuses import com.cobblemon.mod.common.battles.BattleRegistry import com.cobblemon.mod.common.entity.PoseType +import com.cobblemon.mod.common.entity.pokemon.ai.PokemonMoveControl import com.cobblemon.mod.common.pokemon.Pokemon import com.cobblemon.mod.common.pokemon.activestate.ActivePokemonState import com.cobblemon.mod.common.pokemon.activestate.SentOutState @@ -167,7 +168,7 @@ class PokemonServerDelegate : PokemonSideDelegate { fun updatePoseType() { val isSleeping = entity.pokemon.status?.status == Statuses.SLEEP && entity.behaviour.resting.canSleep - val isMoving = entity.dataTracker.get(PokemonEntity.MOVING) + val isMoving = (entity.moveControl as? PokemonMoveControl)?.isMoving == true val isPassenger = entity.hasVehicle() val isUnderwater = entity.getIsSubmerged() val isFlying = entity.getBehaviourFlag(PokemonBehaviourFlag.FLYING) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonMoveControl.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonMoveControl.kt index 81148707c5..364279999e 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonMoveControl.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonMoveControl.kt @@ -40,7 +40,7 @@ class PokemonMoveControl(val pokemonEntity: PokemonEntity) : MoveControl(pokemon } val behaviour = pokemonEntity.behaviour - val mediumSpeed = if (pokemonEntity.getPoseType() in setOf(PoseType.FLY, PoseType.HOVER)) { + val mediumSpeed = if (pokemonEntity.getCurrentPoseType() in setOf(PoseType.FLY, PoseType.HOVER)) { behaviour.moving.fly.flySpeedHorizontal } else if (pokemonEntity.isSubmergedIn(FluidTags.WATER) || pokemonEntity.isSubmergedIn(FluidTags.LAVA)) { behaviour.moving.swim.swimSpeed diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonNavigation.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonNavigation.kt index 51afe547ec..c75588d17c 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonNavigation.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/PokemonNavigation.kt @@ -47,7 +47,8 @@ class PokemonNavigation(val world: World, val pokemonEntity: PokemonEntity) : Mo val onRecalculate: (dueToDistance: Boolean) -> Unit = {}, val onArrival: () -> Unit = {}, val onCannotReach: () -> Unit = {}, - val sprinting: Boolean = false + val sprinting: Boolean = false, + val destinationProximity: Float = 0.5F ) var navigationContext = NavigationContext() @@ -75,6 +76,19 @@ class PokemonNavigation(val world: World, val pokemonEntity: PokemonEntity) : Mo override fun continueFollowingPath() { val vec3d = this.pos + val targetVec = targetPos?.toVec3d()?.add(0.5, 0.0, 0.5) + if (targetVec != null && targetVec.distanceTo(vec3d) <= navigationContext.destinationProximity && currentPath != null) { + currentPath = null + cachedCurrentNode = null + navigationContext.onArrival() + // If we arrived at a not-flying destination + val node = currentPath?.currentNode?.type + if (node != null && node != PathNodeType.OPEN && pokemonEntity.couldStopFlying()) { + pokemonEntity.setBehaviourFlag(PokemonBehaviourFlag.FLYING, false) + } + return + } + nodeReachProximity = if (entity.width > 0.75f) entity.width / 2.0f else 0.75f - entity.width / 2.0f val currentNode = currentPath!!.currentNode @@ -100,6 +114,7 @@ class PokemonNavigation(val world: World, val pokemonEntity: PokemonEntity) : Mo if (closeEnough || entity.navigation.canJumpToNext(currentPath!!.currentNode.type) && shouldJumpToNextNode(vec3d)) { currentPath!!.next() if (currentPath!!.isFinished) { + currentPath = null navigationContext.onArrival() // If we arrived at a not-flying destination if (currentNode.type != PathNodeType.OPEN && pokemonEntity.couldStopFlying()) { @@ -213,6 +228,8 @@ class PokemonNavigation(val world: World, val pokemonEntity: PokemonEntity) : Mo override fun startMovingAlong(path: Path?, speed: Double): Boolean { if (path != null && path.length > 0) { val node = path.getNode(0)!! +// pokemonEntity.discard() +// return false // If we just started moving and it's to an open node, fly if (node.type == PathNodeType.OPEN && pokemonEntity.form.behaviour.moving.fly.canFly && !pokemonEntity.isFlying()) { pokemonEntity.setBehaviourFlag(PokemonBehaviourFlag.FLYING, true) @@ -307,6 +324,8 @@ class PokemonNavigation(val world: World, val pokemonEntity: PokemonEntity) : Mo super.stop() this.currentNodeDistance = -1F this.cachedCurrentNode = null + currentPath = null + nodeMaker.clear() // In case a path is cancelled instead of completed, check if we should stop flying if (pokemonEntity.couldStopFlying() && !isAirborne(pokemonEntity.world, pokemonEntity.blockPos)) { pokemonEntity.setBehaviourFlag(PokemonBehaviourFlag.FLYING, false) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonFollowOwnerGoal.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonFollowOwnerGoal.kt index d3bd4089b7..64dfb591b3 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonFollowOwnerGoal.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonFollowOwnerGoal.kt @@ -27,6 +27,7 @@ class PokemonFollowOwnerGoal( fun canMove() = entity.behaviour.moving.walk.canWalk || entity.behaviour.moving.fly.canFly// TODO probably depends on whether we're underwater or not override fun canStart() = super.canStart() && canMove() + && !entity.isBusy && entity.tethering == null override fun shouldContinue() = super.shouldContinue() && canMove() diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonInBattleMovementGoal.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonInBattleMovementGoal.kt index 8e53af016b..c712bfa3d8 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonInBattleMovementGoal.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokemon/ai/goals/PokemonInBattleMovementGoal.kt @@ -15,7 +15,12 @@ import net.minecraft.entity.ai.goal.Goal class PokemonInBattleMovementGoal(val entity: PokemonEntity, val range: Int) : Goal() { override fun canStart(): Boolean { - return entity.isBattling && getClosestPokemonEntity() != null && entity.getPoseType() != PoseType.SLEEP + return entity.isBattling && getClosestPokemonEntity() != null && entity.getCurrentPoseType() != PoseType.SLEEP + } + + override fun start() { + super.start() + entity.navigation.stop() } private fun getClosestPokemonEntity(): PokemonEntity? { @@ -29,7 +34,6 @@ class PokemonInBattleMovementGoal(val entity: PokemonEntity, val range: Int) : G override fun tick() { val closestPokemonEntity = getClosestPokemonEntity() if (closestPokemonEntity != null) { - entity.navigation.stop() entity.lookControl.lookAt(closestPokemonEntity.x, closestPokemonEntity.eyeY, closestPokemonEntity.z) } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/item/ApricornSeedItem.kt b/common/src/main/kotlin/com/cobblemon/mod/common/item/ApricornSeedItem.kt index ee571abf08..0e8c81a420 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/item/ApricornSeedItem.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/item/ApricornSeedItem.kt @@ -8,7 +8,25 @@ package com.cobblemon.mod.common.item +import com.cobblemon.mod.common.block.ApricornBlock import com.cobblemon.mod.common.block.ApricornSaplingBlock +import net.minecraft.block.BlockState import net.minecraft.item.AliasedBlockItem +import net.minecraft.item.ItemPlacementContext -class ApricornSeedItem(block: ApricornSaplingBlock) : AliasedBlockItem(block, Settings()) \ No newline at end of file +class ApricornSeedItem(block: ApricornSaplingBlock, val apricornBlock: ApricornBlock) : AliasedBlockItem(block, Settings()) { + + override fun getPlacementState(context: ItemPlacementContext): BlockState? { + // Verify the feature is enabled similar to what's done at the top of place + if (this.apricornBlock.isEnabled(context.world.enabledFeatures)) { + // Get a contextualized apricorn block state + val apricornState = this.apricornBlock.getPlacementState(context) + // If placeable return otherwise let default impl run, DO NOT return a null + if (apricornState != null && this.canPlace(context, apricornState)) { + return apricornState + } + } + return super.getPlacementState(context) + } + +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/item/armor/CobblemonArmorTrims.kt b/common/src/main/kotlin/com/cobblemon/mod/common/item/armor/CobblemonArmorTrims.kt new file mode 100644 index 0000000000..a3c7ac8ec5 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/item/armor/CobblemonArmorTrims.kt @@ -0,0 +1,18 @@ +/* + * 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.armor + +import com.cobblemon.mod.common.util.cobblemonResource + +@Suppress("UNUSED") +object CobblemonArmorTrims { + + val AUTOMATON = cobblemonResource("automaton") + +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/item/group/CobblemonItemGroups.kt b/common/src/main/kotlin/com/cobblemon/mod/common/item/group/CobblemonItemGroups.kt index 6838737130..9a0a890284 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/item/group/CobblemonItemGroups.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/item/group/CobblemonItemGroups.kt @@ -46,6 +46,7 @@ object CobblemonItemGroups { @JvmStatic val FOOD_INJECTIONS = this.inject(RegistryKey.of(Registries.ITEM_GROUP.key, Identifier("food_and_drinks")), this::foodInjections) @JvmStatic val TOOLS_AND_UTILITIES_INJECTIONS = this.inject(RegistryKey.of(Registries.ITEM_GROUP.key, Identifier("tools_and_utilities")), this::toolsAndUtilitiesInjections) + @JvmStatic val INGREDIENTS_INJECTIONS = this.inject(RegistryKey.of(Registries.ITEM_GROUP.key, Identifier("ingredients")), this::ingredientsInjections) fun register(consumer: (holder: ItemGroupHolder) -> ItemGroup) { ALL.forEach(consumer::invoke) @@ -175,12 +176,15 @@ object CobblemonItemGroups { entries.add(CobblemonItems.DOME_SHERD) entries.add(CobblemonItems.HELIX_SHERD) entries.add(CobblemonItems.NOSTALGIC_SHERD) + entries.add(CobblemonItems.SUSPICIOUS_SHERD) + + entries.add(CobblemonItems.AUTOMATON_ARMOR_TRIM_SMITHING_TEMPLATE) } private fun blockEntries(displayContext: DisplayContext, entries: Entries) { - entries.add(CobblemonItems.FOSSIL_TUBE) - entries.add(CobblemonItems.FOSSIL_COMPARTMENT) - entries.add(CobblemonItems.FOSSIL_MONITOR) + entries.add(CobblemonItems.RESTORATION_TANK) + entries.add(CobblemonItems.FOSSIL_ANALYZER) + entries.add(CobblemonItems.MONITOR) entries.add(CobblemonItems.PC) entries.add(CobblemonItems.HEALING_MACHINE) entries.add(CobblemonItems.PASTURE) @@ -211,6 +215,7 @@ object CobblemonItemGroups { entries.add(CobblemonItems.DEEPSLATE_DUSK_STONE_ORE) entries.add(CobblemonItems.FIRE_STONE_ORE) entries.add(CobblemonItems.DEEPSLATE_FIRE_STONE_ORE) + entries.add(CobblemonItems.NETHER_FIRE_STONE_ORE) entries.add(CobblemonItems.ICE_STONE_ORE) entries.add(CobblemonItems.DEEPSLATE_ICE_STONE_ORE) entries.add(CobblemonItems.LEAF_STONE_ORE) @@ -438,6 +443,17 @@ object CobblemonItemGroups { injector.putAfter(CobblemonItems.APRICORN_CHEST_BOAT, CobblemonItems.APRICORN_BOAT) } + private fun ingredientsInjections(injector: Injector) { + injector.putAfter(CobblemonItems.BYGONE_SHERD, Items.SNORT_POTTERY_SHERD) + injector.putAfter(CobblemonItems.CAPTURE_SHERD, CobblemonItems.BYGONE_SHERD) + injector.putAfter(CobblemonItems.DOME_SHERD, CobblemonItems.CAPTURE_SHERD) + injector.putAfter(CobblemonItems.HELIX_SHERD, CobblemonItems.DOME_SHERD) + injector.putAfter(CobblemonItems.NOSTALGIC_SHERD, CobblemonItems.HELIX_SHERD) + injector.putAfter(CobblemonItems.SUSPICIOUS_SHERD, CobblemonItems.NOSTALGIC_SHERD) + + injector.putAfter(CobblemonItems.AUTOMATON_ARMOR_TRIM_SMITHING_TEMPLATE, Items.SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE) + } + /** * The abstract behaviour of injecting into existing [ItemGroup]s in specific positions. * Each platform has to implement the behaviour. diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/animation/PlayPoseableAnimationPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/animation/PlayPoseableAnimationPacket.kt new file mode 100644 index 0000000000..3f1ee38e18 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/animation/PlayPoseableAnimationPacket.kt @@ -0,0 +1,44 @@ +/* + * 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.net.messages.client.animation + +import com.cobblemon.mod.common.api.net.NetworkPacket +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.network.PacketByteBuf +import net.minecraft.util.Identifier + +/** + * Packet sent to arbitrarily play the first animation of the given set that exists on the given entity. MoLang + * expressions are also sent to setup any MoLang variables that are needed for the animation. + * + * @author Hiroku + * @since October 21st, 2023 + */ +class PlayPoseableAnimationPacket( + val entityId: Int, + val animation: Set, + val expressions: Set +) : NetworkPacket { + override val id: Identifier = ID + + companion object { + val ID = cobblemonResource("play_poseable_animation") + fun decode(buffer: PacketByteBuf) = PlayPoseableAnimationPacket( + buffer.readInt(), + buffer.readList { buffer.readString() }.toSet(), + buffer.readList { buffer.readString() }.toSet() + ) + } + + override fun encode(buffer: PacketByteBuf) { + buffer.writeInt(entityId) + buffer.writeCollection(animation) { pb, value -> pb.writeString(value) } + buffer.writeCollection(expressions) { pb, value -> pb.writeString(value) } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/data/MovesRegistrySyncPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/data/MovesRegistrySyncPacket.kt index 952b37e3b6..7479e640aa 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/data/MovesRegistrySyncPacket.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/data/MovesRegistrySyncPacket.kt @@ -50,7 +50,7 @@ class MovesRegistrySyncPacket(moves: List) : DataRegistrySyncPacke repeat(buffer.readVarInt()) { effectChances += buffer.readDouble() } - return MoveTemplate(name, num, type, damageCategory, power, target, accuracy, pp, priority, critRatio, effectChances.toTypedArray()) + return MoveTemplate(name, num, type, damageCategory, power, target, accuracy, pp, priority, critRatio, effectChances.toTypedArray(), null) } override fun synchronizeDecoded(entries: Collection) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/RunPosableMoLangPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/RunPosableMoLangPacket.kt new file mode 100644 index 0000000000..0ed016a107 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/RunPosableMoLangPacket.kt @@ -0,0 +1,47 @@ +/* + * 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.net.messages.client.effect + +import com.cobblemon.mod.common.api.net.NetworkPacket +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.network.PacketByteBuf + +/** + * Packet sent to run some MoLang in the MoLang environment associated with the given + * entity (which we're assuming is a posable entity). + * + * The expressions are given as strings instead of Expressions because if we make it + * Expressions and you constructed it from code instead of string parsing then it won't + * encode-decode properly, and you'll report a bug. Reason why that is: only way to + * serialize an Expression is to use the originalString property it was parsed from, + * so if you didn't parse from string that'll be blank and meaningless. + * + * Handled by [com.cobblemon.mod.common.client.net.effect.RunPosableMoLangHandler]. + * + * @author Hiroku + * @since October 27th, 2023 + */ +class RunPosableMoLangPacket( + val entityId: Int, + val expressions: Set +) : NetworkPacket { + companion object { + val ID = cobblemonResource("run_posable_molang") + fun decode(buffer: PacketByteBuf) = RunPosableMoLangPacket( + buffer.readInt(), + buffer.readList { pb -> pb.readString() }.toSet() + ) + } + + override val id = ID + override fun encode(buffer: PacketByteBuf) { + buffer.writeInt(entityId) + buffer.writeCollection(expressions) { pb, value -> pb.writeString(value) } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/SpawnSnowstormEntityParticlePacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/SpawnSnowstormEntityParticlePacket.kt new file mode 100644 index 0000000000..63a420513d --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/effect/SpawnSnowstormEntityParticlePacket.kt @@ -0,0 +1,36 @@ +/* + * 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.net.messages.client.effect + +import com.cobblemon.mod.common.api.net.NetworkPacket +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.network.PacketByteBuf +import net.minecraft.util.Identifier + +/** + * Packet that spawns a snowstorm particle effect on a specified entity and specified locator. + * + * @author Hiroku + * @since January 21st, 2024 + */ +class SpawnSnowstormEntityParticlePacket(val effectId: Identifier, val entityId: Int, val locator: String = "root") : NetworkPacket { + companion object { + val ID = cobblemonResource("spawn_snowstorm_entity_particle") + + fun decode(buffer: PacketByteBuf) = SpawnSnowstormEntityParticlePacket(buffer.readIdentifier(), buffer.readInt(), buffer.readString()) + } + + override val id = ID + + override fun encode(buffer: PacketByteBuf) { + buffer.writeIdentifier(effectId) + buffer.writeInt(entityId) + buffer.writeString(locator) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/sound/PokemonCryPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/sound/PokemonCryPacket.kt deleted file mode 100644 index 1bb7e46365..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/sound/PokemonCryPacket.kt +++ /dev/null @@ -1,35 +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.net.messages.client.sound - -import com.cobblemon.mod.common.api.net.NetworkPacket -import com.cobblemon.mod.common.util.cobblemonResource -import net.minecraft.network.PacketByteBuf - -/** - * Packet sent to the client to indicate the specified Pokémon is doing its cry. This is intended - * to find and play a cry animation (which should have the cry sound effect linked) - * - * Handled by [com.cobblemon.mod.common.client.net.sound.PokemonCryHandler]. - * - * @author Hiroku - * @since July 17th, 2023 - */ -class PokemonCryPacket(val entityId: Int) : NetworkPacket { - companion object { - val ID = cobblemonResource("pokemon_cry") - - fun decode(buffer: PacketByteBuf) = PokemonCryPacket(buffer.readInt()) - } - - override val id = ID - override fun encode(buffer: PacketByteBuf) { - buffer.writeInt(entityId) - } -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnGenericBedrockPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnGenericBedrockPacket.kt new file mode 100644 index 0000000000..f4b846ab1e --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnGenericBedrockPacket.kt @@ -0,0 +1,78 @@ +/* + * 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.net.messages.client.spawn + +import com.cobblemon.mod.common.client.entity.GenericBedrockClientDelegate +import com.cobblemon.mod.common.entity.PoseType +import com.cobblemon.mod.common.entity.generic.GenericBedrockEntity +import com.cobblemon.mod.common.net.IntSize +import com.cobblemon.mod.common.util.cobblemonResource +import com.cobblemon.mod.common.util.writeSizedInt +import net.minecraft.entity.Entity +import net.minecraft.network.PacketByteBuf +import net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket +import net.minecraft.util.Identifier + +/** + * Spawn packet for [GenericBedrockEntity]. Wraps around vanilla spawn packet behaviour. + * + * @author Hiroku + * @since May 22nd, 2023 + */ +class SpawnGenericBedrockPacket( + val category: Identifier, + val aspects: Set, + val poseType: PoseType, + val scale: Float, + val width: Float, + val height: Float, + val startAge: Int, + vanillaSpawnPacket: EntitySpawnS2CPacket +) : SpawnExtraDataEntityPacket(vanillaSpawnPacket) { + override val id: Identifier = ID + + override fun encodeEntityData(buffer: PacketByteBuf) { + buffer.writeIdentifier(this.category) + buffer.writeCollection(aspects) { _, aspect -> buffer.writeString(aspect) } + buffer.writeSizedInt(size = IntSize.U_BYTE, poseType.ordinal) + buffer.writeFloat(scale) + buffer.writeFloat(width) + buffer.writeFloat(height) + buffer.writeInt(startAge) + } + + override fun applyData(entity: GenericBedrockEntity) { + entity.category = this.category + entity.aspects = this.aspects + entity.dataTracker.set(GenericBedrockEntity.POSE_TYPE, this.poseType) + entity.scale = this.scale + entity.colliderWidth = this.width + entity.colliderHeight = this.height + entity.delegate.initialize(entity) + entity.age = startAge + (entity.delegate as GenericBedrockClientDelegate).updateAge(startAge) + } + + override fun checkType(entity: Entity): Boolean = entity is GenericBedrockEntity + + companion object { + val ID = cobblemonResource("spawn_generic_bedrock_entity") + fun decode(buffer: PacketByteBuf): SpawnGenericBedrockPacket { + val category = buffer.readIdentifier() + val aspects = buffer.readList { it.readString() }.toSet() + val poseType = buffer.readEnumConstant(PoseType::class.java) + val scale = buffer.readFloat() + val width = buffer.readFloat() + val height = buffer.readFloat() + val startAge = buffer.readInt() + val vanillaPacket = decodeVanillaPacket(buffer) + return SpawnGenericBedrockPacket(category, aspects, poseType, scale, width, height, startAge, vanillaPacket) + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnPokemonPacket.kt b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnPokemonPacket.kt index 31bc9d09c9..8c4b782051 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnPokemonPacket.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/net/messages/client/spawn/SpawnPokemonPacket.kt @@ -9,9 +9,11 @@ package com.cobblemon.mod.common.net.messages.client.spawn import com.cobblemon.mod.common.Cobblemon +import com.cobblemon.mod.common.api.pokeball.PokeBalls import com.cobblemon.mod.common.api.pokemon.PokemonSpecies import com.cobblemon.mod.common.entity.PoseType import com.cobblemon.mod.common.entity.pokemon.PokemonEntity +import com.cobblemon.mod.common.pokeball.PokeBall import com.cobblemon.mod.common.pokemon.FormData import com.cobblemon.mod.common.pokemon.Species import com.cobblemon.mod.common.util.cobblemonResource @@ -36,6 +38,7 @@ class SpawnPokemonPacket( private val poseType: PoseType, private val unbattlable: Boolean, private val hideLabel: Boolean, + private val caughtBall: Identifier, vanillaSpawnPacket: EntitySpawnS2CPacket ) : SpawnExtraDataEntityPacket(vanillaSpawnPacket) { @@ -52,9 +55,10 @@ class SpawnPokemonPacket( entity.beamMode.toByte(), entity.pokemon.nickname, if (Cobblemon.config.displayEntityLevelLabel) entity.dataTracker.get(PokemonEntity.LABEL_LEVEL) else -1, - entity.getPoseType(), + entity.dataTracker.get(PokemonEntity.POSE_TYPE), entity.dataTracker.get(PokemonEntity.UNBATTLEABLE), entity.dataTracker.get(PokemonEntity.HIDE_LABEL), + entity.pokemon.caughtBall.name, vanillaSpawnPacket ) @@ -72,6 +76,7 @@ class SpawnPokemonPacket( buffer.writeEnumConstant(this.poseType) buffer.writeBoolean(this.unbattlable) buffer.writeBoolean(this.hideLabel) + buffer.writeIdentifier(this.caughtBall) } override fun applyData(entity: PokemonEntity) { @@ -82,6 +87,7 @@ class SpawnPokemonPacket( form = this@SpawnPokemonPacket.form aspects = this@SpawnPokemonPacket.aspects nickname = this@SpawnPokemonPacket.nickname + PokeBalls.getPokeBall(this@SpawnPokemonPacket.caughtBall)?.let { caughtBall = it } } entity.phasingTargetId = this.phasingTargetId entity.beamMode = this.beamMode.toInt() @@ -113,8 +119,9 @@ class SpawnPokemonPacket( val poseType = buffer.readEnumConstant(PoseType::class.java) val unbattlable = buffer.readBoolean() val hideLabel = buffer.readBoolean() + val caughtBall = buffer.readIdentifier() val vanillaPacket = decodeVanillaPacket(buffer) - return SpawnPokemonPacket(ownerId, scaleModifier, species, form, aspects, battleId, phasingTargetId, beamModeEmitter, nickname, labelLevel, poseType, unbattlable, hideLabel, vanillaPacket) + return SpawnPokemonPacket(ownerId, scaleModifier, species, form, aspects, battleId, phasingTargetId, beamModeEmitter, nickname, labelLevel, poseType, unbattlable, hideLabel, caughtBall, vanillaPacket) } } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/particle/SnowstormParticleReader.kt b/common/src/main/kotlin/com/cobblemon/mod/common/particle/SnowstormParticleReader.kt index fb0f8ae631..b59f4923db 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/particle/SnowstormParticleReader.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/particle/SnowstormParticleReader.kt @@ -87,7 +87,17 @@ object SnowstormParticleReader { v3 = nodes[3] ) } - "bezier_chain" -> TODO("Bezier Chain curves are not implemented yet") + "bezier_chain" -> { + val input = curveJson.get("input").asString.asExpression() + val nodes = curveJson.get("nodes").asJsonObject.entrySet().map { (key, value) -> + key.toDouble() to (value as JsonObject).let { BezierChainMoLangCurve.BezierChainNode(it.get("value").asDouble, it.get("slope").asDouble) } + }.toMap() + BezierChainMoLangCurve( + name = variableName, + input = input, + nodes = nodes + ) + } "linear" -> { val input = curveJson.get("input").asString.asExpression() val horizontalRange = curveJson.get("horizontal_range").asString.asExpression() @@ -104,7 +114,7 @@ object SnowstormParticleReader { var direction: ParticleMotionDirection? = null val speed = (componentsJson.get("minecraft:particle_initial_speed")?.asString ?: "0.0").asExpression() val rate = if (instantRateJson != null) { - InstantParticleEmitterRate(amount = instantRateJson.get("num_particles").asInt) + InstantParticleEmitterRate(amount = instantRateJson.get("num_particles").asString.asExpression()) } else if (steadyRateJson != null) { SteadyParticleEmitterRate( rate = steadyRateJson.get("spawn_rate").asString.asExpression(), @@ -131,7 +141,7 @@ object SnowstormParticleReader { fun resolveDirection(json: JsonObject) { val directionProperty = json.get("direction") ?: let { - direction = CustomMotionDirection() + direction = OutwardsMotionDirection() return } direction = if (directionProperty.isJsonArray) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/FormData.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/FormData.kt index a23761cf58..6c89af3754 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/FormData.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/FormData.kt @@ -30,6 +30,7 @@ import com.cobblemon.mod.common.entity.PoseType import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.net.IntSize import com.cobblemon.mod.common.pokemon.ai.FormPokemonBehaviour +import com.cobblemon.mod.common.pokemon.lighthing.LightingData import com.cobblemon.mod.common.util.readSizedInt import com.cobblemon.mod.common.util.writeSizedInt import com.google.gson.annotations.SerializedName @@ -101,7 +102,9 @@ class FormData( */ val gigantamaxMove: MoveTemplate? = null, @SerializedName("battleTheme") - private var _battleTheme: Identifier? = null + private var _battleTheme: Identifier? = null, + @SerializedName("lightingData") + private var _lightingData: LightingData? = null ) : Decodable, Encodable, ShowdownIdentifiable { @SerializedName("name") var name: String = name @@ -192,14 +195,23 @@ class FormData( val battleTheme: Identifier get() = _battleTheme ?: species.battleTheme + val lightingData: LightingData? + get() { + // Don't always return base species, this is that shitty scenario where forms need to specifically declare in order for null to be respected and intended + if (this.species.standardForm == this) { + return this.species.lightingData + } + return this._lightingData + } + fun eyeHeight(entity: PokemonEntity): Float { val multiplier = this.resolveEyeHeight(entity) ?: return this.species.eyeHeight(entity) return entity.height * multiplier } private fun resolveEyeHeight(entity: PokemonEntity): Float? = when { - entity.getPoseType() in PoseType.SWIMMING_POSES -> this.swimmingEyeHeight ?: this.standingEyeHeight - entity.getPoseType() in PoseType.FLYING_POSES -> this.flyingEyeHeight ?: this.standingEyeHeight + entity.getCurrentPoseType() in PoseType.SWIMMING_POSES -> this.swimmingEyeHeight ?: this.standingEyeHeight + entity.getCurrentPoseType() in PoseType.FLYING_POSES -> this.flyingEyeHeight ?: this.standingEyeHeight else -> this.standingEyeHeight } @@ -214,6 +226,7 @@ class FormData( this.preEvolution?.species this.preEvolution?.form this.evolutions.size + this._lightingData?.let { this._lightingData = it.copy(lightLevel = it.lightLevel.coerceIn(0, 15)) } return this } @@ -252,6 +265,10 @@ class FormData( } buffer.writeNullable(this._moves) { buf, moves -> moves.encode(buf)} buffer.writeNullable(this._pokedex) { pb1, pokedex -> pb1.writeCollection(pokedex) { pb2, line -> pb2.writeString(line) } } + buffer.writeNullable(this.lightingData) { pb, data -> + pb.writeInt(data.lightLevel) + pb.writeEnumConstant(data.liquidGlowMode) + } } override fun decode(buffer: PacketByteBuf) { @@ -274,6 +291,7 @@ class FormData( } this._moves = buffer.readNullable { pb -> Learnset().apply { decode(pb) }} this._pokedex = buffer.readNullable { pb -> pb.readList { it.readString() } } + this._lightingData = buffer.readNullable { pb -> LightingData(pb.readInt(), pb.readEnumConstant(LightingData.LiquidGlowMode::class.java)) } } /** diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Pokemon.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Pokemon.kt index ebc70908cb..3197825708 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Pokemon.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Pokemon.kt @@ -81,6 +81,7 @@ import net.minecraft.server.world.ServerWorld import net.minecraft.text.MutableText import net.minecraft.text.Text import net.minecraft.text.TextContent +import net.minecraft.util.Hand import net.minecraft.util.Identifier import net.minecraft.util.InvalidIdentifierException import net.minecraft.util.math.MathHelper.ceil @@ -479,7 +480,10 @@ open class Pokemon : ShowdownIdentifiable { // Proceed as normal for non-shouldered Cobblemon val future = CompletableFuture() sendOut(level, position) { - level.playSoundServer(position, CobblemonSounds.POKE_BALL_SEND_OUT, volume = 0.6F) + getOwnerPlayer()?.let{ + it.swingHand(Hand.MAIN_HAND, true) + level.playSoundServer(it.pos, CobblemonSounds.POKE_BALL_THROW, volume = 0.6F) + } it.phasingTargetId = source.id it.beamMode = 1 it.battleId = battleId @@ -664,19 +668,27 @@ open class Pokemon : ShowdownIdentifiable { * Swaps out the current [heldItem] for the given [stack]. * The assigned [heldItem] will always have the [ItemStack.count] of 1. * + * The behavior of this method may be modified by third party, please see the [HeldItemEvent]. + * * @param stack The new [ItemStack] being set as the held item. * @param decrement If the given [stack] should have [ItemStack.decrement] invoked with the parameter of 1. Default is true. - * @return The existing [ItemStack] being held. + * @return The existing [ItemStack] being held or the [stack] if [HeldItemEvent.Pre] is canceled. + * + * @see [HeldItemEvent] */ fun swapHeldItem(stack: ItemStack, decrement: Boolean = true): ItemStack { - val giving = stack.copy().apply { count = 1 } - if (decrement) { - stack.decrement(1) - } val existing = this.heldItem() - this.heldItem = giving - this._heldItem.emit(giving) - return existing + CobblemonEvents.HELD_ITEM_PRE.postThen(HeldItemEvent.Pre(this, stack, existing, decrement), ifSucceeded = { event -> + val giving = event.receiving.copy().apply { count = 1 } + if (event.decrement) { + event.receiving.decrement(1) + } + this.heldItem = giving + this._heldItem.emit(giving) + CobblemonEvents.HELD_ITEM_POST.post(HeldItemEvent.Post(this, this.heldItem(), event.returning.copy(), event.decrement)) + return event.returning + }) + return stack } /** @@ -1064,7 +1076,6 @@ open class Pokemon : ShowdownIdentifiable { * Sets the Pokémon's Original Trainer. * * @param playerUUID The Player's UniqueID, used to check for Username updates. - * @param playerName The Player's Username to cache and use whilst this Pokémon is loaded. */ fun setOriginalTrainer(playerUUID: UUID) { originalTrainerType = OriginalTrainerType.PLAYER @@ -1148,10 +1159,6 @@ open class Pokemon : ShowdownIdentifiable { // Last flower fed to a Mooshtank var lastFlowerFed: ItemStack = ItemStack.EMPTY - fun feedFlower(itemStack: ItemStack) { - this.lastFlowerFed = itemStack - } - fun checkGender() { var reassess = false if (form.maleRatio !in 0F..1F && gender != Gender.GENDERLESS) { diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Species.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Species.kt index 65fcb6bf5b..0299ca16f0 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Species.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/Species.kt @@ -30,6 +30,7 @@ import com.cobblemon.mod.common.entity.PoseType.Companion.SWIMMING_POSES import com.cobblemon.mod.common.entity.pokemon.PokemonEntity import com.cobblemon.mod.common.net.IntSize import com.cobblemon.mod.common.pokemon.ai.PokemonBehaviour +import com.cobblemon.mod.common.pokemon.lighthing.LightingData import com.cobblemon.mod.common.util.readSizedInt import com.cobblemon.mod.common.util.writeSizedInt import net.minecraft.entity.EntityDimensions @@ -130,12 +131,16 @@ class Species : ClientDataSynchronizer, ShowdownIdentifiable { var battleTheme: Identifier = CobblemonSounds.PVW_BATTLE.id + var lightingData: LightingData? = null + private set + fun initialize() { Cobblemon.statProvider.provide(this) this.forms.forEach { it.initialize(this) } if (this.forms.isNotEmpty() && this.forms.none { it == this.standardForm }) { this.forms.add(0, this.standardForm) } + this.lightingData?.let { this.lightingData = it.copy(lightLevel = it.lightLevel.coerceIn(0, 15)) } // These properties are lazy, these need all species to be reloaded but SpeciesAdditions is what will eventually trigger this after all species have been loaded this.preEvolution?.species this.preEvolution?.form @@ -163,8 +168,8 @@ class Species : ClientDataSynchronizer, ShowdownIdentifiable { } private fun resolveEyeHeight(entity: PokemonEntity): Float? = when { - entity.getPoseType() in SWIMMING_POSES -> this.swimmingEyeHeight ?: standingEyeHeight - entity.getPoseType() in FLYING_POSES -> this.flyingEyeHeight ?: standingEyeHeight + entity.getCurrentPoseType() in SWIMMING_POSES -> this.swimmingEyeHeight ?: standingEyeHeight + entity.getCurrentPoseType() in FLYING_POSES -> this.flyingEyeHeight ?: standingEyeHeight else -> this.standingEyeHeight } @@ -194,6 +199,10 @@ class Species : ClientDataSynchronizer, ShowdownIdentifiable { buffer.writeCollection(this.pokedex) { pb, line -> pb.writeString(line) } buffer.writeCollection(this.forms) { pb, form -> form.encode(pb) } buffer.writeIdentifier(this.battleTheme) + buffer.writeNullable(this.lightingData) { pb, data -> + pb.writeInt(data.lightLevel) + pb.writeEnumConstant(data.liquidGlowMode) + } } override fun decode(buffer: PacketByteBuf) { @@ -217,6 +226,7 @@ class Species : ClientDataSynchronizer, ShowdownIdentifiable { this.forms.clear() this.forms += buffer.readList{ pb -> FormData().apply { decode(pb) } }.filterNotNull() this.battleTheme = buffer.readIdentifier() + this.lightingData = buffer.readNullable { pb -> LightingData(pb.readInt(), pb.readEnumConstant(LightingData.LiquidGlowMode::class.java)) } this.initialize() } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/effects/LightSourceEffect.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/effects/LightSourceEffect.kt deleted file mode 100644 index f7d40b7f4d..0000000000 --- a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/effects/LightSourceEffect.kt +++ /dev/null @@ -1,24 +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.pokemon.effects - -import com.cobblemon.mod.common.api.pokemon.effect.ShoulderEffect -import com.cobblemon.mod.common.pokemon.Pokemon -import net.minecraft.server.network.ServerPlayerEntity -class LightSourceEffect: ShoulderEffect { - private var test = "AAA" - - override fun applyEffect(pokemon: Pokemon, player: ServerPlayerEntity, isLeft: Boolean) { - println("Applying effect... $test") - } - - override fun removeEffect(pokemon: Pokemon, player: ServerPlayerEntity, isLeft: Boolean) { - println("Removing effect...") - } -} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/lighthing/LightingData.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/lighthing/LightingData.kt new file mode 100644 index 0000000000..38e8c05d42 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/lighthing/LightingData.kt @@ -0,0 +1,35 @@ +/* + * 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.pokemon.lighthing + +/** + * Represents light emitting properties of a species/form. + * This has no use in the base mod and is instead used for dynamic lighting mod compatibility. + * + * @property lightLevel The light level emitted. + * @property liquidGlowMode The [LiquidGlowMode] for this effect. + */ +data class LightingData(val lightLevel: Int, val liquidGlowMode: LiquidGlowMode) { + + /** + * Represents if a [LightingData] is applied while in land or underwater + * + * @property glowsInLand If this allows activation while on land. + * @property glowsUnderwater If this allows activation while underwater. + */ + @Suppress("unused") + enum class LiquidGlowMode(val glowsInLand: Boolean, val glowsUnderwater: Boolean) { + + LAND(true, false), + UNDERWATER(false, true), + BOTH(true, true) + + } + +} diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherd.kt b/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherd.kt new file mode 100644 index 0000000000..7d9d451fae --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherd.kt @@ -0,0 +1,17 @@ +/* + * 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.sherds + +import net.minecraft.item.Item +import net.minecraft.util.Identifier + +data class CobblemonSherd( + val patternId: Identifier, + val item: Item +) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherds.kt b/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherds.kt new file mode 100644 index 0000000000..ea1bc08ac0 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/sherds/CobblemonSherds.kt @@ -0,0 +1,56 @@ +/* + * 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.sherds + +import com.cobblemon.mod.common.CobblemonItems +import com.cobblemon.mod.common.util.cobblemonResource +import net.minecraft.item.Item +import net.minecraft.registry.Registries +import net.minecraft.registry.Registry +import net.minecraft.registry.RegistryKey +import net.minecraft.registry.RegistryKeys +import net.minecraft.util.Identifier + +@Suppress("Unused") +object CobblemonSherds { + val allSherds = mutableListOf() + val sherdToPattern = mutableMapOf>() + + val BYGONE_SHERD = addSherd(cobblemonResource("bygone_pottery_pattern"), CobblemonItems.BYGONE_SHERD) + + val CAPTURE_SHERD = addSherd(cobblemonResource("capture_pottery_pattern"), CobblemonItems.CAPTURE_SHERD) + + val DOME_SHERD = addSherd(cobblemonResource("dome_pottery_pattern"), CobblemonItems.DOME_SHERD) + + val HELIX_SHERD = addSherd(cobblemonResource("helix_pottery_pattern"), CobblemonItems.HELIX_SHERD) + + val NOSTALGIC_SHERD = addSherd(cobblemonResource("nostalgic_pottery_pattern"), CobblemonItems.NOSTALGIC_SHERD) + + val SUSPICIOUS_SHERD = addSherd(cobblemonResource("suspicious_pottery_pattern"), CobblemonItems.SUSPICIOUS_SHERD) + + fun addSherd(patternId: Identifier, item: Item): CobblemonSherd { + val sherd = CobblemonSherd(patternId, item) + val registryKey = RegistryKey.of(RegistryKeys.DECORATED_POT_PATTERN, patternId) + sherdToPattern[item] = registryKey + allSherds.add(sherd) + return sherd + } + fun registerSherds() { + val registry = Registries.DECORATED_POT_PATTERN + for (sherd in allSherds) { + val regKey = RegistryKey.of(RegistryKeys.DECORATED_POT_PATTERN, sherd.patternId) + Registry.register( + registry, + regKey, + sherd.patternId.path + ) + } + } + +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/DataKeys.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/DataKeys.kt index 8dba83df71..6a2d3079a4 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/DataKeys.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/DataKeys.kt @@ -149,15 +149,27 @@ object DataKeys { //FossilMultiblockStructure Serialization const val MONITOR_POS = "MonitorPos" - const val TUBE_BASE_POS = "TubeBasePos" - const val COMPARTMENT_POS = "CompartmentPos" + const val TANK_BASE_POS = "TankBasePos" + const val ANALYZER_POS = "AnalyzerPos" const val ORGANIC_MATERIAL = "OrganicContent" const val INSERTED_FOSSIL = "InsertedFossil" const val FOSSIL_INVENTORY = "InsertedFossilStacks" - const val TUBE_FILL_LEVEL = "TubeFillLevel" + const val TANK_FILL_LEVEL = "TankFillLevel" const val CONNECTOR_DIRECTION = "ConnectorDirection" const val TIME_LEFT = "TimeLeft" + const val PROTECTED_TIME_LEFT = "ProtectedTimeLeft" const val FORMED = "Formed" const val CREATED_POKEMON = "CreatedPokemon" + const val FOSSIL_OWNER = "FossilOwner" const val FOSSIL_STATE = "FossilState" + + /* Generic Bedrock Entity */ + const val GENERIC_BEDROCK_CATEGORY = "Category" + const val GENERIC_BEDROCK_ASPECTS = "Aspects" + const val GENERIC_BEDROCK_POSE_TYPE = "PoseType" + const val GENERIC_BEDROCK_SCALE = "Scale" + const val GENERIC_BEDROCK_COLLIDER_WIDTH = "Width" + const val GENERIC_BEDROCK_COLLIDER_HEIGHT = "Height" + const val GENERIC_BEDROCK_SYNC_AGE = "SyncAge" + } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/JsonExtensions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/JsonExtensions.kt index b3939500fd..de047ca970 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/JsonExtensions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/JsonExtensions.kt @@ -60,4 +60,14 @@ fun JsonElement.asNbt(): NbtElement = JsonOps.INSTANCE.convertTo(NbtOps.INSTANCE fun > Array.getFromJSON(element: JsonElement, name: String): T { val type = (element as JsonObject).get(name).asString return first { type.equals(it.name, ignoreCase = true) } +} + +fun JsonObject.getFirst(vararg names: String): JsonElement? { + for (name in names) { + val element = get(name) + if (element != null) { + return element + } + } + return null } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/MiscUtils.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/MiscUtils.kt index f25d2516be..9e46549a65 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/MiscUtils.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/MiscUtils.kt @@ -66,6 +66,8 @@ fun Random.nextBetween(min: Int, max: Int): Int { return nextInt(max - min + 1) + min } +infix fun A.toDF(b: B): com.mojang.datafixers.util.Pair = com.mojang.datafixers.util.Pair(this, b) + fun isUuid(string: String) : Boolean { return Regex("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\$").matches(string) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/MoLangExtensions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/MoLangExtensions.kt index 4997242696..49094d0a19 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/MoLangExtensions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/MoLangExtensions.kt @@ -13,9 +13,11 @@ import com.bedrockk.molang.MoLang import com.bedrockk.molang.ast.NumberExpression import com.bedrockk.molang.runtime.MoLangEnvironment import com.bedrockk.molang.runtime.MoLangRuntime +import com.bedrockk.molang.runtime.MoParams import com.bedrockk.molang.runtime.MoScope import com.bedrockk.molang.runtime.struct.VariableStruct import com.bedrockk.molang.runtime.value.MoValue +import java.lang.IllegalArgumentException import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.api.molang.ExpressionLike import com.cobblemon.mod.common.api.molang.ListExpression @@ -28,7 +30,11 @@ import net.minecraft.util.math.Vec3d val genericRuntime = MoLangRuntime().setup() -fun MoLangRuntime.resolve(expression: Expression): MoValue = expression.evaluate(MoScope(), environment) +fun MoLangRuntime.resolve(expression: Expression): MoValue = try { + expression.evaluate(MoScope(), environment) +} catch (e: Exception) { + throw IllegalArgumentException("Unable to parse expression: ${expression.getString()}", e) +} fun MoLangRuntime.resolveDouble(expression: Expression): Double = resolve(expression).asDouble() fun MoLangRuntime.resolveFloat(expression: Expression): Float = resolve(expression).asDouble().toFloat() fun MoLangRuntime.resolveInt(expression: Expression): Int = resolveDouble(expression).toInt() @@ -138,3 +144,7 @@ fun List.resolveDouble(runtime: MoLangRuntime) = resolve(runtime).as fun List.resolveInt(runtime: MoLangRuntime) = resolveDouble(runtime).toInt() fun List.resolveBoolean(runtime: MoLangRuntime) = resolveDouble(runtime) == 1.0 fun List.resolveObject(runtime: MoLangRuntime) = resolve(runtime) as ObjectValue<*> + +fun MoParams.getStringOrNull(index: Int) = if (params.size > index) getString(index) else null +fun MoParams.getDoubleOrNull(index: Int) = if (params.size > index) getDouble(index) else null +fun MoParams.getBooleanOrNull(index: Int) = if (params.size > index) getDouble(index) == 1.0 else null \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/MovingSoundInstance.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/MovingSoundInstance.kt new file mode 100644 index 0000000000..a04eb8cca6 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/MovingSoundInstance.kt @@ -0,0 +1,54 @@ +/* + * 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.util + +import net.minecraft.client.sound.MovingSoundInstance +import net.minecraft.client.sound.SoundInstance +import net.minecraft.sound.SoundCategory +import net.minecraft.sound.SoundEvent +import net.minecraft.util.math.Vec3d + +class MovingSoundInstance( + val sound: SoundEvent, + private val category: SoundCategory, + val pos: () -> Vec3d?, + private val startingVol: Float, + private val pitch: Float, + var looping: Boolean = true, + var duration: Int = 20, + private val repeatDelay: Int = 0 +) : MovingSoundInstance (sound, category, SoundInstance.createRandom()) { + var time = 0 + init { + this.repeat = looping + this.x = pos.invoke()?.x ?: 0.0 + this.y = pos.invoke()?.y ?: 0.0 + this.z = pos.invoke()?.z ?: 0.0 + this.volume = startingVol + } + override fun tick() { + if(!looping && time > duration) { + this.setDone() + } else { + this.x = pos.invoke()?.x ?: 0.0 + this.y = pos.invoke()?.y ?: 0.0 + this.z = pos.invoke()?.z ?: 0.0 + } + if (repeatDelay > 0 && time > duration + repeatDelay) { + time = 0 + } else if (repeatDelay == 0 && time > duration) { + time = 0 + } else if (repeatDelay < 0) { + time = 0 + } else { + time++ + } + } + +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/ShaderRegistryData.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/ShaderRegistryData.kt new file mode 100644 index 0000000000..9be2e74c26 --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/ShaderRegistryData.kt @@ -0,0 +1,16 @@ +/* + * 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.util + +import net.minecraft.client.render.VertexFormat +import net.minecraft.client.render.VertexFormats +import net.minecraft.resource.ResourceFactory +import net.minecraft.util.Identifier + +data class ShaderRegistryData(val resourceFactory: ResourceFactory, val shaderName: Identifier, val vertexFormat: VertexFormat) \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/Vec3Extensions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/Vec3Extensions.kt index 205d997f62..a0318a2436 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/Vec3Extensions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/Vec3Extensions.kt @@ -10,6 +10,7 @@ package com.cobblemon.mod.common.util import net.minecraft.util.math.BlockPos import net.minecraft.util.math.Vec3d +import org.joml.Vector3d import org.joml.Vector3f /** @@ -20,4 +21,10 @@ fun Vec3d.toBlockPos(): BlockPos { } fun Vec3d.toVec3f(): Vector3f = Vector3f(x.toFloat(), y.toFloat(), z.toFloat()) -fun Vector3f.toVec3d(): Vec3d= Vec3d(x.toDouble(), y.toDouble(), z.toDouble()) \ No newline at end of file +fun Vector3f.toVec3d(): Vec3d= Vec3d(x.toDouble(), y.toDouble(), z.toDouble()) +fun Vector3f.set(vec3d: Vec3d): Vector3f { + x = vec3d.x.toFloat() + y = vec3d.y.toFloat() + z = vec3d.z.toFloat() + return this +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/ActionEffectKeyframeAdapter.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/ActionEffectKeyframeAdapter.kt new file mode 100644 index 0000000000..bcec16ec5e --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/ActionEffectKeyframeAdapter.kt @@ -0,0 +1,38 @@ +/* + * 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.util.adapters + +import com.cobblemon.mod.common.api.moves.animations.keyframes.ActionEffectKeyframe +import com.google.gson.JsonDeserializationContext +import com.google.gson.JsonDeserializer +import com.google.gson.JsonElement +import com.google.gson.JsonObject +import java.lang.reflect.Type + +/** + * Map adapter for [ActionEffectKeyframe] + * + * @author Hiroku + * @since October 21st, 2023 + */ +object ActionEffectKeyframeAdapter : JsonDeserializer { + override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): ActionEffectKeyframe { + return if (json.isJsonPrimitive) { + val clazz = ActionEffectKeyframe.types[json.asString] + ?: throw IllegalArgumentException("Unrecognized action effect keyframe type: ${json.asJsonPrimitive}") + clazz.getConstructor().newInstance() + } else { + json as JsonObject + val typeString = json.get("type").asString + val clazz = ActionEffectKeyframe.types[typeString] + ?: throw IllegalArgumentException("Unrecognized action effect keyframe type: $typeString") + ctx.deserialize(json, clazz) + } + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/SingleToPluralAdapter.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/SingleToPluralAdapter.kt new file mode 100644 index 0000000000..970c3013dd --- /dev/null +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/adapters/SingleToPluralAdapter.kt @@ -0,0 +1,32 @@ +/* + * 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.util.adapters + +import com.google.gson.JsonDeserializationContext +import com.google.gson.JsonDeserializer +import com.google.gson.JsonElement +import java.lang.reflect.Type + +/** + * Generic adapter for converting a field that is intended to be an iterable but we support entering single + * values in the JSON for succinctness. You have to provide the class of the elements and a way of converting + * a list of elements into the collection type you want. + * + * @author Hiroku + * @since October 29th, 2023 + */ +class SingleToPluralAdapter>(val clazz: Class, val converter: (List) -> C) : JsonDeserializer { + override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): C { + return (if (json.isJsonArray) { + json.asJsonArray.map { ctx.deserialize(it, clazz) } + } else { + listOf(ctx.deserialize(json, clazz)) + }).let(converter) + } +} \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/util/math/geometry/Matrix4fExtensions.kt b/common/src/main/kotlin/com/cobblemon/mod/common/util/math/geometry/Matrix4fExtensions.kt index d77b8f0d37..3de3cd3177 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/util/math/geometry/Matrix4fExtensions.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/util/math/geometry/Matrix4fExtensions.kt @@ -9,7 +9,9 @@ package com.cobblemon.mod.common.util.math.geometry import net.minecraft.util.math.Vec3d +import org.joml.AxisAngle4d import org.joml.Matrix4f +import org.joml.Vector3d import org.joml.Vector4f fun Matrix4f.getOrigin(): Vec3d { @@ -32,9 +34,8 @@ fun Matrix4f.transformDirection(direction: Vec3d): Vec3d { val vector = Vector4f(direction.x.toFloat(), direction.y.toFloat(), direction.z.toFloat(), 1F) this.transform(vector) vector.mul(1 / vector.w) - val newVector = Vec3d(vector.x.toDouble(), vector.y.toDouble(), vector.z.toDouble()) + return Vec3d(vector.x.toDouble(), vector.y.toDouble(), vector.z.toDouble()) .subtract(originVec) .normalize() .multiply(magnitude) - return newVector } \ No newline at end of file diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOreConfiguredFeatures.kt b/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOreConfiguredFeatures.kt index 462f5868bf..c696ff3337 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOreConfiguredFeatures.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOreConfiguredFeatures.kt @@ -18,6 +18,7 @@ object CobblemonOreConfiguredFeatures { val ORE_DAWN_STONE = of("dawn_stone") val ORE_DUSK_STONE = of("dusk_stone") val ORE_FIRE_STONE = of("fire_stone") + val ORE_FIRE_STONE_NETHER = of("nether_fire_stone") val ORE_ICE_STONE = of("ice_stone") val ORE_LEAF_STONE = of("leaf_stone") val ORE_MOON_STONE = of("moon_stone") diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOrePlacedFeatures.kt b/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOrePlacedFeatures.kt index bbc80f8f29..6cdb4cdcf9 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOrePlacedFeatures.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/world/feature/ore/CobblemonOrePlacedFeatures.kt @@ -38,6 +38,7 @@ object CobblemonOrePlacedFeatures { val FIRE_STONE_LOWER = of("fire_stone_lower", CobblemonBiomeTags.HAS_FIRE_STONE_ORE) val FIRE_STONE_UPPER_RARE = of("fire_stone_upper_rare", CobblemonBiomeTags.HAS_FIRE_STONE_ORE_RARE) val FIRE_STONE_LOWER_RARE = of("fire_stone_lower_rare", CobblemonBiomeTags.HAS_FIRE_STONE_ORE_RARE) + val FIRE_STONE_NETHER = of("fire_stone_nether", CobblemonBiomeTags.HAS_FIRE_STONE_ORE_NETHER) // Ice Stone val ICE_STONE_UPPER = of("ice_stone_upper", CobblemonBiomeTags.HAS_ICE_STONE_ORE) @@ -56,7 +57,7 @@ object CobblemonOrePlacedFeatures { val MOON_STONE_LOWER = of("moon_stone_lower", CobblemonBiomeTags.HAS_MOON_STONE_ORE) val MOON_STONE_UPPER_RARE = of("moon_stone_upper_rare", CobblemonBiomeTags.HAS_MOON_STONE_ORE_RARE) val MOON_STONE_LOWER_RARE = of("moon_stone_lower_rare", CobblemonBiomeTags.HAS_MOON_STONE_ORE_RARE) - val MOON_STONE_DRIPSTONE = of("moon_stone_dripstone", CobblemonBiomeTags.HAS_MOON_STONE_ORE_RARE) + val MOON_STONE_DRIPSTONE = of("moon_stone_dripstone", CobblemonBiomeTags.HAS_MOON_STONE_ORE_DRIPSTONE) // Shiny Stone val SHINY_STONE_UPPER = of("shiny_stone_upper", CobblemonBiomeTags.HAS_SHINY_STONE_ORE) diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/aerodactyl_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/aerodactyl_fetus.animation.json index 6cdb38ab5d..72bec039a5 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/aerodactyl_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/aerodactyl_fetus.animation.json @@ -5,62 +5,238 @@ "loop": true, "bones": { "body": { - "rotation": [-100, 0, 0], - "position": [0, 1, 0.2] + "rotation": ["-100+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "2.25+math.sin(q.anim_time*90*0.5-45)*0.8", "-0.25+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "neck": { - "rotation": [15, 0, 0] + "rotation": ["15+math.sin(q.anim_time*90*0.5-210)*1", 0, 0] }, "head": { - "rotation": [72, 0, 0] + "rotation": ["79.5+math.sin(q.anim_time*90*0.5-270)*-3", 0, 0] }, "tail": { - "rotation": [-35, 0, 0] + "rotation": ["-35+math.sin(q.anim_time*90*0.5-210)*-3", 0, 0] }, "right_leg": { - "rotation": [-15, -3, 14] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-210)*-6", -3, 14] }, "right_leg2": { - "rotation": [65, 0, 0] + "rotation": ["65+math.sin(q.anim_time*90*0.5-270)*6", 0, 0] }, "right_foot": { - "rotation": [15, 0, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5-280)*8", 0, 0] }, "neck2": { - "rotation": [55, 0, 0] + "rotation": ["50+math.sin(q.anim_time*90*0.5-240)*2", 0, 0] }, "tail2": { - "rotation": [-60, 0, 0] + "rotation": ["-60+math.sin(q.anim_time*90*0.5-250)*-5", 0, 0] }, "wing_right2": { - "rotation": [0, 0, -155] + "rotation": [0, "math.sin(q.anim_time*90*0.5-90)*-8", -155] }, "wing_right": { - "rotation": [0, 0, 75] + "rotation": [0, "math.sin(q.anim_time*90*0.5-30)*-5", 75] }, "wing_right3": { - "rotation": [3, 74, -20] + "rotation": [3, "74+math.sin(q.anim_time*90*0.5-90)*-4", -20] }, "tail3": { - "rotation": [-60, 0, 0] + "rotation": ["-60+math.sin(q.anim_time*90*0.5-290)*-6", 0, 0] }, "wing_left": { - "rotation": [0, 0, -75] + "rotation": [0, "-(math.sin(q.anim_time*90*0.5-30)*-5)", -75] }, "wing_left2": { - "rotation": [0, 0, 155] + "rotation": [0, "-(math.sin(q.anim_time*90*0.5-90)*-8)", 155] }, "wing_left3": { - "rotation": [3, -74, 20] + "rotation": [3, "-74+math.sin(q.anim_time*90*0.5-90)*4", 20] }, "left_leg": { - "rotation": [-15, 3, -14] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-210)*-6", 3, -14] }, "left_leg2": { - "rotation": [65, 0, 0] + "rotation": ["65+math.sin(q.anim_time*90*0.5-270)*6", 0, 0] }, "left_foot": { - "rotation": [15, 0, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5-280)*8", 0, 0] + }, + "jaw": { + "rotation": ["5+math.sin(q.anim_time*90*0.5-300)*3", 0, 0] + } + } + }, + "animation.aerodactyl_fetus.quirk": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-0.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [7.24, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [-2.61, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 7.5], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, -3], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 2], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, -10, -7.5], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 7.5, 10], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, -2, -1], + "lerp_mode": "catmullrom" + }, + "3.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_right3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 17.5, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, -18.14, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, 10.53, 0], + "lerp_mode": "catmullrom" + }, + "3.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, -7.5], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 3], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, -2], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 10, 7.5], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, -7.5, -10], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 2, 1], + "lerp_mode": "catmullrom" + }, + "3.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "wing_left3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, -17.5, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 18.14, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, -10.53, 0], + "lerp_mode": "catmullrom" + }, + "3.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/archen_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/archen_fetus.animation.json index bf4f789f88..f957285b11 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/archen_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/archen_fetus.animation.json @@ -3,61 +3,1534 @@ "animations": { "animation.archen_fetus.sleep": { "loop": true, + "animation_length": 16, "bones": { "body": { - "rotation": [-15, 0, 0], - "position": [0, -1, 1] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "-1.5+math.sin(q.anim_time*90*0.5-45)*0.8", "1+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "arm_right": { - "rotation": [-65, -35, -20] + "rotation": ["-55+math.sin(q.anim_time*90*0.5+60)*3", "-60+math.sin(q.anim_time*90*0.5+120)*3", -45] }, "arm_right2": { - "rotation": [0, -60, 0] + "rotation": [25, "-58+math.sin(q.anim_time*90*0.5+60)*6", -45] }, "arm_right3": { - "rotation": [0, 80, 0] + "rotation": [-44, "75+math.sin(q.anim_time*90*0.5)*6", -45] }, "neck": { - "rotation": [16, 0, 0] + "rotation": ["16+math.sin(q.anim_time*90*0.5-250)*1", 0, 0] }, "head": { - "rotation": [28.5, 0, 0] + "rotation": ["16+math.sin(q.anim_time*90*0.5-300)*2.5", 0, 0] }, "leg_right": { - "rotation": [-75, 25, 0] + "rotation": ["-70.6623+math.sin(q.anim_time*90*0.5+60)*3", 16.06073, 10.74582] }, "leg_right2": { - "rotation": [-40, -5, -5] + "rotation": ["-39.9365+math.sin(q.anim_time*90*0.5)*6", 12.20398, -19.48458] }, "foot_right": { - "rotation": [85, 0, 0] + "rotation": ["75+math.sin(q.anim_time*90*0.5-60)*8", 0, 0] }, "tail": { - "rotation": [-30, 0, 0] + "rotation": ["-30+math.sin(q.anim_time*90*0.5)*8", 0, "math.sin(q.anim_time*90*0.75)*10"] }, "tail2": { - "rotation": [-40, 0, 0] + "rotation": ["-40+math.sin(q.anim_time*90*0.5-30)*12", 0, "math.sin(q.anim_time*90*0.75-60)*12"] }, "tail_feathers_front": { - "rotation": [-30, 0, 0] + "rotation": ["-30+math.sin(q.anim_time*90*0.5-330)*5", 0, 0] }, "leg_left": { - "rotation": [-75, -25, 0] + "rotation": ["-75+math.sin(q.anim_time*90*0.5+60)*3", -25, 0] }, "leg_left2": { - "rotation": [-40, 5, 5] + "rotation": ["-39.9365+math.sin(q.anim_time*90*0.5)*6", -12.20398, 19.48458] }, "foot_left": { - "rotation": [85, 0, 0] + "rotation": ["75+math.sin(q.anim_time*90*0.5-60)*8", 0, 0] }, "arm_left": { - "rotation": [-65, 35, 20] + "rotation": ["-55+math.sin(q.anim_time*90*0.5+60)*3", "60+math.sin(q.anim_time*90*0.5+120)*-3", 45] }, "arm_left2": { - "rotation": [0, 60, 0] + "rotation": [25, "58+math.sin(q.anim_time*90*0.5+60)*-6", 45] }, "arm_left3": { - "rotation": [0, -80, 0] + "rotation": [-44, "-75+math.sin(q.anim_time*90*0.5)*-6", 45] + }, + "tail_feathers_back": { + "rotation": ["math.sin(q.anim_time*90*0.5-330)*-5", 0, 0] + }, + "tail_feathers_right": { + "rotation": [0, 0, "math.sin(q.anim_time*90*0.5-330)*-5"] + }, + "tail_feathers_left": { + "rotation": [0, 0, "math.sin(q.anim_time*90*0.5-330)*5"] + }, + "arms": { + "rotation": [5, 0, 0] + }, + "neck_feathers_front": { + "rotation": ["math.sin(q.anim_time*90*0.5-180)*-5", 0, 0] + }, + "neck_feathers_back": { + "rotation": ["math.sin(q.anim_time*90*0.5-180)*5", 0, 0] + }, + "neck_feathers_left": { + "rotation": [0, 0, "math.sin(q.anim_time*90*0.5-180)*-5"] + }, + "neck_feathers_right": { + "rotation": [0, 0, "math.sin(q.anim_time*90*0.5-180)*5"] + }, + "head_feather": { + "rotation": ["math.sin(q.anim_time*90*0.5-160)*3", 0, 0] + }, + "head_feather2": { + "rotation": ["-12.5+math.sin(q.anim_time*90*0.5-120)*4", 0, 0] + }, + "head_feather3": { + "rotation": ["-10+math.sin(q.anim_time*90*0.5-130)*6", 0, 0] + }, + "jaw": { + "rotation": ["3+math.sin(q.anim_time*90*0.5)*3.2", 0, 0] + }, + "tail3": { + "rotation": ["math.sin(q.anim_time*90*0.5-90)*12", 0, "math.sin(q.anim_time*90*0.75-120)*12"] + } + } + }, + "animation.archen_fetus.quirk1": { + "animation_length": 1.25, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-1.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail_feathers": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-3.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-3.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-1.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 2, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, -4, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right2": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, -7.5, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, 5.6, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right3": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 12.5, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, -3.5, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, 6.21, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 4, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 7.5, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, -5.6, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, 2, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, -12.5, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 3.5, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, -6.21, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck_feathers": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-1.05, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [2.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [2.64, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [6.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-5.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-0.76, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-3.64, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [25.12, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-2.96, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [5.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-0.57, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-17, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [-22.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-0.86, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [8.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [6.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [-10.73, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.archen_fetus.quirk2": { + "animation_length": 1.25, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-1.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail_feathers": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-3.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-3.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-1.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 4, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right2": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 7.5, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, -5.6, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 2, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right3": { + "rotation": { + "0.125": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, -12.5, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 3.5, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, -6.21, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 2, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, -4, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, -7.5, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 5.6, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 12.5, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, -3.5, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 6.21, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck_feathers": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-1.05, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [2.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [2.64, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [6.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-5.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-2.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [4.56, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [-1.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-0.76, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-3.64, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [25.12, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [-2.96, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [5.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-0.57, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-17, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [-22.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-0.86, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [8.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [6.36, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [-10.73, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.archen_fetus.quirk3": { + "animation_length": 1, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0.12, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [-0.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-0.15, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0.62, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0.12, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [-0.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [1.62, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0.42, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-1.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [1.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-1.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [1.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [-1.37, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [1.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "jaw": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctovish_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctovish_fetus.animation.json index b675973295..95733ff11a 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctovish_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctovish_fetus.animation.json @@ -5,32 +5,599 @@ "loop": true, "bones": { "body": { - "rotation": [5, 0, 0], - "position": [0, 0, 0.2] + "rotation": ["5+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "math.sin(q.anim_time*90*0.5-45)*0.8", "0.5+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "leg_right": { - "rotation": [0, 30, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5+60)*5", "30+math.sin(q.anim_time*90*0.5-90)*2", 0] }, "tail": { - "rotation": [15, 0, 0] + "rotation": ["15+math.sin(q.anim_time*90*0.5-210)*3", 0, 0] }, "tail2": { - "rotation": [10, 0, 0] + "rotation": ["10+math.sin(q.anim_time*90*0.5-250)*3", 0, 0] }, "leg_left": { - "rotation": [0, -30, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5+60)*5", "-30+math.sin(q.anim_time*90*0.5-90)*2", 0] }, "fin_right": { - "rotation": [-5, 0, -52] + "rotation": [-5, 2, "-25+math.sin(q.anim_time*90*0.5-210)*12"] }, "head": { - "rotation": [5, 0, 0] + "rotation": ["5+math.sin(q.anim_time*90*0.5-210)*5", 0, 0], + "position": [0, 0.15, 0] }, "jaw": { - "rotation": [-10, 0, 0] + "rotation": ["-10+math.sin(q.anim_time*90*0.5-170)*5", 0, 0] }, "fin_left": { - "rotation": [-5, 0, 52] + "rotation": [-5, -2, "25+math.sin(q.anim_time*90*0.5-210)*-12"] + } + } + }, + "animation.arctovish_fetus.quirk1": { + "animation_length": 1.16667, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-1.75, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [-1.85, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [1.35, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-1.05, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0.35, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [-6.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "jaw": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [5.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [6.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, -4.2], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 0, -2.2], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, 8.75], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, 2.32], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, 4.2], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 0, 2.2], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, -8.75], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, -2.32], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [1.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [1.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [1.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-0.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-1.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0.6, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-1.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0.6, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0.1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.arctovish_fetus.quirk2": { + "animation_length": 1.5, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, -2.2], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, -2], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 1.46], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, 0, -0.84], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, 0.36], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, -0.24], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, 1.5], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, -2.76], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, 1.26], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, -0.55], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, 8.24], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, -1.74], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 0.35], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, 2.5], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, -8.24], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 1.74], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, -0.35], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.0833": { + "post": [0, 1.36, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 10, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 12, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 0.12, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, 5.02, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, -0.57, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 1.48, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.0833": { + "post": [0, -1.36, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, -10, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, -12, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, -0.12, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, -5.02, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0.57, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, -1.48, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.125": { + "post": [0, 0, 5], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 0, 4], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, -4.78], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, 0, 3.25], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, -1.71], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 1.35], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.0833": { + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "0.1667": { + "post": [0, 0, 6.5], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 0, 13], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 0, -7.5], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, 5], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, -2.53], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 1.23], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctozolt_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctozolt_fetus.animation.json index b6f25e58ea..c2f3d2f146 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctozolt_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/arctozolt_fetus.animation.json @@ -5,26 +5,495 @@ "loop": true, "bones": { "body": { - "rotation": [15, 0, 0], - "position": [0, 0, 1.2] + "rotation": ["15+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "math.sin(q.anim_time*90*0.5-45)*0.8", "1+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "arm_right": { - "rotation": [15, -70, 0] + "rotation": ["15+math.sin(q.anim_time*90*18+30)*0.5", -70, 0] }, "tail": { - "rotation": [-15, 0, 0] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-210)*-3", 0, 0] }, "tail2": { - "rotation": [-30, 0, 0] + "rotation": ["-30+math.sin(q.anim_time*90*0.5-250)*-3", 0, 0] }, "leg_right": { - "rotation": [10, -65, 0] + "rotation": ["10+math.sin(q.anim_time*90*0.5)*5", -65, 0] }, "arm_left": { - "rotation": [15, 70, 0] + "rotation": ["15+math.sin(q.anim_time*90*18-60)*0.5", 70, 0] }, "leg_left": { - "rotation": [10, 65, 0] + "rotation": ["10+math.sin(q.anim_time*90*0.5)*5", 65, 0] + }, + "head": { + "rotation": ["10+math.sin(q.anim_time*90*1-120)*3", "math.sin(q.anim_time*90*18+30)*0.4", "math.sin(q.anim_time*90*1.5+100)*2"] + }, + "head_feather_right": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", "math.sin(q.anim_time*90*18-60)*0.8", "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_right2": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", "math.sin(q.anim_time*90*18-60)*0.8", "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_left": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", "math.sin(q.anim_time*90*18-60)*0.8", "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_left2": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", "math.sin(q.anim_time*90*18-60)*0.8", "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", "math.sin(q.anim_time*90*18-60)*0.8", "math.sin(q.anim_time*90*1.5+150)*-2"] + } + } + }, + "animation.arctozolt_fetus.quirk1": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [5.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [-2.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.25": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-26, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-4.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-13.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0833": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [-1.19, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "jaw": { + "rotation": { + "0.375": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [19, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [33.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-6, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.4583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.arctozolt_fetus.quirk2": { + "animation_length": 3, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.8333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, -3, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, 20.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 1.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 25.5, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [0, 5.5, 0], + "lerp_mode": "catmullrom" + }, + "2.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 3, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, -20.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, -1.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, -25.5, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [0, -5.5, 0], + "lerp_mode": "catmullrom" + }, + "2.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-7.71, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [-0.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [11.32, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [4, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [7.44, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/cranidos_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/cranidos_fetus.animation.json index 4a7f4668ec..651e8e8583 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/cranidos_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/cranidos_fetus.animation.json @@ -5,47 +5,157 @@ "loop": true, "bones": { "body": { - "rotation": [-5, 0, 0], - "position": [0, -2, 1] + "rotation": ["-5+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "-2+math.sin(q.anim_time*90*0.5-45)*0.8", "1+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "neck": { - "rotation": [20, 0, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5-210)*3", 0, 0] }, "head": { - "rotation": [10, 0, 0] + "rotation": ["10+math.sin(q.anim_time*90*0.5-240)*5", 0, 0] }, "tail": { - "rotation": [-20, 0, 0] + "rotation": ["-20+math.sin(q.anim_time*90*0.5-210)*-3", 0, 0] }, "tail2": { - "rotation": [-20, 0, 0] + "rotation": ["-20+math.sin(q.anim_time*90*0.5-250)*-5", 0, 0] }, "arm_right": { - "rotation": [-210, -55, 222] + "rotation": [-210, -55, "222+math.sin(q.anim_time*90*0.5-240)*6"] }, "leg_right": { - "rotation": [-65, 10, 0] + "rotation": ["-65+math.sin(q.anim_time*90*0.5-210)*-6", 10, 0] }, "leg_right2": { - "rotation": [-45, 0, 0] + "rotation": ["-45+math.sin(q.anim_time*90*0.5-250)*9", 0, 0], + "position": [0, 0, 0.5] }, "foot_right": { - "rotation": [80, 0, 0] + "rotation": ["80+math.sin(q.anim_time*90*0.5-280)*9", 0, 0] }, "tail3": { - "rotation": [-15, 0, 0] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-290)*-8", 0, 0] }, "leg_left": { - "rotation": [-65, -10, 0] + "rotation": ["-65+math.sin(q.anim_time*90*0.5-210)*6", -10, 0] }, "leg_left2": { - "rotation": [-45, 0, 0] + "rotation": ["-45+math.sin(q.anim_time*90*0.5-250)*-9", 0, 0], + "position": [0, 0, 0.5] }, "foot_left": { - "rotation": [80, 0, 0] + "rotation": ["80+math.sin(q.anim_time*90*0.5-280)*-9", 0, 0] }, "arm_left": { - "rotation": [-210, 55, -222] + "rotation": [-210, 55, "-222+math.sin(q.anim_time*90*0.5-240)*6"] + }, + "jaw": { + "rotation": ["7.5+math.sin(q.anim_time*90*0.5-200)*-6", 0, 0] + } + } + }, + "animation.cranidos_fetus.quirk": { + "animation_length": 3, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [8, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.8333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.875": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "jaw": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [-7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [18.4, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-13.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-3.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracovish_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracovish_fetus.animation.json index dac8eb9908..83b0dc948e 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracovish_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracovish_fetus.animation.json @@ -5,44 +5,699 @@ "loop": true, "bones": { "body": { - "rotation": [15, 0, 0], - "position": [0, 0, 1.2] + "rotation": ["15+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "0.5+math.sin(q.anim_time*90*0.5-45)*0.8", 2.1] }, "tail": { - "rotation": [-10, 0, 0] + "rotation": ["-10+math.sin(q.anim_time*90*0.5-210)*2", 0, 0] }, "tail2": { - "rotation": [-10, 0, 0] + "rotation": ["-15+math.sin(q.anim_time*90*0.5-210)*-5", 0, 0] }, "leg_right": { - "rotation": [10, 0, -5] + "rotation": ["35+math.sin(q.anim_time*90*0.75-90+180)*7", 2, -14] }, "leg_right2": { - "rotation": [-30, 0, 0] + "rotation": ["-40+math.sin(q.anim_time*90*0.75-30+180)*-9", 0, 0] }, "foot_right": { - "rotation": [60, 0, 0] + "rotation": ["-15+math.sin(q.anim_time*90*0.75-60+180)*-4", 0, 0] }, "head": { - "rotation": [-5, 0, 0] + "rotation": ["-10+math.sin(q.anim_time*90*0.5-240)*3", 0, 0] }, "jaw": { - "rotation": [-12.5, 0, 0] + "rotation": ["-12.5+math.sin(q.anim_time*90*0.75-170)*5", 0, 0] }, "leg_left": { - "rotation": [10, 0, 5] + "rotation": ["35+math.sin(q.anim_time*90*0.75-90+180)*-7", -2, 14] }, "leg_left2": { - "rotation": [-30, 0, 0] + "rotation": ["-40+math.sin(q.anim_time*90*0.75-30+180)*9", 0, 0] }, "foot_left": { - "rotation": [60, 0, 0] + "rotation": ["-15+math.sin(q.anim_time*90*0.75-60+180)*4", 0, 0] }, "fin_right": { - "rotation": [0, 0, 75] + "rotation": [0, 0, "60+math.sin(q.anim_time*90*0.75-210)*12"] }, "fin_left": { - "rotation": [0, 0, -75] + "rotation": [0, 0, "-60+math.sin(q.anim_time*90*0.75-210)*-12"] + } + } + }, + "animation.dracovish_fetus.quirk1": { + "animation_length": 3, + "bones": { + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 2.5], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, -0.8], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 0.3], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, 0, -3], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 2], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 0, -1.2], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [0, 0, -8], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, 8.5], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0, 0, 3], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, 7.5], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, -7.86], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 12.29], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [0, 0, -2.87], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "fin_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [0, 0, 7.5], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, 0, -7.86], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 12.29], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [0, 0, -2.87], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.dracovish_fetus.quirk2": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [1.75, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0417": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-6, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0.53, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [11.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [23, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [30.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-11.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-15, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [19.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-7, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.dracovish_fetus.quirk3": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [1.75, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0417": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-6, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0.53, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [11.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.7917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [23, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [30.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-11.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-15, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [-18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [19.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-7, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracozolt_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracozolt_fetus.animation.json index a8da04b568..2f61e547c7 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracozolt_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/dracozolt_fetus.animation.json @@ -5,68 +5,1055 @@ "loop": true, "bones": { "body": { - "rotation": [-10, 0, 0], - "position": [0, 0, 0.7] + "rotation": ["-10+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "math.sin(q.anim_time*90*0.5-45)*0.8", "1+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "tail": { - "rotation": [-25, 0, 0] + "rotation": ["-25+math.sin(q.anim_time*90*0.5-60)*6", 0, 0] }, "tail2": { - "rotation": [-25, 0, 0] + "rotation": ["-25+math.sin(q.anim_time*90*0.5-90)*9", 0, 0] }, "leg_right": { - "rotation": [-37.5, 10, 5] + "rotation": ["-40+math.sin(q.anim_time*90*0.75-90)*-7", 10, 5] }, "leg_right2": { - "rotation": [40, 0, 0] + "rotation": ["40+math.sin(q.anim_time*90*0.75-30)*7", 0, 0] }, "foot_right": { - "rotation": [-60, 0, 0] + "rotation": ["15+math.sin(q.anim_time*90*0.75-60)*4", 0, 0] }, "leg_left": { - "rotation": [-37.5, -10, -5] + "rotation": ["-40+math.sin(q.anim_time*90*0.75-90+180)*-7", -10, -5] }, "leg_left2": { - "rotation": [40, 0, 0] + "rotation": ["40+math.sin(q.anim_time*90*0.75-30+180)*7", 0, 0] }, "foot_left": { - "rotation": [-60, 0, 0] + "rotation": ["15+math.sin(q.anim_time*90*0.75-60+180)*4", 0, 0] }, "torso2": { - "rotation": [5, 0, 0] + "rotation": ["5+math.sin(q.anim_time*90*1)*2", 0, "math.sin(q.anim_time*90*1.5)*1"] }, "arm_right": { - "rotation": [15, -50, -55] + "rotation": ["46+math.sin(q.anim_time*90*1-30)*-6", -1, 12] }, "arm_right2": { - "rotation": [0, -80, 0] + "rotation": ["-45+math.sin(q.anim_time*90*1-60)*4", 0, 0] }, "arm_fin_right": { - "rotation": [0, -2, 15] + "rotation": [0, 0, "27.5+math.sin(q.anim_time*90*0.5-90)*8"] }, "arm_right3": { - "rotation": [0, 70, 0] - }, - "arm_left": { - "rotation": [15, 50, 55] - }, - "arm_left2": { - "rotation": [0, 80, 0] - }, - "arm_fin_left": { - "rotation": [0, 2, -15] - }, - "arm_left3": { - "rotation": [0, -70, 0] + "rotation": ["50+math.sin(q.anim_time*90*1-30)*8", 0, 0] }, "neck": { - "rotation": [7, 0, 0] + "rotation": ["7+math.sin(q.anim_time*90*1-60)*1", 0, "math.sin(q.anim_time*90*1.5+90)*3"] }, "neck2": { - "rotation": [67.5, 0, 0] + "rotation": ["67.5+math.sin(q.anim_time*90*1-90)*1", 0, "math.sin(q.anim_time*90*1.5+90)*3"] }, "head": { - "rotation": [60, 0, 0] + "rotation": ["60+math.sin(q.anim_time*90*1-120)*3", "math.sin(q.anim_time*90*1.5+30)*-5", "math.sin(q.anim_time*90*1.5+100)*2"] + }, + "head_feather_right": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", 0, "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_right2": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", 0, "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_left": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", 0, "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather_left2": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", 0, "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "head_feather": { + "rotation": ["math.sin(q.anim_time*90*1-150)*5", 0, "math.sin(q.anim_time*90*1.5+150)*5"] + }, + "jaw": { + "rotation": ["6+math.sin(q.anim_time*90*1+90)*4", 0, 0] + }, + "arm_left": { + "rotation": ["46+math.sin(q.anim_time*90*1-30)*-6", 1, -12] + }, + "arm_left2": { + "rotation": ["-45+math.sin(q.anim_time*90*1-60)*4", 0, 0] + }, + "arm_fin_left": { + "rotation": [0, 0, "-27.5+math.sin(q.anim_time*90*0.5-90)*8"] + }, + "arm_left3": { + "rotation": ["50+math.sin(q.anim_time*90*1-30)*8", 0, 0] + } + } + }, + "animation.dracozolt_fetus.quirk1": { + "animation_length": 3.5, + "bones": { + "torso2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [1.18, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [-1.15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [10.43, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0.87, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_right3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-1.01, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [-0.04, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-7.03, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [-0.44, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [1.18, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [-1.15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [10.43, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0.87, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "arm_left3": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-1.01, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [-0.04, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-7.03, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [-0.44, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [4, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-13, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "neck2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-12, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [-12, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-21.73, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [-24.53, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [-3.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [6, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-4, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-18, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [-18, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.75": { + "post": [-3.9, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [4.33, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.67, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [19.59, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-4.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-1.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [4.33, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.67, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [19.59, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-4.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-1.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [4.33, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.67, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [19.59, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-4.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-1.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [4.33, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.67, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [19.59, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-4.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-1.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head_feather": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [4.33, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.67, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [19.59, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-4.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-1.41, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "jaw": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.375": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [13.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [-5.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [43.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.dracozolt_fetus.quirk2": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "torso2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.75": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.2917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [-6, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.2083": { + "post": [-1.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "1.625": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-3.86, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-23, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-30.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_right2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [11.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-19.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + } + } + }, + "animation.dracozolt_fetus.quirk3": { + "animation_length": 4, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.125": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "torso2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.75": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.2917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [-6, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.2083": { + "post": [-1.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail2": { + "rotation": { + "1.625": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": { + "post": [-3.86, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-23, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-30.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "leg_left2": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [16, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [11.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "foot_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.3333": { + "post": [18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-19.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [7, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-16, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage1.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage1.animation.json new file mode 100644 index 0000000000..b9b351199a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage1.animation.json @@ -0,0 +1,13 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.embryo_stage1.gooping": { + "loop": true, + "bones": { + "embryo": { + "position": ["-0.1*(math.sin(q.anim_time*90*1)*1+1)", "-0.05*(math.sin(q.anim_time*90*2)*1+1)", "-0.1*(math.sin(q.anim_time*90*1+90)*1+1)"] + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage2.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage2.animation.json new file mode 100644 index 0000000000..0504a6dff4 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage2.animation.json @@ -0,0 +1,16 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.embryo_stage2.gooping": { + "animation_length": 13.45833, + "bones": { + "cell": { + "position": ["-0.1*(math.sin(q.anim_time*90*1+90)*1+1)", "0.1*(math.sin(q.anim_time*90*1+180)*1+1)", "-0.1*(math.sin(q.anim_time*90*1)*1+1)"] + }, + "cell2": { + "position": ["-0.1*(math.sin(q.anim_time*90*1+180)*1+1)", "-0.1*(math.sin(q.anim_time*90*1+180)*1+1)", "-0.1*(math.sin(q.anim_time*90*1+90)*1+1)"] + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage3.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage3.animation.json new file mode 100644 index 0000000000..8c67fe85fc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/embryo_stage3.animation.json @@ -0,0 +1,86 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.embryo_stage3.gooping": { + "loop": true, + "bones": { + "cell1": { + "position": ["0.05*(math.sin(q.anim_time*90*1+180)*1+1)", 0, "-0.05*(math.sin(q.anim_time*90*1+270)*1+1)"] + }, + "cell2": { + "position": ["-0.05*(math.sin(q.anim_time*90*1+180)*1+1)", 0, "0.05*(math.sin(q.anim_time*90*1+270)*1+1)"] + }, + "cell3": { + "position": ["-0.05*(math.sin(q.anim_time*90*1)*1+1)", "0.05*(math.sin(q.anim_time*90*1+90)*1+1)", 0] + }, + "cell4": { + "position": ["-0.05*(math.sin(q.anim_time*90*1)*1+1)", "0.05*(math.sin(q.anim_time*90*1+90)*1+1)", 0] + }, + "cell5": { + "position": [0, "-0.05*(math.sin(q.anim_time*90*1+130)*1+1)", "-0.05*(math.sin(q.anim_time*90*1+40)*1+1)"] + }, + "cell6": { + "position": [0, "0.05*(math.sin(q.anim_time*90*1+150)*1+1)", "0.05*(math.sin(q.anim_time*90*1+60)*1+1)"] + }, + "embryo": { + "position": ["-0.1*(math.sin(q.anim_time*90*0.5)*1+1)", "-0.05*(math.sin(q.anim_time*90*1)*1+1)", "-0.1*(math.sin(q.anim_time*90*0.5+90)*1+1)"] + } + } + }, + "animation.embryo_stage3.pulse": { + "loop": true, + "animation_length": 0.70833, + "bones": { + "embryo_stage3": { + "scale": { + "0.2083": [1, 1, 1], + "0.2917": ["1+math.sin(q.anim_time*90*1-10)*0.25", "1+math.sin(q.anim_time*90*1)*0.25", "1+math.sin(q.anim_time*90*1-10)*0.25"], + "0.4167": [1, 1, 1] + } + }, + "cell1": { + "scale": { + "0.3333": [1, 1, 1], + "0.4167": ["1+math.sin(q.anim_time*90*1-50)*2", "1+math.sin(q.anim_time*90*1-40)*2", "1+math.sin(q.anim_time*90*1-50)*2"], + "0.625": [1, 1, 1] + } + }, + "cell2": { + "scale": { + "0.0": [1, 1, 1], + "0.0833": ["1+math.sin(q.anim_time*90*1-10)*2", "1+math.sin(q.anim_time*90*1)*2", "1+math.sin(q.anim_time*90*1-10)*2"], + "0.2917": [1, 1, 1] + } + }, + "cell3": { + "scale": { + "0.1667": [1, 1, 1], + "0.25": ["1+math.sin(q.anim_time*90*1-30)*2", "1+math.sin(q.anim_time*90*1-20)*2", "1+math.sin(q.anim_time*90*1-30)*2"], + "0.4583": [1, 1, 1] + } + }, + "cell5": { + "scale": { + "0.0833": [1, 1, 1], + "0.1667": ["1+math.sin(q.anim_time*90*1-20)*2", "1+math.sin(q.anim_time*90*1-10)*2", "1+math.sin(q.anim_time*90*1-20)*2"], + "0.375": [1, 1, 1] + } + }, + "cell6": { + "scale": { + "0.25": [1, 1, 1], + "0.3333": ["1+math.sin(q.anim_time*90*1-40)*2", "1+math.sin(q.anim_time*90*1-30)*2", "1+math.sin(q.anim_time*90*1-40)*2"], + "0.5417": [1, 1, 1] + } + }, + "cell4": { + "scale": { + "0.1667": [1, 1, 1], + "0.25": ["1+math.sin(q.anim_time*90*1-10)*1", "1+math.sin(q.anim_time*90*1)*1", "1+math.sin(q.anim_time*90*1-10)*1"], + "0.4583": [1, 1, 1] + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/omanyte_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/omanyte_fetus.animation.json index f6ed1e9608..790769d151 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/omanyte_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/omanyte_fetus.animation.json @@ -5,8 +5,431 @@ "loop": true, "bones": { "body": { - "rotation": [-5, 0, 0], - "position": [0, 0, -1] + "rotation": ["-25+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "0.25+math.sin(q.anim_time*90*0.5-45)*0.8", "-0.25+math.sin(q.anim_time*90*0.25-90)*0.1"] + }, + "torso": { + "rotation": ["5+math.sin(q.anim_time*90*0.5-210)*1", "math.sin(q.anim_time*90*0.75-90)*-0.5", "math.sin(q.anim_time*90*1-30)*-2"] + }, + "closed_pupil_right": { + "position": [0, -0.2, 0] + }, + "closed_pupil_left": { + "position": [0, -0.2, 0] + }, + "front_leg_left": { + "rotation": ["20.1035+math.sin(q.anim_time*90*0.5-240)*5", "-10.9239+math.sin(q.anim_time*90*0.75-120)*-4", -3.703] + }, + "front_leg_middle": { + "rotation": ["15+math.sin(q.anim_time*90*0.5-240)*5", "math.sin(q.anim_time*90*0.75-120)*-4", 0] + }, + "front_leg_right": { + "rotation": ["20.1035+math.sin(q.anim_time*90*0.5-240)*5", "10.9239+math.sin(q.anim_time*90*0.75-120)*-4", 3.703] + }, + "right_back_leg": { + "rotation": ["-8.6029+math.sin(q.anim_time*90*0.5-310)*6", "-2.9203+math.sin(q.anim_time*90*0.75-220)*-1", -19.47251] + }, + "right_front_leg": { + "rotation": ["2.5+math.sin(q.anim_time*90*0.5-280)*5", "5+math.sin(q.anim_time*90*0.75-170)*-3", -8] + }, + "left_back_leg": { + "rotation": ["-8.6029+math.sin(q.anim_time*90*0.5-310)*6", "2.9203+math.sin(q.anim_time*90*0.75-220)*-1", 19.47251] + }, + "left_front_leg": { + "rotation": ["2.5+math.sin(q.anim_time*90*0.5-280)*5", "-5+math.sin(q.anim_time*90*0.75-170)*-3", 8] + } + } + }, + "animation.omanyte_fetus.quirk": { + "animation_length": 9.5, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [11.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [-2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [3, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "torso": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [-6.39, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [2.2, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": [52.5, 0, 0], + "6.4167": [52.5, 0, 0], + "6.75": { + "pre": [44.6, 0, 0], + "post": [44.6, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.3333": { + "post": [11.8, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + }, + "position": { + "1.0": [0, 0, 0], + "1.125": [0, -0.3, 0], + "1.25": [0, 2, 2], + "6.0": [0, 0.6, 1.7], + "6.4167": [0, 0, 0] + }, + "scale": { + "1.0": [1, 1, 1], + "1.1667": [0.75, 1, 1.2], + "6.1667": [0.75, 1, 1.2], + "6.4167": [1, 1, 1] + } + }, + "front_leg_left": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "front_leg_middle": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "front_leg_right": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "right_back_leg": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "right_front_leg": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "left_back_leg": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "left_front_leg": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4167": { + "post": [8.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-11.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-92.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "6.5833": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.0": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "7.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "8.2083": { + "post": [-6.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "9.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/shieldon_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/shieldon_fetus.animation.json index e9ac92b317..844491524d 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/shieldon_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/shieldon_fetus.animation.json @@ -5,34 +5,130 @@ "loop": true, "bones": { "body": { - "rotation": [5, 0, 0] + "rotation": ["20+math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "0.25+math.sin(q.anim_time*90*0.5-45)*0.8", "-0.25+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "torso": { "rotation": [10, 0, 0] }, "neck": { - "rotation": [25, 0, 0] + "rotation": ["32.5+math.sin(q.anim_time*90*0.5-210)*3", 0, 0] }, "head": { - "rotation": [-50, 0, 0] + "rotation": ["-72.5+math.sin(q.anim_time*90*0.5-240)*6", 0, "math.sin(q.anim_time*90*1-60)*-4"] }, "tail": { - "rotation": [-25, 0, 0] + "rotation": ["-25+math.sin(q.anim_time*90*0.5-240)*-6", 0, 0] }, "tail2": { - "rotation": [-25, 0, 0] + "rotation": ["-25+math.sin(q.anim_time*90*0.5-270)*-10", 0, 0] }, "arm_right": { - "rotation": [-207, -45, 223] + "rotation": [-207, -45, "223+math.sin(q.anim_time*90*0.5-240)*6"], + "position": [0, -0.1, 0] }, "leg_right": { - "rotation": [188, -38, -200] + "rotation": [188, -38, "-200+math.sin(q.anim_time*90*0.5-240)*-6"] }, "arm_left": { - "rotation": [-207, 45, -223] + "rotation": [-207, 45, "-223+math.sin(q.anim_time*90*0.5-240)*-6"], + "position": [0, -0.1, 0] }, "leg_left": { - "rotation": [188, 38, 200] + "rotation": [188, 38, "200+math.sin(q.anim_time*90*0.5-240)*6"] + } + } + }, + "animation.shieldon_fetus.quirk": { + "animation_length": 2, + "bones": { + "body": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 0, -7], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, -3.5], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "head": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, 10, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, -10, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 7.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, -3.5, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, 1.5, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail": { + "rotation": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 0, -7], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [0, 0, -3.5], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/substitute_fetus.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/substitute_fetus.animation.json index 857f0b5d82..c884f90f92 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/substitute_fetus.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/animations/substitute_fetus.animation.json @@ -5,7 +5,8 @@ "loop": true, "bones": { "body": { - "position": [0, -2.2, 0] + "rotation": ["math.sin(q.anim_time*90*0.5-180)*3", "math.sin(q.anim_time*90*0.75-60)*-2", "math.sin(q.anim_time*90*1)*1"], + "position": ["math.sin(q.anim_time*90*0.25)*0.2", "0.25+math.sin(q.anim_time*90*0.5-45)*0.8", "-0.25+math.sin(q.anim_time*90*0.25-90)*0.1"] }, "torso": { "rotation": [-5, 0, 0] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/aerodactyl_fetus.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/aerodactyl_fetus.geo.json index c103c7b166..823d1e4d95 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/aerodactyl_fetus.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/aerodactyl_fetus.geo.json @@ -13,7 +13,7 @@ "bones": [ { "name": "aerodactyl", - "pivot": [0, 10.5, 0] + "pivot": [0, 0, 0] }, { "name": "body", diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/archen_fetus.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/archen_fetus.geo.json index de62827b9d..b100c48537 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/archen_fetus.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/archen_fetus.geo.json @@ -82,15 +82,21 @@ "parent": "tail", "pivot": [-1, 2.7, 1.5], "cubes": [ - {"origin": [-0.5, -0.3, 1], "size": [1, 3, 1], "inflate": 0.01, "uv": [21, 22]}, + {"origin": [-0.5, -0.3, 1], "size": [1, 3, 1], "inflate": 0.01, "uv": [21, 22]} + ] + }, + { + "name": "tail3", + "parent": "tail2", + "pivot": [0, 0.2, 1.5], + "cubes": [ {"origin": [0, -2.3, 0], "size": [0, 3, 2], "uv": [28, 0]} ] }, { "name": "arms", "parent": "torso", - "pivot": [0, 9.15, 1.5], - "rotation": [5, 0, 0] + "pivot": [0, 9.15, 1.5] }, { "name": "arm_right", diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracovish_fetus.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracovish_fetus.geo.json index 33ce0f182e..0845881898 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracovish_fetus.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracovish_fetus.geo.json @@ -7,8 +7,8 @@ "texture_width": 64, "texture_height": 64, "visible_bounds_width": 2, - "visible_bounds_height": 3.5, - "visible_bounds_offset": [0, 1.25, 0] + "visible_bounds_height": 2.5, + "visible_bounds_offset": [0, 0.75, 0] }, "bones": [ { @@ -112,9 +112,9 @@ { "name": "foot_right", "parent": "leg_right2", - "pivot": [-3.9, 22.8, 0.8], + "pivot": [-3.9, 21.8, -0.2], "cubes": [ - {"origin": [-4.9, 22.8, -1.2], "size": [3, 4, 2], "inflate": 0.03, "uv": [0, 57]} + {"origin": [-4.9, 21.8, -1.2], "size": [3, 4, 2], "inflate": 0.03, "pivot": [-3.4, 22.8, -0.2], "rotation": [90, 0, 0], "uv": [0, 57]} ] }, { @@ -136,9 +136,9 @@ { "name": "foot_left", "parent": "leg_left2", - "pivot": [3.9, 22.8, 0.8], + "pivot": [3.9, 21.8, -0.2], "cubes": [ - {"origin": [1.9, 22.8, -1.2], "size": [3, 4, 2], "inflate": 0.03, "uv": [10, 57], "mirror": true} + {"origin": [1.9, 21.8, -1.2], "size": [3, 4, 2], "inflate": 0.03, "pivot": [3.4, 22.8, -0.2], "rotation": [90, 0, 0], "uv": [10, 57], "mirror": true} ] } ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracozolt_fetus.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracozolt_fetus.geo.json index 0bbcbfd2ea..8ed4814f90 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracozolt_fetus.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/dracozolt_fetus.geo.json @@ -6,7 +6,7 @@ "identifier": "geometry.dracozolt_fetus", "texture_width": 64, "texture_height": 32, - "visible_bounds_width": 3, + "visible_bounds_width": 2, "visible_bounds_height": 3.5, "visible_bounds_offset": [0, 1.25, 0] }, @@ -45,31 +45,31 @@ "parent": "torso2", "pivot": [-2, 13.35, 0.5], "cubes": [ - {"origin": [-5, 12.85, 0], "size": [3, 1, 1], "inflate": 0.01, "uv": [26, 30]} + {"origin": [-4, 12.85, 0], "size": [2, 1, 1], "inflate": 0.001, "pivot": [-2, 12.85, 0.5], "rotation": [0, -90, 0], "uv": [24, 30]} ] }, { "name": "arm_right2", "parent": "arm_right", - "pivot": [-5, 13.35, 1], + "pivot": [-2, 12.85, -1.5], "cubes": [ - {"origin": [-7, 12.85, 0], "size": [2, 1, 1], "uv": [28, 25]} + {"origin": [-7, 12.85, 0], "size": [3, 1, 1], "pivot": [-2, 13.35, 0.5], "rotation": [0, -90, 0], "uv": [28, 25]} ] }, { "name": "arm_fin_right", "parent": "arm_right2", - "pivot": [-6, 13.85, 1], + "pivot": [-2.5, 12.85, -3.5], "cubes": [ - {"origin": [-6, 13.85, 1], "size": [2, 3, 0], "uv": [10, 29]} + {"origin": [-6, 13.35, 0.5], "size": [2, 3, 0], "pivot": [-2, 12.85, 0.5], "rotation": [0, -90, -90], "uv": [10, 29]} ] }, { "name": "arm_right3", "parent": "arm_right2", - "pivot": [-7, 13.35, 0.05], + "pivot": [-2, 13.85, -4.5], "cubes": [ - {"origin": [-9, 12.85, 0], "size": [2, 1, 1], "inflate": 0.01, "uv": [26, 23]} + {"origin": [-9, 12.85, 0], "size": [2, 1, 1], "inflate": 0.001, "pivot": [-2, 13.35, 0.5], "rotation": [0, -90, 0], "uv": [26, 23]} ] }, { @@ -77,31 +77,31 @@ "parent": "torso2", "pivot": [2, 13.35, 0.5], "cubes": [ - {"origin": [2, 12.85, 0], "size": [3, 1, 1], "inflate": 0.01, "uv": [18, 30]} + {"origin": [2, 12.85, 0], "size": [2, 1, 1], "inflate": 0.001, "pivot": [2, 12.85, 0.5], "rotation": [0, 90, 0], "uv": [18, 30], "mirror": true} ] }, { "name": "arm_left2", "parent": "arm_left", - "pivot": [5, 13.35, 1], + "pivot": [2, 12.85, -1.5], "cubes": [ - {"origin": [5, 12.85, 0], "size": [2, 1, 1], "uv": [28, 27]} + {"origin": [4, 12.85, 0], "size": [3, 1, 1], "pivot": [2, 13.35, 0.5], "rotation": [0, 90, 0], "uv": [28, 27], "mirror": true} ] }, { "name": "arm_fin_left", "parent": "arm_left2", - "pivot": [6, 13.85, 1], + "pivot": [2.5, 12.85, -3.5], "cubes": [ - {"origin": [4, 13.85, 1], "size": [2, 3, 0], "uv": [6, 29]} + {"origin": [4, 13.35, 0.5], "size": [2, 3, 0], "pivot": [2, 12.85, 0.5], "rotation": [0, 90, 90], "uv": [6, 29], "mirror": true} ] }, { "name": "arm_left3", "parent": "arm_left2", - "pivot": [7, 13.35, 0.05], + "pivot": [2, 13.85, -4.5], "cubes": [ - {"origin": [7, 12.85, 0], "size": [2, 1, 1], "inflate": 0.01, "uv": [36, 21]} + {"origin": [7, 12.85, 0], "size": [2, 1, 1], "inflate": 0.001, "pivot": [2, 13.35, 0.5], "rotation": [0, 90, 0], "uv": [36, 21], "mirror": true} ] }, { @@ -225,9 +225,9 @@ { "name": "foot_right", "parent": "leg_right2", - "pivot": [-3.9, 0.5, 0.2], + "pivot": [-3.9, 1.5, -0.8], "cubes": [ - {"origin": [-4.9, -3.5, -1.8], "size": [3, 4, 2], "inflate": 0.03, "uv": [18, 23]} + {"origin": [-4.9, -2.5, -1.8], "size": [3, 4, 2], "inflate": 0.03, "pivot": [-3.4, 0.5, -0.8], "rotation": [-90, 0, 0], "uv": [18, 23]} ] }, { @@ -249,9 +249,9 @@ { "name": "foot_left", "parent": "leg_left2", - "pivot": [3.9, 0.5, 0.2], + "pivot": [3.9, 1.5, -0.8], "cubes": [ - {"origin": [1.9, -3.5, -1.8], "size": [3, 4, 2], "inflate": 0.03, "uv": [8, 23]} + {"origin": [1.9, -2.5, -1.8], "size": [3, 4, 2], "inflate": 0.03, "pivot": [3.4, 0.5, -0.8], "rotation": [-90, 0, 0], "uv": [8, 23]} ] } ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage1.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage1.geo.json new file mode 100644 index 0000000000..0ba613a89f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage1.geo.json @@ -0,0 +1,29 @@ +{ + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.embryo_stage1", + "texture_width": 32, + "texture_height": 16, + "visible_bounds_width": 2, + "visible_bounds_height": 1.5, + "visible_bounds_offset": [0, 0.25, 0] + }, + "bones": [ + { + "name": "embryo_stage1", + "pivot": [0, 0, 0] + }, + { + "name": "embryo", + "parent": "embryo_stage1", + "pivot": [0, 1, 0], + "cubes": [ + {"origin": [-1, 0, -1], "size": [2, 2, 2], "uv": [12, 8]} + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage2.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage2.geo.json new file mode 100644 index 0000000000..16f641b2c8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage2.geo.json @@ -0,0 +1,37 @@ +{ + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.embryo_stage2", + "texture_width": 32, + "texture_height": 16, + "visible_bounds_width": 2, + "visible_bounds_height": 1.5, + "visible_bounds_offset": [0, 0.25, 0] + }, + "bones": [ + { + "name": "embryo_stage2", + "pivot": [0, 0, 0] + }, + { + "name": "cell", + "parent": "embryo_stage2", + "pivot": [-0.5, 1, 0.5], + "cubes": [ + {"origin": [-1.5, 0, -0.5], "size": [2, 2, 2], "uv": [24, 4]} + ] + }, + { + "name": "cell2", + "parent": "embryo_stage2", + "pivot": [0.5, 2, -0.5], + "cubes": [ + {"origin": [-0.5, 1, -1.5], "size": [2, 2, 2], "uv": [24, 0]} + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage3.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage3.geo.json new file mode 100644 index 0000000000..dd4daf6c27 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/embryo_stage3.geo.json @@ -0,0 +1,77 @@ +{ + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.embryo_stage3", + "texture_width": 32, + "texture_height": 16, + "visible_bounds_width": 2, + "visible_bounds_height": 1.5, + "visible_bounds_offset": [0, 0.25, 0] + }, + "bones": [ + { + "name": "embryo_stage3", + "pivot": [0.5, 2.5, 0.5] + }, + { + "name": "embryo", + "parent": "embryo_stage3", + "pivot": [0, 0, 0], + "cubes": [ + {"origin": [-1, 1, -1], "size": [3, 3, 3], "inflate": 0.01, "uv": [0, 8]} + ] + }, + { + "name": "cell1", + "parent": "embryo", + "pivot": [0, 1, 1], + "cubes": [ + {"origin": [-1, 0, 0], "size": [2, 2, 2], "inflate": -0.02, "uv": [16, 0]} + ] + }, + { + "name": "cell2", + "parent": "embryo", + "pivot": [1, 4, 0], + "cubes": [ + {"origin": [0, 3, -1], "size": [2, 2, 2], "inflate": -0.02, "uv": [0, 0]} + ] + }, + { + "name": "cell3", + "parent": "embryo", + "pivot": [1, 2, -1], + "cubes": [ + {"origin": [0, 1, -2], "size": [2, 2, 2], "inflate": -0.02, "uv": [0, 4]} + ] + }, + { + "name": "cell4", + "parent": "embryo", + "pivot": [1, 2, 2], + "cubes": [ + {"origin": [0, 1, 1], "size": [2, 2, 2], "inflate": -0.02, "uv": [8, 4]} + ] + }, + { + "name": "cell5", + "parent": "embryo", + "pivot": [2, 3, 1], + "cubes": [ + {"origin": [1, 2, 0], "size": [2, 2, 2], "inflate": -0.02, "uv": [16, 4]} + ] + }, + { + "name": "cell6", + "parent": "embryo", + "pivot": [-1, 2, 0], + "cubes": [ + {"origin": [-2, 1, -1], "size": [2, 2, 2], "inflate": -0.02, "uv": [8, 0]} + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/omanyte_fetus.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/omanyte_fetus.geo.json index 91235e791c..ec0a2f8b9b 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/omanyte_fetus.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/models/omanyte_fetus.geo.json @@ -18,134 +18,134 @@ { "name": "body", "parent": "omanyte_fetus", - "pivot": [0, 4, -2] + "pivot": [0, 7.5, 0] }, { "name": "shell", "parent": "body", - "pivot": [0, 5, -4.75], + "pivot": [0, 6, -4.75], "rotation": [-6, 0, 0], "cubes": [ - {"origin": [-3, 3, -3.75], "size": [6, 8, 9], "inflate": 0.02, "pivot": [0, 7, 2.25], "rotation": [-22.5, 0, 0], "uv": [0, 0]}, - {"origin": [-3.5, 2.45, -3.8], "size": [7, 2, 7], "inflate": 0.02, "pivot": [0, 7, 2.25], "rotation": [-22.5, 0, 0], "uv": [0, 17]}, - {"origin": [-3, 2.48, -3.35], "size": [6, 0, 6], "inflate": 0.02, "pivot": [0, 7, 2.15], "rotation": [-22.5, 0, 0], "uv": [-6, 26]}, - {"origin": [-0.5, 2.15, -3.89], "size": [1, 1, 1], "inflate": 0.021, "pivot": [0, 6.75, 2.25], "rotation": [-22.5, 0, 0], "uv": [21, 17]} + {"origin": [-3, 4, -3.75], "size": [6, 8, 9], "inflate": 0.02, "pivot": [0, 8, 2.25], "rotation": [-22.5, 0, 0], "uv": [0, 0]}, + {"origin": [-3.5, 3.45, -3.8], "size": [7, 2, 7], "inflate": 0.02, "pivot": [0, 8, 2.25], "rotation": [-22.5, 0, 0], "uv": [0, 17]}, + {"origin": [-3, 3.48, -3.35], "size": [6, 0, 6], "inflate": 0.02, "pivot": [0, 8, 2.15], "rotation": [-22.5, 0, 0], "uv": [-6, 26]}, + {"origin": [-0.5, 3.15, -3.89], "size": [1, 1, 1], "inflate": 0.021, "pivot": [0, 7.75, 2.25], "rotation": [-22.5, 0, 0], "uv": [21, 17]} ] }, { "name": "torso", "parent": "body", - "pivot": [0, 5, -5], + "pivot": [0, 6.6, -4], "cubes": [ - {"origin": [-2.5, 2.5, -4], "size": [5, 3, 4], "inflate": 0.01, "uv": [21, 0]} + {"origin": [-2.5, 3.6, -4], "size": [5, 3, 4], "inflate": 0.01, "uv": [21, 0]} ] }, { "name": "eyes", "parent": "torso", - "pivot": [0, 3.5, -3.75] + "pivot": [0, 4.6, -3.75] }, { "name": "eye_right", "parent": "eyes", - "pivot": [-1.85, 3.55, -3.75], + "pivot": [-1.85, 4.65, -3.75], "cubes": [ - {"origin": [-2.8, 2.5, -4.5], "size": [2, 2, 1], "uv": [0, 17]} + {"origin": [-2.8, 3.6, -4.5], "size": [2, 2, 1], "uv": [0, 17]} ] }, { "name": "closed_pupil_right", "parent": "eye_right", - "pivot": [-1.85, 3.55, -4.32], + "pivot": [-1.85, 4.65, -4.32], "cubes": [ - {"origin": [-2.3, 3.5, -4.22], "size": [1, 0, 0], "inflate": 0.3, "uv": [0, 1]} + {"origin": [-2.3, 4.6, -4.22], "size": [1, 0, 0], "inflate": 0.3, "uv": [0, 1]} ] }, { "name": "eye_left", "parent": "eyes", - "pivot": [1.85, 3.55, -3.75], + "pivot": [1.85, 4.65, -3.75], "cubes": [ - {"origin": [0.8, 2.5, -4.5], "size": [2, 2, 1], "uv": [0, 20]} + {"origin": [0.8, 3.6, -4.5], "size": [2, 2, 1], "uv": [0, 20]} ] }, { "name": "closed_pupil_left", "parent": "eye_left", - "pivot": [1.85, 3.55, -4.32], + "pivot": [1.85, 4.65, -4.32], "cubes": [ - {"origin": [1.3, 3.5, -4.22], "size": [1, 0, 0], "inflate": 0.3, "uv": [0, 0]} + {"origin": [1.3, 4.6, -4.22], "size": [1, 0, 0], "inflate": 0.3, "uv": [0, 0]} ] }, { "name": "front_legs", "parent": "torso", - "pivot": [0, 2.5, -4] + "pivot": [0, 3.6, -4] }, { "name": "front_leg_left", "parent": "front_legs", - "pivot": [1.55, 2.5, -4], + "pivot": [1.5, 3.6, -4], "cubes": [ - {"origin": [0.5, 0.5, -4], "size": [2, 2, 0], "uv": [0, 6]} + {"origin": [0.5, 1.6, -4], "size": [2, 2, 0], "uv": [0, 6]} ] }, { "name": "front_leg_middle", "parent": "front_legs", - "pivot": [0.05, 2.5, -4], + "pivot": [0, 3.6, -4], "cubes": [ - {"origin": [-0.5, 0.5, -4], "size": [1, 2, 0], "uv": [21, 0]} + {"origin": [-0.5, 1.6, -4], "size": [1, 2, 0], "uv": [21, 0]} ] }, { "name": "front_leg_right", "parent": "front_legs", - "pivot": [-1.45, 2.5, -4], + "pivot": [-1.5, 3.6, -4], "cubes": [ - {"origin": [-2.5, 0.5, -4], "size": [2, 2, 0], "uv": [0, 4]} + {"origin": [-2.5, 1.6, -4], "size": [2, 2, 0], "uv": [0, 4]} ] }, { "name": "right_legs", "parent": "torso", - "pivot": [-2.45, 2.5, -2] + "pivot": [-2.45, 3.6, -2] }, { "name": "right_back_leg", "parent": "right_legs", - "pivot": [-2.5, 2.5, -1], + "pivot": [-2.5, 3.61, -1], "cubes": [ - {"origin": [-2.5, 0.51, -2], "size": [0, 2, 2], "uv": [4, 2]} + {"origin": [-2.5, 1.61, -2], "size": [0, 2, 2], "uv": [4, 2]} ] }, { "name": "right_front_leg", "parent": "right_legs", - "pivot": [-2.5, 2.5, -3], + "pivot": [-2.5, 3.61, -3], "cubes": [ - {"origin": [-2.5, 0.51, -4], "size": [0, 2, 2], "uv": [4, -2]} + {"origin": [-2.5, 1.61, -4], "size": [0, 2, 2], "uv": [4, -2]} ] }, { "name": "left_legs", "parent": "torso", - "pivot": [2.45, 2.5, -2] + "pivot": [2.45, 3.6, -2] }, { "name": "left_back_leg", "parent": "left_legs", - "pivot": [2.5, 2.5, -1], + "pivot": [2.5, 3.61, -1], "cubes": [ - {"origin": [2.5, 0.51, -2], "size": [0, 2, 2], "uv": [4, 4], "mirror": true} + {"origin": [2.5, 1.61, -2], "size": [0, 2, 2], "uv": [4, 4], "mirror": true} ] }, { "name": "left_front_leg", "parent": "left_legs", - "pivot": [2.5, 2.5, -3], + "pivot": [2.5, 3.61, -3], "cubes": [ - {"origin": [2.5, 0.51, -4], "size": [0, 2, 2], "uv": [4, 0], "mirror": true} + {"origin": [2.5, 1.61, -4], "size": [0, 2, 2], "uv": [4, 0], "mirror": true} ] } ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/aerodactyl.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/aerodactyl.json index 600b9ddbf9..aa3aa75c53 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/aerodactyl.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/aerodactyl.json @@ -1,7 +1,19 @@ { - "maxScale": 0.7, - "yTranslation": 0.5, + "maxScale": 0.9, + "yTranslation": 0.1, + "yGrowthPoint": 0.6875, "animations": [ "bedrock(aerodactyl_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(shieldon_fetus, quirk)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/amaura.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/amaura.json index b8e837d57c..9ce008bbac 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/amaura.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/amaura.json @@ -1,8 +1,7 @@ { "maxScale": 1.0, "yTranslation": 0.0, - - + "yGrowthPoint": 0.5625, "animations": [ "bedrock(amaura_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/anorith.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/anorith.json index 055e045f9c..785f358370 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/anorith.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/anorith.json @@ -1,6 +1,7 @@ { "maxScale": 0.7, "yTranslation": 0.2, + "yGrowthPoint": 0.5625, "animations": [ "bedrock(anorith_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/archen.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/archen.json index 4bd2e6edd2..619f67a831 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/archen.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/archen.json @@ -1,9 +1,37 @@ { "maxScale": 0.7, "yTranslation": 0.2, - - + "yGrowthPoint": 0.5625, "animations": [ "bedrock(archen_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(archen_fetus, quirk1)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(archen_fetus, quirk2)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(archen_fetus, quirk3)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctovish.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctovish.json index 62d5039f58..ad973e3d17 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctovish.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctovish.json @@ -1,9 +1,20 @@ { - "maxScale": 1.0, + "maxScale": 0.85, "yTranslation": -0.3, - + "yGrowthPoint": 0.75, "animations": [ "bedrock(arctovish_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk1", + "animations": [ + "bedrock(arctovish_fetus, quirk1)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctozolt.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctozolt.json index 0a29d3d480..180abaabad 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctozolt.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/arctozolt.json @@ -1,9 +1,29 @@ { - "maxScale": 1.0, - "yTranslation": -0.3, - + "maxScale": 0.85, + "yTranslation": -0.2, + "yGrowthPoint": 0.75, "animations": [ "bedrock(arctozolt_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(arctozolt_fetus, quirk1)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(arctozolt_fetus, quirk2)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/cranidos.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/cranidos.json index 7f763ecf5e..d126663e3e 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/cranidos.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/cranidos.json @@ -1,7 +1,20 @@ { - "maxScale": 0.7, - "yTranslation": 0.2, + "maxScale": 1.0, + "yTranslation": 0, + "yGrowthPoint": 0.5625, + "animations": [ "bedrock(cranidos_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(cranidos_fetus, quirk)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracovish.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracovish.json index 34635e9014..f3e864625e 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracovish.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracovish.json @@ -1,9 +1,38 @@ { - "maxScale": 0.8, - "yTranslation": 0.05, - + "maxScale": 0.85, + "yTranslation": -0.2, + "yGrowthPoint": 0.75, "animations": [ "bedrock(dracovish_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk1)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk2)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk3)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracozolt.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracozolt.json index 29f6d9bd13..936408346c 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracozolt.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/dracozolt.json @@ -1,9 +1,39 @@ { - "maxScale": 1.0, - "yTranslation": -0.3, + "maxScale": 0.85, + "yTranslation": -0.1, + "yGrowthPoint": 0.625, "animations": [ "bedrock(dracozolt_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk1)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk2)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + }, + { + "name": "quirk", + "animations": [ + "bedrock(dracovish_fetus, quirk3)" + ], + "loopTimes": 1, + "minSeconds": 5, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage1.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage1.json new file mode 100644 index 0000000000..54fd9776f0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage1.json @@ -0,0 +1,8 @@ +{ + "maxScale": 1.0, + "yTranslation": 0.2, + "yGrowthPoint": 0.0625, + "animations": [ + "bedrock(embryo_stage1, gooping)" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage2.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage2.json new file mode 100644 index 0000000000..bb512c0630 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage2.json @@ -0,0 +1,9 @@ +{ + "maxScale": 1.0, + "yTranslation": 0.2, + "yGrowthPoint": 0.09375, + + "animations": [ + "bedrock(embryo_stage2, gooping)" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage3.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage3.json new file mode 100644 index 0000000000..74dc86a514 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/embryo_stage3.json @@ -0,0 +1,20 @@ +{ + "maxScale": 1.0, + "yTranslation": 0.2, + "yGrowthPoint": 0, + + "animations": [ + "bedrock(embryo_stage3, gooping)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(embryo_stage3, pulse)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/kabuto.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/kabuto.json index 4d8e7c9bc5..d04bc712b9 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/kabuto.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/kabuto.json @@ -1,6 +1,8 @@ { "maxScale": 0.7, "yTranslation": 0.2, + "yGrowthPoint": 0.3125, + "animations": [ "bedrock(kabuto_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/lileep.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/lileep.json index 91a875bc5d..d1aadb04f6 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/lileep.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/lileep.json @@ -1,6 +1,7 @@ { "maxScale": 0.7, "yTranslation": 0.2, + "yGrowthPoint": 0.625, "animations": [ "bedrock(lileep_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/omanyte.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/omanyte.json index 3e8bc10662..914dfc3b2f 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/omanyte.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/omanyte.json @@ -1,7 +1,20 @@ { - "maxScale": 0.7, - "yTranslation": 0.2, + "maxScale": 0.9, + "yTranslation": 0.1, + "yGrowthPoint": 0.4375, + "animations": [ "bedrock(omanyte_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(omanyte_fetus, quirk)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/shieldon.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/shieldon.json index 7ee4f2721c..daca18fcb8 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/shieldon.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/shieldon.json @@ -1,7 +1,19 @@ { - "maxScale": 0.7, - "yTranslation": 0.2, + "maxScale": 1.0, + "yTranslation": -0.2, + "yGrowthPoint": 0.5625, "animations": [ "bedrock(shieldon_fetus, sleep)" + ], + "quirks": [ + { + "name": "quirk", + "animations": [ + "bedrock(shieldon_fetus, quirk)" + ], + "loopTimes": 1, + "minSeconds": 12, + "maxSeconds": 20 + } ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/substitute.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/substitute.json index be131f04e4..0d0eeddc9e 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/substitute.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/substitute.json @@ -1,4 +1,7 @@ { + "maxScale": 1.0, + "yTranslation": 0, + "yGrowthPoint": 0.625, "animations": [ "bedrock(substitute_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tirtouga.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tirtouga.json index 83cdc28131..963c3a71ad 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tirtouga.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tirtouga.json @@ -1,6 +1,7 @@ { "maxScale": 0.7, "yTranslation": 0.2, + "yGrowthPoint": 0.5625, "animations": [ "bedrock(tirtouga_fetus, sleep)" ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tyrunt.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tyrunt.json index 7593783d23..affc850ba0 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tyrunt.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/posers/tyrunt.json @@ -1,7 +1,7 @@ { "maxScale": 0.9, "yTranslation": 0.0, - + "yGrowthPoint": 0.625, "animations": [ "bedrock(tyrunt_fetus, sleep)" diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage1.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage1.json new file mode 100644 index 0000000000..015873a2c2 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage1.json @@ -0,0 +1,13 @@ +{ + "name": "cobblemon:embryo_stage1", + "order": 0, + "variations": [ + { + "aspects": [], + "poser": "cobblemon:embryo_stage1", + "model": "cobblemon:embryo_stage1.geo", + "texture": "cobblemon:textures/fossils/embryo.png", + "layers": [] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage2.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage2.json new file mode 100644 index 0000000000..97b9ae1eb0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage2.json @@ -0,0 +1,13 @@ +{ + "name": "cobblemon:embryo_stage2", + "order": 0, + "variations": [ + { + "aspects": [], + "poser": "cobblemon:embryo_stage2", + "model": "cobblemon:embryo_stage2.geo", + "texture": "cobblemon:textures/fossils/embryo.png", + "layers": [] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage3.json b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage3.json new file mode 100644 index 0000000000..f63d6872d9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/fossils/variations/embryo_stage3.json @@ -0,0 +1,13 @@ +{ + "name": "cobblemon:embryo_stage3", + "order": 0, + "variations": [ + { + "aspects": [], + "poser": "cobblemon:embryo_stage3", + "model": "cobblemon:embryo_stage3.geo", + "texture": "cobblemon:textures/fossils/embryo.png", + "layers": [] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/evolution.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/evolution.animation.json new file mode 100644 index 0000000000..9378b154ea --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/evolution.animation.json @@ -0,0 +1,67 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.evolution.evolution": { + "animation_length": 12, + "bones": { + "evolution": { + "position": [0, 8, 0] + }, + "rotation": { + "rotation": { + "0.0": [0, 0, 0], + "4.0": [0, -360, 0], + "4.4583": [0, -550, 0], + "9.9583": [0, -4410, 0] + } + } + }, + "particle_effects": { + "0.0": { + "effect": "evo_sparkle", + "locator": "sparkles" + }, + "3.0": { + "effect": "evo_buildup", + "locator": "sparkles" + }, + "4.0": [ + { + "effect": "evo_obscuring", + "locator": "clouds" + }, + { + "effect": "evo_godrays", + "locator": "sparkles" + } + ], + "4.5417": { + "effect": "evo_flyingsparkles", + "locator": "sparkles" + }, + "6.0": { + "effect": "evo_bigsparkle", + "locator": "sparkles" + }, + "8.6667": { + "effect": "evo_implode", + "locator": "sparkles" + }, + "9.0": [ + { + "effect": "evo_sparkleburst", + "locator": "sparkles" + }, + { + "effect": "evo_smokeburst", + "locator": "sparkles" + }, + { + "effect": "evo_sparklefetti", + "locator": "sparkles" + } + ] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/generic/models/evolution.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/generic/models/evolution.geo.json new file mode 100644 index 0000000000..c2ef0eb41c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/generic/models/evolution.geo.json @@ -0,0 +1,37 @@ +{ + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.unknown", + "texture_width": 16, + "texture_height": 16, + "visible_bounds_width": 1, + "visible_bounds_height": 1, + "visible_bounds_offset": [0, 0, 0] + }, + "bones": [ + { + "name": "evolution", + "pivot": [0, 0, 0] + }, + { + "name": "rotation", + "parent": "evolution", + "pivot": [0, 0, 0], + "locators": { + "clouds": [0, 0, 0] + } + }, + { + "name": "static", + "parent": "evolution", + "pivot": [0, 0, 0], + "locators": { + "sparkles": [0, 0, 0] + } + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/generic/posers/evolution.json b/common/src/main/resources/assets/cobblemon/bedrock/generic/posers/evolution.json new file mode 100644 index 0000000000..f1ffc2afef --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/generic/posers/evolution.json @@ -0,0 +1,12 @@ +{ + "poses": { + "evolve": { + "poseName": "evolve", + "transformTicks": 0, + "poseTypes": ["NONE"], + "animations": [ + "bedrock(evolution, evolution)" + ] + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/generic/variations/0_evolution_base.json b/common/src/main/resources/assets/cobblemon/bedrock/generic/variations/0_evolution_base.json new file mode 100644 index 0000000000..6a250bbb26 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/generic/variations/0_evolution_base.json @@ -0,0 +1,13 @@ +{ + "name": "cobblemon:evolution", + "order": 0, + "variations": [ + { + "aspects": [], + "poser": "cobblemon:evolution", + "model": "cobblemon:evolution.geo", + "texture": "cobblemon:textures/white.png", + "layers": [] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/ballsparkle.particle.json new file mode 100644 index 0000000000..c25b33a176 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..ecc135239d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..206f722d76 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/sendflash.particle.json new file mode 100644 index 0000000000..534082ce8d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..9a55f63ad5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..68b81ce94c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/sendflash.particle.json new file mode 100644 index 0000000000..244566964c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/azureball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:azureball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/afterspark.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/afterspark.particle.json new file mode 100644 index 0000000000..eddc63f33b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/afterspark.particle.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:afterspark", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/afterspark" + } + }, + "components": { + "minecraft:emitter_initialization": { + "creation_expression": "variable.funny = math.random(0.03,0.06);" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 7 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": ["-math.random(-0.25,0.25)*3.75", "0.5-math.random(-0.25,0.25)*3.75", "-math.random(-0.25,0.25)*3.75"], + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.4, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["0.05+variable.funny", "0.05+variable.funny"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 20, + "texture_height": 5, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [5, 5], + "step_UV": [5, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturesparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturesparks.particle.json new file mode 100644 index 0000000000..05bda14c63 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturesparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:capturesparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/capturesparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*5+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.25", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 30, + "texture_height": 5, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [5, 5], + "step_UV": [5, 0], + "frames_per_second": 12, + "max_frame": 6 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturestar.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturestar.particle.json new file mode 100644 index 0000000000..93c03971cb --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/capturestar.particle.json @@ -0,0 +1,50 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:capturestar", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/capturestar" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-1,1)*5", "math.random(0.5,2)*3+1", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,359)", + "rotation_rate": 10 + }, + "minecraft:particle_initial_speed": "math.random(3.5,4.1)*3.25", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -0.5, 0], + "linear_drag_coefficient": 4.25 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 104, + "texture_height": 7, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 7], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 13 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuiafterspark.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuiafterspark.particle.json new file mode 100644 index 0000000000..824b002602 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuiafterspark.particle.json @@ -0,0 +1,57 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuiafterspark", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuiafterspark" + } + }, + "components": { + "minecraft:emitter_initialization": { + "creation_expression": "variable.funny = math.random(0.03,0.06);" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 25, + "max_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": ["-math.random(-0.25,0.25)*3.75", "2.8-math.random(-0.25,0.25)*3.75", "-math.random(-0.25,0.25)*3.75"], + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.4, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["0.05+variable.funny", "0.05+variable.funny"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 20, + "texture_height": 5, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [5, 5], + "step_UV": [5, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.53": "#FFFF0000" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuicapturestar.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuicapturestar.particle.json new file mode 100644 index 0000000000..66bd798fcc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuicapturestar.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuicapturestar", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuicapturestar" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 2.8, 0], + "direction": ["math.random(-1,1)*5", "math.random(-1,2)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,359)", + "rotation_rate": 10 + }, + "minecraft:particle_initial_speed": "math.random(3.5,4.1)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -0.5, 0], + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 104, + "texture_height": 7, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 7], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 13 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuipuff.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuipuff.particle.json new file mode 100644 index 0000000000..111743d654 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuipuff.particle.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuipuff", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuipuff" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.5, 0.5], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 140, + "texture_height": 22, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [20, 22], + "step_UV": [20, 0], + "frames_per_second": 24, + "max_frame": 7 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuisendspark.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuisendspark.particle.json new file mode 100644 index 0000000000..aed0c2924b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuisendspark.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuisendspark", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuisendspark" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 0.5, 0], + "direction": ["math.random(-2,2)*5", 20, "math.random(-2,2)*5"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(1,7)*1.5", + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.5], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 108, + "texture_height": 28, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [12, 28], + "step_UV": [12, 0], + "frames_per_second": 30, + "max_frame": 9 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuispark.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuispark.particle.json new file mode 100644 index 0000000000..343bef4039 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuispark.particle.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuispark", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuispark" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 2 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 2.75, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 288, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 9 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuitrail.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuitrail.particle.json new file mode 100644 index 0000000000..6341f24c4f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/capture/hisui/hisuitrail.particle.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hisuitrail", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hisuitrail" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 2 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 1.75, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.333, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 288, + "texture_height": 38, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 38], + "step_UV": [16, 0], + "frames_per_second": 30, + "max_frame": 18 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/ballsparkle.particle.json new file mode 100644 index 0000000000..2eac0c9f45 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..fe6bb0ec8f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..c241cefba7 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/sendflash.particle.json new file mode 100644 index 0000000000..61a03e4c7e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..b183c80669 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..40e5e193cf --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/sendflash.particle.json new file mode 100644 index 0000000000..27ba1a1f3b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/citrineball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:citrineball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/ballsparkle.particle.json new file mode 100644 index 0000000000..7c0c565b1b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/diveballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 30, + "max_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 2, 0], + "radius": "2", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 90, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..785a483c1c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/diveballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..ac61da8b9f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/diveballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 32 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3.5,6.5)*4.25", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -7, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 96, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [16, 0], + "frames_per_second": 10, + "max_frame": 6 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/sendflash.particle.json new file mode 100644 index 0000000000..fb76736800 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/battle/divesendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..afd539f220 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/diveballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..b09f3cf73c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/diveballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 24 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -7, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 96, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [16, 0], + "frames_per_second": 10, + "max_frame": 6 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/sendflash.particle.json new file mode 100644 index 0000000000..7c2a1593c0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/diveball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:diveball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/diveball/casual/divesendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/ballsparkle.particle.json new file mode 100644 index 0000000000..7245cdf9a0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/fastballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 48, + "max_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..44941cd779 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsendsparkle.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/fastballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..6281749b46 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/fastballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/sendflash.particle.json new file mode 100644 index 0000000000..ff763ac676 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/battle/fastsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 768, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 30, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..e178df50fc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsendsparkle.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/fastballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..6c25822eec --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/fastballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/sendflash.particle.json new file mode 100644 index 0000000000..e728975514 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/fastball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:fastball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/fastball/casual/fastsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 30, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/ballsparkle.particle.json new file mode 100644 index 0000000000..318b3d7314 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/friendballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 36, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.1, 0], + "radius": "1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 1, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 1, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.085, 0.085], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..b62fac38b5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/friendballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(2,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..2a43a6bb1e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/friendballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(2,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/sendflash.particle.json new file mode 100644 index 0000000000..c839574a20 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/battle/friendsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..888ff2fc54 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/friendballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..2e487ca33d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/friendballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/sendflash.particle.json new file mode 100644 index 0000000000..a21c892003 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/friendball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:friendball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/friendball/casual/friendsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/ballsparkle.particle.json new file mode 100644 index 0000000000..ff1922662f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/greatballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..6f3fb3c550 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsendsparkle.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/greatballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.25": "#ffffffff", + "0.65": "#FFCA00FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..4dd6daaa44 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/ballsparks.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/greatballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "1.0": "#FFBE63FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/sendflash.particle.json new file mode 100644 index 0000000000..8f3f192f5b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/battle/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/battle/greatsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.05": "#FF71CCFF", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..4f79713c72 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsendsparkle.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/greatballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.25": "#ffffffff", + "0.65": "#FFCA00FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..ec904e3acb --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/greatballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/sendflash.particle.json new file mode 100644 index 0000000000..df3deae2c8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/greatball/casual/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:greatball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/greatball/casual/greatsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.05": "#FF71CCFF", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/ballsparkle.particle.json new file mode 100644 index 0000000000..08c9191f40 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/healballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 18 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.75, 0], + "radius": "1.25", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..8d060b0a53 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/healballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..b346c23092 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/healballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3.75", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/sendflash.particle.json new file mode 100644 index 0000000000..940a26c7ba --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/battle/healsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..208658cfc5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/healballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..5c57815647 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/healballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/sendflash.particle.json new file mode 100644 index 0000000000..7975775f3e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/healball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:healball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/healball/casual/healsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/ballsparkle.particle.json new file mode 100644 index 0000000000..f1d64c1ced --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/heavyballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 24, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..2f2e8cd866 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/heavyballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..918b74016f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/heavyballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -9, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/sendflash.particle.json new file mode 100644 index 0000000000..50f449c0f2 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/battle/heavysendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..48b2d527e3 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/heavyballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..5c8249d125 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/heavyballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -7, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/sendflash.particle.json new file mode 100644 index 0000000000..766e52a7a7 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/heavyball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heavyball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/heavyball/casual/heavysendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/ballsparkle.particle.json new file mode 100644 index 0000000000..2c279d5931 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/levelballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 22, + "max_particles": 24 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 2, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..61028c9374 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/levelballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..0cc7e033b8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/levelballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", 0, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/sendflash.particle.json new file mode 100644 index 0000000000..857e975e2e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/battle/levelsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..c4df6025aa --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/levelballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..fd6588f7e6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/ballsparks.particle.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/levelballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/sendflash.particle.json new file mode 100644 index 0000000000..72e5e1131d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/levelball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:levelball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/levelball/casual/levelsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/ballsparkle.particle.json new file mode 100644 index 0000000000..99ddd1a5f3 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/loveballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 30, + "max_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 2, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 90, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..18a03ec2c0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/loveballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..5c573e241e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/loveballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-2,2)", -2, "math.random(-2,2)"], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 90, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/sendflash.particle.json new file mode 100644 index 0000000000..d2db5b169e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/battle/lovesendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..dcbc70d315 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/loveballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..ae9f904820 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/loveballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -2, "math.random(-4,4)"], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 90, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/sendflash.particle.json new file mode 100644 index 0000000000..41525c270b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/loveball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:loveball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/loveball/casual/lovesendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/ballsparkle.particle.json new file mode 100644 index 0000000000..7a02df0e35 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/lureballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 18 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.75, 0], + "radius": "1.25", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..7810339190 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/lureballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..23beb28b0a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/lureballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 28 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -7, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 96, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [16, 0], + "frames_per_second": 10, + "max_frame": 6 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/sendflash.particle.json new file mode 100644 index 0000000000..f556802387 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/battle/luresendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 768, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..7ce00d8762 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/lureballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..6afa4d3780 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/ballsparks.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/lureballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 24 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", -7, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 96, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [16, 0], + "frames_per_second": 10, + "max_frame": 6 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/sendflash.particle.json new file mode 100644 index 0000000000..181ce4cb49 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/lureball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:lureball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/lureball/casual/luresendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/ballsparkle.particle.json new file mode 100644 index 0000000000..c7422a9a63 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/ballsparkle.particle.json @@ -0,0 +1,50 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/luxuryballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 32, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "2", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.45, 0.45], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 75, + "texture_height": 15, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [15, 15], + "step_UV": [15, 0], + "frames_per_second": 24, + "max_frame": 5 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..9354c195d8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsendsparkle.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/luxuryballsendsparkle" + } + }, + "components": { + "minecraft:emitter_initialization": { + "per_update_expression": "variable.radius = 0.6;" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 200, + "max_particles": 20 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": ["variable.radius*math.cos(variable.emitter_age*2080)", 0, "variable.radius*-math.sin(variable.emitter_age*2080)"], + "direction": ["math.random(-5,5)*2", "math.random(-0.05,4)*4+0.5", "math.random(-5,5)*2"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7.5)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 20, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..fc252b987e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/luxuryballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4.75,7.25)*4", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.45, 0.45], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 165, + "texture_height": 15, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [15, 15], + "step_UV": [15, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/sendflash.particle.json new file mode 100644 index 0000000000..70b2a20d0e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/battle/luxurysendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 30, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..790b94d797 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/luxuryballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..1783084eba --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/luxuryballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6.5)*3", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.275, 0.275], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 165, + "texture_height": 15, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [15, 15], + "step_UV": [15, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/sendflash.particle.json new file mode 100644 index 0000000000..d10181a730 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/luxuryball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:luxuryball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/luxuryball/casual/luxurysendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/ballsparkle.particle.json new file mode 100644 index 0000000000..730455131a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/masterballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 22, + "max_particles": 24 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 2, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..c7585632e8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsendsparkle.particle.json @@ -0,0 +1,59 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/masterballsendsparkle" + } + }, + "components": { + "minecraft:emitter_initialization": { + "per_update_expression": "variable.radius = 0.6;" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 80, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "radius": "variable.radius*math.cos(variable.emitter_age*2080)", + "direction": ["math.random(-5,5)*1.75", "math.random(-0.05,6)*3+0.5", "math.random(-5,5)*1.75"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "-math.random(5,8)", 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.24": "#ffffffff", + "0.47": "#FFBA85FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..5a3b619b5d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/ballsparks.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/masterballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.15,4)*3+0.6", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*8", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 7.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.225, 0.225], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 72, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.3": "#FFFFFFFF", + "0.6": "#FFA300FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/sendflash.particle.json new file mode 100644 index 0000000000..027e5d84f3 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/battle/mastersendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.5, 2.5], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1344, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 21 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..1ff201078f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsendsparkle.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/masterballsendsparkle" + } + }, + "components": { + "minecraft:emitter_initialization": { + "per_update_expression": "variable.radius = 0.6;" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 72, + "max_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "radius": "variable.radius*math.cos(variable.emitter_age*2080)", + "direction": ["math.random(-5,5)*1.75", "math.random(-0.05,6)*3+0.5", "math.random(-5,5)*1.75"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "-math.random(5,8)", 0], + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.24": "#ffffffff", + "0.47": "#FFBA85FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..c6fab87d89 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/ballsparks.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/masterballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.225, 0.225], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 72, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 15 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.4": "#FFFFFFFF", + "0.6": "#FFA300FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/sendflash.particle.json new file mode 100644 index 0000000000..38e961874b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/masterball/casual/sendflash.particle.json @@ -0,0 +1,52 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:masterball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/masterball/casual/mastersendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.5, 1.5], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 672, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 21 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.07": "#ffffffff", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/ballsparkle.particle.json new file mode 100644 index 0000000000..3024b0e36c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/moonballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 44, + "max_particles": 22 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1, 0], + "radius": "1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..e36569157e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/moonballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 22 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -2, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..d4cf1ed281 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/moonballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 0.9, 0], + "radius": "1", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "2", + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 20, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/sendflash.particle.json new file mode 100644 index 0000000000..2bd591fb8a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/battle/moonsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..792e4554c5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/moonballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.75", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -1, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..0e0f8c9913 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/moonballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 0.8, 0], + "radius": "0.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "1.5", + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 20, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/sendflash.particle.json new file mode 100644 index 0000000000..8aa8d95f9e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/moonball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:moonball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/moonball/casual/moonsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/ballsparkle.particle.json new file mode 100644 index 0000000000..6e748ee5f6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/ballsparkle.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/nestballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 18 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.75, 0], + "radius": "1.25", + "surface_only": true, + "direction": ["math.random(-9,9)", "math.random(4,7)", "math.random(-9,9)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..44d1c57a04 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/nestballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..43c9a9d51d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/nestballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/sendflash.particle.json new file mode 100644 index 0000000000..63c81598a8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/battle/nestsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..8118da2644 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/nestballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..34c8aae241 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/nestballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/sendflash.particle.json new file mode 100644 index 0000000000..371ff9501c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/nestball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:nestball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/nestball/casual/nestsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/ballsparkle.particle.json new file mode 100644 index 0000000000..9b2d1b257d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/netballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.25, 0], + "radius": "1.25", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..bb93d1bab3 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/netballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*4", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..3395d0858d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/netballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/sendflash.particle.json new file mode 100644 index 0000000000..5a4ca473fc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/battle/netsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 30, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..fa2db3125a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/netballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 7 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..c7edc5ea8f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/netballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 7 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/sendflash.particle.json new file mode 100644 index 0000000000..12a7a7a35c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/netball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:netball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/netball/casual/netsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/ballsparkle.particle.json new file mode 100644 index 0000000000..2140194581 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/parkballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..f8af16f101 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/parkballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..dc0953a132 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/ballsparks.particle.json @@ -0,0 +1,50 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/parkballsparks" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 84, + "max_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", 0, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 88, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/sendflash.particle.json new file mode 100644 index 0000000000..b7d61ca7bd --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/battle/parksendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..cca55c9817 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/parkballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..994a20cfba --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/ballsparks.particle.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/parkballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 88, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/sendflash.particle.json new file mode 100644 index 0000000000..025dde0b55 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/parkball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:parkball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/parkball/casual/parksendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 416, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 13 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/ballsparkle.particle.json new file mode 100644 index 0000000000..637297a959 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..3837e8c4af --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..dd650216e8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/sendflash.particle.json new file mode 100644 index 0000000000..8dde15b61b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..56691450ec --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..a947593225 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/sendflash.particle.json new file mode 100644 index 0000000000..449d18eede --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/pokeball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:pokeball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/ballsparkle.particle.json new file mode 100644 index 0000000000..eddf44708a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/premierballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.25, 0], + "radius": "1.25", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..21ad90ed01 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/premierballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..f25b60096c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/premierballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/sendflash.particle.json new file mode 100644 index 0000000000..51cd41132c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/battle/premiersendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..1739229e85 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/premierballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..7ac6e26ea5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/premierballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/sendflash.particle.json new file mode 100644 index 0000000000..8e19f61303 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/premierball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:premierball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/premierball/casual/premiersendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/ballsparkle.particle.json new file mode 100644 index 0000000000..40b7626d2d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/quickballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 48, + "max_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..f8ca25cb52 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/quickballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0, 0], + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..4e7825c3c9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/quickballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0, 0], + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/sendflash.particle.json new file mode 100644 index 0000000000..3d6eef9cfe --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/battle/quicksendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 768, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 30, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..d92e1a54e5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/quickballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*1.9", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0, 0], + "linear_drag_coefficient": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..30dba602f8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/ballsparks.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/quickballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*1.1", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0, 0], + "linear_drag_coefficient": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 24, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/sendflash.particle.json new file mode 100644 index 0000000000..cf7b67da5f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/quickball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:quickball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/quickball/casual/quicksendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 30, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/ballsparkle.particle.json new file mode 100644 index 0000000000..72d7929e4b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/repeatballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 44, + "max_particles": 22 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1, 0], + "radius": "1.5", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..2179ad6838 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsendsparkle.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/repeatballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..d245aea38a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/repeatballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/sendflash.particle.json new file mode 100644 index 0000000000..79c9ecee9f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/battle/repeatsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..293f866cb5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsendsparkle.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/repeatballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.175, 0.175], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..8ccd5e1d4a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/repeatballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/sendflash.particle.json new file mode 100644 index 0000000000..4e4b53a8aa --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/repeatball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:repeatball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/repeatball/casual/repeatsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/ballsparkle.particle.json new file mode 100644 index 0000000000..9bdc03ab01 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..aff94c5bba --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..3a8805e770 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/sendflash.particle.json new file mode 100644 index 0000000000..339ff4fb3e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..5a528b9852 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..d7b3822e57 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/sendflash.particle.json new file mode 100644 index 0000000000..07d1213665 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/roseateball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:roseateball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/ballsparkle.particle.json new file mode 100644 index 0000000000..c05c3769d7 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/safariballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..dfff32b03b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/safariballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..28a2c89002 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/ballsparks.particle.json @@ -0,0 +1,50 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/safariballsparks" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 84, + "max_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-4,4)", 0, "math.random(-4,4)"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/sendflash.particle.json new file mode 100644 index 0000000000..f806c3c39c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/battle/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/battle/safarisendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.05": "#FF71CCFF", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..1a669468c0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/safariballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..8c01e30b37 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/ballsparks.particle.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/safariballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "(math.random_integer(1,4)*90)" + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/sendflash.particle.json new file mode 100644 index 0000000000..69fa4bdbef --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/safariball/casual/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:safariball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/safariball/casual/safarisendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.05": "#FF71CCFF", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/ballsparkle.particle.json new file mode 100644 index 0000000000..1f85c757c6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..89d19937da --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..f74a26edf9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/sendflash.particle.json new file mode 100644 index 0000000000..6c3274d73a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..a9395b20f6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..46cfb40758 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/sendflash.particle.json new file mode 100644 index 0000000000..370c45e3cd --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/slateball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:slateball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/ballsparkle.particle.json new file mode 100644 index 0000000000..4988f8fa68 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/sportballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..bf9e2ed259 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/sportballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..0a4b25f19a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/sportballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.25, 0.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/sendflash.particle.json new file mode 100644 index 0000000000..5e7f283b7c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/battle/sportsendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..da8c80e306 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/sportballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..731e487555 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/sportballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/sendflash.particle.json new file mode 100644 index 0000000000..3b46c2f866 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/sportball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sportball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/sportball/casual/sportsendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 544, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/ballsparkle.particle.json new file mode 100644 index 0000000000..03e02ffd21 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/timerballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 18, + "max_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.25, 0], + "radius": "2.15", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": -0.95, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..8c1c6c70e9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/timerballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 14 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*4.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.125, 0.125], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..d2c3607809 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/timerballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3.75", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/sendflash.particle.json new file mode 100644 index 0000000000..e8a85c85c6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/battle/timersendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1088, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 17 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..93519fb2a6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/timerballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 6 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(0.5,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..d9fb5b3bb6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/timerballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*1.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/sendflash.particle.json new file mode 100644 index 0000000000..1622c13a3b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/timerball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:timerball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/timerball/casual/timersendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/ballsparkle.particle.json new file mode 100644 index 0000000000..69bc588525 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/ultraballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..99f9a8069a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsendsparkle.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/ultraballsendsparkle" + } + }, + "components": { + "minecraft:emitter_initialization": { + "per_update_expression": "variable.radius = 0.6;" + }, + "minecraft:emitter_rate_steady": { + "spawn_rate": 320, + "max_particles": 18 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": ["variable.radius*math.cos(variable.emitter_age*2080)", 0, "variable.radius*-math.sin(variable.emitter_age*2080)"], + "direction": ["math.random(-5,5)*2", "math.random(-0.05,4)*4+0.5", "math.random(-5,5)*2"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..75557d0938 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/ballsparks.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/ultraballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.15,4)*3+0.6", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*8", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 7.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.225, 0.225], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.4": "#FFFFFFFF", + "0.6": "#FFA300FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/sendflash.particle.json new file mode 100644 index 0000000000..5f8edbdbac --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/battle/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/battle/ultrasendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.05": "#FFFFE771", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..b2db152915 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/ultraballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,6)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..c2a6b6c019 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/ballsparks.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/ultraballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(3,7)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.225, 0.225], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.4": "#FFFFFFFF", + "0.6": "#FFA300FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/sendflash.particle.json new file mode 100644 index 0000000000..d757b71671 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/ultraball/casual/sendflash.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:ultraball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/ultraball/casual/ultrasendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 416, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 13 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.04": "#FFFFD971", + "0.08": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/ballsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/ballsparkle.particle.json new file mode 100644 index 0000000000..f30efe085c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/ballsparkle.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/ballsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparkle" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 1.5, 0], + "radius": "math.random(0.5,1.5)*1.5", + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.75, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 36, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 12, + "max_frame": 4 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsendsparkle.particle.json new file mode 100644 index 0000000000..c5fe2e5955 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/battle/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -5, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsparks.particle.json new file mode 100644 index 0000000000..26245892d7 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/battle/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*3.5", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/sendflash.particle.json new file mode 100644 index 0000000000..b0ed0e22d9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/battle/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/battle/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/battle/sendflash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [2.25, 2.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 1024, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [64, 64], + "step_UV": [64, 0], + "frames_per_second": 24, + "max_frame": 16 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsendsparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsendsparkle.particle.json new file mode 100644 index 0000000000..cb4104fffa --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsendsparkle.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/casual/ballsendsparkle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsendsparkle" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 4 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.05,4)*4+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,6)*2.5", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -6, 0], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 99, + "texture_height": 9, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [9, 9], + "step_UV": [9, 0], + "frames_per_second": 18, + "max_frame": 11 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsparks.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsparks.particle.json new file mode 100644 index 0000000000..e64d200a03 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/ballsparks.particle.json @@ -0,0 +1,45 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/casual/ballsparks", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/ballsparks" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "direction": ["math.random(-10,10)", "math.random(-0.1,4)*3+0.5", "math.random(-10,10)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "math.random(4,7)*2.1", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 3.5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 80, + "texture_height": 8, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [8, 0], + "frames_per_second": 18, + "max_frame": 10 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/sendflash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/sendflash.particle.json new file mode 100644 index 0000000000..ccef7fac9e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/balls/verdantball/casual/sendflash.particle.json @@ -0,0 +1,43 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:verdantball/casual/sendflash", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/balls/pokeball/casual/sendcasual" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.5, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1.25, 1.25], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 384, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [32, 0], + "frames_per_second": 24, + "max_frame": 12 + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke_contrail.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_bigsparkle.particle.json similarity index 61% rename from common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke_contrail.particle.json rename to common/src/main/resources/assets/cobblemon/bedrock/particles/evo_bigsparkle.particle.json index 895f5574a8..4a556c9282 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke_contrail.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_bigsparkle.particle.json @@ -2,33 +2,36 @@ "format_version": "1.10.0", "particle_effect": { "description": { - "identifier": "cobblemon:pokeball_capture_hisui_smoke_contrail", + "identifier": "cobblemon:evo_bigsparkle", "basic_render_parameters": { "material": "particles_blend", - "texture": "cobblemon:particle/smoke" + "texture": "textures/particles/bigsparkle" } }, "components": { "minecraft:emitter_rate_steady": { - "spawn_rate": 15, + "spawn_rate": "8 * v.entity_radius", "max_particles": 100 }, "minecraft:emitter_lifetime_once": { - "active_time": "1/3" + "active_time": 2 }, - "minecraft:emitter_shape_point": { - "offset": ["math.random(-0.1,0.1)/2", "-1.75 * math.sin(v.emitter_age*90*3/2)", "math.random(-0.1,0.1)/2"] + "minecraft:emitter_shape_disc": { + "offset": [0, "math.random(-1,1) * v.entity_radius", 0], + "radius": "v.entity_radius * 1.5 + math.random(0,0.5) * v.entity_radius", + "surface_only": true, + "direction": "outwards" }, "minecraft:particle_lifetime_expression": { - "max_lifetime": "math.random(0.45,0.7)*3/4" + "max_lifetime": 0.3 }, "minecraft:particle_initial_spin": { - "rotation": "math.random_integer(0,3) * 90" + "rotation": "math.random_integer(1,4) * 90" }, "minecraft:particle_initial_speed": 0, "minecraft:particle_motion_dynamic": {}, "minecraft:particle_appearance_billboard": { - "size": [0.2, 0.2], + "size": ["0.3 * v.entity_radius", "0.3 * v.entity_radius"], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 16, @@ -46,9 +49,9 @@ "color": { "interpolant": "v.particle_age / v.particle_lifetime", "gradient": { - "0.0": "#FFFFFFFF", - "0.79": "#FFFFFFFF", - "1.0": "#00D6E0E6" + "0.0": "#FF5AF4FF", + "0.59": "#ffffffff", + "1.0": "#00FFFFFF" } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_buildup.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_buildup.particle.json new file mode 100644 index 0000000000..0c45a32bf5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_buildup.particle.json @@ -0,0 +1,52 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_buildup", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_dots_cyan" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": "v.emitter_age * 10", + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 5 + }, + "minecraft:emitter_shape_sphere": { + "radius": "v.entity_radius * 2", + "surface_only": true, + "direction": "inwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "0.125 * v.entity_radius", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": -4.5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["v.entity_radius/8", "v.entity_radius/8"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 24], + "size_UV": [8, 8], + "step_UV": [0, -8], + "frames_per_second": 3, + "max_frame": 3, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_flyingsparkles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_flyingsparkles.particle.json new file mode 100644 index 0000000000..dd352aa84d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_flyingsparkles.particle.json @@ -0,0 +1,64 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_flyingsparkles", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_sparkle_yellow" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": "10 * (v.entity_radius/2) + 5", + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 4 + }, + "minecraft:emitter_shape_sphere": { + "radius": "v.entity_radius", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(1,4)*90" + }, + "minecraft:particle_initial_speed": "math.random(4,6) * v.entity_radius", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 2 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 * v.entity_radius", "0.2 * v.entity_radius"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [0, 8], + "step_UV": [0, 8], + "frames_per_second": 24, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.22": "#FF2EFFF4", + "0.51": "#FFEBFF41", + "0.78": "#FFD743FF", + "1.0": "#006E5CFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_godrays.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_godrays.particle.json new file mode 100644 index 0000000000..458def2d35 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_godrays.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_godrays", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/lightbeam" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 12, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 4 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "v.emitter_age/v.emitter_lifetime*360*6 + v.emitter_age/v.emitter_lifetime*360*math.pi + v.emitter_random_1*360", + "rotation_rate": "math.random(-20,20)" + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["(6/128) * 2 * v.particle_age * v.entity_radius", "3 * v.particle_age * v.entity_radius"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 6, + "texture_height": 128, + "uv": [0, 0], + "uv_size": [6, 128] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#0037FFF7", + "0.24": "#FFC9FFF4", + "0.5": "#FFE9FFFD", + "0.8": "#94C2FFFD", + "1.0": "#0082F8FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_small_sparkles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_implode.particle.json similarity index 54% rename from common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_small_sparkles.particle.json rename to common/src/main/resources/assets/cobblemon/bedrock/particles/evo_implode.particle.json index 0cda30cbef..b2146954dc 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_small_sparkles.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_implode.particle.json @@ -2,34 +2,34 @@ "format_version": "1.10.0", "particle_effect": { "description": { - "identifier": "cobblemon:pokeball_capture_hisui_firework_small_sparkles", + "identifier": "cobblemon:evo_implode", "basic_render_parameters": { "material": "particles_blend", - "texture": "cobblemon:textures/particle/sparkle" + "texture": "textures/particles/speedlines" } }, "components": { "minecraft:emitter_rate_instant": { - "num_particles": "6" + "num_particles": 32 }, "minecraft:emitter_lifetime_once": { - "active_time": 1 + "active_time": 5 }, "minecraft:emitter_shape_sphere": { - "offset": [0, -1.65, 0], + "radius": "v.entity_radius * 4", "surface_only": true, - "direction": ["math.random(-0.4,0.4)", -0.35, "math.random(-0.4,0.4)"] + "direction": "inwards" }, "minecraft:particle_lifetime_expression": { - "max_lifetime": "math.random(0.35,0.7)" + "max_lifetime": 0.4 }, - "minecraft:particle_initial_speed": "math.random(2.5,3.5)", + "minecraft:particle_initial_speed": "28 * v.entity_radius", "minecraft:particle_motion_dynamic": { - "linear_acceleration": [0, -4, 0], - "linear_drag_coefficient": 0.75 + "linear_acceleration": ["math.random(-40,40)/2", "math.random(-40,40)/2", "math.random(-40,40)/2"], + "linear_drag_coefficient": 6 }, "minecraft:particle_appearance_billboard": { - "size": [0.15, 0.15], + "size": ["v.entity_radius/8", "v.entity_radius/8"], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 8, @@ -38,20 +38,14 @@ "base_UV": [0, 0], "size_UV": [8, 8], "step_UV": [0, 8], + "frames_per_second": 3, "max_frame": 4, "stretch_to_lifetime": true } } }, "minecraft:particle_appearance_tinting": { - "color": { - "interpolant": "v.particle_age / v.particle_lifetime", - "gradient": { - "0.0": "#ffffffff", - "0.65": "#ffffffff", - "1.0": "#00FFFFFF" - } - } + "color": [1, 1, 1, 1] } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_obscuring.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_obscuring.particle.json new file mode 100644 index 0000000000..9d28640e1a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_obscuring.particle.json @@ -0,0 +1,61 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_obscuring", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_smoke_cyan" + } + }, + "components": { + "minecraft:emitter_initialization": { + "creation_expression": "v.entity_radius = v.entity_radius == 0 ? 1 : v.entity_radius;" + }, + "minecraft:emitter_local_space": { + "position": true, + "rotation": true + }, + "minecraft:emitter_rate_instant": { + "num_particles": "314 * v.entity_radius" + }, + "minecraft:emitter_lifetime_once": { + "active_time": 5 + }, + "minecraft:emitter_shape_sphere": { + "radius": "v.entity_radius +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": "7 + v.entity_radius/2 * v.particle_random_1", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-1,1) * v.entity_radius * 1.3", "math.random(-1,1) * v.entity_radius * 1.3", "math.random(-1,1) * v.entity_radius * 1.3"], + "linear_drag_coefficient": "3 + v.entity_radius/2 * v.particle_random_1" + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.175 * v.entity_radius", "0.175 * v.entity_radius"], + "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": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_smokeburst.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_smokeburst.particle.json new file mode 100644 index 0000000000..a341739283 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_smokeburst.particle.json @@ -0,0 +1,67 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_smokeburst", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_smoke_cyan" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": "150 * v.entity_radius" + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, -0.1, 0], + "radius": "v.entity_radius/2", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "v.particle_random_1*1.1 + 0.1" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(1,4)*90" + }, + "minecraft:particle_initial_speed": "math.random(10,12.5)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["(v.particle_random_2*15 - 15/2) + math.random(-4,4)", "(v.particle_random_3*8 - 4) + math.random(-4,4)", "(v.particle_random_4*15 - 15/2) + math.random(-4,4)"], + "linear_drag_coefficient": "math.random(4,5)" + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 48, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 4, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.18": "#B5FFFFFF", + "0.5": "#A3FFFFFF", + "1.0": "#FF00FFF6" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkle.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkle.particle.json new file mode 100644 index 0000000000..a59d789066 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkle.particle.json @@ -0,0 +1,61 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_sparkle", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_sparkle_yellow" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": "math.clamp(10 * v.entity_radius, 10, 100)", + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 5 + }, + "minecraft:emitter_shape_point": { + "offset": ["math.sin(v.emitter_age*360*3+v.emitter_random_1*360)*(v.entity_radius+0.2)", 0, "math.cos(v.emitter_age*360*3+v.emitter_random_1*360)*(v.entity_radius+0.2)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(1,4) * 90" + }, + "minecraft:particle_initial_speed": 0.25, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 4, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 24, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFF9BAF", + "0.38": "#FFFFF864", + "0.73": "#FFB63EFB", + "1.0": "#006EFFEC" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkleburst.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkleburst.particle.json new file mode 100644 index 0000000000..a5f0a0bca9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparkleburst.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_sparkleburst", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/glowing_sparkle_yellow" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": "35 * v.entity_radius" + }, + "minecraft:emitter_lifetime_once": { + "active_time": "0.5 * v.entity_radius" + }, + "minecraft:emitter_shape_sphere": { + "radius": "v.entity_radius/2", + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.5,1)*1.75" + }, + "minecraft:particle_initial_speed": 18, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["v.particle_random_1*12 - 6", "v.particle_random_2*12 - 6", "v.particle_random_3*12 - 6"], + "linear_drag_coefficient": 4 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.125 * v.entity_radius + 0.1", "0.125 * v.entity_radius + 0.1"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 30, + "max_frame": 4, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 5, + "collision_radius": 0.05 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.22": "#FF2EFFF4", + "0.56": "#FF6C90FF", + "0.77": "#FFF5A9FF", + "1.0": "#FF86FBFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparklefetti.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparklefetti.particle.json new file mode 100644 index 0000000000..469a495aaf --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/evo_sparklefetti.particle.json @@ -0,0 +1,78 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:evo_sparklefetti", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/star" + } + }, + "curves": { + "variable.size": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": "200 * v.entity_radius", + "max_particles": "15 * v.entity_radius" + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.5 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, -0.1, 0], + "radius": 0.1, + "surface_only": true, + "direction": ["math.random(-0.6,0.6)", "math.random(-0.6,-0.4)", "math.random(-0.6,0.6)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "v.particle_random_1 + 1" + }, + "minecraft:particle_initial_speed": "math.random(4,8) * v.entity_radius", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -12, 0], + "linear_drag_coefficient": 1.5, + "rotation_drag_coefficient": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.clamp(0.125 * v.entity_radius, 0.075, 0.2)", "math.clamp(0.125 * v.entity_radius, 0.075, 0.2)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 24, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 12, + "coefficient_of_restitution": 0.5, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_random_2", + "gradient": { + "0.0": "#FF9DF7FF", + "0.32": "#FFA9F9FF", + "0.36": "#FFFFFFFF", + "0.66": "#ffffffff", + "0.69": "#FFFAFFA4", + "1.0": "#FFF6FFA9" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/cut.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/cut.particle.json new file mode 100644 index 0000000000..eb1997d968 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/cut.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:cut", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/cut" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 224, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 30 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_circles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_circles.particle.json new file mode 100644 index 0000000000..0817ed6335 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_circles.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heal_circles", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 80, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.2 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "0.5*v.particle_random_3-0.25", 0], + "radius": 1, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "0.8+v.particle_random_1*0.5" + }, + "minecraft:particle_initial_speed": 0.6, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "v.particle_random_4*1.4+0.8", 0], + "linear_drag_coefficient": 1.25 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.05+0.15*v.particle_random_2", "0.05+0.15*v.particle_random_2"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FFFFFF", + "0.24": "#B3DBFFCE", + "0.5": "#B394FFD2", + "0.76": "#B3FFFFFF", + "1.0": "#00FFFFA9" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_sparkles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_sparkles.particle.json new file mode 100644 index 0000000000..a105d972a0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/heal_sparkles.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:heal_sparkles", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 80, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.2 + }, + "minecraft:emitter_shape_point": { + "direction": ["math.random(-1,1)", "math.random(-1,1)*0.5", "math.random(-1,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "0.6+v.particle_random_1*0.4" + }, + "minecraft:particle_initial_speed": "3.5+math.random()", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "v.particle_age*15", 0], + "linear_drag_coefficient": 2 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.pow(math.sin(v.particle_age*90*2/v.particle_lifetime-90),4)*-0.15+0.15", "math.pow(math.sin(v.particle_age*90*2/v.particle_lifetime-90),4)*-0.15+0.15"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 12, + "max_frame": 2, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [0.91765, 1, 0.99608, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit.particle.json new file mode 100644 index 0000000000..b0d82db85b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit.particle.json @@ -0,0 +1,44 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hit", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hit" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_dragon.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_dragon.particle.json new file mode 100644 index 0000000000..c10ba62498 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_dragon.particle.json @@ -0,0 +1,52 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hit_dragon", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hit" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.03": "#FF6A2DE2", + "0.12": "#FFEA597A", + "0.2": "#FFFF2E48", + "0.25": "#FF61355D" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_poison.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_poison.particle.json new file mode 100644 index 0000000000..cd9da6f529 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/hit_poison.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:hit_poison", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hit" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age/v.particle_lifetime", + "gradient": { + "0.0": "#FF724597", + "0.03": "#FF8F6BC3", + "0.05": "#FFDEABFF", + "0.08": "#FF724597", + "0.16": "#FF724597", + "0.18": "#FF5A3868", + "0.2": "#FF724597", + "0.23": "#FF5A3868" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_bug.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_bug.particle.json new file mode 100644 index 0000000000..a25092179b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_bug.particle.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_bug", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-bug" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + }, + "variable.acceleration": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [0, 0, 0.56, 0.83, 1] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 20 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.7, 0.9)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(20,25)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-50,50) * variable.acceleration", "math.random(-50,75) * variable.acceleration", "math.random(-50,50) * variable.acceleration"], + "linear_drag_coefficient": 10 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.15 * variable.scale", "0.15 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dark.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dark.particle.json new file mode 100644 index 0000000000..c14660d13f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dark.particle.json @@ -0,0 +1,64 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_dark", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-dark" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.4 * variable.scale", "0.4 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.28": "#FF523363", + "0.5": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dragon.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dragon.particle.json new file mode 100644 index 0000000000..68c8d76a26 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_dragon.particle.json @@ -0,0 +1,66 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_dragon", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-dragon" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF001BFF", + "0.28": "#FF6561AF", + "0.5": "#FFFFFFFF", + "1.0": "#FFD01111" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_electric.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_electric.particle.json new file mode 100644 index 0000000000..cdbaee3b40 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_electric.particle.json @@ -0,0 +1,64 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_electric", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-electric" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.67": "#FFFF9400" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fairy.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fairy.particle.json new file mode 100644 index 0000000000..39e481850e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fairy.particle.json @@ -0,0 +1,69 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_fairy", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-fairy" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 15 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.3, 0.6)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -3, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 * variable.scale", "0.2 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.11": "#ffffffff", + "0.21": "#FFFF76FF", + "0.39": "#FFFF3FA7", + "0.5": "#FFF6B1FF", + "0.57": "#ffffffff", + "0.65": "#FFFFAECF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fighting.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fighting.particle.json new file mode 100644 index 0000000000..7cd30fa14a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fighting.particle.json @@ -0,0 +1,64 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_fighting", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-fighting" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 * variable.scale", "0.2 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.28": "#FFFFFFFF", + "0.5": "#FFFF7B7B" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fire.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fire.particle.json new file mode 100644 index 0000000000..15755292ed --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_fire.particle.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_fire", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-fire" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_flying.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_flying.particle.json new file mode 100644 index 0000000000..a0c753d325 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_flying.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_flying", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-flying" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.7, 0.9)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -3, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ghost.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ghost.particle.json new file mode 100644 index 0000000000..9a4ef73d5b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ghost.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_ghost", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-ghost" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.7, 0.9)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 6, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.67": "#FF3D1662" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_grass.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_grass.particle.json new file mode 100644 index 0000000000..ef83fdae88 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_grass.particle.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_grass", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-grass" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ground.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ground.particle.json new file mode 100644 index 0000000000..1c12d807d4 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ground.particle.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_ground", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-ground" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.4 * variable.scale", "0.4 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ice.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ice.particle.json new file mode 100644 index 0000000000..47987465f1 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_ice.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_ice", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-ice" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.5, 0.9)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -3, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 * variable.scale", "0.2 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.27": "#FFAEFFF4", + "0.5": "#ffffffff" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_normal.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_normal.particle.json new file mode 100644 index 0000000000..6410e5ac49 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_normal.particle.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_normal", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-normal" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 * variable.scale", "0.2 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_poison.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_poison.particle.json new file mode 100644 index 0000000000..cd3aee6e09 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_poison.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_poison", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-poison" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.5, 0.2)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,13)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 3, 0], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.4 * variable.scale", "0.4 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_psychic.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_psychic.particle.json new file mode 100644 index 0000000000..8856af52fd --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_psychic.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_psychic", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-psychic" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.7, 0.9)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(15,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 7 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFAF5AFF", + "0.34": "#FFFFFFFF", + "0.67": "#FFE100FF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_rock.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_rock.particle.json new file mode 100644 index 0000000000..7df593c74e --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_rock.particle.json @@ -0,0 +1,63 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_rock", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-rock" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "direction": ["math.random(-1,1)", 1, "math.random(-1,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.5, 0.7)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(8,12)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -30, 0], + "linear_drag_coefficient": 2 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 1, + "coefficient_of_restitution": 1, + "collision_radius": 0.1 + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_steel.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_steel.particle.json new file mode 100644 index 0000000000..40656ba789 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_steel.particle.json @@ -0,0 +1,66 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_steel", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-steel" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "direction": ["math.random(-1,1)", 1, "math.random(-1,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.5, 0.7)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(8,12)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -30, 0], + "linear_drag_coefficient": 2 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 56, + "flipbook": { + "base_UV": [8, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 1, + "coefficient_of_restitution": 1, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": [0.61176, 0.61176, 0.61176, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_water.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_water.particle.json new file mode 100644 index 0000000000..84e1db2cd3 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/impact_water.particle.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:impact_water", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/impact-water" + } + }, + "curves": { + "variable.scale": { + "type": "linear", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [1, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 10 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.2, 0.5)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,360)" + }, + "minecraft:particle_initial_speed": "math.random(10,15)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.3 * variable.scale", "0.3 * variable.scale"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 20, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit.particle.json new file mode 100644 index 0000000000..18f47e5183 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit.particle.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:multi_hit", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/hit" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 12, + "max_particles": 3 + }, + "minecraft:emitter_lifetime_once": { + "active_time": "4/12" + }, + "minecraft:emitter_shape_sphere": { + "radius": 0.5, + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit_grass.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit_grass.particle.json new file mode 100644 index 0000000000..0ed7a12f39 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/multi_hit_grass.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:multi_hit_grass", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/hit" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 12, + "max_particles": 3 + }, + "minecraft:emitter_lifetime_once": { + "active_time": "4/12" + }, + "minecraft:emitter_shape_sphere": { + "radius": 0.5, + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.02": "#FFADFF68", + "0.14": "#FF86FF42", + "0.21": "#FF08683C" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny.particle.json new file mode 100644 index 0000000000..b236d869f2 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny.particle.json @@ -0,0 +1,68 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:shiny", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "curves": { + "variable.size": { + "type": "catmull_rom", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [0, 0, 0.1, 0.1, 0.1, 0, 0] + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 2, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_entity_aabb": { + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(1,3)" + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer()(0,3) * 90" + }, + "minecraft:particle_initial_speed": "math.random(-0.5,1)", + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": 2 + }, + "minecraft:particle_appearance_billboard": { + "size": ["v.size", "v.size"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 2, + "max_frame": 2, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FFFFFF", + "0.5": "#FFFFF9C6", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_burst.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_burst.particle.json new file mode 100644 index 0000000000..0a71804ea8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_burst.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:shiny_burst", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": "3 + v.particle_random_1*3 * v.entity_scale", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -1, 0], + "linear_drag_coefficient": 3 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.clamp(v.particle_age*-0.35+0.3,0,0.1)", "math.clamp(v.particle_age*-0.35+0.3,0,0.1)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 12, + "max_frame": 2, + "stretch_to_lifetime": true, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFAEFFFA", + "0.63": "#FFE1FFFD", + "1.0": "#00C5FFF2" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_glimmer.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_glimmer.particle.json new file mode 100644 index 0000000000..c8991156c5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_glimmer.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:shiny_glimmer", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "curves": { + "variable.size": { + "type": "bezier", + "input": "v.particle_age", + "horizontal_range": "v.particle_lifetime", + "nodes": [0, 1.33, 1.33, 0] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_box": { + "half_dimensions": ["0.75 * v.entity_scale", "0.25 * v.entity_scale", "0.75 * v.entity_scale"], + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "0.5 + v.particle_random_2 * 0.8" + }, + "minecraft:particle_initial_speed": 1, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "0.35 + v.particle_random_3 * 1.5", 0] + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.1 * v.size", "0.1 * v.size"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 16, + "max_frame": 2, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF9AFFF7", + "0.5": "#ffffffff", + "1.0": "#FF8CFFF7" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_ring.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_ring.particle.json new file mode 100644 index 0000000000..f5b8289be9 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_ring.particle.json @@ -0,0 +1,76 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:shiny_ring", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/blocks/wool_colored_white" + } + }, + "curves": { + "variable.bezier": { + "type": "bezier_chain", + "input": "v.particle_age", + "nodes": { + "0.0": { + "value": 0, + "slope": 0 + }, + "1.0": { + "value": 1, + "slope": 0 + } + } + } + }, + "components": { + "minecraft:emitter_local_space": { + "position": true, + "rotation": false + }, + "minecraft:emitter_rate_instant": { + "num_particles": 8 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 3 + }, + "minecraft:emitter_shape_point": { + "direction": [0, 1, "math.random(0,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 1, + "minecraft:particle_motion_parametric": { + "relative_position": ["math.sin(v.particle_age*90*5+90+360*v.particle_random_1)*(v.particle_age*0.5+0.05)*1.5", "math.sin(v.particle_age*90*5+360*v.particle_random_1)*(v.particle_age*0.5+0.05)*1.5 * v.entity_scale", "v.particle_random_2 * 0.2 - 0.1"] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 16, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 12, + "max_frame": 2, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF76FFF7", + "0.48": "#C2CBFFFA", + "0.95": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_send_out.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_send_out.animation.json new file mode 100644 index 0000000000..ae144aff59 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/shiny_send_out.animation.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.shiny_send_out.star": { + "animation_length": 1.5, + "sound_effects": { + "0.0": { + "effect": "shiny_pkmn" + } + }, + "particle_effects": { + "0.0": [ + { + "effect": "shiny_ring" + }, + { + "effect": "shiny_burst" + }, + { + "effect": "shiny_glimmer" + } + ] + } + }, + "animation.shiny_send_out.square": { + "animation_length": 1.5, + "sound_effects": { + "0.0": { + "effect": "shiny_pkmn" + } + }, + "particle_effects": { + "0.0": [ + { + "effect": "shiny_ring" + }, + { + "effect": "shiny_burst" + }, + { + "effect": "shiny_glimmer" + } + ] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_bubbles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_bubbles.particle.json new file mode 100644 index 0000000000..bb4c48e387 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_bubbles.particle.json @@ -0,0 +1,59 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sleep_zzz", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/bubble" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 4, + "max_particles": 16 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1.5, + "sleep_time": 3 + }, + "minecraft:emitter_shape_point": { + "direction": ["math.random(-0.55,0.55)", "math.random(0.8,1)", "math.random(-0.55,0.55)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 4 + }, + "minecraft:particle_initial_speed": "1/3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0.45, 0], + "linear_drag_coefficient": 0.85 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.clamp(v.particle_age*0.33/2, 0, 0.15)", "math.clamp(v.particle_age*0.33/2, 0, 0.15)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 48, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 2, + "max_frame": 3, + "loop": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.5": "#CCFFFFFF", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_zzz.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_zzz.particle.json new file mode 100644 index 0000000000..a2973d237b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/sleep_zzz.particle.json @@ -0,0 +1,58 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sleep_zzz", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/sleep_zzz" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 2, + "max_particles": 9 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1.5, + "sleep_time": 3 + }, + "minecraft:emitter_shape_point": { + "direction": ["math.random(-0.25,0.25)", "math.random(0.8,1)", "math.random(-0.25,0.25)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 4 + }, + "minecraft:particle_initial_speed": "1/3", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 0.45, 0], + "linear_drag_coefficient": 0.85 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.clamp(v.particle_age*0.33/2, 0, 0.25)", "math.clamp(v.particle_age*0.66/2, 0, 0.25)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 24, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 1, + "max_frame": 3 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.5": "#CCFFFFFF", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_circles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_circles.particle.json new file mode 100644 index 0000000000..65ba5fe3b1 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_circles.particle.json @@ -0,0 +1,57 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:stat_down_circles", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "0.75*v.particle_random_3+0.75", 0], + "radius": 1, + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "0.8+v.particle_random_1*0.5" + }, + "minecraft:particle_initial_speed": 0.2, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "v.particle_random_4*2-6", 0], + "linear_drag_coefficient": 1.25 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.05+0.15*v.particle_random_2", "0.05+0.15*v.particle_random_2"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00422A85", + "0.24": "#B36982FF", + "0.5": "#B361DFFF", + "0.76": "#B35661FF", + "1.0": "#00270F5E" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_lines.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_lines.particle.json new file mode 100644 index 0000000000..f9d682336a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_down_lines.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:stat_down_lines", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/cut" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 6, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": ["math.sin(v.emitter_age/v.emitter_lifetime*90*9+v.emitter_random_1*360)", "v.particle_random_1 * 0.3 - 0.15", "math.cos(v.emitter_age/v.emitter_lifetime*90*9+v.emitter_random_1*360)"], + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": 45 + }, + "minecraft:particle_initial_speed": 2, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -16, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.3, 0.3], + "facing_camera_mode": "lookat_y", + "uv": { + "texture_width": 32, + "texture_height": 224, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 18, + "max_frame": 8 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.17": "#FF78E4FF", + "0.49": "#FF4915BD" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up.particle.json new file mode 100644 index 0000000000..16d3047727 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:stat_up", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 5, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_entity_aabb": { + "surface_only": true, + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 0.6, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 2, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.5, 0.5], + "facing_camera_mode": "rotate_y", + "uv": { + "texture_width": 16, + "texture_height": 80, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 12, + "loop": true + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_circles.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_circles.particle.json new file mode 100644 index 0000000000..05e6159097 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_circles.particle.json @@ -0,0 +1,57 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:stat_up_circles", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "0.75*v.particle_random_3-0.75", 0], + "radius": 1, + "surface_only": true, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "0.8+v.particle_random_1*0.5" + }, + "minecraft:particle_initial_speed": 0.2, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "v.particle_random_4*2+6", 0], + "linear_drag_coefficient": 1.25 + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.05+0.15*v.particle_random_2", "0.05+0.15*v.particle_random_2"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00852A2A", + "0.24": "#B3FFB469", + "0.5": "#B3FFE461", + "0.76": "#B3FF7356", + "1.0": "#005E1F0F" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_lines.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_lines.particle.json new file mode 100644 index 0000000000..5b5083a6fd --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/generic/stat_up_lines.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:stat_up_lines", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/cut" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 6, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": ["math.sin(v.emitter_age/v.emitter_lifetime*90*9+v.emitter_random_1*360)", "v.particle_random_1 * 0.3 - 0.15", "math.cos(v.emitter_age/v.emitter_lifetime*90*9+v.emitter_random_1*360)"], + "direction": [0, -1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": -135 + }, + "minecraft:particle_initial_speed": 2, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 16, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.3, 0.3], + "facing_camera_mode": "lookat_y", + "uv": { + "texture_width": 32, + "texture_height": 224, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 18, + "max_frame": 8 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.17": "#FFFFEC78", + "0.49": "#FFBD3315" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke.particle.json index 9b55bb1f47..3c17f86c3a 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke.particle.json @@ -38,7 +38,7 @@ "minecraft:particle_initial_speed": -0.1, "minecraft:particle_motion_dynamic": {}, "minecraft:particle_appearance_billboard": { - "size": ["0.35 * variable.shrink * 3", "0.35 * variable.shrink * 3"], + "size": ["variable.shrink * variable.entity_width", "variable.shrink * variable.entity_width"], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 16, diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke_center.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke_center.particle.json index 3ba5fca024..6e2d618ec3 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke_center.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/ghostly_smoke_center.particle.json @@ -37,7 +37,7 @@ "minecraft:particle_initial_speed": -0.1, "minecraft:particle_motion_dynamic": {}, "minecraft:particle_appearance_billboard": { - "size": ["0.4 * variable.shrink * 3", "0.4 * variable.shrink * 3"], + "size": ["variable.shrink * variable.entity_width", "variable.shrink * variable.entity_width"], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 16, diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/spewpa_confetti.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/spewpa_confetti.json new file mode 100644 index 0000000000..40a030f91b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/spewpa_confetti.json @@ -0,0 +1,74 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:confetti", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/generic_0" + } + }, + "curves": { + "variable.spewpa": { + "type": "linear", + "input": "variable.particle_random_2", + "horizontal_range": 1, + "nodes": [1, 1, 1, -0.41, -0.41, -0.41, 0.5, 0.5, 0.5] + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 30 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 2 + }, + "minecraft:emitter_shape_box": { + "offset": [0, 0.1, 0], + "half_dimensions": [0.1, 0.1, 0.1], + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 2 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,359)*0" + }, + "minecraft:particle_initial_speed": 5, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -3, 0], + "linear_drag_coefficient": 2, + "rotation_acceleration": 2, + "rotation_drag_coefficient": 20 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.1, 0.1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 16, + "uv": [0, 0], + "uv_size": [16, 16] + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 2.8, + "coefficient_of_restitution": 0.2, + "collision_radius": 0.01 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "variable.spewpa", + "gradient": { + "0.0": "#FFC7504B", + "0.12": "#FFC7504B", + "0.13": "#FFB7AC7B", + "0.78": "#FFB7AC7B", + "0.8": "#FF2A2A2A", + "1.0": "#FF2A2A2A" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/test.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/test.particle.json new file mode 100644 index 0000000000..9bd52965d6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/misc/test.particle.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:test", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/lava_bubble" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 2, + "max_particles": 4 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "direction": [0, 1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_speed": 1.5, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["1/2", "1/2"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 144, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 24, + "max_frame": 9, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [1, 1, 1, 1] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_aura.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_aura.particle.json new file mode 100644 index 0000000000..04f9462c16 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_aura.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:dragon_claw_aura", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 8, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1.0 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "math.random(-0.5,0.5)", 0], + "radius": 1, + "surface_only": true, + "direction": [0, -1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "9/24" + }, + "minecraft:particle_initial_spin": { + "rotation": 90 + }, + "minecraft:particle_initial_speed": 3, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_y", + "uv": { + "texture_width": 32, + "texture_height": 192, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "max_frame": 6, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFA5385C", + "0.5": "#FFFFD1D1", + "1.0": "#FFA5385C" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_stars.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_hand.particle.json similarity index 56% rename from common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_stars.particle.json rename to common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_hand.particle.json index c15de02849..9be15713fb 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_stars.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_hand.particle.json @@ -2,7 +2,7 @@ "format_version": "1.10.0", "particle_effect": { "description": { - "identifier": "cobblemon:pokeball_capture_hisui_firework_stars", + "identifier": "cobblemon:dragon_claw_hand", "basic_render_parameters": { "material": "particles_blend", "texture": "textures/blocks/wool_colored_white" @@ -10,39 +10,36 @@ }, "components": { "minecraft:emitter_rate_steady": { - "spawn_rate": 200, - "max_particles": "math.floor(v.emitter_random_1*5) + 10" + "spawn_rate": 60, + "max_particles": 100 }, "minecraft:emitter_lifetime_once": { - "active_time": 0.2 - }, - "minecraft:emitter_shape_sphere": { - "offset": [0, -1.65, 0], - "radius": 0.25, - "surface_only": true, - "direction": "outwards" + "active_time": 1.15 }, + "minecraft:emitter_shape_point": {}, "minecraft:particle_lifetime_expression": { - "max_lifetime": "math.random(0.45,0.7)/1.6" + "max_lifetime": 0.4 }, - "minecraft:particle_initial_speed": 10, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(1,4)*90" + }, + "minecraft:particle_initial_speed": 0.5, "minecraft:particle_motion_dynamic": { - "linear_acceleration": [0, -1, 0], - "linear_drag_coefficient": 6 + "linear_acceleration": [0, 1, 0] }, "minecraft:particle_appearance_billboard": { - "size": [0.15, 0.15], + "size": [0.1, 0.1], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 8, - "texture_height": 32, + "texture_height": 56, "flipbook": { "base_UV": [0, 0], "size_UV": [8, 8], "step_UV": [0, 8], - "frames_per_second": 32, - "max_frame": 4, - "loop": true + "frames_per_second": 12, + "max_frame": 7, + "stretch_to_lifetime": true } } }, @@ -51,8 +48,8 @@ "interpolant": "v.particle_age / v.particle_lifetime", "gradient": { "0.0": "#ffffffff", - "0.36": "#FFFFFDEB", - "1.0": "#00FFF2C8" + "0.61": "#ffffffff", + "1.0": "#00FFFFFF" } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_pop.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_target_scratch.particle.json similarity index 55% rename from common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_pop.particle.json rename to common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_target_scratch.particle.json index e7e26357ff..e4776388c8 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_pop.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/dragon_claw/dragon_claw_target_scratch.particle.json @@ -2,10 +2,10 @@ "format_version": "1.10.0", "particle_effect": { "description": { - "identifier": "cobblemon:pokeball_capture_hisui_firework_pop", + "identifier": "cobblemon:dragon_claw_target_scratch", "basic_render_parameters": { - "material": "particles_blend", - "texture": "textures/blocks/wool_colored_white" + "material": "particles_alpha", + "texture": "textures/particles/scratch" } }, "components": { @@ -16,33 +16,42 @@ "active_time": 1 }, "minecraft:emitter_shape_point": { - "offset": [0, -1.65, 0] + "direction": [0, 0, 2] }, "minecraft:particle_lifetime_expression": { - "max_lifetime": 0.2 + "max_lifetime": "9/24" }, "minecraft:particle_initial_spin": { - "rotation": "math.random_integer(0,3)*90" + "rotation": "math.random(-45,135)" }, "minecraft:particle_initial_speed": 0, "minecraft:particle_motion_dynamic": {}, "minecraft:particle_appearance_billboard": { - "size": ["0.6 * (1.2-v.particle_age/v.particle_lifetime)", "0.6 * (1.2-v.particle_age/v.particle_lifetime)"], + "size": [1, 1], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 32, - "texture_height": 32, - "uv": [0, 0], - "uv_size": [32, 32] + "texture_height": 224, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24, + "max_frame": 7, + "stretch_to_lifetime": true + } } }, + "minecraft:particle_appearance_lighting": {}, "minecraft:particle_appearance_tinting": { "color": { "interpolant": "v.particle_age / v.particle_lifetime", "gradient": { - "0.0": "#FFD1FF9D", - "0.61": "#73FFF056", - "1.0": "#00FFBC48" + "0.0": "#FF61217E", + "0.12": "#FF8C105D", + "0.25": "#FFF33273", + "0.56": "#FF8C105D", + "0.83": "#FF61217E" } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_fire.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_fire.particle.json new file mode 100644 index 0000000000..ccb52cf46a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_fire.particle.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_burst_fire", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "cobblemon:textures/particle/impact-fire" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 64 + }, + "minecraft:emitter_lifetime_once": { + "active_time": "2/24" + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(12,24)/24 " + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "v.particle_random_3*10 +10", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "5 + 30*v.particle_random_1", 0], + "linear_drag_coefficient": "2.5 + 5*v.particle_random_2" + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.max(0.8 -v.particle_age*(0.5+v.particle_random_1), 0)", "math.max(0.8 -v.particle_age*(0.5+v.particle_random_1), 0)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 24, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "coefficient_of_restitution": 0.5, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.56": "#ffffffff", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_flash.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_flash.particle.json new file mode 100644 index 0000000000..1176b3bc2d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_burst_flash.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_burst_flash", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/particle/flash" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 32, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.2 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.45 + }, + "minecraft:particle_initial_speed": 3, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["(-1.5*math.pow(50, -4*v.particle_age)+1.5)+1", "(-1.5*math.pow(50, -4*v.particle_age)+1.5)+1"], + "facing_camera_mode": "lookat_direction", + "uv": { + "texture_width": 16, + "texture_height": 16, + "uv": [0, 0], + "uv_size": [16, 16] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFE385", + "0.5": "#45FFFFFF", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_accretion.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_accretion.particle.json new file mode 100644 index 0000000000..df0f31b26c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_accretion.particle.json @@ -0,0 +1,53 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_charge_accretion", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "cobblemon:textures/particle/charge_orb" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 18, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1.2 + }, + "minecraft:emitter_shape_sphere": { + "radius": 2, + "surface_only": true, + "direction": "inwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.85 + }, + "minecraft:particle_initial_speed": 0.075, + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": -6.5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["-0.1*math.cos(v.particle_age*90*4*1.15-45)+0.1", "-0.1*math.cos(v.particle_age*90*4*1.15-45)+0.1"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FF0000", + "0.43": "#FFFFDF94", + "0.85": "#FFFFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_light.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_light.particle.json new file mode 100644 index 0000000000..8a579c33c6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_charge_light.particle.json @@ -0,0 +1,46 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_charge_light", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/particle/flash" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 3 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 2.25 + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["v.particle_age*0.25 + 0.75", "v.particle_age*0.25 + 0.75"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 16, + "uv": [0, 0], + "uv_size": [16, 16] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FF9600", + "0.48": "#40FFE47E", + "1.0": "#94D7FEFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_debris_smoke.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_debris_smoke.particle.json new file mode 100644 index 0000000000..424ea5aadb --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_debris_smoke.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_debris_smoke", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "cobblemon:textures/particle/impact_dark" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 4, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1.5 + }, + "minecraft:emitter_shape_point": { + "offset": [0, -0.1, 0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "2+v.particle_random_1" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": 0.1, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["0.5*v.particle_random_2 - 0.25", "0.5*v.particle_random_3+1.5", "0.5*v.particle_random_2 - 0.25"], + "linear_drag_coefficient": 0.1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 6, + "max_frame": 8 + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_lighting": {} + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_target.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_target.particle.json new file mode 100644 index 0000000000..b8c8fdc100 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/explosion/explosion_target.particle.json @@ -0,0 +1,68 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:explosion_target", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "cobblemon:textures/particle/impact-fire" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 64 + }, + "minecraft:emitter_lifetime_once": { + "active_time": "2/24" + }, + "minecraft:emitter_shape_disc": { + "offset": [0, 0, -1], + "radius": 1, + "plane_normal": "z", + "surface_only": true, + "direction": ["math.random(-0.7,0.7)", "math.random(-0.7,0.7)", 1] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(12,24)/24 " + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "v.particle_random_3*15 +10", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["5 + 15*(v.particle_random_1-0.5)", "5 + 15*v.particle_random_1", "5 + 15*(v.particle_random_1-0.5)"], + "linear_drag_coefficient": "1 + 1.5*v.particle_random_2" + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.max(0.3 -v.particle_age*(0.1+v.particle_random_1), 0)", "math.max(0.3 -v.particle_age*(0.1+v.particle_random_1), 0)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "frames_per_second": 24, + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "coefficient_of_restitution": 0.5, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.56": "#ffffffff", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_actor.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_actor.particle.json new file mode 100644 index 0000000000..ffd37aa299 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_actor.particle.json @@ -0,0 +1,66 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:flamethrower_actor", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/impact-fire" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 50, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1.25 + }, + "minecraft:emitter_shape_point": { + "direction": [0, "math.random(-0.1,0.1)", -1.0] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.8 + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "math.random(8,14)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "math.random(1,4)", 0], + "linear_drag_coefficient": "math.random(0.5 ,1)" + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.15*v.particle_random_1 + 0.15", "0.15*v.particle_random_1 + 0.15"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "coefficient_of_restitution": 0.5, + "collision_radius": 0.15 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.35": "#ffffffff", + "0.7": "#FFFF5353", + "0.79": "#692E140D", + "0.89": "#003D1010" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target.particle.json new file mode 100644 index 0000000000..9c3630d2fb --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:flamethrower_target", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particles/hit" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random(0,90)" + }, + "minecraft:particle_appearance_billboard": { + "size": [1, 1], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 32, + "texture_height": 160, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [32, 32], + "step_UV": [0, 32], + "frames_per_second": 24 + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / 4*24", + "gradient": { + "0.0": "#FFFFBC51", + "0.76": "#FFDE3017", + "0.9": "#FF2A2222" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target_linger.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target_linger.particle.json new file mode 100644 index 0000000000..cd7e290248 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/flamethrower/flamethrower_target_linger.particle.json @@ -0,0 +1,67 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:flamethrower_target_linger", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/impact-fire" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 12, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "radius": 1, + "surface_only": true, + "direction": ["math.random(-1,1)", -1, "math.random(-1,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.75 + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "math.random(-4,0)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "math.random(6,9)", 0], + "linear_drag_coefficient": "math.random(0.5, 1)" + }, + "minecraft:particle_appearance_billboard": { + "size": ["0.15*v.particle_random_1 + 0.15", "0.15*v.particle_random_1 + 0.15"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [8, 8], + "step_UV": [0, 8], + "max_frame": 7, + "stretch_to_lifetime": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.15 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFFFFFFF", + "0.35": "#ffffffff", + "0.7": "#FFFF5353", + "0.79": "#692E140D", + "0.89": "#003D1010" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/population_bomb/population_bomb_target_mice.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/population_bomb/population_bomb_target_mice.particle.json new file mode 100644 index 0000000000..106879ead6 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/population_bomb/population_bomb_target_mice.particle.json @@ -0,0 +1,70 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:population_bomb_target_mice", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particle/maus" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 5 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": { + "offset": [0, 0.1, 0], + "direction": ["math.random(-0.5,0.5)", 1, "math.random(-0.5,0.5)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "1+math.random(0,0.25)" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)", + "rotation_rate": "math.floor(math.mod((v.particle_age*(6-(12*v.particle_random_1)))*45, 8))" + }, + "minecraft:particle_initial_speed": "math.random(6,10)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -30, 0], + "linear_drag_coefficient": 0.5 + }, + "minecraft:particle_motion_parametric": { + "rotation": "math.floor(math.mod((v.particle_age*(24-(48*v.particle_random_1))), 8))*45" + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 8, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 10, + "coefficient_of_restitution": 0.6, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.72": "#ffffffff", + "0.93": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_1.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_1.particle.json new file mode 100644 index 0000000000..ad71f96261 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_1.particle.json @@ -0,0 +1,67 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:razor_leaf_actor_1", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "particles:textures/particle/impact_grass" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 40, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.2 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "v.particle_random_1*0.15", 0], + "radius": "0.65 + 0.2*v.particle_random_4", + "surface_only": true, + "direction": ["0.1 - v.particle_random_2*0.2", 1, "0.1 - v.particle_random_3*0.2"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(0,4) * 90" + }, + "minecraft:particle_initial_speed": "6 +8*v.particle_random_1", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, "-3 - 4*v.particle_random_1", 0], + "linear_drag_coefficient": "8 - 2*v.particle_random_1" + }, + "minecraft:particle_appearance_billboard": { + "size": [0.15, 0.15], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 56, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [0, 8], + "step_UV": [0, 8], + "frames_per_second": 16, + "max_frame": 7, + "loop": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.15 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.8": "#ffffffff", + "1.0": "#000E5E05" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_2.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_2.particle.json new file mode 100644 index 0000000000..2ddc3232dd --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_actor_2.particle.json @@ -0,0 +1,66 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:razor_leaf_actor_2", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particle/leaf" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 24, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_disc": { + "offset": [0, "v.particle_random_1 *0.4 - 0.2", 1], + "radius": "0.6 + 0.15*v.particle_random_4", + "surface_only": true, + "direction": ["v.particle_random_3 * 0.1 - 0.05", "v.particle_random_2 * 0.1 - 0.05", -1] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.3 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(0,1)*180" + }, + "minecraft:particle_initial_speed": 12, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 + v.particle_random_1 * 0.05", "0.2 + v.particle_random_1 * 0.05"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 24, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.1, + "expire_on_contact": true + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FFFFFF", + "0.22": "#ffffffff", + "0.6": "#ffffffff", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_target.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_target.particle.json new file mode 100644 index 0000000000..3e3b2f2832 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/razor_leaf/razor_leaf_target.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:razor_leaf_target", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particle/leaf" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 24, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "offset": [0, 0, -3], + "radius": 0.65, + "direction": ["v.particle_random_3 * 0.1 - 0.05", "v.particle_random_2 * 0.1 - 0.05", 1] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.3 + }, + "minecraft:particle_initial_spin": { + "rotation": "math.random_integer(0,1)*180" + }, + "minecraft:particle_initial_speed": 12, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["0.2 + v.particle_random_1 * 0.05", "0.2 + v.particle_random_1 * 0.05"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 64, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 24, + "max_frame": 4, + "loop": true + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.1, + "expire_on_contact": true + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FFFFFF", + "0.25": "#ffffffff", + "0.6": "#ffffffff", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_1.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_1.particle.json new file mode 100644 index 0000000000..96116da0dc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_1.particle.json @@ -0,0 +1,56 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sand_tomb_1", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/sand_tomb_1" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 20, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_expression": { + "activation_expression": 1 + }, + "minecraft:emitter_shape_point": { + "offset": ["math.sin(v.emitter_age*90*6)*2", 0, "math.sin(v.emitter_age*90*6-90)*2"], + "direction": ["math.random(-0.2,0.2)", 1, "math.random(-0.2,0.2)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(1,2)" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": 6, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 12, 0], + "linear_drag_coefficient": 1.5 + }, + "minecraft:particle_appearance_billboard": { + "size": ["math.clamp(v.particle_age*1.25,1.1,2)", "math.clamp(v.particle_age*1.25,1.1,2)"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 16, + "uv": [0, 0], + "uv_size": [16, 16] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#0092815C", + "0.16": "#8AFFFFFF", + "1.0": "#00B79259" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_2.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_2.particle.json new file mode 100644 index 0000000000..8bcd0557bc --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sand_tomb/sand_tomb_2.particle.json @@ -0,0 +1,59 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sand_tomb_2", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/particles/sand_tomb_2" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 8, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_looping": { + "active_time": 1 + }, + "minecraft:emitter_shape_disc": { + "radius": 2.5, + "direction": ["math.random(-0.6,0.6)", 1, "math.random(-0.6,0.6)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.8,1)" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(0,3)" + }, + "minecraft:particle_initial_speed": 12, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, 16, 0], + "linear_drag_coefficient": 1 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.4, 0.4], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 32, + "flipbook": { + "base_UV": [0, "math.random_integer(0,3)*8"], + "size_UV": [8, 8], + "step_UV": [0, 8] + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#ffffffff", + "0.74": "#ffffffff", + "1.0": "#00FFFFFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_1.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_1.particle.json new file mode 100644 index 0000000000..7dfd6099c2 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_1.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sludge_bomb_target_1", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "radius": 0.5, + "direction": "outwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.75,1.25)" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "math.random(4,8)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -32, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 80, + "coefficient_of_restitution": 0.5, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF7E569D", + "0.84": "#FF7E569D", + "0.92": "#807E569D", + "1.0": "#00541A69" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_2.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_2.particle.json new file mode 100644 index 0000000000..8b9fe0b327 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_2.particle.json @@ -0,0 +1,60 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sludge_bomb_target_2", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 12 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_sphere": { + "radius": 0.5, + "direction": ["math.random(-1,1)", "math.random(0,1 )", "math.random(-1,1)"] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": "math.random(0.75,1.25)" + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": "math.random(4,8)", + "minecraft:particle_motion_dynamic": { + "linear_acceleration": [0, -8, 0] + }, + "minecraft:particle_appearance_billboard": { + "size": [0.2, 0.2], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_motion_collision": { + "collision_drag": 30, + "coefficient_of_restitution": 0.5, + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF7E569D", + "0.84": "#FF7E569D", + "0.92": "#807E569D", + "1.0": "#00541A69" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_1.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_1.particle.json new file mode 100644 index 0000000000..8fb4f8e2a8 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_1.particle.json @@ -0,0 +1,64 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sludge_bomb_target_projectile_1", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 24, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.469 + }, + "minecraft:emitter_shape_point": { + "offset": [0, "5*math.pow(v.emitter_age+0.3, 4)-2", "4*v.emitter_age-1.8 "] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": 1, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-1.5,1.5))", -1, "math.random(-1.5,1.5))"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.3, 0.3], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 144, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 18, + "max_frame": 9 + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FF9059A8", + "0.17": "#FF9059A8", + "0.75": "#FF78498D", + "1.0": "#FF7D4A90" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_2.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_2.particle.json new file mode 100644 index 0000000000..ee6845e6e1 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_projectile_2.particle.json @@ -0,0 +1,65 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:sludge_bomb_target_projectile_2", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 16, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.469 + }, + "minecraft:emitter_shape_point": { + "offset": [0, "5*math.pow(v.emitter_age+0.3, 4)-2", "4*v.emitter_age-1.8 "] + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.5 + }, + "minecraft:particle_initial_spin": { + "rotation": "90*math.random_integer(1,4)" + }, + "minecraft:particle_initial_speed": 1, + "minecraft:particle_motion_dynamic": { + "linear_acceleration": ["math.random(-1.5,1.5))", -1, "math.random(-1.5,1.5))"], + "linear_drag_coefficient": 5 + }, + "minecraft:particle_appearance_billboard": { + "size": [0.4, 0.4], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 144, + "flipbook": { + "base_UV": [0, 0], + "size_UV": [16, 16], + "step_UV": [0, 16], + "frames_per_second": 18, + "max_frame": 9 + } + } + }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.1 + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#FFC97BED", + "0.24": "#FFFCB5FF", + "0.28": "#FFC97BED", + "0.75": "#FF4E3364", + "1.0": "#FF7D4A90" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_smog.particle.json similarity index 53% rename from common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke.particle.json rename to common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_smog.particle.json index 3123c2775a..0a187d9250 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_smoke.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/sludge_bomb/sludge_bomb_target_smog.particle.json @@ -2,37 +2,37 @@ "format_version": "1.10.0", "particle_effect": { "description": { - "identifier": "cobblemon:pokeball_capture_hisui_smoke", + "identifier": "cobblemon:sludge_bomb_target_smog", "basic_render_parameters": { - "material": "particles_blend", - "texture": "cobblemon:particle/smoke" + "material": "particles_alpha", + "texture": "textures/blocks/wool_colored_white" } }, "components": { "minecraft:emitter_rate_instant": { - "num_particles": "4" + "num_particles": 5 }, "minecraft:emitter_lifetime_once": { "active_time": 1 }, "minecraft:emitter_shape_sphere": { - "offset": [0, -0.2, 0], - "radius": 0.1, - "direction": ["math.random(-0.3,0.3)", -0.5, "math.random(-0.3,0.3)"] + "radius": 0.2, + "surface_only": true, + "direction": "outwards" }, "minecraft:particle_lifetime_expression": { - "max_lifetime": "math.random(0.45,0.7)" + "max_lifetime": 1 }, "minecraft:particle_initial_spin": { - "rotation": "math.random_integer(0,3)*90" + "rotation": "90*math.random_integer(1,4)" }, - "minecraft:particle_initial_speed": "math.random(2.5,4)", + "minecraft:particle_initial_speed": 2.4, "minecraft:particle_motion_dynamic": { - "linear_acceleration": ["v.particle_random_1 - 0.5", "v.particle_random_2 - 0.5", "v.particle_random_3 - 0.5"], - "linear_drag_coefficient": 3.5 + "linear_acceleration": ["math.random(-4,4)", "math.random(-4,4)", "math.random(-4,4)"], + "linear_drag_coefficient": 2 }, "minecraft:particle_appearance_billboard": { - "size": [0.2, 0.2], + "size": ["0.4+0.3*v.particle_random_1", "0.4+0.3*v.particle_random_1 "], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 16, @@ -41,18 +41,23 @@ "base_UV": [0, 0], "size_UV": [16, 16], "step_UV": [0, 16], - "max_frame": 6, + "frames_per_second": 12, "stretch_to_lifetime": true } } }, + "minecraft:particle_motion_collision": { + "collision_radius": 0.15 + }, "minecraft:particle_appearance_tinting": { "color": { "interpolant": "v.particle_age / v.particle_lifetime", "gradient": { - "0.0": "#ffffffff", - "0.81": "#ffffffff", - "1.0": "#00FFFFFF" + "0.0": "#FF815D9C", + "0.05": "#FF815D9C", + "0.11": "#FFE4A7FF", + "0.23": "#FFE4A7FF", + "0.52": "#FF41403E" } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_accretion.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_accretion.particle.json new file mode 100644 index 0000000000..47869418ff --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_accretion.particle.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:synthesis_accretion", + "basic_render_parameters": { + "material": "particles_blend", + "texture": "cobblemon:textures/particle/charge_orb" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 18, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 0.8 + }, + "minecraft:emitter_shape_sphere": { + "radius": 1.75, + "surface_only": true, + "direction": "inwards" + }, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 0.85 + }, + "minecraft:particle_initial_speed": 0.125, + "minecraft:particle_motion_dynamic": { + "linear_drag_coefficient": -4.75 + }, + "minecraft:particle_appearance_billboard": { + "size": ["-0.1*math.cos(v.particle_age*90*4*1.15-45)+0.1", "-0.1*math.cos(v.particle_age*90*4*1.15-45)+0.1"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 8, + "texture_height": 8, + "uv": [0, 0], + "uv_size": [8, 8] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00BDFF00", + "0.51": "#FFE5FFF5", + "0.88": "#FFBBFFF7", + "1.0": "#FFA3FFC9" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sun.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sun.particle.json new file mode 100644 index 0000000000..1250491917 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sun.particle.json @@ -0,0 +1,47 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:synthesis_sun", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/particle/flash" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 6, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1.6 + }, + "minecraft:particle_initial_speed": "v.particle_random_1*0.3", + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["math.pow(math.sin(v.particle_age*90*2/1.6-90),4)*-1.25+1.25", "math.pow(math.sin(v.particle_age*90*2/1.6-90),4)*-1.25+1.25"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 16, + "texture_height": 16, + "uv": [0, 0], + "uv_size": [16, 16] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00FF9600", + "0.48": "#40FFFA8D", + "1.0": "#94D7FEFF" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sunlight.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sunlight.particle.json new file mode 100644 index 0000000000..ce16b62176 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/moves/synthesis/synthesis_sunlight.particle.json @@ -0,0 +1,51 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "cobblemon:synthesis_sunlight", + "basic_render_parameters": { + "material": "particles_add", + "texture": "textures/particle/lightbeam" + } + }, + "components": { + "minecraft:emitter_rate_steady": { + "spawn_rate": 12, + "max_particles": 100 + }, + "minecraft:emitter_lifetime_once": { + "active_time": 1 + }, + "minecraft:emitter_shape_point": {}, + "minecraft:particle_lifetime_expression": { + "max_lifetime": 1 + }, + "minecraft:particle_initial_spin": { + "rotation": "v.emitter_age/v.emitter_lifetime*360 + v.emitter_age/v.emitter_lifetime*360*math.pi + v.emitter_random_1*360", + "rotation_rate": "math.random(-20,20)" + }, + "minecraft:particle_initial_speed": 0, + "minecraft:particle_motion_dynamic": {}, + "minecraft:particle_appearance_billboard": { + "size": ["(6/128) * 1.5 * v.particle_age", "3 * v.particle_age"], + "facing_camera_mode": "rotate_xyz", + "uv": { + "texture_width": 6, + "texture_height": 128, + "uv": [0, 0], + "uv_size": [6, 128] + } + }, + "minecraft:particle_appearance_tinting": { + "color": { + "interpolant": "v.particle_age / v.particle_lifetime", + "gradient": { + "0.0": "#00B7FFFC", + "0.5": "#CCFFFFFF", + "1.0": "#00FFFBAC" + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_godrays.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_godrays.particle.json deleted file mode 100644 index 7e75b9409e..0000000000 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/pokeball_capture_hisui_firework_godrays.particle.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "format_version": "1.10.0", - "particle_effect": { - "description": { - "identifier": "cobblemon:pokeball_capture_hisui_firework_godrays", - "basic_render_parameters": { - "material": "particles_blend", - "texture": "textures/blocks/wool_colored_white" - } - }, - "components": { - "minecraft:emitter_rate_instant": { - "num_particles": 10 - }, - "minecraft:emitter_lifetime_once": { - "active_time": 0.2 - }, - "minecraft:emitter_shape_point": { - "offset": [0, -1.65, 0] - }, - "minecraft:particle_lifetime_expression": { - "max_lifetime": 0.2 - }, - "minecraft:particle_initial_spin": { - "rotation": "math.random(0,360) + math.floor(v.particle_random_2*3)*90", - "rotation_rate": "math.random(-40,40)" - }, - "minecraft:particle_initial_speed": 0, - "minecraft:particle_motion_dynamic": { - "rotation_drag_coefficient": 1 - }, - "minecraft:particle_appearance_billboard": { - "size": ["((6/64) - v.particle_age/2) * 0.4", "(128/64 + v.particle_age*2) * 0.4"], - "facing_camera_mode": "rotate_xyz", - "uv": { - "texture_width": 6, - "texture_height": 128, - "uv": [0, 0], - "uv_size": [6, 128] - } - }, - "minecraft:particle_appearance_tinting": { - "color": { - "interpolant": "v.particle_age / v.particle_lifetime + v.particle_random_1*0.5", - "gradient": { - "0.0": "#FFF7FFA5", - "1.0": "#00FFFFA5" - } - } - } - } - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/particles/smoke_plume.particle.json b/common/src/main/resources/assets/cobblemon/bedrock/particles/smoke_plume.particle.json index ba429baa55..0d19808125 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/particles/smoke_plume.particle.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/particles/smoke_plume.particle.json @@ -13,7 +13,7 @@ "type": "linear", "input": "v.particle_age", "horizontal_range": "v.particle_lifetime", - "nodes": [0, 0.48, 1.64] + "nodes": [0, 0.3, 1] } }, "components": { @@ -33,7 +33,7 @@ "minecraft:particle_initial_speed": 1, "minecraft:particle_motion_dynamic": {}, "minecraft:particle_appearance_billboard": { - "size": ["variable.grow", "variable.grow"], + "size": ["variable.grow * variable.entity_width", "variable.grow * variable.entity_width"], "facing_camera_mode": "rotate_xyz", "uv": { "texture_width": 1, diff --git a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/ancient_poke_ball.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/ancient_poke_ball.animation.json index bffd159bbd..e470ed9eae 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/ancient_poke_ball.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/ancient_poke_ball.animation.json @@ -746,34 +746,32 @@ } }, "particle_effects": { - "0.0417": [ + "0.0417": { + "effect": "hisuisendspark", + "locator": "top_particles" + }, + "0.0833": { + "effect": "hisuipuff", + "locator": "top_particles" + }, + "0.125": { + "effect": "hisuitrail", + "locator": "top_particles" + }, + "0.4583": [ { - "effect": "pokeball_capture_hisui_smoke", - "locator": "center_particles" + "effect": "hisuispark", + "locator": "top_particles" }, { - "effect": "pokeball_capture_hisui_smoke_contrail", + "effect": "hisuicapturestar", "locator": "top_particles" } ], - "0.4167": [ - { - "effect": "pokeball_capture_hisui_firework_pop", - "locator": "top_particles" - }, - { - "effect": "pokeball_capture_hisui_firework_godrays", - "locator": "top_particles" - }, - { - "effect": "pokeball_capture_hisui_firework_stars", - "locator": "top_particles" - }, - { - "effect": "pokeball_capture_hisui_firework_small_sparkles", - "locator": "top_particles" - } - ] + "0.5": { + "effect": "hisuiafterspark", + "locator": "top_particles" + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/poke_ball.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/poke_ball.animation.json index ba2f75c99a..97ac8f9186 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/poke_ball.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/animations/poke_ball.animation.json @@ -692,6 +692,22 @@ } } } + }, + "particle_effects": { + "0.0417": [ + { + "effect": "capturesparks", + "locator": "center_particles" + }, + { + "effect": "capturestar", + "locator": "center_particles" + } + ], + "0.125": { + "effect": "afterspark", + "locator": "center_particles" + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/ancient_poke_ball.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/ancient_poke_ball.geo.json index 2bcb56657e..a279d688d0 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/ancient_poke_ball.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/ancient_poke_ball.geo.json @@ -49,7 +49,10 @@ {"origin": [-1.5, 8, -1.5], "size": [3, 1, 3], "uv": [24, 0]}, {"origin": [-5.4, 5.5, -1.5], "size": [3, 3, 3], "pivot": [-3.9, 7.5, 0], "rotation": [0, 0, -62.5], "uv": [10, 12]}, {"origin": [2.4, 5.5, -1.5], "size": [3, 3, 3], "pivot": [3.9, 7.5, 0], "rotation": [0, 0, 62.5], "uv": [22, 12]} - ] + ], + "locators": { + "beam": [0, 0.5, 0] + } }, { "name": "latch", diff --git a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/poke_ball.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/poke_ball.geo.json index 36a4bbca1b..0a8232bd0d 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/poke_ball.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/models/poke_ball.geo.json @@ -44,7 +44,10 @@ {"origin": [-4, 4, -4], "size": [8, 4, 8], "uv": [0, 0]}, {"origin": [-1, 3, -4.255], "size": [2, 2, 0], "uv": [0, 0]}, {"origin": [-4, 4, -4], "size": [8, 4, 8], "inflate": 0.26, "uv": [0, 20]} - ] + ], + "locators": { + "beam": [0, 0.5, 0] + } } ] } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/variations/0_ancient_origin_ball_base.json b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/variations/0_ancient_origin_ball_base.json new file mode 100644 index 0000000000..92de589a94 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/poke_balls/variations/0_ancient_origin_ball_base.json @@ -0,0 +1,13 @@ +{ + "pokeball": "cobblemon:ancient_origin_ball", + "order": 0, + "variations": [ + { + "aspects": [], + "poser": "cobblemon:ancient_poke_ball", + "model": "cobblemon:ancient_poke_ball.geo", + "texture": "cobblemon:textures/poke_balls/ancient_origin_ball.png", + "layers": [] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0006_charizard/charizard.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0006_charizard/charizard.animation.json index d8e123b893..bd33a35b6e 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0006_charizard/charizard.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0006_charizard/charizard.animation.json @@ -154,6 +154,1813 @@ } } }, + "animation.charizard.battle_idle": { + "loop": true, + "animation_length": 4, + "bones": { + "torso": { + "rotation": [12.5, 0, 0], + "position": [0, "-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", -0.75] + }, + "neck": { + "rotation": ["9.2745+1*(math.sin(q.anim_time*90*3)*1+1)+1*(math.sin(q.anim_time*90*3/2)*1+1)", 7.83467, -2.21473], + "position": [0, "-0.05*(math.sin(q.anim_time*90*3-60)*1+1)", -0.75] + }, + "tail": { + "rotation": [-5, "4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 0] + }, + "tail2": { + "rotation": [30, "6*(math.sin(q.anim_time*90*3-90)*1)+6*(math.sin(q.anim_time*90*3/2-90)*1)", 0] + }, + "tail3": { + "rotation": [-20, "6*(math.sin(q.anim_time*90*3-90)*1)+6*(math.sin(q.anim_time*90*3/2-90)*1)", 0] + }, + "fire": { + "rotation": [ + "10+6*(math.sin(q.anim_time*90*3*2-90)*1-1)+6*(math.sin(q.anim_time*90*3/2-90)*1-1)", + 0, + "30+20*(math.sin(q.anim_time*90*3-150)*1-1)+6*(math.sin(q.anim_time*90*3/2-90)*1-1)" + ] + }, + "arm_left": { + "rotation": [14.28791, -11.00374, "34.7968+2*(math.sin(q.anim_time*90*3)*1+1)"] + }, + "forearm_left": { + "rotation": [0, "65-2*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)+4*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)", 0] + }, + "finger_left1": { + "rotation": [0, 15, "45-15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)-15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "finger_left3": { + "rotation": [-5, -15, "60-15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)-15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "finger_left2": { + "rotation": [0, 0, "45-15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)-15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "arm_right": { + "rotation": [9.80539, -9.96823, "-41.493-2*(math.sin(q.anim_time*90*3)*1+1)"] + }, + "forearm_right": { + "rotation": [0, "-35+2*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)-4*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)", 0] + }, + "finger_right1": { + "rotation": [0, -15, "-45+15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)+15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "finger_right3": { + "rotation": [-5, 15, "-60+15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)+15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "finger_right2": { + "rotation": [0, 0, "-45+15*math.clamp(-math.sin(q.anim_time*90*3/2)*1+1,0,1)+15*math.clamp(math.sin(q.anim_time*90*3/2)*1+1,0,1)"] + }, + "wing_right": { + "rotation": ["-math.clamp(1*(math.sin(q.anim_time*90*3+90)*1-1),-10,0)", "20*2-1*(math.sin(q.anim_time*90*3)*1+1)", 0] + }, + "wing_right3": { + "rotation": [0, "-25*2-2*(math.sin(q.anim_time*90*3-90)*1+1)", 0] + }, + "wing_left": { + "rotation": ["-math.clamp(1*(math.sin(q.anim_time*90*3+90)*1-1),-10,0)", "-20*2+1*(math.sin(q.anim_time*90*3)*1+1)", 0] + }, + "wing_left3": { + "rotation": [0, "25*2+2*(math.sin(q.anim_time*90*3-90)*1+1)", 0] + }, + "neck2": { + "rotation": [10, 0, 0] + }, + "jaw": { + "rotation": ["5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0] + }, + "wing_left2": { + "rotation": [0, "10*2+2*(math.sin(q.anim_time*90*3-90)*1+1)", 0] + }, + "wing_right2": { + "rotation": [0, "-10*2-2*(math.sin(q.anim_time*90*3-90)*1+1)", 0] + }, + "body": { + "rotation": [0, -12.5, 0] + }, + "head_ai": { + "rotation": [-20, 0, 0] + }, + "leg_right": { + "rotation": [0, 40, 0] + }, + "leg_left": { + "rotation": [0, -40, 0], + "position": [0, 0, 1.5] + }, + "torso2": { + "rotation": ["2+math.sin(q.anim_time*90*3-90)", 5, 0] + } + } + }, + "animation.charizard.physical": { + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": [12.5, 0, 0], + "0.8333": [-6.2, 1.63, 3.23], + "1.125": [-9.448, 16.58523, 3.78587], + "1.25": { + "pre": [28.10383, -15.49902, 9.03736], + "post": [28.10383, -15.49902, 9.03736], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [28.10383, -15.49902, 9.03736], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [12.5, 0, 0] + }, + "position": { + "0.0": [0, 0, -0.75], + "0.4167": { + "pre": [0, -0.5, -0.75], + "post": [0, -0.5, -0.75], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, -0.42, -0.75], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, -0.65, -0.75], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 1.25, -0.75], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [1, -1.25, -2.5], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0.65, -1.06, -2.72], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0.33, 0.04, -2.69], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, -0.75] + } + }, + "neck": { + "rotation": { + "0.0": [11.2745, 7.83467, -2.21473], + "0.8333": { + "pre": [-6.2255, 7.83467, -2.21473], + "post": [-6.2255, 7.83467, -2.21473], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [-6.2255, 7.83467, -2.21473], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-13.91, 25.33, -2.21], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-4.56, 12.2, -2.21], + "lerp_mode": "catmullrom" + }, + "2.5": [11.2745, 7.83467, -2.21473] + }, + "position": { + "0.0": [0, -0.0067, -0.75], + "2.5": [0, -0.0067, -0.75] + } + }, + "tail": { + "rotation": { + "0.0": [-5, 0, 0], + "1.0417": { + "pre": [-4.48128, 9.89479, 1.17426], + "post": [-4.48128, 9.89479, 1.17426], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-3.80058, -21.40441, 11.02538], + "lerp_mode": "catmullrom" + }, + "2.9583": [-5, 0, 0] + } + }, + "tail2": { + "rotation": { + "0.0": [30, -12, 0], + "1.125": { + "pre": [30, 18, 7.5], + "post": [30, 18, 7.5], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [20, -19.5, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [30, -12, 0] + } + }, + "tail3": { + "rotation": { + "0.0": [-20, -12, 0], + "0.8333": { + "pre": [-7.5, -34.5, 0], + "post": [-7.5, -34.5, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-5.96, 21.13, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-7.5, -37, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-15.06, -0.03, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [-20, -12, 0] + } + }, + "fire": { + "rotation": [-14, 0, -12] + }, + "arm_left": { + "rotation": { + "0.0": [14.28791, -11.00374, 36.7968], + "1.0417": { + "pre": [14.17478, 8.39433, 41.69139], + "post": [14.17478, 8.39433, 41.69139], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [14.19, -16.88, 40.99], + "lerp_mode": "catmullrom" + }, + "2.4167": [14.28791, -11.00374, 36.7968] + }, + "position": { + "0.0": [0, 0, 0], + "1.0417": { + "pre": [0, 0, -2.5], + "post": [0, 0, -2.5], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 1.75], + "lerp_mode": "catmullrom" + }, + "2.4167": [0, 0, 0] + } + }, + "forearm_left": { + "rotation": { + "0.0": [0, 67, 0], + "1.0417": { + "pre": [0, 79.5, 0], + "post": [0, 79.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 12, 0], + "lerp_mode": "catmullrom" + }, + "2.75": [0, 67, 0] + } + }, + "finger_left1": { + "rotation": [0, 15, 15] + }, + "finger_left3": { + "rotation": [-5, -15, 30] + }, + "finger_left2": { + "rotation": [0, 0, 15] + }, + "arm_right": { + "rotation": { + "0.0": { + "post": [9.80539, -9.96823, -43.493], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [-2.69461, 12.53177, -43.493], + "lerp_mode": "catmullrom" + }, + "1.0833": [-87.69, 12.53, 24.01], + "1.2083": [-76.86, -129.69, 0.68], + "1.3333": [-76.86, -129.69, 0.68], + "1.5": { + "pre": [-71.98, -125.09, 9.01], + "post": [-71.98, -125.09, 9.01], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [6.72, -89.74, -25.47], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [4.82757, -4.64043, -44.73245], + "lerp_mode": "catmullrom" + }, + "2.8333": [9.80539, -9.96823, -43.493] + }, + "position": { + "0.0": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": [0, 0, 1.5], + "1.1667": [0, -1, -3.25], + "1.375": { + "pre": [1.25, -1, -3.25], + "post": [1.25, -1, -3.25], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "forearm_right": { + "rotation": { + "0.0": [0, -37, 0], + "1.0417": { + "pre": [0, -32, 0], + "post": [0, -32, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, -9.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, -9.5, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, -53.09, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, -37, 0] + } + }, + "finger_right1": { + "rotation": { + "0.0": [0, -15, -15], + "1.0833": [0, -15, 10], + "1.2917": [0, -15, -47.5], + "1.625": [0, -15, -47.5], + "2.2917": [0, -15, -15] + } + }, + "finger_right3": { + "rotation": { + "0.0": [-5, 15, -30], + "1.0833": [-5, 15, -30], + "1.1667": [-7.75768, 11.25865, -57.17316], + "1.2917": [-5, 15, -85], + "1.625": [-5, 15, -85], + "2.2917": [-5, 15, -30] + } + }, + "finger_right2": { + "rotation": { + "0.0": [0, 0, -15], + "1.0833": [0, 0, -15], + "1.2917": [0, 0, -65], + "1.625": [0, 0, -65], + "2.2917": [0, 0, -15] + } + }, + "wing_right": { + "rotation": { + "0.0": [0, 39, 0], + "1.125": { + "pre": [0, 64, 10], + "post": [0, 64, 10], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [0, 9, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 44, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": [0, 39, 0] + } + }, + "wing_right3": { + "rotation": { + "0.0": [0, -50, 0], + "1.25": { + "pre": [0, -22.5, 0], + "post": [0, -22.5, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [0, -52.5, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": [0, -50, 0] + } + }, + "wing_left": { + "rotation": { + "0.0": [0, -39, 0], + "1.0833": { + "pre": [0, -1.5, 0], + "post": [0, -1.5, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, -43.04, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": [0, -39, 0] + } + }, + "wing_left3": { + "rotation": { + "0.0": [0, 50, 0], + "1.0833": { + "pre": [0, 75, 0], + "post": [0, 75, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 29.26, 0], + "lerp_mode": "catmullrom" + }, + "2.8333": [0, 50, 0] + } + }, + "neck2": { + "rotation": { + "0.0": [10, 0, 0], + "0.9583": [27.5, 0, 0], + "1.3333": [35.74, 0, 0], + "2.5": [10, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [1.5359, 0, 0], + "0.75": [1.5359, 0, 0], + "1.125": [21.54, 0, 0], + "1.625": [1.5359, 0, 0], + "2.5": [1.5359, 0, 0] + } + }, + "wing_left2": { + "rotation": { + "0.0": [0, 20, 0], + "1.125": { + "pre": [0, 37.5, 0], + "post": [0, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 30, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": [0, 20, 0] + } + }, + "wing_right2": { + "rotation": { + "0.0": [0, -20, 0], + "1.3333": { + "pre": [0, -17.5, 0], + "post": [0, -17.5, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0, -40, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": [0, -20, 0] + } + }, + "body": { + "rotation": [0, -12.5, 0] + }, + "leg_right": { + "rotation": { + "0.0": [0, 40, 0], + "0.3333": [0, 40, 0], + "0.625": [0, 50, 0], + "0.9583": [0, 50, 0], + "1.125": [-15, 50, 0], + "1.1667": [0, 17.5, 0], + "1.7083": [0, 17.5, 0], + "2.0": [0, 24.32, 0], + "2.1667": [0, 40, 0] + }, + "position": { + "0.0": [0, 0, 0], + "0.3333": [0, 0, 0], + "0.5417": [0, 1.75, 1.79], + "0.625": [0, 0, 2.5], + "0.9583": [0, 0, 2.5], + "1.125": [0, 0.75, 2.5], + "1.1667": [0, 0, -2.25], + "1.7083": [0, 0, -2.25], + "2.0833": [0, 2, -0.9], + "2.1667": [0, 0, 0] + } + }, + "leg_left": { + "rotation": [0, -40, 0], + "position": [0, 0, 1.5] + }, + "head": { + "rotation": { + "0.0": [-20, 0, 0], + "0.5833": { + "pre": [-2.5, 0, 0], + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-6.32, -15, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-33.6, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [-20, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": [-20, 0, 0] + } + }, + "torso2": { + "rotation": { + "0.0": [1, 5, 0], + "1.0833": { + "pre": [5.97709, 7.52725, -0.52199], + "post": [5.97709, 7.52725, -0.52199], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [0.97709, -7.47275, 4.47801], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0.99, 3.55, -0.27], + "lerp_mode": "catmullrom" + }, + "2.5": [1, 5, 0] + } + } + } + }, + "animation.charizard.special": { + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [14.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [26, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": [28.92, 0, 0], + "1.4583": [27.47, 0, 0], + "1.5417": [27.83, 0, 0], + "1.625": [25.78, 0, 0], + "1.7083": [26, 0, 0], + "2.0417": [28.5, 0, 0], + "2.5": [12.5, 0, 0], + "2.875": [12.5, 0, 0] + }, + "position": { + "0.0": [0, 0, -0.75], + "0.8333": [0, 0, -0.75], + "1.0417": [0, 0, 0.25], + "1.2917": [0, 0, -1.75], + "1.3333": [0, -0.1, -1.69], + "1.375": [0, 0.01, -1.63], + "1.4583": [0, -0.09, -1.5], + "1.5833": [0, 0.03, -1.31], + "1.9583": [0, 0, -1.25], + "2.7917": [0, 0, -0.75] + } + }, + "neck": { + "rotation": { + "0.0": [11.2745, 7.83467, -2.21473], + "0.9583": [-21.23, 7.83, -2.21], + "1.2083": [18.77, 7.83, -2.21], + "1.25": [20.22, 7.83, -2.21], + "1.2917": [19.02, 7.83, -2.21], + "1.4167": [19.21, 7.83, -2.21], + "1.5833": [16.94, 7.83, -2.21], + "1.7083": [16.93, 7.83, -2.21], + "2.4167": [8.7745, 7.83467, -2.21473], + "2.75": [11.2745, 7.83467, -2.21473] + }, + "position": { + "0.0": [0, -0.0067, -0.75], + "0.9583": [0, -0.01, 0], + "1.2917": [0, -0.01, -1.25], + "2.125": [0, -0.01, -1.25], + "2.5": [0, -0.0067, -0.75] + } + }, + "tail": { + "rotation": { + "0.0": [-5, 0, 0], + "0.7917": { + "pre": [-5, 15, 0], + "post": [-5, 15, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-5, -6.33, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-5, 5.3, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [-5, -1.33, 0], + "lerp_mode": "catmullrom" + }, + "2.75": [-5, 0, 0] + } + }, + "tail2": { + "rotation": { + "0.0": [30, -12, 0], + "1.0417": { + "pre": [12.5, 13, 0], + "post": [12.5, 13, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [30, -4.5, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [30, 5.5, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [30, -2, 0], + "lerp_mode": "catmullrom" + }, + "2.875": [30, -12, 0] + } + }, + "tail3": { + "rotation": { + "0.0": [-20, -12, 0], + "0.9167": { + "pre": [-20, 28, 0], + "post": [-20, 28, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [-10, -29.5, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-20, 15.5, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [-20, -17, 0], + "lerp_mode": "catmullrom" + }, + "2.8333": [-20, -12, 0] + } + }, + "fire": { + "rotation": [-14, 0, -12] + }, + "arm_left": { + "rotation": { + "0.0": [14.28791, -11.00374, 36.7968], + "0.8333": [1.79, 49, 36.8], + "1.0833": [-30.71, 54, 36.8], + "1.3333": [-73.21, "-18.5+3*math.sin(q.anim_time*90*20)", 26.8], + "2.1667": [-35.71, -18.5, 36.8], + "2.375": [-4.13, -13.77, 39.3], + "2.625": [14.28791, -5.00374, "39.2968+3*math.sin(q.anim_time*90*5)"], + "3.0": [14.28791, -11.00374, 36.7968] + }, + "position": { + "0.0": [0, 0, 0], + "0.9167": { + "pre": [0, 0, -1], + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 1.34], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 1.34], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "forearm_left": { + "rotation": { + "0.0": [0, 67, 0], + "0.875": { + "pre": [0, 79.5, 0], + "post": [0, 79.5, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 79.5, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [0, 37, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 37, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [0, 69.5, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": [0, 67, 0] + } + }, + "finger_left1": { + "rotation": { + "0.0": [0, 15, 15], + "1.0": [0, 15, 52.5], + "1.4167": [0, 15, -2.5], + "2.625": [0, 15, 15] + } + }, + "finger_left3": { + "rotation": { + "0.0": [-5, -15, 30], + "1.0833": [-5, -15, 27.79], + "1.4167": [-5, -15, 7.5], + "2.625": [-5, -15, 30] + } + }, + "finger_left2": { + "rotation": { + "0.0": [0, 0, 15], + "1.0": [0, 0, 30], + "1.4167": [0, 0, -7.5], + "2.625": [0, 0, 15] + } + }, + "arm_right": { + "rotation": { + "0.0": [9.80539, -9.96823, -43.493], + "0.8333": [-10.19, -74.97, -30.99], + "1.0833": [-32.69, -77.47, -30.99], + "1.3333": [-80.19, "27.53-3*math.sin(q.anim_time*90*20)", -30.99], + "2.2083": [-45.19, 27.53, -30.99], + "2.375": [-28.32, 6.94, -34.82], + "2.625": [9.80539, -7.46823, "-48.493-3*math.sin(q.anim_time*90*5)"], + "3.0": [9.80539, -9.96823, -43.493] + }, + "position": { + "0.0": [0, 0, 0], + "0.9167": { + "pre": [0, 0, 0.25], + "post": [0, 0, 0.25], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 1.35], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 1.35], + "lerp_mode": "catmullrom" + }, + "2.75": [0, 0, 0] + } + }, + "forearm_right": { + "rotation": { + "0.0": [0, -37, 0], + "1.0417": { + "pre": [0, -52, 0], + "post": [0, -52, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, -29.5, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0, -39.5, 0], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [0, -42, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, -37, 0] + } + }, + "finger_right1": { + "rotation": { + "0.0": [0, -15, -15], + "1.0": [0, -15, -57.5], + "1.4167": [0, -15, 10], + "2.625": [0, -15, -15] + } + }, + "finger_right3": { + "rotation": { + "0.0": [-5, 15, -30], + "1.0833": [-5, 15, -41.47], + "1.4167": [-5, 15, -2.5], + "2.625": [-5, 15, -30] + } + }, + "finger_right2": { + "rotation": { + "0.0": [0, 0, -15], + "1.0": [0, 0, -45], + "1.4167": [0, 0, 5], + "2.625": [0, 0, -15] + } + }, + "wing_right": { + "rotation": { + "0.0": [0, 39, 0], + "0.9583": { + "pre": [0, 11.5, 0], + "post": [0, 11.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 40.87, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [0, 45.05, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0, 59, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [0, 39, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 39, 0] + } + }, + "wing_right3": { + "rotation": { + "0.0": [0, -50, 0], + "0.9583": [0, -62.5, 0], + "1.5": [0, "-22.5-3*math.sin(q.anim_time*90*20-50)", 0], + "2.6667": [0, -52.5, 0], + "3.0": [0, -50, 0] + } + }, + "wing_left": { + "rotation": { + "0.0": [0, -39, 0], + "0.9583": { + "pre": [0, -14, 0], + "post": [0, -14, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, -40.87, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [0, -45.05, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0, -54, 0], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, -39, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, -39, 0] + } + }, + "wing_left3": { + "rotation": { + "0.0": [0, 50, 0], + "0.9583": [0, 62.5, 0], + "1.5": [0, "22.5+3*math.sin(q.anim_time*90*20)", 0], + "2.6667": [0, 50, 0], + "3.0": [0, 50, 0] + } + }, + "neck2": { + "rotation": { + "0.0": [10, 0, 0], + "0.75": { + "pre": [37.5, 0, 0], + "post": [37.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": [10, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [1.5359, 0, 0], + "1.0417": [1.54, 0, 0], + "1.2083": { + "pre": [46.54, 0, 0], + "post": [46.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [44.98, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [56.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [50.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [46.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": [1.54, 0, 0] + } + }, + "wing_left2": { + "rotation": { + "0.0": [0, 20, 0], + "1.125": { + "pre": [0, 37.5, 0], + "post": [0, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 16.93, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [0, 32.75, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 17.7, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0, 33.16, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 20, 0] + } + }, + "wing_right2": { + "rotation": [0, -20, 0] + }, + "body": { + "rotation": [0, -12.5, 0] + }, + "leg_right": { + "rotation": [0, 40, 0], + "position": { + "0.0": [0, 0, 0], + "0.75": [0, 0, 0], + "1.125": [0, 1.55, 0], + "1.1667": [0, 0, 0] + } + }, + "leg_left": { + "rotation": [0, -40, 0], + "position": [0, 0, 1.5] + }, + "torso2": { + "rotation": { + "0.0": [1, 5, 0], + "1.0833": { + "pre": [11, 5, 0], + "post": [11, 5, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-1.5, 5, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [1, 5, 0] + } + }, + "head": { + "rotation": { + "0.0": [-20, 0, 0], + "0.2917": { + "pre": [-14.42, 0, 0], + "post": [-14.42, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [20, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-45.1934, -2.91008, -0.93336], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-47.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [-47.47993, 0.41187, -0.51929], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [-15.66, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [-21.44, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [-20, 0, 0] + } + }, + "eyelid_right": { + "position": { + "0.5417": [0, 0, 0], + "0.5833": [-0.1, 0, 0], + "1.0833": [-0.1, 0, 0], + "1.125": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.5417": [0, 0, 0], + "0.5833": [0.1, 0, 0], + "1.0833": [0.1, 0, 0], + "1.125": [0, 0, 0] + } + } + } + }, + "animation.charizard.status": { + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2083": { + "post": [14.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": [8.5, 0, 0], + "2.5": [12.5, 0, 0], + "2.875": [12.5, 0, 0] + }, + "position": { + "0.0": [0, 0, -0.75], + "0.8333": { + "pre": [0, -0.5, -0.25], + "post": [0, -0.5, -0.25], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0.4, -1.15], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [0, 0.4, -1.15], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [0, 0, -1.25], + "lerp_mode": "catmullrom" + }, + "2.7917": [0, 0, -0.75] + } + }, + "neck": { + "rotation": { + "0.0": [11.2745, 7.83467, -2.21473], + "0.9583": { + "pre": [-21.23, 7.83, -2.21], + "post": [-21.23, 7.83, -2.21], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [1.27, 7.83, -7.21], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-8.25, 7.83, 5.29], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [8.7745, 7.83467, -2.21473], + "lerp_mode": "catmullrom" + }, + "2.75": [11.2745, 7.83467, -2.21473] + }, + "position": { + "0.0": [0, -0.0067, -0.75], + "0.9583": [0, -1.31, 0], + "1.2917": [0, -0.01, -1.25], + "2.125": [0, -0.01, -1.25], + "2.5": [0, -0.0067, -0.75] + } + }, + "tail": { + "rotation": { + "0.0": [-5, 0, 0], + "0.7917": { + "pre": [-5, 15, 0], + "post": [-5, 15, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-5, -6.33, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-5, 5.3, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [-5, -1.33, 0], + "lerp_mode": "catmullrom" + }, + "2.75": [-5, 0, 0] + } + }, + "tail2": { + "rotation": { + "0.0": [30, -12, 0], + "1.0417": { + "pre": [12.5, 13, 0], + "post": [12.5, 13, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [30, -4.5, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [30, 5.5, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [30, -2, 0], + "lerp_mode": "catmullrom" + }, + "2.875": [30, -12, 0] + } + }, + "tail3": { + "rotation": { + "0.0": [-20, -12, 0], + "0.9167": { + "pre": [-20, 28, 0], + "post": [-20, 28, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [-10, -29.5, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-20, 15.5, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [-20, -17, 0], + "lerp_mode": "catmullrom" + }, + "2.8333": [-20, -12, 0] + } + }, + "fire": { + "rotation": [-14, 0, -12] + }, + "arm_left": { + "rotation": { + "0.0": [14.28791, -11.00374, 36.7968], + "1.0833": [-56.07937, 54.8634, 2.50044], + "1.3333": [-128.21, "-18.5+3*math.sin(q.anim_time*90*20)", 26.8], + "2.0": [-93.21, -18.5, 36.8], + "2.625": [14.28791, -5.00374, "39.2968+3*math.sin(q.anim_time*90*5)"], + "3.0": [14.28791, -11.00374, 36.7968] + }, + "position": { + "0.0": [0, 0, 0], + "0.9167": { + "pre": [0, 0, -1], + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 1.34], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 1.34], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "forearm_left": { + "rotation": { + "0.0": [0, 67, 0], + "0.875": { + "pre": [0, 79.5, 0], + "post": [0, 79.5, 0], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 79.5, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [0, 37, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 37, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [0, 69.5, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": [0, 67, 0] + } + }, + "finger_left1": { + "rotation": { + "0.0": [0, 15, 15], + "1.0": [0, 15, 52.5], + "1.4167": [0, 15, -2.5], + "2.625": [0, 15, 15] + } + }, + "finger_left3": { + "rotation": { + "0.0": [-5, -15, 30], + "1.0833": [-5, -15, 27.79], + "1.4167": [-5, -15, 7.5], + "2.625": [-5, -15, 30] + } + }, + "finger_left2": { + "rotation": { + "0.0": [0, 0, 15], + "1.0": [0, 0, 30], + "1.4167": [0, 0, -7.5], + "2.625": [0, 0, 15] + } + }, + "arm_right": { + "rotation": { + "0.0": [9.80539, -9.96823, -43.493], + "1.0833": [-73.26549, -67.28296, 21.58174], + "1.3333": [-105.19, "27.53-3*math.sin(q.anim_time*90*20)", -30.99], + "2.0": [-100.19, 27.53, -30.99], + "2.625": [9.80539, -7.46823, "-48.493-3*math.sin(q.anim_time*90*5)"], + "3.0": [9.80539, -9.96823, -43.493] + }, + "position": { + "0.0": [0, 0, 0], + "0.9167": { + "pre": [0, 0, 0.25], + "post": [0, 0, 0.25], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 0, 1.35], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 1.35], + "lerp_mode": "catmullrom" + }, + "2.75": [0, 0, 0] + } + }, + "forearm_right": { + "rotation": { + "0.0": [0, -37, 0], + "1.0417": { + "pre": [0, -52, 0], + "post": [0, -52, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [0, -29.5, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0, -39.5, 0], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [0, -42, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, -37, 0] + } + }, + "finger_right1": { + "rotation": { + "0.0": [0, -15, -15], + "1.0": [0, -15, -57.5], + "1.4167": [0, -15, 10], + "2.625": [0, -15, -15] + } + }, + "finger_right3": { + "rotation": { + "0.0": [-5, 15, -30], + "1.0833": [-5, 15, -41.47], + "1.4167": [-5, 15, -2.5], + "2.625": [-5, 15, -30] + } + }, + "finger_right2": { + "rotation": { + "0.0": [0, 0, -15], + "1.0": [0, 0, -45], + "1.4167": [0, 0, 5], + "2.625": [0, 0, -15] + } + }, + "wing_right": { + "rotation": { + "0.0": [0, 39, 0], + "0.9583": { + "pre": [0, 11.5, 0], + "post": [0, 11.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, 40.87, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [0, 45.05, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0, 59, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [0, 39, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 39, 0] + } + }, + "wing_right3": { + "rotation": { + "0.0": [0, -50, 0], + "0.9583": [0, -62.5, 0], + "1.5": [0, "-22.5-3*math.sin(q.anim_time*90*20-50)", 0], + "2.6667": [0, -52.5, 0], + "3.0": [0, -50, 0] + } + }, + "wing_left": { + "rotation": { + "0.0": [0, -39, 0], + "0.9583": { + "pre": [0, -14, 0], + "post": [0, -14, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [0, -40.87, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [0, -45.05, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0, -54, 0], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, -39, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, -39, 0] + } + }, + "wing_left3": { + "rotation": { + "0.0": [0, 50, 0], + "0.9583": [0, 62.5, 0], + "1.5": [0, "22.5+3*math.sin(q.anim_time*90*20)", 0], + "2.6667": [0, 50, 0], + "3.0": [0, 50, 0] + } + }, + "neck2": { + "rotation": { + "0.0": [10, 0, 0], + "0.8333": { + "pre": [37.5, 0, 0], + "post": [37.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": [10, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [1.5359, 0, 0], + "1.0417": [1.54, 0, 0], + "1.1667": { + "pre": [46.54, 0, 0], + "post": [46.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [44.98, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [56.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [50.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [46.54, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": [1.54, 0, 0] + } + }, + "wing_left2": { + "rotation": { + "0.0": [0, 20, 0], + "1.125": { + "pre": [0, 37.5, 0], + "post": [0, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 16.93, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [0, 32.75, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 17.7, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0, 33.16, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 20, 0] + } + }, + "wing_right2": { + "rotation": [0, -20, 0] + }, + "body": { + "rotation": [0, -12.5, 0] + }, + "leg_right": { + "rotation": [0, 40, 0], + "position": { + "0.0": [0, 0, 0], + "0.4167": [0, 0, 0], + "0.7917": [0, 1.55, 0], + "0.8333": [0, 0, 0] + } + }, + "leg_left": { + "rotation": [0, -40, 0], + "position": [0, 0, 1.5] + }, + "torso2": { + "rotation": { + "0.0": [1, 5, 0], + "0.25": { + "pre": [11, 5, 0], + "post": [11, 5, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-1.86, 5, 0.35], + "lerp_mode": "catmullrom" + }, + "2.9583": [1, 5, 0] + } + }, + "head": { + "rotation": { + "0.0": [-20, 0, 0], + "0.2917": { + "pre": [-14.42, 0, 0], + "post": [-14.42, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [20, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-45.1934, -2.91008, -0.93336], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-47.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [-47.47993, 0.41187, -0.51929], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [-15.66, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [-21.44, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [-20, 0, 0] + } + }, + "eyelid_right": { + "position": { + "0.5417": [0, 0, 0], + "0.5833": [-0.1, 0, 0], + "1.0833": [-0.1, 0, 0], + "1.125": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.5417": [0, 0, 0], + "0.5833": [0.1, 0, 0], + "1.0833": [0.1, 0, 0], + "1.125": [0, 0, 0] + } + } + }, + "sound_effects": { + "1.0833": { + "effect": "pokemon.charizard.cry" + } + } + }, + "animation.charizard.recoil": { + "animation_length": 1.5, + "bones": { + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": [-12, 0, 0], + "0.4583": { + "pre": [2.24067, 0, 0], + "post": [2.24067, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [2.24067, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": [0, 0, 0] + } + }, + "torso2": { + "rotation": { + "0.0": [0, 0, 0], + "0.0833": [4.98, 0, 0], + "0.4167": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [1.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": [0, 0, 0] + } + }, + "neck": { + "rotation": { + "0.0": [0, 0, 0], + "0.0833": { + "pre": [-25, 0, 0], + "post": [-25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": [0, 0, 0] + } + }, + "neck2": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": { + "pre": [5, 0, 0], + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [14.85, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": [0, 0, 0] + } + }, + "head": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": { + "pre": [10, 0, 0], + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-10, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": [0, 0, 0] + } + }, + "eyelid_right": { + "position": { + "0.0": [-0.1, 0, 0], + "0.125": [-0.1, 0, 0], + "0.1667": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0": [0.1, 0, 0], + "0.125": [0.1, 0, 0], + "0.1667": [0, 0, 0] + } + }, + "tail": { + "rotation": { + "0.0": [0, 0, 0], + "0.1667": { + "pre": [17.5, 0, 0], + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [15.38, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": [0, 0, 0] + } + }, + "arm_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": { + "pre": [0, -30, 0], + "post": [0, -30, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": [0, 0, 0] + } + }, + "forearm_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": [0, -17.5, 0], + "1.125": [0, 0, 0] + } + }, + "arm_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": { + "pre": [0, 30, 0], + "post": [0, 30, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": [0, 0, 0] + } + }, + "forearm_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": [0, 17.5, 0], + "1.125": [0, 0, 0] + } + } + } + }, "animation.charizard.air_idle": { "loop": true, "bones": { @@ -498,9 +2305,9 @@ "2.2": [64.24451, 5.55636, -3.94049] }, "position": { - "0.0": [0, "-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", 1], - "0.1": [0, "1-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", -1], - "2.2": [0, "0.0937-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", -1.42262] + "0.0": [0, "-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", 0.1], + "0.1": [0, "1.9-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", -1], + "2.2": [0, "4.0472-0.1*(math.sin(q.anim_time*90*3-90)*1+1)", 0.14107] } }, "neck": { @@ -969,9 +2776,10 @@ "1.35": [-1, -4.3, 2], "1.4": [-1, -8.3, 2], "1.45": [-1, -7.3, 2], - "1.5": [-1, -8.3, 2], - "1.55": [-1, -7, 2], - "1.8": [-2, -7, 0] + "1.5": [-1, -4.1, 2], + "1.55": [-1, -1.9, 2], + "1.8": [-2, -1.9, 0], + "2.15": [-2, -7, 0] } }, "head_ai": { diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0009_blastoise/blastoise.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0009_blastoise/blastoise.animation.json index 2ad6601485..3210d59162 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0009_blastoise/blastoise.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/0009_blastoise/blastoise.animation.json @@ -3,551 +3,910 @@ "animations": { "animation.blastoise.ground_idle": { "loop": true, + "animation_length": 4, "bones": { - "tail": { - "rotation": [0, "4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 0] - }, - "arm_right": { - "rotation": [0, -10, "-40+1.5*(math.sin(q.anim_time*90*3)*1+1)"] - }, - "leg_right": { - "position": [0, 0, 2] - }, - "leg_left": { - "position": [0, 0, 2] - }, - "arm_right3": { - "rotation": [0, -15, -15] - }, - "head_angle": { - "rotation": [5, 0, 0] - }, - "arm_right2": { - "rotation": [0, -15, -15] - }, - "arm_left": { - "rotation": [0, 10, "40-1.5*(math.sin(q.anim_time*90*3)*1+1)"] - }, - "arm_left2": { - "rotation": [0, 15, 15] - }, - "arm_left3": { - "rotation": [0, 15, 15] + "body2": { + "position": [0, -1.5, 0] }, "torso": { - "rotation": [10, 0, 0], - "position": [0, "-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 0] + "rotation": ["17.5+1*math.sin(q.anim_time*90*2-60)", "0.5*math.cos(q.anim_time*90*1)", "1*math.sin(q.anim_time*90*0.5)"], + "position": [0, "-0.15*(math.sin(q.anim_time*90*2-90)*1+1)", "0.25*(math.sin(q.anim_time*90*2-90)*1+1)"] + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": ["39.2403-2*(math.sin(q.anim_time*90*2)*1+1)", -16.32555, 22.4403], + "position": [-1, 0, -0.1] + }, + "elbow_left": { + "rotation": ["19.6888-2*(math.sin(q.anim_time*90*2-60)*1+1)", -1.3027, -11.09368] + }, + "hand_left": { + "rotation": [9.8511, 1.72794, "-9.8511+math.sin(q.anim_time*90*2-110)*2"] + }, + "fingers_left": { + "rotation": [17.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["39.2403-2*(math.sin(q.anim_time*90*2)*1+1)", 16.32555, -22.4403], + "position": [1, 0, -0.1] + }, + "elbow_right": { + "rotation": ["19.6888-2*(math.sin(q.anim_time*90*2-60)*1+1)", 1.3027, 11.0937] + }, + "hand_right": { + "rotation": [9.8511, -1.72794, "9.8511-math.sin(q.anim_time*90*2-110)*2"] + }, + "fingers_right": { + "rotation": [17.5, 0, 0] + }, + "head_angle": { + "rotation": [-12.5, 0, 0] }, "jaw": { - "rotation": ["5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0] + "rotation": [0, 0, 0] + }, + "shell_cannon_right": { + "rotation": [-30, 0, 0] + }, + "leg_right": { + "rotation": ["-15-2*(math.sin(q.anim_time*90*2-60)*1+1)", 27.5, 0], + "position": ["0.05*(math.sin(q.anim_time*90*2-60)*1+1)", "-0.22*(math.sin(q.anim_time*90*2-60)*1+1)", "0.11*(math.sin(q.anim_time*90*2-60)*1+1)"] + }, + "knee_right": { + "rotation": ["15+2*(math.sin(q.anim_time*90*2-60)*1+1)", 0, 0] + }, + "shell_cannon_left": { + "rotation": [-30, 0, 0] + }, + "leg_left": { + "rotation": ["-15-2*(math.sin(q.anim_time*90*2-60)*1+1)", -27.5, 0], + "position": ["-0.05*(math.sin(q.anim_time*90*2-60)*1+1)", "-0.22*(math.sin(q.anim_time*90*2-60)*1+1)", "0.11*(math.sin(q.anim_time*90*2-60)*1+1)"] + }, + "knee_left": { + "rotation": ["15+2*(math.sin(q.anim_time*90*2-60)*1+1)", 0, 0] + }, + "tail_bend": { + "rotation": [15, "2*math.sin(q.anim_time*90*1-60)", "2*math.sin(q.anim_time*90*1-190)"] + }, + "tail_end": { + "rotation": ["15+3*math.sin(q.anim_time*90*2-90)", 0, "6*math.sin(q.anim_time*90*1-250)"] }, "head": { - "rotation": [-10, 0, 0] + "rotation": ["-1+2*math.sin(q.anim_time*90*2-160)", 0, "-2*math.sin(q.anim_time*90*0.5)"] + }, + "tail_base": { + "rotation": [0, "-2*(math.sin(q.anim_time*90*1-150)*1)", "4*(math.sin(q.anim_time*90*1-60)*1)"] + }, + "cannon_right": { + "position": [0, 0, 3] + }, + "cannon_left": { + "position": [0, 0, 3] + } + } + }, + "animation.blastoise.battle_idle": { + "loop": true, + "animation_length": 4, + "bones": { + "body2": { + "position": [0, -1.5, 0] + }, + "torso": { + "rotation": ["25+1*(math.sin(q.anim_time*90*2-60)*1+1)", "0+0.5*math.cos(q.anim_time*90*1)", "0+1*math.sin(q.anim_time*90*0.5)"], + "position": [0, "-0.15*(math.sin(q.anim_time*90*2-90)*1+1)", "-0.1+0.25*(math.sin(q.anim_time*90*2-30)*1+1)"] + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": ["18.0158-2*(math.sin(q.anim_time*90*2)*1+1)", -7.28336, 4.19087], + "position": [-0.5, 0, 0] + }, + "elbow_left": { + "rotation": [2.5, 0, 0] + }, + "hand_left": { + "rotation": [7.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["18.0158-2*(math.sin(q.anim_time*90*2)*1+1)", 7.28336, -4.19087], + "position": [0.5, 0, 0] + }, + "elbow_right": { + "rotation": [2.5, 0, 0] + }, + "hand_right": { + "rotation": [7.5, 0, 0] + }, + "head_angle": { + "rotation": [-12.5, 0, 0] + }, + "jaw": { + "rotation": ["15+5*math.sin(q.anim_time*90*2-210)", 0, 0] + }, + "shell_cannon_right": { + "rotation": [-30, 0, 0] + }, + "leg_right": { + "rotation": ["-15-2*(math.sin(q.anim_time*90*2-60)*1+1)", 37.5, 0], + "position": ["0.05*(math.sin(q.anim_time*90*2-60)*1+1)", "-0.22*(math.sin(q.anim_time*90*2-60)*1+1)", "0.11*(math.sin(q.anim_time*90*2-60)*1+1)"] + }, + "knee_right": { + "rotation": ["15+2*(math.sin(q.anim_time*90*2-60)*1+1)", 0, 0] + }, + "shell_cannon_left": { + "rotation": [-30, 0, 0] + }, + "leg_left": { + "rotation": ["-15-2*(math.sin(q.anim_time*90*2-60)*1+1)", -37.5, 0], + "position": ["-0.05*(math.sin(q.anim_time*90*2-60)*1+1)", "-0.22*(math.sin(q.anim_time*90*2-60)*1+1)", "0.11*(math.sin(q.anim_time*90*2-60)*1+1)"] + }, + "knee_left": { + "rotation": ["15+2*(math.sin(q.anim_time*90*2-70)*1+1)", 0, 0] + }, + "tail_bend": { + "rotation": [15, "2*math.sin(q.anim_time*90*1-60)", "2*math.sin(q.anim_time*90*1-190)"] + }, + "tail_end": { + "rotation": ["15+3*math.sin(q.anim_time*90*2-90)", 0, "6*math.sin(q.anim_time*90*1-250)"] + }, + "head": { + "rotation": ["-8.5+2*math.sin(q.anim_time*90*2-160)", 0, "0-2*math.sin(q.anim_time*90*0.5)"] + }, + "tail_base": { + "rotation": [0, "-2*(math.sin(q.anim_time*90*1-150)*1)", "4*(math.sin(q.anim_time*90*1-60)*1)"] + }, + "cannon_left": { + "rotation": [-0.7503, 17.01572, 0.30669] + }, + "right_toe_out": { + "rotation": [0, 12.5, 0] + }, + "right_toe_in": { + "rotation": [0, -12.5, 0] + }, + "left_toe_out": { + "rotation": [0, -12.5, 0] + }, + "left_toe_in": { + "rotation": [0, 12.5, 0] + }, + "cannon_right": { + "rotation": [-0.7503, -17.01572, -0.30669] } } }, "animation.blastoise.ground_walk": { "loop": true, + "animation_length": 4, "bones": { - "body": { - "rotation": [ - "math.clamp(math.sin(query.anim_time*180*4/2+20)*1,0.2,2)+math.clamp(-math.sin(query.anim_time*180*4/2+20)*1,0.2,2)+10", - "math.sin(query.anim_time*90*4+20)*10", - "math.sin(query.anim_time*90*4+20)*2" - ], - "position": [ - 0, - "-math.clamp(math.sin(-query.anim_time*90*4+45/2)*0.6,0.1,1)-math.clamp(math.sin(-query.anim_time*90*4+45/2+180)*0.6,0.1,1)+0.7", - "-math.clamp(math.sin(query.anim_time*90*4)*0.8,0.1,0.7)-math.clamp(math.sin(-query.anim_time*90*4)*0.8,0.1,0.7)+0.2" - ] + "body2": { + "position": { + "0.0": [0, -1.5, 0], + "0.25": [0, -1.5, 0], + "0.2917": [0, -1.8, 0], + "0.3333": [0, -1.2, 0], + "0.375": [0, -1.6, 0], + "0.4583": [0, -1.4, 0], + "0.5833": [0, -1.6, 0], + "0.7917": [0, -1.5, 0], + "1.25": [0, -1.5, 0], + "1.2917": [0, -1.8, 0], + "1.3333": [0, -1.2, 0], + "1.375": [0, -1.6, 0], + "1.4583": [0, -1.4, 0], + "1.5833": [0, -1.6, 0], + "1.7917": [0, -1.5, 0], + "2.25": [0, -1.5, 0], + "2.2917": [0, -1.8, 0], + "2.3333": [0, -1.2, 0], + "2.375": [0, -1.6, 0], + "2.4583": [0, -1.4, 0], + "2.5833": [0, -1.6, 0], + "2.7917": [0, -1.5, 0], + "3.25": [0, -1.5, 0], + "3.2917": [0, -1.8, 0], + "3.3333": [0, -1.2, 0], + "3.375": [0, -1.6, 0], + "3.4583": [0, -1.4, 0], + "3.5833": [0, -1.6, 0], + "3.7917": [0, -1.5, 0] + } }, - "tail": { - "rotation": [0, "math.sin(query.anim_time*90*4-90)*8", 0] + "torso": { + "rotation": ["17.5+4*math.sin(q.anim_time*90*4-60)", "12*math.cos(q.anim_time*90*2)", "5*math.sin(q.anim_time*90*2)"], + "position": [0, "0.9+math.clamp(1*math.sin(q.anim_time*90*4+60),0,2)", "-0.3+0.5*math.cos(q.anim_time*90*4+120)"] }, - "arm_right": { - "rotation": [0, "-math.sin(query.anim_time*90*4+30)*10", -40] - }, - "arm_right3": { - "rotation": [0, "-20-math.sin(query.anim_time*90*4+30)*2", -15] - }, - "leg_right": { - "rotation": [ - "-math.clamp(math.sin(query.anim_time*90*4+45+180)*10,-1,10)+math.clamp(-math.sin(query.anim_time*90*4+20)*12,5,12)-15", - "math.clamp(math.sin(query.anim_time*90*4+20+180)*10,0,30)", - 0 - ], - "position": [ - 0, - "-math.clamp(-math.sin(query.anim_time*90*4+20+180)*0.4,0.3,3)+math.clamp(-math.sin(query.anim_time*90*4-30)*0.8,0.5,1)+math.clamp(-math.sin(query.anim_time*90*4-35+180)*3,1,3)-1.3", - "-math.clamp(math.sin(query.anim_time*90*4+180)*0.2,-0.5,1)-math.clamp(math.sin(query.anim_time*90*4+180)*0.4,-0.8,0)+1.4" - ] - }, - "leg_left": { - "rotation": [ - "-math.clamp(math.sin(query.anim_time*90*4+45)*10,-1,10)+math.clamp(-math.sin(query.anim_time*90*4+180+20)*12,5,12)-15", - "-math.clamp(math.sin(query.anim_time*90*4+20)*10,0,30)", - 0 - ], - "position": [ - 0, - "-math.clamp(-math.sin(query.anim_time*90*4+20)*0.4,0.3,3)+math.clamp(-math.sin(query.anim_time*90*4-30+180)*0.8,0.5,1)+math.clamp(-math.sin(query.anim_time*90*4-35)*3,1,3)-1.3", - "-math.clamp(math.sin(query.anim_time*90*4)*0.2,-0.5,1)-math.clamp(math.sin(query.anim_time*90*4)*0.4,-0.8,0)+1.4" - ] - }, - "head_angle": { - "rotation": [5, 0, 0] - }, - "arm_right2": { - "rotation": [0, "-15-math.sin(query.anim_time*90*4+30)*4", -15] + "arm_rotate_left": { + "rotation": [0, 12.5, 0] }, "arm_left": { - "rotation": [0, "-math.sin(query.anim_time*90*4+30)*10", 40] + "rotation": ["39.2403-2*math.sin(q.anim_time*90*4)", "-16.3256-4*math.cos(q.anim_time*90*4)", 22.4403], + "position": [-1, 0, -0.1] }, - "arm_left2": { - "rotation": [0, "15-math.sin(query.anim_time*90*4+30)*4", 15] + "elbow_left": { + "rotation": ["19.6888-2*(math.sin(q.anim_time*90*4-60)*1+1)", -1.3027, -11.09368] }, - "arm_left3": { - "rotation": [0, "20-math.sin(query.anim_time*90*4+30)*2", 15] + "hand_left": { + "rotation": [9.8511, 1.72794, "-9.8511+math.sin(q.anim_time*90*2-110)*2"] + }, + "fingers_left": { + "rotation": [17.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["39.2403-2*math.sin(q.anim_time*90*4)", "16.3256+4*math.cos(q.anim_time*90*4)", -22.4403], + "position": [1, 0, -0.1] + }, + "elbow_right": { + "rotation": ["19.6888-2*(math.sin(q.anim_time*90*4-60)*1+1)", 1.3027, 11.0937] + }, + "hand_right": { + "rotation": [9.8511, -1.72794, "9.8511-math.sin(q.anim_time*90*2-110)*2"] + }, + "fingers_right": { + "rotation": [17.5, 0, 0] + }, + "head_angle": { + "rotation": [-12.5, 0, 0] + }, + "jaw": { + "rotation": [0, 0, 0] + }, + "shell_cannon_right": { + "rotation": [-30, 0, 0] + }, + "leg_right": { + "rotation": { + "0.0": { + "post": [4.8, 26.38, 4.77], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [9.16329, 25.70885, 6.53894], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [4.08469, 23.45696, 11.66984], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [-24.32, 19.73, 4.18], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-25.64985, 21.01706, 3.44594], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-15.27, 27.5, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [9.16329, 25.70885, 6.53894], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [4.08469, 23.45696, 11.66984], + "lerp_mode": "catmullrom" + }, + "3.0417": { + "post": [-25.64985, 21.01706, 3.44594], + "lerp_mode": "catmullrom" + }, + "3.25": { + "post": [-15.27, 27.5, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [4.8, 26.38, 4.77], + "lerp_mode": "catmullrom" + } + }, + "position": { + "0.0": [0.01, 0.95, 3.74], + "0.25": [0.01, 1.27, 5.51], + "0.6667": [0.01, 2.93, 2.55], + "0.9583": [0.01, 3.24, 0.48], + "1.0": [0.01, 3.23, 0.18], + "1.1667": [0.01, 3.17, -1], + "1.25": [0.01, -0.03, -1.59], + "2.25": [0.01, 1.27, 5.51], + "2.6667": [0.01, 2.93, 2.55], + "2.9583": [0.01, 3.24, 0.48], + "3.1667": [0.01, 3.17, -1], + "3.25": [0.01, -0.03, -1.59], + "4.0": [0.01, 0.95, 3.74] + } + }, + "knee_right": { + "rotation": { + "0.0": { + "post": [0.7, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [30.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [36.94, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [15.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [30.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": { + "post": [36.94, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.25": { + "post": [15.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [0.7, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "shell_cannon_left": { + "rotation": [-30, 0, 0] + }, + "leg_left": { + "rotation": { + "0.0": { + "post": [-24.32, -19.73, -4.18], + "lerp_mode": "catmullrom" + }, + "0.0417": { + "post": [-25.64985, -21.01706, -3.44594], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [-15.27, -27.5, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [9.16329, -25.70885, -6.53894], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [4.08469, -23.45696, -11.66984], + "lerp_mode": "catmullrom" + }, + "2.0417": { + "post": [-25.64985, -21.01706, -3.44594], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-15.27, -27.5, 0], + "lerp_mode": "catmullrom" + }, + "3.25": { + "post": [9.16329, -25.70885, -6.53894], + "lerp_mode": "catmullrom" + }, + "3.5833": { + "post": [4.08469, -23.45696, -11.66984], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [-24.32, -19.73, -4.18], + "lerp_mode": "catmullrom" + }, + "4.0417": { + "post": [-25.64985, -21.01706, -3.44594], + "lerp_mode": "catmullrom" + } + }, + "position": { + "0.0": [-0.01, 3.23, 0.18], + "0.1667": [-0.01, 3.17, -1], + "0.25": [-0.01, -0.03, -1.59], + "1.25": [-0.01, 1.27, 5.51], + "1.6667": [-0.01, 2.93, 2.55], + "1.9583": [-0.01, 3.24, 0.48], + "2.1667": [-0.01, 3.17, -1], + "2.25": [-0.01, -0.03, -1.59], + "3.25": [-0.01, 1.27, 5.51], + "3.6667": [-0.01, 2.93, 2.55], + "3.9583": [-0.01, 3.24, 0.48], + "4.0": [-0.01, 3.23, 0.18] + } + }, + "knee_left": { + "rotation": { + "0.0": { + "post": [36.94, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.25": { + "post": [15.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [30.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [36.94, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [15.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.25": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.5": { + "post": [30.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "4.0": { + "post": [36.94, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "tail_bend": { + "rotation": [15, "2*math.sin(q.anim_time*90*2-60)", "-8*math.sin(q.anim_time*90*2)"] + }, + "tail_end": { + "rotation": ["15+4*math.sin(q.anim_time*90*4-90)", 0, "17*math.sin(q.anim_time*90*2-250)"] }, "head": { - "rotation": [-10, "-math.sin(query.anim_time*90*4+20)*10", 0] + "rotation": ["-1+2*math.sin(q.anim_time*90*4-160)", "-12*math.cos(q.anim_time*90*2-20)", "-8*math.sin(q.anim_time*90*2-60)"] + }, + "tail_base": { + "rotation": [0, "-6*math.sin(q.anim_time*90*2-90)", "-8*math.sin(q.anim_time*90*2)"] + }, + "right_toe_in": { + "rotation": { + "0.0": [-11.25, 0, 0], + "0.25": [-15, 0, 0], + "0.75": [0, 0, 0], + "1.0": [0, 0, 0], + "1.25": [0, 0, 0], + "2.25": [-15, 0, 0], + "2.75": [0, 0, 0], + "3.0": [0, 0, 0], + "3.25": [0, 0, 0], + "4.0": [-11.25, 0, 0] + } + }, + "right_toe_front": { + "rotation": { + "0.0": [-9.37, 0, 0], + "0.25": [-12.5, 0, 0], + "0.5417": [0, 0, 0], + "1.0": [0, 0, 0], + "1.25": [0, 0, 0], + "2.25": [-12.5, 0, 0], + "2.5417": [0, 0, 0], + "3.0": [0, 0, 0], + "3.25": [0, 0, 0], + "4.0": [-9.37, 0, 0] + } + }, + "left_toe_in": { + "rotation": { + "0.0": [0, 0, 0], + "0.25": [0, 0, 0], + "1.25": [-15, 0, 0], + "1.75": [0, 0, 0], + "2.0": [0, 0, 0], + "2.25": [0, 0, 0], + "3.25": [-15, 0, 0], + "3.75": [0, 0, 0], + "4.0": [0, 0, 0] + } + }, + "left_toe_front": { + "rotation": { + "0.0": [0, 0, 0], + "0.25": [0, 0, 0], + "1.25": [-12.5, 0, 0], + "1.5417": [0, 0, 0], + "2.0": [0, 0, 0], + "2.25": [0, 0, 0], + "3.25": [-12.5, 0, 0], + "3.5417": [0, 0, 0], + "4.0": [0, 0, 0] + } + }, + "cannon_right": { + "position": [0, 0, 3] + }, + "cannon_left": { + "position": [0, 0, 3] + } + } + }, + "animation.blastoise.ground_run": { + "loop": true, + "animation_length": 4, + "bones": { + "body2": { + "rotation": [90, "math.mod(q.anim_time*2, 1)*360", 0], + "position": [0, -14, 0] + }, + "torso": { + "rotation": [-7.5, 0, 0] + }, + "shell": { + "rotation": [0, 0, 0] + }, + "arm_left": { + "position": [0, -16, 0], + "scale": 0 + }, + "arm_right": { + "position": [0, -16, 0], + "scale": 0 + }, + "cannon_right": { + "scale": 0 + }, + "cannon_left": { + "scale": 0 + }, + "head_angle": { + "rotation": [-90, 0, 0], + "position": [0, -12, 0], + "scale": 0 + }, + "tail_base": { + "rotation": [-45, 0, 0], + "position": [0, 15, 0], + "scale": 0 + }, + "leg_right": { + "rotation": [0, 0, 45], + "position": [8, 8, 8], + "scale": 0 + }, + "leg_left": { + "rotation": [0, 0, -45], + "position": [-8, 8, 8], + "scale": 0 + }, + "body": { + "rotation": [0, 0, "5*math.sin(q.anim_time*90*1)"], + "position": ["1*math.sin(q.anim_time*90*1-60)", 0, 0] } } }, "animation.blastoise.water_idle": { "loop": true, "bones": { - "body": { - "rotation": ["89.5-math.clamp(math.sin(q.anim_time*90*2)*2,0,2)-math.clamp(math.sin(q.anim_time*90*2)*2,-2,0)", 0, 0], - "position": [0, -3, 0] + "body2": { + "rotation": ["32-math.sin(q.anim_time*90*0.5+130)*3", 0, "-math.cos(q.anim_time*90*0.5+130)*1"], + "position": ["0-math.cos(q.anim_time*90*0.5+70)*0.2", "0.5+math.sin(q.anim_time*90*1+70)*0.2", "0+math.cos(q.anim_time*90*0.5+70)*0.2"] }, - "tail": { - "rotation": [ - "-87.5+math.clamp(math.sin(q.anim_time*90*2-25)*1,0,2)+math.clamp(math.sin(q.anim_time*90*2-25)*1,-2,0)+2*(math.sin(q.anim_time*90*2)*1)+2*(math.sin(q.anim_time*90*2/3)*1)", - 0, - "4*(math.sin(q.anim_time*90*2)*1)+4*(math.sin(q.anim_time*90*2/3)*1)" - ], - "position": [0, -1, 0] + "torso": { + "rotation": [17.5, 0, 0], + "position": [0, 0, 0] }, - "head": { - "rotation": ["-180+math.clamp(math.sin(q.anim_time*90*2+25)*2,0,2)+math.clamp(math.sin(q.anim_time*90*2+25)*2,-2,0)", 0, 0], - "position": [0, 3.75, -4.75] - }, - "arm_right": { - "rotation": [ - -90, - "-30-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)-math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)-math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)", - "15+math.sin(q.anim_time*90*2/3+90)*6" - ], - "position": [-1, -2, 2.75] - }, - "leg_right": { - "rotation": [ - "-10-math.clamp(math.sin(q.anim_time*90*2+70)*3,0,1)-math.clamp(math.sin(q.anim_time*90*2+70)*5,0,6)-math.clamp(math.sin(q.anim_time*90*2+70)*3,-1,0)-math.clamp(math.sin(q.anim_time*90*2+70)*4,-4,-0)", - 0, - "10-math.sin(q.anim_time*90*2/3)*6" - ], - "position": [0, 0, 1] - }, - "leg_left": { - "rotation": [ - "-10-math.clamp(math.sin(q.anim_time*90*2+70)*3,0,1)-math.clamp(math.sin(q.anim_time*90*2+70)*5,0,6)-math.clamp(math.sin(q.anim_time*90*2+70)*3,-1,0)-math.clamp(math.sin(q.anim_time*90*2+70)*4,-4,-0)", - 0, - "-10+math.sin(q.anim_time*90*2/3)*6" - ], - "position": [0, 0, 1] - }, - "arm_right3": { - "rotation": [ - 0, - "-10-math.sin(q.anim_time*90*2/3+90)*2", - "-15-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)-math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)-math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)" - ] - }, - "cannon_right0": { - "rotation": [-30, 0, 15] - }, - "arm_right2": { - "rotation": [ - 0, - "-10-math.sin(q.anim_time*90*2/3+90)*2", - "-15-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)-math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)-math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)-math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)" - ] + "arm_rotate_left": { + "rotation": [0, 12.5, 0] }, "arm_left": { - "rotation": [ - -90, - "30+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)+math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)+math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)", - "-15-math.sin(q.anim_time*90*2/3+90)*6" - ], - "position": [1, -2, 2.75] + "rotation": ["24.2403-2*math.sin(q.anim_time*90*1)", -16.32555, 22.4403], + "position": [-1, 0, -0.1] }, - "arm_left2": { - "rotation": [ - 0, - "10+math.sin(q.anim_time*90*2/3+90)*2", - "15+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)+math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)+math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)" - ] + "elbow_left": { + "rotation": ["4.6888-2*math.sin(q.anim_time*90*1-60)", -1.3027, -11.09368] }, - "arm_left3": { - "rotation": [ - 0, - "10+math.sin(q.anim_time*90*2/3+90)*2", - "15+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,0,1)+math.clamp(math.sin(q.anim_time*90*2+90)*2.5,0,6)+math.clamp(math.sin(q.anim_time*90*2+90)*1.5,-1,0)+math.clamp(math.sin(q.anim_time*90*2+90)*2,-4,-0)" - ] + "hand_left": { + "rotation": [9.8511, 1.72794, "-9.8511+math.sin(q.anim_time*90*1-110)*2"] }, - "cannon_left0": { - "rotation": [-30, 0, -15] + "fingers_left": { + "rotation": [17.5, 0, 0] }, - "jaw": { - "rotation": ["5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0] + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["24.2403-2*math.sin(q.anim_time*90*1)", 16.32555, -22.4403], + "position": [1, 0, -0.1] + }, + "elbow_right": { + "rotation": ["4.6888-2*math.sin(q.anim_time*90*1-60)", 1.3027, 11.09368] + }, + "hand_right": { + "rotation": [9.8511, -1.72794, "9.8511-math.sin(q.anim_time*90*1-110)*2"] + }, + "fingers_right": { + "rotation": [17.5, 0, 0] }, "head_angle": { - "rotation": [5, 0, 0] + "rotation": ["-40+math.sin(q.anim_time*90*0.5+190)*2", 0, "math.cos(q.anim_time*90*0.5+130)*1"], + "position": [0, 1.0799, -1.18054] }, - "head_correction": { - "rotation": [90, 0, 0] + "jaw": { + "rotation": [0, 0, 0] + }, + "shell_cannon_right": { + "rotation": [-30, 0, 0] + }, + "leg_right": { + "rotation": ["-25.0161+math.sin(q.anim_time*90*0.5+70)*4", 23.49852, -6.10545], + "position": [0.01122, 0.86186, 0.50702] + }, + "knee_right": { + "rotation": ["17.5+math.sin(q.anim_time*90*0.5-20)*15", 0, 0] + }, + "shell_cannon_left": { + "rotation": [-30, 0, 0] + }, + "leg_left": { + "rotation": ["-25.072-math.sin(q.anim_time*90*0.5+70)*4", -23.96939, 6.29305], + "position": [-0.01122, 0.86186, 0.50702] + }, + "knee_left": { + "rotation": ["17.5-math.sin(q.anim_time*90*0.5-20)*15", 0, 0] + }, + "tail_bend": { + "rotation": [15, "1*math.sin(q.anim_time*90*1-60)", "1*math.sin(q.anim_time*90*1-190)"] + }, + "tail_end": { + "rotation": ["15+3*math.sin(q.anim_time*90*1-90)", 0, "6*math.sin(q.anim_time*90*1-250)"] + }, + "head": { + "rotation": [-1, 0, 0] + }, + "tail_base": { + "rotation": [0, "-1*(math.sin(q.anim_time*90*1-150)*1)", "1*(math.sin(q.anim_time*90*1-60)*1)"] + }, + "foot_right": { + "rotation": ["5-math.sin(q.anim_time*90*0.5-20)*5", 0, 0] + }, + "foot_left": { + "rotation": ["5+math.sin(q.anim_time*90*0.5-20)*5", 0, 0] + }, + "cannon_right": { + "position": [0, 0, 6.7], + "scale": [1, 1, 0.9] + }, + "cannon_left": { + "position": [0, 0, 6.7], + "scale": [1, 1, 0.9] } } }, "animation.blastoise.water_swim": { "loop": true, + "animation_length": 8, "bones": { - "body": { - "rotation": [90, "-math.sin(q.anim_time*90*8+90)*1.5", "math.sin(q.anim_time*90*8+90)*0.5"], - "position": [ - 0, - "-3+math.clamp(math.sin(q.anim_time*90*2)*0.2,0,1)+math.clamp(math.sin(q.anim_time*90*4)*0.3,-1,0)", - "-math.sin(q.anim_time*90*4+90)*0.2" - ] + "body2": { + "rotation": ["59.5-math.sin(q.anim_time*90*0.5+130)*2", "0-math.cos(q.anim_time*90*0.5+20)*3", "0-math.cos(q.anim_time*90*2+20)*2"], + "position": ["0-math.cos(q.anim_time*90*0.5+70)*2", "0.5+math.sin(q.anim_time*90*1+70)*0.2", "0+math.cos(q.anim_time*90*1+70)*0.9"] }, - "tail": { - "rotation": [-87.5, 0, "-math.sin(q.anim_time*90*8+20)*4"], - "position": [0, -1, 0] + "torso": { + "rotation": [17.5, 0, 0], + "position": [0, 0, 0] }, - "head": { - "rotation": [-180, 0, 0], - "position": [0, 3.75, -4.5] - }, - "arm_right": { - "rotation": [0, -10, "-40+(math.sin(q.anim_time*90*4+90)*1-1)*2"] - }, - "leg_right": { - "rotation": [0, 0, "(math.sin(q.anim_time*90*8+90)*1)*20+5"], - "position": [0, 0, 1] - }, - "leg_left": { - "rotation": [0, 0, "-(math.sin(q.anim_time*90*8+90)*1)*20-5"], - "position": [0, 0, 1] - }, - "arm_right3": { - "rotation": [0, -2.5, "-5+(math.sin(q.anim_time*90*4+150)*1-1)*2"] - }, - "cannon_right0": { - "rotation": [-30, 0, 15] - }, - "arm_right2": { - "rotation": [0, -2.5, "-10+(math.sin(q.anim_time*90*4+120)*1-1)*2"] + "arm_rotate_left": { + "rotation": [0, 12.5, 0] }, "arm_left": { - "rotation": [0, 10, "40-(math.sin(q.anim_time*90*4+90)*1-1)*2"] + "rotation": ["59.596-2*math.sin(q.anim_time*90*1)", -12.62175, -4.16744], + "position": [-1, 0, -0.1] }, - "arm_left2": { - "rotation": [0, 2.5, "10-(math.sin(q.anim_time*90*4+120)*1-1)*2"] + "elbow_left": { + "rotation": ["4.6888-2*math.sin(q.anim_time*90*1-60)", -1.3027, -31.09368] }, - "arm_left3": { - "rotation": [0, 2.5, "5-(math.sin(q.anim_time*90*4+150)*1-1)*2"] + "hand_left": { + "rotation": [9.8511, 1.72794, "-9.8511+math.sin(q.anim_time*90*1-110)*2"] }, - "cannon_left0": { - "rotation": [-30, 0, -15] + "fingers_left": { + "rotation": [17.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["59.596-2*math.sin(q.anim_time*90*1)", 12.62175, 4.16744], + "position": [1, 0, -0.1] + }, + "elbow_right": { + "rotation": ["4.6888-2*math.sin(q.anim_time*90*1-60)", 1.3027, 31.09368] + }, + "hand_right": { + "rotation": [9.8511, -1.72794, "9.8511-math.sin(q.anim_time*90*1-110)*2"] + }, + "fingers_right": { + "rotation": [17.5, 0, 0] }, "head_angle": { - "rotation": [2.5, 0, 0] + "rotation": ["-67.5+math.sin(q.anim_time*90*0.5+150)*4", "math.sin(q.anim_time*90*2+70)*1", "0+math.cos(q.anim_time*90*0.5+130)*3"], + "position": [0, 6.28269, -2.62654] }, - "head_correction": { - "rotation": [90, 0, 0] + "jaw": { + "rotation": [0, 0, 0] + }, + "shell_cannon_right": { + "rotation": [0, 0, 0] + }, + "leg_right": { + "rotation": ["-2.572+math.sin(q.anim_time*90*2+70)*8", 23.96939, -6.29305], + "position": [0.01122, "-1.8509-math.sin(q.anim_time*90*2+120)*1", "2.2043+math.sin(q.anim_time*90*2+120)*1"] + }, + "knee_right": { + "rotation": ["17.5+math.sin(q.anim_time*90*2-20)*15", 0, 0] + }, + "shell_cannon_left": { + "rotation": [0, 0, 0] + }, + "leg_left": { + "rotation": ["-2.572-math.sin(q.anim_time*90*2+70)*8", -23.96939, 6.29305], + "position": [-0.01122, "-1.8509+math.sin(q.anim_time*90*2+120)*1", "2.2043-math.sin(q.anim_time*90*2+120)*1"] + }, + "knee_left": { + "rotation": ["17.5-math.sin(q.anim_time*90*2-20)*15", 0, 0] + }, + "tail_bend": { + "rotation": [15, "1*math.sin(q.anim_time*90*1-60)", "1*math.sin(q.anim_time*90*1-190)"] + }, + "tail_end": { + "rotation": ["15+3*math.sin(q.anim_time*90*1-90)", 0, "6*math.sin(q.anim_time*90*1-250)"] + }, + "head": { + "rotation": [-1, 0, 0] + }, + "tail_base": { + "rotation": [0, "-1*(math.sin(q.anim_time*90*1-150)*1)", "1*(math.sin(q.anim_time*90*1-60)*1)"] + }, + "foot_right": { + "rotation": ["5-math.sin(q.anim_time*90*2-20)*5", 0, 0] + }, + "foot_left": { + "rotation": ["5+math.sin(q.anim_time*90*2-20)*5", 0, 0] + }, + "cannon_right": { + "position": [0, 0, 7], + "scale": 0 + }, + "cannon_left": { + "position": [0, 0, 7], + "scale": 0 } } }, "animation.blastoise.sleep": { "loop": true, "bones": { - "body": { - "rotation": [87.5, 0, 0], - "position": [0, -9, 0] + "body2": { + "rotation": [60, 2.5, 0], + "position": [0, -9.7, -7] }, "torso": { - "rotation": [0, "math.clamp(math.sin(q.anim_time*90*0.5)*0.8,-0.7,0.7)", 0], - "position": [0, 0, -0.25] + "rotation": [25, "0.5*math.sin(q.anim_time*90*0.5)", 0] + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": ["-49.1406-1*math.sin(q.anim_time*90*0.5)", -14.71331, "-3.607+1*math.sin(q.anim_time*90*0.5)"], + "position": [0.40815, -6.25947, -2.73979] + }, + "elbow_left": { + "rotation": [2.6638, 4.06765, -15.09283] + }, + "hand_left": { + "rotation": [2.34709, -0.80658, -14.8172] + }, + "fingers_left": { + "rotation": [17.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": ["-50.4786+1*math.sin(q.anim_time*90*0.5)", 21.12039, "1.5267+1*math.sin(q.anim_time*90*0.5)"], + "position": [1.23184, -5.50849, -2.13444] + }, + "elbow_right": { + "rotation": [1.12353, -4.6763, 35.14256] + }, + "hand_right": { + "rotation": [1.38485, 0.39951, 27.26338] + }, + "fingers_right": { + "rotation": [17.5, 0, 0] + }, + "head_angle": { + "rotation": [-66.83056, -10.21756, 9.19398], + "position": [0.08254, 4.32234, -1.66738] }, "jaw": { - "rotation": ["5+math.sin(q.anim_time*90*1)*3", 0, 0] + "rotation": [0, 0, 0] }, - "ear_right": { - "rotation": [-4.5, 14.5, -3.5] + "shell_cannon_right": { + "rotation": [-30, 0, 0] }, - "ear_left": { - "rotation": [5, 5, -18.5] + "leg_right": { + "rotation": [43.28793, 23.91544, 23.30462], + "position": [0, 1, 1.73205] }, - "eyelid_right": { - "position": [-0.1, 0, -0.1] + "knee_right": { + "rotation": [25, 0, 0] + }, + "shell_cannon_left": { + "rotation": [-30, 0, 0] + }, + "leg_left": { + "rotation": [43.28793, -23.91544, -23.30462], + "position": [0, 1, 1.73205] + }, + "knee_left": { + "rotation": [25, 0, 0] + }, + "tail_bend": { + "rotation": [7.5, 0, "0+6*math.sin(q.anim_time*90*0.5-190)"] + }, + "tail_end": { + "rotation": ["10+3*math.sin(q.anim_time*90*1-90)", 0, "6*math.sin(q.anim_time*90*0.5-250)"] + }, + "head": { + "rotation": ["-1+1*math.sin(q.anim_time*90*0.5-160)", 0, "-0.5*math.cos(q.anim_time*90*1)"] + }, + "tail_base": { + "rotation": [-50, "-2*(math.sin(q.anim_time*90*0.5-150)*1)", "4*(math.sin(q.anim_time*90*0.5-60)*1)"], + "position": [0.03926, 1.00031, 1.11707] + }, + "cannon_right": { + "position": [0, 0, 7.2] + }, + "cannon_left": { + "position": [0, 0, 7.2] }, "eyelid_left": { "position": [0.1, 0, -0.1] }, - "arm_right": { - "rotation": ["-45+math.clamp(math.sin(q.anim_time*90*0.5)*0.8,-0.7,0.7)", -30, "8.5+math.clamp(math.sin(q.anim_time*90*0.5)*0.8,-0.7,0.7)"], - "position": [0, -0.25, 1.5] - }, - "arm_right2": { - "rotation": [-10.75, -34.25, 23.25], - "position": [-0.75, 0.75, -0.5] - }, - "arm_right3": { - "rotation": [-6.75, -23.75, 31.5], - "position": [-0.75, 0.75, 0] - }, - "arm_left": { - "rotation": ["-45-math.clamp(math.sin(q.anim_time*90*0.5)*0.8,-0.7,0.7)", 27.5, "-4+math.clamp(math.sin(q.anim_time*90*0.5)*0.8,-0.7,0.7)"], - "position": [0, -0.75, 1.5] - }, - "arm_left2": { - "rotation": [-14, 24.75, -17.5], - "position": [0.25, 0, 0] - }, - "arm_left3": { - "rotation": [-6.75, 14, -29.25], - "position": [0.25, 0, 0] - }, - "tail": { - "rotation": [-130, 0, "4*(math.sin(q.anim_time*90*2)*1)+4*(math.sin(q.anim_time*90*2/1)*1)"] - }, - "leg_right": { - "rotation": [-49.5, 74.5, -54.5] - }, - "leg_left": { - "rotation": [-79.25, -77.5, 93.75] - }, - "head": { - "rotation": [13.25, -80.5, -32], - "position": [0, 0, 1] - } - } - }, - "animation.blastoise.faint": { - "loop": true, - "animation_length": 4.6, - "bones": { - "tail": { - "rotation": { - "0.0": [0, "4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 0], - "0.05": [0, "35+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 0], - "0.55": [0, "-17.5+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 0], - "0.8": [-8.73213, "-32.1932+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", 4.68033], - "1.2": [-51.52075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "1.65": [-66.52075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "1.85": [-96.52075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "2.1": [25.97925, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "2.35": [33.47925, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "2.55": [-89.02075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "2.6": [-91.52075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799], - "2.65": [-81.52075, "9.9+4*(math.sin(q.anim_time*90*3)*1)+4*(math.sin(q.anim_time*90*3/2)*1)", -14.52799] - } - }, - "arm_right": { - "rotation": { - "0.0": [0, -10, "-40+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "0.3": [-6.80797, 19.67847, "-2.7335+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "0.4": [-40.20157, 5.73848, -10.96102], - "0.8": [-23.77595, -50.02149, "-58.504+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.1": [-17.63999, -31.26352, "-67.7872+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.25": [-18.54292, -22.58661, "-65.0771+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.6": [-29.06815, 9.4844, "-30.1119+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.8": [8.72465, 53.80984, "8.9929+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.9": [-96.6407, -10.23427, "-19.2214+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.95": [-96.54233, -2.78371, "-20.0874+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "2.05": [-96.6407, -10.23427, "-19.2214+1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "2.35": [-97.85809, -19.52872, "-12.8043+1.5*(math.sin(q.anim_time*90*3)*1+1)"] - }, - "position": { - "0.0": [0, 0, 0], - "0.4": [0, -1, 2], - "0.8": [-1, -2, 1], - "1.6": [-1.09201, -0.49457, 1.25347], - "1.9": [-1.08597, -2.58061, 2.91194], - "2.05": [-1.08597, -2.58061, 2.91194], - "2.35": [-1.03412, -2.59378, 1.61127] - } - }, - "leg_right": { - "rotation": { - "0.0": [0, 0, 0], - "0.15": [0, -15, -17.5], - "0.7": [0, 0, 0], - "1.55": [7.5, 0, 12.5], - "1.75": [111.52885, -40.28276, -14.41054], - "1.95": [166.52885, -40.28276, -14.41054], - "2.2": [176.52885, -40.28276, -14.41054], - "2.5": [84.68978, -62.72122, -11.92392], - "2.55": [97.18978, -62.72122, -11.92392], - "2.6": [92.18978, -62.72122, -11.92392] - }, - "position": { - "0.0": [0, 0, 2], - "0.15": [-1, 0, 2], - "0.7": [0, 0, 2], - "1.55": [0, 0, 2], - "1.85": [1, 1, 1], - "2.5": [3, -2, 1] - } - }, - "leg_left": { - "rotation": { - "0.0": [0, 0, 0], - "0.1": [-19.10836, -8.08585, -38.78328], - "0.2": [22.70493, -10.43189, -46.13426], - "0.4": [40.84644, -26.41134, -53.95065], - "0.7": [-0.24846, -57.2492, 2.0111], - "1.55": [30.15494, -61.40413, -30.62752], - "1.75": [99.01921, -5.41811, -11.34034], - "1.95": [161.70412, -0.22325, 5.53499], - "2.2": [176.70412, -0.22325, 5.53499], - "2.5": [76.70412, -0.22325, 5.53499], - "2.55": [96.70412, -0.22325, 5.53499], - "2.6": [91.70412, -0.22325, 5.53499] - }, - "position": { - "0.0": [0, 0, 2], - "0.1": [-1, 4, 5], - "0.2": [-1, 4, 9], - "0.4": [-1, 2, 11], - "0.7": [0, 0, 11], - "1.55": [0, 0, 11], - "1.85": [2, 0, 10], - "2.5": [1, -2, 9] - } - }, - "arm_right3": { - "rotation": [0, -15, -15] - }, - "arm_right2": { - "rotation": [0, -15, -15] - }, - "arm_left": { - "rotation": { - "0.0": [0, 10, "40-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "0.2": [1.25707, -17.66237, -10.09337], - "0.5": [-25.57021, -11.05464, "35.7767-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.0": [-25.57, -11.05, "35.7767-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.6": [-0.79964, -38.22961, "17.73-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.8": [-11.89514, -47.10253, "32.7162-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.9": [-106.13315, 8.98314, "14.8764-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "1.95": [-106.00389, -5.43713, "19.0192-1.5*(math.sin(q.anim_time*90*3)*1+1)"], - "2.0": [-105.97354, 4.17788, "16.2678-1.5*(math.sin(q.anim_time*90*3)*1+1)"] - }, - "position": { - "0.0": [0, 0, 0], - "1.0": [0, 0, 1], - "1.6": [0, 0, 1], - "1.9": [1.21565, -3.45321, 3.14419] - } - }, - "arm_left2": { - "rotation": [0, 15, 15] - }, - "arm_left3": { - "rotation": [0, 15, 15] - }, - "torso": { - "rotation": { - "0.0": [20, 0, 0], - "0.1": [11.56936, -10.98772, -16.48612], - "0.2": [15.90184, -22.66067, -21.83974], - "0.4": [17.61698, -31.77335, -15.75768], - "0.7": [27.1397, -33.66053, -1.0576], - "1.0": [49.6397, -33.66053, -1.0576], - "1.5": [59.46162, -27.27558, -5.6279], - "1.6": [61.96162, -27.27558, -5.6279], - "1.8": [103.15614, -26.62832, 2.75618], - "2.0": [108.15614, -26.62832, 2.75618], - "2.35": [88.15614, -26.62832, 2.75618] - }, - "position": { - "0.0": [0, "-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", -2], - "0.1": [-3, "2-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 0], - "0.2": [-3, "2-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 2], - "0.4": [-2, "2-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 3], - "0.7": [2, "1-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 3], - "1.0": [2, "-1-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", 0], - "1.5": [4, "-2-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", -2], - "1.6": [4, "-2-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", -2], - "1.8": [6, "-8.4-0.15*(math.sin(q.anim_time*90*3-90)*1+1)", -5] - } - }, - "jaw": { - "rotation": { - "0.0": ["5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0], - "0.3": ["67.5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0], - "1.25": ["-5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0], - "1.5": ["-5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0], - "1.6": ["67.5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0], - "1.8": ["-5+math.sin(q.anim_time*90*1.5-60)*4", 0, 0] - } - }, - "body": { - "position": { - "0.0": [0, 0, 0], - "1.1": [0, 0, 0], - "1.15": [0, -0.3, 0], - "1.2": [0, -0.1, 0], - "1.25": [0, -0.3, 0], - "1.3": [0, -0.1, 0], - "1.35": [0, -0.5, 0], - "1.4": [0, 0, 0] - } - }, "eyelid_right": { - "position": { - "0.0": [0, 0, 0], - "0.05": [-0.1, 0, -0.1], - "0.65": [-0.1, 0, -0.1], - "0.7": [0, 0, 0], - "1.5": [0, 0, 0], - "1.55": [-0.1, 0, -0.1] - } + "position": [-0.1, 0, -0.1] }, - "eyelid_left": { - "position": { - "0.0": [0, 0, 0], - "0.05": [0.1, 0, -0.1], - "0.65": [0.1, 0, -0.1], - "0.7": [0, 0, 0], - "1.5": [0, 0, 0], - "1.55": [0.1, 0, -0.1] - } + "ear_left": { + "rotation": [-3.65084, 31.72363, 13.0549], + "position": [0, 0, -2.7] }, - "head": { - "rotation": { - "0.0": [-15, 0, 0], - "0.2": [-29.14743, -7.43547, -13.06431], - "0.4": [-30.98124, -9.84655, -17.49524], - "1.05": [-7.47755, 32.99281, 0.93746], - "1.55": [-7.47755, 32.99281, 0.93746], - "1.8": [-123.18063, 45.21212, -48.83023], - "1.85": [-77.98177, 84.44825, 3.013], - "1.9": [-158.33029, 75.15191, -78.05001], - "1.95": [-154.20201, 77.44202, -73.80173], - "2.35": [-32.26456, 79.79004, 49.08663] - }, - "position": { - "0.0": [0, 0, 0], - "0.7": [0, 0, 0], - "1.15": [-1, 0, -2.6], - "1.45": [0, 0, 0], - "1.8": [-4.03031, 5.80368, 0.27186], - "1.85": [-4.15926, 5.57414, 3.26029], - "2.35": [-3.94507, 4.65043, -0.15001] - } + "foot_right": { + "rotation": [17.5, 0, 0] + }, + "foot_left": { + "rotation": [17.5, 0, 0] } } }, @@ -571,7 +930,7 @@ } }, "animation.blastoise.cry": { - "animation_length": 1.5, + "animation_length": 3, "bones": { "head": { "rotation": { @@ -579,23 +938,39 @@ "post": [0, 0, 0], "lerp_mode": "catmullrom" }, - "0.125": { - "post": [-7.5, 0, 0], + "0.25": { + "post": [10, 0, 0], "lerp_mode": "catmullrom" }, - "0.2917": { - "post": [-5, 0, 0], + "0.5": { + "post": [1.85, 0, 0], "lerp_mode": "catmullrom" }, - "0.4583": { - "post": [-7.5, 0, 0], + "0.7083": { + "post": [-6.83, 0, 0], "lerp_mode": "catmullrom" }, - "0.9167": { - "post": [-5, 0, 0], + "1.0": { + "post": [0, 0, 0], "lerp_mode": "catmullrom" }, "1.25": { + "post": [-12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [-18, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.75": { "post": [0, 0, 0], "lerp_mode": "catmullrom" } @@ -603,88 +978,3616 @@ }, "jaw": { "rotation": { + "0.5833": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [37.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [37.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + } + } + }, + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.1667": { + "pre": [2.5, 0, 0], + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [9, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [10.09, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [9, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, 0] + }, + "position": { + "0.625": [0, 0, 0], + "1.3333": [0, "-0.2*math.sin(q.anim_time*90*70)", 0], + "1.7083": [0, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.8333": [0, 0, 0], + "1.3333": ["-1*math.sin(q.anim_time*90*50)", 0, 0], + "1.7083": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0833": [0, 0, 0], + "0.125": [0.1, 0, -0.1], + "0.4583": [0.1, 0, -0.1], + "0.5": [0, 0, 0] + } + }, + "eyelid_right": { + "position": { + "0.0833": [0, 0, 0], + "0.125": [-0.1, 0, -0.1], + "0.4583": [-0.1, 0, -0.1], + "0.5": [0, 0, 0] + } + }, + "arm_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.5": { + "pre": [-5, 0, 0], + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [3.69, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [5.4, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, 0] + } + }, + "arm_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.5": { + "pre": [-5, 0, 0], + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [3.69, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [5.4, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "1.0417": [0, 0, 0], + "1.625": [10, 0, 0], + "2.7083": [0, 0, 0] + } + }, + "elbow_right": { + "rotation": { + "1.0417": [0, 0, 0], + "1.625": [10, 0, 0], + "2.7083": [0, 0, 0] + } + } + }, + "sound_effects": { + "0.5833": { + "effect": "pokemon.blastoise.cry" + } + } + }, + "animation.blastoise.faint": { + "animation_length": 3, + "bones": { + "body2": { + "rotation": { + "1.9167": [0, 0, 0], + "2.0": { + "pre": [-11.46531, -1.5431, -0.11591], + "post": [-11.46531, -1.5431, -0.11591], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-2.42, 1.4, 1.5], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0, -1.4, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": { + "post": [0, -1.9, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [0, -2, 0] + }, + "position": { + "0.0": [0, -1.5, 0], + "1.4167": [0, -1.5, 0], + "1.4583": [0, -2.5, 0], + "1.5": [0, -0.7, 0], + "1.5417": [0, -1.8, 0], + "1.5833": [0, -1.23, 0], + "1.6667": [0, -1.5, 0], + "1.9167": [0, -1.5, 0], + "2.0417": { + "pre": [0, 4.9, 0.4], + "post": [0, 4.9, 0.4], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [0, 1.8, 1.7], + "lerp_mode": "catmullrom" + }, + "2.375": [0, -1.41, 0.79], + "2.4167": { + "pre": [0, 0.37, 0.64], + "post": [0, 0.37, 0.64], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [0, 0.13, 0.32], + "lerp_mode": "catmullrom" + }, + "2.5": [0, -1.5, 0], + "2.5417": [0, -2.5, -0.4], + "2.5833": [0, -0.9, -0.7], + "2.625": [0, -1.8, -0.8], + "2.6667": [0, -1.5, -0.9], + "2.7083": [0, -1.6, -1], + "2.75": [0, -1.6, -1], + "2.8333": [0, -1.65, -1], + "2.9167": [0, -1.6, -1] + } + }, + "torso": { + "rotation": { + "0.0": [16.63397, 0.5, 0], + "0.4167": { + "pre": [21.55441, -2.4202, 2.32587], + "post": [21.55441, -2.4202, 2.32587], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-2.73411, 1.17849, -4.49648], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [14.13397, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [12.41432, -0.0381, 2.42853], + "lerp_mode": "catmullrom" + }, + "1.5": { + "post": [-11.41114, 0.97067, 2.29554], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [-6.94207, 0.47532, -0.1551], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [-3.53719, 1.47795, -0.17159], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [11.83955, -1.44655, -1.11633], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [10.06, 0.49, -0.17], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [12.95809, 0.48703, -0.11308], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [42.55945, 0.44577, 0.22644], + "lerp_mode": "catmullrom" + }, + "2.5": [88.55936, 0.19593, 0.45999], + "2.5417": { + "pre": [80.78044, 0.06173, -2.63087], + "post": [80.78044, 0.06173, -2.63087], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [83, 0.19593, 1.35999], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [81.05936, 0.19593, 1.35999], + "lerp_mode": "catmullrom" + }, + "2.6667": [81.06, 0.2, 0.46] + }, + "position": { + "0.0": [0, 0, 0], + "0.4167": { + "pre": [0, -0.5, 0], + "post": [0, -0.5, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [0, -0.17, -0.11], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, -1, 0], + "lerp_mode": "catmullrom" + }, + "1.0": { + "post": [0, 0.45, 0.73], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0.45, 2.73], + "lerp_mode": "catmullrom" + }, + "1.375": [0, -4.1, 6.3], + "1.9583": [0, -4.1, 6.3], + "2.2917": [0, -4.1, 0.97], + "2.5": [0, -4.1, -5.43] + } + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": { + "0.0": { + "post": [37.2403, -16.32555, 22.4403], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [47.74618, -14.54135, 5.98436], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [37.2403, -16.32555, 22.4403], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [8.74643, -29.32145, 51.03401], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [22.67413, -17.04682, 16.7486], + "lerp_mode": "catmullrom" + }, + "1.9583": [-5.26, -16.33, 22.44], + "2.0833": [-20.26, -16.33, 22.44] + }, + "position": { + "0.0": { + "post": [-1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [-1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "1.6667": [-1, 0.67, -0.1], + "1.7917": [-1, -0.97, -0.1], + "1.875": [-1, 2.3, -0.1], + "1.9583": [-1, 0, -0.1], + "2.0833": [-1, -13, -4.2] + }, + "scale": { + "1.9583": [1, 1, 1], + "2.0": [0.7015, 1.2015, 0.7015], + "2.1667": [0, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "0.0": [19.42085, -1.3027, -11.09368], + "0.5417": { + "pre": [18.98367, 3.85132, -25.83005], + "post": [18.98367, 3.85132, -25.83005], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [19.29164, -3.74053, -4.35182], + "lerp_mode": "catmullrom" + }, + "1.9583": [6.98866, -0.86138, -3.26893] + } + }, + "hand_left": { + "rotation": { + "0.0": [9.8511, 1.72794, -11.73049], + "0.875": { + "pre": [19.06158, 5.90639, -23.54037], + "post": [19.06158, 5.90639, -23.54037], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [19.49218, -4.20402, 4.74472], + "lerp_mode": "catmullrom" + }, + "2.0": [-2.57688, 0.02615, -7.02828] + } + }, + "fingers_left": { + "rotation": [17.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": { + "0.0": { + "post": [37.2403, 16.32555, -22.4403], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [47.74618, 14.54135, -5.98436], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [37.2403, 16.32555, -22.4403], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [8.74643, 29.32145, -51.03401], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [22.67413, 17.04682, -16.7486], + "lerp_mode": "catmullrom" + }, + "1.9583": [-5.26, 16.33, -22.44], + "2.0833": [-20.26, 16.33, -22.44] + }, + "position": { + "0.0": { + "post": [1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "0.6667": { + "post": [1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [1, 0, -0.1], + "lerp_mode": "catmullrom" + }, + "1.6667": [1, 0.67, -0.1], + "1.7917": [1, -0.97, -0.1], + "1.875": [1, 2.3, -0.1], + "1.9583": [1, 0, -0.1], + "2.0833": [1, -13, -0.1] + }, + "scale": { + "1.9583": [1, 1, 1], + "2.0": [0.7015, 1.2015, 0.7015], + "2.1667": [0, 0, 0] + } + }, + "elbow_right": { + "rotation": { + "0.0": [19.42085, 1.3027, 11.09368], + "0.5417": { + "pre": [18.98367, -3.85132, 25.83005], + "post": [18.98367, -3.85132, 25.83005], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [19.29164, 3.74053, 4.35182], + "lerp_mode": "catmullrom" + }, + "1.9583": [6.98866, 0.86138, 3.26893] + } + }, + "hand_right": { + "rotation": { + "0.0": [9.8511, -1.72794, 11.73049], + "0.875": { + "pre": [19.06158, -5.90639, 23.54037], + "post": [19.06158, -5.90639, 23.54037], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [19.49218, 4.20402, -4.74472], + "lerp_mode": "catmullrom" + }, + "2.0": [-2.57688, -0.02615, 7.02828] + } + }, + "fingers_right": { + "rotation": [17.5, 0, 0] + }, + "head_angle": { + "rotation": { + "0.0": [-12.5, 0, 0], + "0.1667": { + "pre": [9.71634, 5.87314, -4.8866], + "post": [9.71634, 5.87314, -4.8866], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [12.89385, -3.8515, -5.1794], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [25.94375, -3.25825, 5.31637], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [26.99591, -0.18881, 2.63983], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [10.76, 0.02, 0.2], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [30.07189, -0.03908, 0.36384], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [16.31, 0.01, 0.23], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [35.97787, 0.03947, 0.15015], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-2.25645, -0.00829, 0.09842], + "lerp_mode": "catmullrom" + }, + "2.0417": [-82.25292, -0.48823, -0.27341] + }, + "position": { + "1.9583": [0, 0, 0], + "2.0833": [0, -11.7, 6.2] + }, + "scale": { + "1.9583": [1, 1, 1], + "2.0417": [0, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [0, 0, 0], + "0.3333": [29.18, 0, 0], + "1.0833": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9583": [-5, 0, 0] + } + }, + "shell_cannon_right": { + "rotation": { + "0.0": [-30, 0, 0], + "1.7083": [-30, 0, 0], + "1.7917": [-35, 0, 0], + "1.9167": [0, 0, 0] + } + }, + "leg_right": { + "rotation": { + "0.0": [-15.26795, 27.5, 0], + "0.4583": [-20.90099, 27.38656, -2.59775], + "0.8333": [-20.90099, 27.38656, -2.59775], + "1.1667": [-20.9, 27.39, -2.6], + "1.4167": [-112.75416, 19.03407, -66.90134], + "1.9583": [-92.84141, 7.98081, -66.45893], + "2.0833": [-172.61607, 29.39398, -93.58145] + }, + "position": { + "0.0": [0.0067, -0.02947, 0.01474], + "0.4583": [0.01, -0.73, 0.01], + "0.8333": [0.01, -0.73, 0.01], + "1.1667": [0.01, 0.77, 2.81], + "1.4167": [0.01, -5.53, 7.91], + "1.9583": [0.01, -5.53, 7.91], + "2.0833": [10.31, -5.53, 12.91] + }, + "scale": { + "1.9583": [1, 1, 1], + "2.0": [0.5149, 2.0149, 0.5149], + "2.0833": [0, 0, 0] + } + }, + "knee_right": { + "rotation": { + "0.0": [15.26795, 0, 0], + "0.4583": { + "pre": [21.89096, -1.1031, 3.28088], + "post": [21.89096, -1.1031, 3.28088], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [21.89096, -1.1031, 3.28088], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [8.59219, 0.71569, -3.38645], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [15.81, 0.72, -3.39], + "lerp_mode": "catmullrom" + }, + "1.9167": [-1.72297, 3.50385, 5.20369] + } + }, + "shell_cannon_left": { + "rotation": { + "0.0": [-30, 0, 0], + "1.7083": [-30, 0, 0], + "1.7917": [-35, 0, 0], + "1.9167": [0, 0, 0] + } + }, + "leg_left": { + "rotation": { + "0.0": [-15.26795, -27.5, 0], + "0.4583": [-20.90099, -27.38656, 2.59775], + "0.8333": [-20.90099, -27.38656, 2.59775], + "1.1667": [-20.9, -27.39, 2.6], + "1.4167": [-112.75416, -19.03407, 66.90134], + "1.9583": [-92.84141, -7.98081, 66.45893], + "2.0833": [-172.61607, -29.39398, 93.58145] + }, + "position": { + "0.0": [-0.0067, -0.02947, 0.01474], + "0.4583": [-0.01, -0.73, 0.01], + "0.8333": [-0.01, -0.73, 0.01], + "1.1667": [-0.01, 0.77, 2.81], + "1.4167": [-0.01, -5.53, 7.91], + "1.9583": [-0.01, -5.53, 7.91], + "2.0833": [-10.31, -5.53, 12.91] + }, + "scale": { + "1.9583": [1, 1, 1], + "2.0": [0.5149, 2.0149, 0.5149], + "2.0833": [0, 0, 0] + } + }, + "knee_left": { + "rotation": { + "0.0": [15.26795, 0, 0], + "0.4583": { + "pre": [21.89096, 1.1031, -3.28088], + "post": [21.89096, 1.1031, -3.28088], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [21.89096, 1.1031, -3.28088], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [8.59219, -0.71569, 3.38645], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [15.81, -0.72, 3.39], + "lerp_mode": "catmullrom" + }, + "1.9167": [-1.72297, -3.50385, -5.20369] + } + }, + "tail_bend": { + "rotation": [15, -1.73205, 0.3473] + }, + "tail_end": { + "rotation": [12, 0, 5.63816] + }, + "head": { + "rotation": [-1.68404, 0, 0] + }, + "tail_base": { + "rotation": { + "0.0": [0, 1, -3.4641], + "0.6667": [0, 1, -3.46], + "0.8333": [-35, 1, -3.46] + }, + "position": { + "0.6667": [0, 0, 0], + "0.8333": [0, 8.3, 0] + }, + "scale": { + "0.6667": [1, 1, 1], + "0.8333": [0, 0, 0] + } + }, + "cannon_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": { + "pre": [0, 9, 0], + "post": [0, 9, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [2, -6, -8], + "lerp_mode": "catmullrom" + }, + "1.5417": [2, 3, -8] + }, + "position": { + "0.0": [0, 0, 3], + "1.5417": [0, 0, 3], + "1.625": [0, 0, 1], + "1.7083": [0, 0, 2.9] + }, + "scale": { + "1.7083": [1, 1, 1], + "1.7917": [0, 0, 0] + } + }, + "cannon_left": { + "rotation": { + "0.125": [0, 0, 0], + "0.75": { + "pre": [0, -8, 0], + "post": [0, -8, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 5, 0], + "lerp_mode": "catmullrom" + }, + "1.5833": [0, 0, 0] + }, + "position": { + "0.0": [0, 0, 3], + "1.5417": [0, 0, 3], + "1.625": [0, 0, 1], + "1.7083": [0, 0, 2.9] + }, + "scale": { + "1.7083": [1, 1, 1], + "1.7917": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "0.5833": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "0.625": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.0417": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "1.4583": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "1.5": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.7917": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.8333": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]} + } + }, + "eyelid_right": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "0.5833": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "0.625": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.0417": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "1.4583": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "1.5": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.7917": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.8333": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]} + } + } + } + }, + "animation.blastoise.quirk_ground_idle": { + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.3333": { + "pre": [-0.5, 3.5, 1.5], + "post": [-0.5, 3.5, 1.5], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [3.64, -0.08, -0.5], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [1.5, -1, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0.92, -0.81, 0.07], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [-1.49, -2.47, -1.95], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "arm_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.625": { + "pre": [0, 0, 7.5], + "post": [0, 0, 7.5], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, -17.5], + "lerp_mode": "catmullrom" + }, + "3.0": [0, 0, 0] + }, + "position": { + "1.5417": [0, 0, 0], + "1.8333": { + "pre": [0, 0, 1], + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [-0.8, 0, 1], + "lerp_mode": "catmullrom" + }, + "2.75": [0, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.375": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-5, 0, 7.5], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "hand_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.0": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": [0, 0, 0] + } + }, + "arm_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.5": { + "pre": [10, 0, -2], + "post": [10, 0, -2], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-8.63, 0, -0.87], + "lerp_mode": "catmullrom" + }, + "2.0": [0, 0, 0] + } + }, + "elbow_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.2917": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-5, -5, -10], + "lerp_mode": "catmullrom" + }, + "1.7917": [0, 0, 0] + } + }, + "hand_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.5417": { + "pre": [5, 0, 0], + "post": [5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": [0, 0, 0] + } + }, + "shell_cannon_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": [2, 0, 0], + "0.5833": [-2, 0, 0], + "0.7917": [-2, 0, 0], + "0.9583": [2, 0, 0], + "1.1667": [0, 0, 0] + } + }, + "cannon_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.2917": { + "pre": [0, 3, 0], + "post": [0, 3, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [0, -0.12, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "2.125": [0, 0, 0] + }, + "position": { + "0.0": [0, 0, 0], + "0.25": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5417": { + "post": [0, 0, 2.4], + "lerp_mode": "catmullrom" + }, + "1.375": [0, 0, 0] + } + }, + "shell_cannon_left": { + "rotation": { + "1.875": [0, 0, 0], + "2.25": [-2, 0, 0], + "2.4167": [1, 0, 0], + "2.5833": [0, 0, 0] + } + }, + "cannon_left": { + "rotation": [0, 0, 0], + "position": { + "0.0": [0, 0, 0], + "1.6667": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 3.2], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0, 0, -0.8], + "lerp_mode": "catmullrom" + }, + "2.375": [0, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [0, 0, 0], + "0.1667": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.2917": { + "post": [0, 0, 0.5], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [0, 0, -4], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [0, 0, 2], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 2, -1.5], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [0, 2, 2], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [0, 0, -2], + "lerp_mode": "catmullrom" + }, + "3.0": [0, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [0, 0, 0], + "0.4167": [10, 0, 0], + "0.7083": [0, 0, 0], + "1.7917": [0, 0, 0], + "2.0": [10, 0, 0], + "2.2917": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "0.25": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "0.2917": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.375": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.4167": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "1.625": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "1.6667": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "eyelid_right": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "0.25": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "0.2917": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.375": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.4167": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "1.625": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "1.6667": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]} + } + } + } + }, + "animation.blastoise.quirk_battle_idle": { + "animation_length": 3, + "bones": { + "shell_cannon_left": { + "rotation": { + "0.2917": [0, 0, 0], + "0.5417": [2, 0, 0], + "0.8333": [-2, 0, 0], + "1.2917": [-2, 0, 0], + "1.9583": [0, 0, 0] + } + }, + "cannon_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.1667": { + "pre": [0, 2, 0], + "post": [0, 2, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, -1.57, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, -15, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, -16.87, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, -17.02, 6], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, -15, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": [0, 0, 0] + }, + "position": { + "0.0": [0, 0, 0], + "0.5417": [0, 0, -0.7], + "0.6667": [0, 0, 0], + "0.7917": [0, 0, 0], + "0.9167": [0, 0, -2], + "1.125": [0, 0, -2], + "1.4583": [0, 0, 0] + } + }, + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": { + "pre": [0, 0, 1], + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, -2], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, -2], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, 0, 1], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "arm_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.1667": { + "pre": [22.5, 0, 0], + "post": [22.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7917": [0, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.1667": { + "pre": [0, 0, -10], + "post": [0, 0, -10], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 0, -10], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, 0, -1.2], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, 0] + } + }, + "fingers_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.625": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [0, 0, -17.5], + "lerp_mode": "catmullrom" + }, + "2.1667": [0, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [0, 0, 0], + "0.4167": { + "pre": [-5, 0, 0], + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-1.29, -0.87, -3.38], + "lerp_mode": "catmullrom" + }, + "3.0": [0, 0, 0] + } + } + } + }, + "animation.blastoise.quirk_battle_idle2": { + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.375": { + "pre": [0, 0, -1], + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 0, 2], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 2], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, 0, -1], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 0, 0] + } + }, + "arm_right": { + "rotation": { + "0.0": [0, 0, 0], + "1.1667": { + "pre": [22.5, 0, 0], + "post": [22.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7917": [0, 0, 0] + } + }, + "elbow_right": { + "rotation": { + "0.0": [0, 0, 0], + "1.1667": { + "pre": [0, 0, 10], + "post": [0, 0, 10], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [0, 0, 10], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, 0, 1.2], + "lerp_mode": "catmullrom" + }, + "2.9167": [0, 0, 0] + } + }, + "hand_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.625": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 15], + "lerp_mode": "catmullrom" + }, + "1.9167": [0, 0, 0] + } + }, + "shell_cannon_right": { + "rotation": { + "0.2917": [0, 0, 0], + "0.5417": [2, 0, 0], + "0.8333": [-2, 0, 0], + "1.2917": [-2, 0, 0], + "1.9583": [0, 0, 0] + } + }, + "cannon_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.1667": { + "pre": [0, -2, 0], + "post": [0, -2, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, 1.57, 0], + "lerp_mode": "catmullrom" + }, + "0.75": { + "post": [0, 15, 0], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [0, 16.87, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [0, 17.02, -6], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 15, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0417": [0, 0, 0] + }, + "position": { + "0.0": [0, 0, 0], + "0.5417": [0, 0, -0.7], + "0.6667": [0, 0, 0], + "0.7917": [0, 0, 0], + "0.9167": [0, 0, -2], + "1.125": [0, 0, -2], + "1.4583": [0, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [0, 0, 0], + "0.4167": { + "pre": [-5, 0, 0], + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-1.29, 0.87, 3.38], + "lerp_mode": "catmullrom" + }, + "3.0": [0, 0, 0] + } + } + } + }, + "animation.blastoise.physical": { + "animation_length": 3, + "bones": { + "body2": { + "position": [0, -1.5, 0] + }, + "torso": { + "rotation": { + "0.0": [25.13397, 0.5, 0], + "0.375": { + "pre": [29.13, 0.5, 0], + "post": [29.13, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [12.13, 7.5, 9], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [12.13, 7.5, 9], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [36.13, -15.5, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [36.13, -15.5, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [33.41318, -3.70293, 3.40858], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [25.55003, 0.86667, -1.55775], + "lerp_mode": "catmullrom" + }, + "3.0": [25.13397, 0.5, 0] + }, + "position": { + "0.0": [0, 0, 0.025], + "0.2083": { + "pre": [0, -1.1, 0.02], + "post": [0, -1.1, 0.02], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [0, -1.1, 0.02], + "lerp_mode": "catmullrom" + }, + "0.875": { + "post": [0, 2.5, 0.02], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0, 2.5, 0.02], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0.8, -6.58], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0.8, -6.58], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [0, 0.94, -2.76], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [0, 0, 0.025], + "lerp_mode": "catmullrom" + }, + "2.875": [0, 0, 0.025] + } + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": { + "0.0": [16.0158, -7.28336, 4.19087], + "0.375": { + "pre": [38.5158, -7.28336, -13.30913], + "post": [38.5158, -7.28336, -13.30913], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [48.52, -19.78, -10.81], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [24.01972, -13.69426, -3.88167], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [54.04893, -11.07335, -11.5145], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [47.30612, -16.42735, -6.90658], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [13.80259, -7.20135, 4.28932], + "lerp_mode": "catmullrom" + }, + "2.9583": [16.0158, -7.28336, 4.19087] + }, + "position": { + "0.0": [-0.5, 0, 0], + "0.375": { + "pre": [-0.5, 0, 0], + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-1.4, 0, -0.5], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-1.4, 0, -0.5], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [-1.4, 0, -0.5], + "lerp_mode": "catmullrom" + }, + "2.7917": [-0.5, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "0.0": [2.5, 0, 0], + "1.0833": { + "pre": [2.5, 0, 0], + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [33.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [33.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7917": [2.5, 0, 0] + } + }, + "hand_left": { + "rotation": { + "0.0": [7.5, 0, 0], + "0.75": { + "pre": [15.5, 0, 0], + "post": [15.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [9.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [30.23, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [22.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [4.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.875": [7.5, 0, 0] + } + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": { + "0.0": [16.0158, 7.28336, -4.19087], + "0.625": { + "pre": [36.02, 7.28, -4.19], + "post": [36.02, 7.28, -4.19], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-11.48, -0.72, -4.19], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [51.02, -9.72, 12.81], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [51.02, -9.72, 12.81], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [16.0158, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "2.875": [16.0158, 7.28336, -4.19087] + }, + "position": { + "0.0": [0.5, 0, 0], + "0.625": { + "pre": [0.5, 0, 0], + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0.5, 0.4, 0.8], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0.5, 0.6, -2.1], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [0.5, 0.6, -2.1], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0.9, 0.6, -0.2], + "lerp_mode": "catmullrom" + }, + "2.875": [0.5, 0, 0] + }, + "scale": { + "1.1667": [1, 1, 1], + "1.2083": [1, 1.7, 1], + "1.25": [1, 1, 1] + } + }, + "elbow_right": { + "rotation": { + "0.0": [2.5, 0, 0], + "0.625": { + "pre": [24.98, 0, 0], + "post": [24.98, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.0417": { + "post": [-2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [39.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [39.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [2.5, 0, 0] + } + }, + "hand_right": { + "rotation": { + "0.0": [7.5, 0, 0], + "1.125": { + "pre": [-9.5, 0, 0], + "post": [-9.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [26.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9167": [7.5, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [-12.5, 0, 0], + "0.625": { + "pre": [12.5, 0, 0], + "post": [12.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-5, -5.5, -4], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-22.5, 16, -10], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-9.45, 17.91, -4.85], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-8.9, 20, -0.5], + "lerp_mode": "catmullrom" + }, + "2.0417": { + "post": [-15.48, 7.76, -2.12], + "lerp_mode": "catmullrom" + }, + "2.375": { + "post": [-12.48341, 0.64904, 0.12901], + "lerp_mode": "catmullrom" + }, + "2.75": { + "post": [-12.51664, -0.34031, -0.09283], + "lerp_mode": "catmullrom" + }, + "3.0": [-12.5, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [17.5, 0, 0], + "0.3333": { + "pre": [0.5, 0, 0], + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [50.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [27.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [17.1394, -0.11856, 0.03311], + "lerp_mode": "catmullrom" + }, + "3.0": [17.5, 0, 0] + } + }, + "shell_cannon_right": { + "rotation": { + "0.0": [-30, 0, 0], + "0.2917": { + "pre": [-27, 0, 0], + "post": [-27, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-28, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": [-30, 0, 0] + } + }, + "leg_right": { + "rotation": { + "0.0": [-15.26795, 37.5, 0], + "0.4167": [-15.27, 34.5, 0], + "0.6667": { + "pre": [-7.77, 37.5, 0], + "post": [-7.77, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-58.77, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.25": [-15.27, 19.5, 0], + "1.8333": [-15.27, 19.5, 0], + "2.0": { + "pre": [-20.26932, 25.5, 0], + "post": [-20.26932, 25.5, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [-20.26932, 31.2, 0], + "lerp_mode": "catmullrom" + }, + "2.375": [-15.26795, 37.5, 0] + }, + "position": { + "0.0": [0.0067, -0.02947, 0.01474], + "0.4167": [0.01, -0.03, 0.01], + "1.0": { + "pre": [0.01, 4.97, 3.01], + "post": [0.01, 4.97, 3.01], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0.01, 4.97, 3.01], + "lerp_mode": "catmullrom" + }, + "1.25": [0.01, -0.03, -5.99], + "1.8333": [0.01, -0.03, -5.99], + "2.0417": { + "pre": [0.01, 2.57, -2.65], + "post": [0.01, 2.57, -2.65], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [0.01, 1.4, -0.63], + "lerp_mode": "catmullrom" + }, + "2.375": [0.0067, -0.02947, 0.01474] + } + }, + "knee_right": { + "rotation": { + "0.0": [15.26795, 0, 0], + "0.3333": [15.27, 0, 0], + "1.0833": [45.27, 0, 0], + "1.25": [15.27, 0, 0], + "1.8333": [15.27, 0, 0], + "1.9167": { + "pre": [9.27, 0, 0], + "post": [9.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [23.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.375": [15.27, 0, 0] + } + }, + "shell_cannon_left": { + "rotation": { + "0.0": [-30, 0, 0], + "0.2917": { + "pre": [-27, 0, 0], + "post": [-27, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-28, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.875": [-30, 0, 0] + } + }, + "leg_left": { + "rotation": { + "0.0": [-15.26795, -37.5, 0], + "0.2917": [-15.27, -37.5, 0], + "0.9583": { + "pre": [-7.27, -37.5, 0], + "post": [-7.27, -37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-7.27, -37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-8.22446, -45.42749, 1.43797], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-8.22446, -45.42749, 1.43797], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-15.26795, -37.5, 0], + "lerp_mode": "catmullrom" + }, + "2.5": [-15.26795, -37.5, 0] + }, + "position": { + "0.0": [-0.0067, -0.02947, 0.01474], + "0.2917": [-0.01, -0.03, 0.01], + "0.9583": { + "pre": [0.29, 0.87, -0.39], + "post": [0.29, 0.87, -0.39], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [0.29, 0.87, -0.39], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0.29, 0.87, -0.99], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [0.29, 0.87, -0.99], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-0.0067, -0.02947, 0.01474], + "lerp_mode": "catmullrom" + }, + "2.5": [-0.0067, -0.02947, 0.01474] + } + }, + "knee_left": { + "rotation": { + "0.0": [15.26795, 0, 0], + "0.2917": [15.27, 0, 0], + "0.9583": { + "pre": [8.27, 0, 0], + "post": [8.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [8.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [8.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [8.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [15.26795, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5": [15.26795, 0, 0] + } + }, + "tail_bend": { + "rotation": { + "0.0": [15, -1.73205, 0.3473], + "0.7083": { + "pre": [14.33702, -4.78125, 11.97366], + "post": [14.33702, -4.78125, 11.97366], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [14.86332, 2.67853, -16.07521], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [14.57657, -4.09819, 9.23901], + "lerp_mode": "catmullrom" + }, + "2.9167": [15, -1.73205, 0.3473] + } + }, + "tail_end": { + "rotation": [12, 0, 5.63816] + }, + "head": { + "rotation": [-9.18404, 0, 0] + }, + "tail_base": { + "rotation": { + "0.0": [0, 1, -3.4641], + "0.5": { + "pre": [0.16394, 4.82663, -0.24112], + "post": [0.16394, 4.82663, -0.24112], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [-0.38332, 6.12671, -9.61949], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-24.88771, 11.16786, -6.32718], + "lerp_mode": "catmullrom" + }, + "2.7083": [0, 1, -3.4641] + } + }, + "cannon_left": { + "rotation": { + "0.0": [-0.7503, 17.01572, 0.30669], + "0.2083": { + "pre": [-0.7503, 17.01572, 0.30669], + "post": [-0.7503, 17.01572, 0.30669], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-0.75, -0.48, 0.31], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-0.68777, -0.5654, -6.49327], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [2.25294, -1.28894, -5.09347], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [2.25294, -1.28894, -5.09347], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-0.80654, -0.00004, -9.51776], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-0.7503, 18.01572, 0.30669], + "lerp_mode": "catmullrom" + }, + "2.9167": [-0.7503, 17.01572, 0.30669] + }, + "position": { "0.0": { "post": [0, 0, 0], "lerp_mode": "catmullrom" }, - "0.125": { - "post": [27.5, 0, 0], + "0.2083": { + "post": [0, 0, 0], "lerp_mode": "catmullrom" }, + "0.5": [0, 0, 0], + "0.8333": { + "pre": [0, 0, 3.9], + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [0, 0, 6.3], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "2.2917": [0, 0, 0] + } + }, + "right_toe_out": { + "rotation": { + "0.0": [0, 12.5, 0], "0.2917": { - "post": [12.5, 0, 0], + "pre": [0, 0, 0], + "post": [0, 0, 0], "lerp_mode": "catmullrom" }, - "0.4583": { - "post": [22.5, 0, 0], + "0.5833": { + "post": [-17.5, 0, 0], "lerp_mode": "catmullrom" }, - "0.9167": { - "post": [15, 0, 0], + "0.8333": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-11.5, 0, 0], "lerp_mode": "catmullrom" }, "1.25": { "post": [0, 0, 0], "lerp_mode": "catmullrom" - } + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": [0, 12.5, 0] + } + }, + "right_toe_in": { + "rotation": { + "0.0": [0, -12.5, 0], + "0.2917": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-11.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": [0, -12.5, 0] + } + }, + "left_toe_out": { + "rotation": [0, -12.5, 0] + }, + "left_toe_in": { + "rotation": [0, 12.5, 0] + }, + "cannon_right": { + "rotation": { + "0.0": [-0.7503, -17.01572, -0.30669], + "0.2083": { + "pre": [-0.7503, -17.01572, -0.30669], + "post": [-0.7503, -17.01572, -0.30669], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [-0.75, 0.48, -0.31], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [-0.68777, 0.5654, 6.49327], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [2.25294, 1.28894, 5.09347], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [2.25294, 1.28894, 5.09347], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-0.80654, 0.00004, 9.51776], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [-0.7503, -18.01572, -0.30669], + "lerp_mode": "catmullrom" + }, + "2.9167": [-0.7503, -17.01572, -0.30669] + }, + "position": { + "0.0": [0, 0, 0], + "0.2083": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [0, 0, 6.3], + "lerp_mode": "catmullrom" + }, + "2.0": { + "post": [0, 0, 3.9], + "lerp_mode": "catmullrom" + }, + "2.2917": [0, 0, 0] + } + }, + "body": { + "position": { + "1.25": [0, 0, 0], + "1.2917": [0, -1.2, 0], + "1.3333": [0, 0.1, 0], + "1.375": [0, -0.8, 0], + "1.4167": [0, 0.1, 0], + "1.4583": [0, -0.4, 0], + "1.5417": [0, 0, 0], + "1.625": [0, -0.2, 0], + "1.7083": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0833": [0, 0, 0], + "0.125": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "0.7083": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "0.75": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}, + "2.0833": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "2.125": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "2.2917": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "2.3333": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "eyelid_right": { + "position": { + "0.0833": [0, 0, 0], + "0.125": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "0.7083": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "0.75": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}, + "2.0833": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "2.125": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "2.2917": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "2.3333": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "foot_right": { + "rotation": { + "0.4167": [0, 0, 0], + "0.625": [10, 0, 0], + "1.25": [0, 0, 0], + "1.7917": [0, 0, 0], + "1.9167": [10, 0, 0], + "2.4583": [0, 0, 0] + } + }, + "right_toe_front": { + "rotation": { + "0.0": [0, 0, 0], + "0.2917": { + "pre": [0, 0, 0], + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [-17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [0.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [-11.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [0, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.25": [0, 0, 0] } - } - }, - "sound_effects": { - "0.0": { - "effect": "pokemon.blastoise.cry" } } }, - "animation.blastoise.render": { - "loop": true, + "animation.blastoise.special": { + "animation_length": 3, "bones": { - "blastoise": { - "rotation": [0, -160, 0] - }, - "body": { - "rotation": [0, 22.5, 0] + "body2": { + "position": [0, -1.5, 0] }, "torso": { + "rotation": { + "0.0": [25.13397, 0.5, 0], + "0.25": { + "pre": [24.13397, 0.5, 0], + "post": [24.13397, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "0.5833": { + "post": [34.13, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [35.88, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [35.13, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [10.11302, -0.11496, -3.94709], + "lerp_mode": "catmullrom" + }, + "1.5833": { + "post": [9.19329, -4.79924, -0.17155], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [23.77733, -5.13557, -3.53955], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [29.5107, -1.63915, -6.78008], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [23.63397, 0.9, 2], + "lerp_mode": "catmullrom" + }, + "3.0": [25.13397, 0.5, 0] + }, + "position": { + "0.0": [0, 0, 0.025], + "0.5417": [0, 0.1, 0.02], + "1.2917": [0, -0.7, 0.02], + "1.3333": { + "pre": [0, -0.01, -0.62], + "post": [0, -0.01, -0.62], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [0, 0.7, 1.63], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0, 0, 2.42], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, -0.5, 2.42], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [0, 0.5, 1.11], + "lerp_mode": "catmullrom" + }, + "2.6667": { + "post": [0, -0.1, 0.025], + "lerp_mode": "catmullrom" + }, + "2.875": [0, 0, 0.025] + } + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": { + "0.0": [16.0158, -7.28336, 4.19087], + "0.3333": { + "pre": [10.0158, -7.28336, 4.19087], + "post": [10.0158, -7.28336, 4.19087], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [59.27789, -3.44948, -16.57084], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [59.27789, -3.44948, -11.57084], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [47.53, -13.69, -15.25], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [40.81, 0.81, -11.85], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [16.0158, -7.28336, 4.19087], + "lerp_mode": "catmullrom" + }, + "3.0": [16.0158, -7.28336, 4.19087] + }, + "position": { + "0.0": [-0.5, 0, 0], + "0.3333": { + "pre": [-0.5, 0, 0], + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [-1.05705, 0.40199, -0.42202], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [-1.05705, 0.40199, -0.42202], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [-0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [-0.5, 0, 0] + } + }, + "elbow_left": { + "rotation": { + "0.0": [2.5, 0, 0], + "0.5417": { + "pre": [0.5, 0, 0], + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [29.90245, 6.30675, -10.81428], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [29.90245, 6.30675, -10.81428], + "lerp_mode": "catmullrom" + }, + "2.7083": [2.5, 0, 0] + } + }, + "hand_left": { + "rotation": [7.5, 0, 0] + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": { + "0.0": [16.0158, 7.28336, -4.19087], + "0.3333": { + "pre": [10.0158, 7.28336, -4.19087], + "post": [10.0158, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [59.27789, 3.44948, 16.57084], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [59.27789, 3.44948, 11.57084], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [47.53, 13.69, 15.25], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [40.81, -0.81, 11.85], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [16.0158, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "3.0": [16.0158, 7.28336, -4.19087] + }, + "position": { + "0.0": [0.5, 0, 0], + "0.3333": { + "pre": [0.5, 0, 0], + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [1.05705, 0.40199, -0.42202], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [1.05705, 0.40199, -0.42202], + "lerp_mode": "catmullrom" + }, + "1.875": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [0.5, 0, 0] + } + }, + "elbow_right": { + "rotation": { + "0.0": [2.5, 0, 0], + "0.5417": { + "pre": [0.5, 0, 0], + "post": [0.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [29.90245, -6.30675, 10.81428], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [29.90245, -6.30675, 10.81428], + "lerp_mode": "catmullrom" + }, + "2.7917": [2.5, 0, 0] + } + }, + "hand_right": { "rotation": [7.5, 0, 0] }, "head_angle": { - "rotation": [-126.75911, 71.36898, -108.42018] + "rotation": { + "0.0": [-12.5, 0, 0], + "0.2917": { + "pre": [-1.99984, -0.01063, -0.03324], + "post": [-1.99984, -0.01063, -0.03324], + "lerp_mode": "catmullrom" + }, + "0.7083": { + "post": [-22.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-22.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [12.88377, -1.76161, 4.76588], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [-6.53082, 7.4762, 3.19987], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-12.84016, 0.64206, 2.105], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [-12.53665, -1.48742, -2.20261], + "lerp_mode": "catmullrom" + }, + "3.0": [-12.5, 0, 0] + } }, - "arm_right": { - "rotation": [0, -10, -12.5] + "jaw": { + "rotation": { + "0.0": [17.5, 0, 0], + "0.3333": { + "pre": [3.50058, -0.05121, -0.11082], + "post": [3.50058, -0.05121, -0.11082], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [39.58044, -0.06783, 0.17675], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-5.41782, -0.11088, -0.16043], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-5.41782, -0.11088, -0.16043], + "lerp_mode": "catmullrom" + }, + "2.2083": { + "post": [22.5814, -0.07169, -0.01648], + "lerp_mode": "catmullrom" + }, + "2.9167": [17.5, 0, 0] + } }, - "arm_right2": { - "rotation": [3.10627, -29.76116, -10.13286] - }, - "arm_right3": { - "rotation": [0, -12, 0] - }, - "arm_left": { - "rotation": [0, 10, 22.5] - }, - "arm_left2": { - "rotation": [0, 22.5, 0] - }, - "arm_left3": { - "rotation": [0, 15, 0] - }, - "cannon_right": { - "rotation": [-12.98705, 14.71314, -32.26469], - "position": [0, -3.7, 0] - }, - "cannon_left": { - "rotation": [-14.92774, 4.29771, 30.75906], - "position": [0, -3.7, 0] - }, - "tail": { - "rotation": [-65, 0, 0] + "shell_cannon_right": { + "rotation": { + "0.0": [-30, 0, 0], + "1.25": { + "pre": [-30, 0, 0], + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [-29, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [-30, 0, 0] + } }, "leg_right": { - "rotation": [10, 0, 0] + "rotation": { + "0.0": [-15.26795, 37.5, 0], + "1.2083": [-29.27, 37.5, 0], + "1.4167": { + "pre": [-27.77, 25, 0], + "post": [-27.77, 25, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [-27.77, 25, 0], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [-15.27, 37.5, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [-15.27, 37.5, 0] + }, + "position": { + "0.0": [0.0067, -0.02947, 0.01474], + "1.2083": [0.31, -1.64, 0.69], + "1.4167": { + "pre": [0.01, -1.43, 1.21], + "post": [0.01, -1.43, 1.21], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0.01, -1.43, 1.21], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [0.01, -0.03, 0.01], + "lerp_mode": "catmullrom" + }, + "2.9583": [0.01, -0.03, 0.01] + } + }, + "knee_right": { + "rotation": { + "0.0": [15.26795, 0, 0], + "1.2083": [29.27, 0, 0], + "1.4167": [15.26795, 0, 0] + } + }, + "shell_cannon_left": { + "rotation": { + "0.0": [-30, 0, 0], + "1.25": { + "pre": [-30, 0, 0], + "post": [-30, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-37, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [-29, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [-30, 0, 0] + } }, "leg_left": { - "rotation": [-10, 0, 0] + "rotation": { + "0.0": [-15.26795, -37.5, 0], + "1.2083": [-29.27, -37.5, 0], + "1.375": [11.96631, -41.64114, -11.88172], + "1.7083": [12.45716, -41.88461, -12.60312], + "2.0833": [11.96631, -41.64114, -11.88172], + "2.25": { + "pre": [-3.51, -36.52, -10.34], + "post": [-3.51, -36.52, -10.34], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [-18.58107, -32.08371, -7.82735], + "lerp_mode": "catmullrom" + }, + "2.7083": [-15.27, -37.5, 0] + }, + "position": { + "0.0": [-0.0067, -0.02947, 0.01474], + "1.2083": [-0.31, -1.64, 0.69], + "1.375": { + "pre": [-0.01, 2.3, 4.46], + "post": [-0.01, 2.3, 4.46], + "lerp_mode": "catmullrom" + }, + "1.5417": { + "post": [-0.01, 1.47, 5.41], + "lerp_mode": "catmullrom" + }, + "1.8333": { + "post": [-0.01, 1.47, 5.41], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-0.01, 1.47, 5.41], + "lerp_mode": "catmullrom" + }, + "2.5": { + "post": [-0.01, 1.67, 2.16], + "lerp_mode": "catmullrom" + }, + "2.7083": [-0.01, -0.03, 0.01] + } + }, + "knee_left": { + "rotation": { + "0.0": [15.26795, 0, 0], + "1.2083": { + "pre": [29.27, 0, 0], + "post": [29.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [2.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [2.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.75": [2.27, 0, 0], + "1.9583": [2.27, 0, 0], + "2.0833": { + "pre": [2.27, 0, 0], + "post": [2.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [28.07, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.7083": [15.27, 0, 0] + } + }, + "tail_bend": { + "rotation": { + "0.0": [15, -1.73205, 0.3473], + "0.8333": { + "pre": [14.79945, -3.01846, 5.18324], + "post": [14.79945, -3.01846, 5.18324], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [15.02702, -1.473, -0.61895], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [14.58306, -3.92861, 8.6645], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [14.94248, -2.1428, 1.88633], + "lerp_mode": "catmullrom" + }, + "2.9167": [15, -1.73205, 0.3473] + } + }, + "tail_end": { + "rotation": [12, 0, 5.63816] + }, + "head": { + "rotation": [-9.18404, 0, 0] + }, + "tail_base": { + "rotation": { + "0.0": [0, 1, -3.4641], + "1.0": { + "pre": [-0.01529, -1.57135, -0.3998], + "post": [-0.01529, -1.57135, -0.3998], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [-0.19563, 4.30235, -7.41701], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [0.00033, 0.93597, -3.3878], + "lerp_mode": "catmullrom" + }, + "2.9583": [0, 1, -3.4641] + } + }, + "cannon_left": { + "rotation": { + "0.0": [-0.7503, 17.01572, 0.30669], + "0.2917": { + "pre": [-1.75, 15.02, 0.31], + "post": [-1.75, 15.02, 0.31], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-5.67953, 25.92658, -3.66491], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [10.5455, 25.46221, 22.41454], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-8.75, 17.52, -12.19], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-3.54, 5.54, 0.31], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-3.54, 13.04, 0.31], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [-2.28, 8.84, 0.31], + "lerp_mode": "catmullrom" + }, + "3.0": [-0.7503, 17.01572, 0.30669] + }, + "position": { + "0.0": [0, 0, 0], + "1.25": [0, 0, 0], + "1.2917": { + "pre": [0, 0, 1.8], + "post": [0, 0, 1.8], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 0, 7.2], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 4.39], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0, 0, 6.43], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 5], + "lerp_mode": "catmullrom" + }, + "2.4583": [0, 0, 0] + }, + "scale": { + "1.25": [1, 1, 1], + "1.2917": { + "pre": [1.2, 1.2, 0.74], + "post": [1.2, 1.2, 0.74], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [1, 1, 1], + "lerp_mode": "catmullrom" + }, + "2.125": [1, 1, 1] + } + }, + "right_toe_out": { + "rotation": [0, 12.5, 0] + }, + "right_toe_in": { + "rotation": [0, -12.5, 0] + }, + "left_toe_out": { + "rotation": [0, -12.5, 0] + }, + "left_toe_in": { + "rotation": { + "0.0": [0, 12.5, 0], + "1.2083": [0, 12.5, 0], + "1.5417": [-8, 12.5, 0], + "2.125": [-8, 12.5, 0], + "2.4583": [0, 12.5, 0] + } + }, + "cannon_right": { + "rotation": { + "0.0": [-0.7503, -17.01572, -0.30669], + "0.2917": { + "pre": [-1.75, -15.02, -0.31], + "post": [-1.75, -15.02, -0.31], + "lerp_mode": "catmullrom" + }, + "0.625": { + "post": [-5.67953, -25.92658, 3.66491], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [10.5455, -25.46221, -22.41454], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [-8.75, -17.52, 12.19], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-3.54, -5.54, -0.31], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [-3.54, -13.04, -0.31], + "lerp_mode": "catmullrom" + }, + "2.4167": { + "post": [-2.28, -8.84, -0.31], + "lerp_mode": "catmullrom" + }, + "3.0": [-0.7503, -17.01572, -0.30669] + }, + "position": { + "0.0": [0, 0, 0], + "1.25": [0, 0, 0], + "1.2917": { + "pre": [0, 0, 1.8], + "post": [0, 0, 1.8], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [0, 0, 7.2], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, 0, 4.39], + "lerp_mode": "catmullrom" + }, + "1.625": { + "post": [0, 0, 6.43], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [0, 0, 5], + "lerp_mode": "catmullrom" + }, + "2.4583": [0, 0, 0] + }, + "scale": { + "1.25": [1, 1, 1], + "1.2917": { + "pre": [1.2, 1.2, 0.74], + "post": [1.2, 1.2, 0.74], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [1, 1, 1], + "lerp_mode": "catmullrom" + }, + "2.125": [1, 1, 1] + } + }, + "eyelid_left": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "0.3333": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "0.375": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.25": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.2917": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "1.5": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "1.5417": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "eyelid_right": { + "position": { + "0.0": [0, 0, 0], + "0.0417": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "0.3333": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "0.375": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}, + "1.25": {"pre": [0, 0, 0], "post": [0, 0, 0]}, + "1.2917": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "1.5": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "1.5417": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "foot_right": { + "rotation": { + "1.25": [0, 0, 0], + "1.4167": { + "pre": [10, 0, 0], + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [10, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": [0, 0, 0] + } + } + } + }, + "animation.blastoise.status": { + "animation_length": 3, + "bones": { + "body2": { + "position": { + "0.0": [0, -1.5, 0], + "1.1667": [0, -1.5, 0], + "1.25": [0, "-1.5+0.2*math.sin(q.anim_time*90*45)", 0], + "2.5": [0, -1.5, 0] + } + }, + "torso": { + "rotation": { + "0.0": [25.13397, 0.5, 0], + "0.4583": { + "pre": [32.13397, 0.5, 1], + "post": [32.13397, 0.5, 1], + "lerp_mode": "catmullrom" + }, + "0.9583": { + "post": [6.13397, 0.5, -2.5], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [6.13397, 0.5, -2.5], + "lerp_mode": "catmullrom" + }, + "1.2917": { + "post": [39.9961, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "1.7917": { + "post": [39.9961, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [39.9961, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "2.625": { + "post": [26.13397, 0.5, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [25.13397, 0.5, 0] + }, + "position": { + "0.0": [0, 0, 0.025], + "0.4583": { + "pre": [0, -0.7, 0.02], + "post": [0, -0.7, 0.02], + "lerp_mode": "catmullrom" + }, + "1.0833": { + "post": [0, 1.5, 0.02], + "lerp_mode": "catmullrom" + }, + "1.25": [0, 0, 0.025] + } + }, + "arm_rotate_left": { + "rotation": [0, 12.5, 0] + }, + "arm_left": { + "rotation": { + "0.0": [16.0158, -7.28336, 4.19087], + "0.2917": { + "pre": [11.0158, -7.28336, -4.80913], + "post": [11.0158, -7.28336, -4.80913], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [37.77259, -16.76229, 16.09339], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [53.5158, -7.28336, 4.19087], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-3.9842, -7.28336, -5.80913], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-3.9842, -7.28336, 4.19087], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-3.9842, -7.28336, 4.19087], + "lerp_mode": "catmullrom" + }, + "3.0": [16.0158, -7.28336, 4.19087] + }, + "position": [-0.5, 0, 0] + }, + "elbow_left": { + "rotation": { + "0.0": [2.5, 0, 0], + "0.4583": { + "pre": [1.25, 0, 0], + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [32.5, 0, -20], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [2.5, 0, 0] + } + }, + "hand_left": { + "rotation": { + "0.0": [7.5, 0, 0], + "0.5417": { + "pre": [15, 0, 0], + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [7.5, 0, 0] + } + }, + "arm_rotate_right": { + "rotation": [0, -12.5, 0] + }, + "arm_right": { + "rotation": { + "0.0": [16.0158, 7.28336, -4.19087], + "0.2917": { + "pre": [11.0158, 7.28336, 4.80913], + "post": [11.0158, 7.28336, 4.80913], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [37.77259, 16.76229, -16.09339], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [53.5158, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [-3.9842, 7.28336, 5.80913], + "lerp_mode": "catmullrom" + }, + "1.7083": { + "post": [-3.9842, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "2.1667": { + "post": [-3.9842, 7.28336, -4.19087], + "lerp_mode": "catmullrom" + }, + "3.0": [16.0158, 7.28336, -4.19087] + }, + "position": [0.5, 0, 0] + }, + "elbow_right": { + "rotation": { + "0.0": [2.5, 0, 0], + "0.4583": { + "pre": [1.25, 0, 0], + "post": [1.25, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.7917": { + "post": [32.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [32.5, 0, 20], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [2.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5417": { + "post": [7.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [2.5, 0, 0] + } + }, + "hand_right": { + "rotation": { + "0.0": [7.5, 0, 0], + "0.5417": { + "pre": [15, 0, 0], + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.125": { + "post": [15, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [2, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.9583": [7.5, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [-12.5, 0, 0], + "0.625": { + "pre": [18.5, 0, 0], + "post": [18.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [-21.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.375": { + "post": [-27.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.0833": { + "post": [-27.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-9.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [-12.5, 0, 0] + } + }, + "jaw": { + "rotation": { + "0.0": [17.5, 0, 0], + "0.5": { + "pre": [37.5, 0, 0], + "post": [37.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-5, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": { + "post": [45, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.6667": { + "post": [27, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.125": { + "post": [45, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "3.0": [17.5, 0, 0] + } + }, + "shell_cannon_right": { + "rotation": { + "0.0": [-30, 0, 0], + "0.5": { + "pre": [-28, 0, 0], + "post": [-28, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-35, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [-35, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": [-30, 0, 0] + } + }, + "leg_right": { + "rotation": { + "0.0": [-15.26795, 37.5, 0], + "0.5417": [-15.27, 37.5, 0], + "1.0833": [-6.27, 37.5, 0], + "1.25": [-15.27, 37.5, 0] + }, + "position": { + "0.0": [0.0067, -0.02947, 0.01474], + "0.5417": [0.01, -0.03, 0.01], + "1.0833": [-0.29, 0.97, -0.19], + "1.25": [0.01, -0.03, 0.01] + } + }, + "knee_right": { + "rotation": { + "0.0": [15.26795, 0, 0], + "0.5417": [15.27, 0, 0], + "1.0833": [4.77, 0, 0], + "1.25": [15.27, 0, 0] + } + }, + "shell_cannon_left": { + "rotation": { + "0.0": [-30, 0, 0], + "0.5": { + "pre": [-28, 0, 0], + "post": [-28, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-25, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.3333": { + "post": [-35, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.2917": { + "post": [-35, 0, 0], + "lerp_mode": "catmullrom" + }, + "2.6667": [-30, 0, 0] + } + }, + "leg_left": { + "rotation": { + "0.3333": [-15.26795, -37.5, 0], + "0.7917": { + "pre": [-23.52, -37.5, 0], + "post": [-23.52, -37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-30.27, -37.5, 0], + "lerp_mode": "catmullrom" + }, + "1.25": [-15.26795, -37.5, 0] + }, + "position": { + "0.3333": [-0.0067, -0.02947, 0.01474], + "0.7917": { + "pre": [-0.01, 1.95, 0.01], + "post": [-0.01, 1.95, 0.01], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-0.01, 3.57, 0.01], + "lerp_mode": "catmullrom" + }, + "1.25": [-0.0067, -0.02947, 0.01474] + } + }, + "knee_left": { + "rotation": { + "0.3333": [15.27, 0, 0], + "0.75": { + "pre": [42.77, 0, 0], + "post": [42.77, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [30.27, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.25": [15.27, 0, 0] + } + }, + "tail_bend": { + "rotation": { + "0.0": [15, -1.73205, 0.3473], + "0.5": { + "pre": [15, -2.07, 4.67], + "post": [15, -2.07, 4.67], + "lerp_mode": "catmullrom" + }, + "0.9167": { + "post": [15, -1.73, -7.15], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [15, 3.27, 0.35], + "lerp_mode": "catmullrom" + }, + "1.9583": { + "post": [15, -1.73, -4.65], + "lerp_mode": "catmullrom" + }, + "2.4583": { + "post": [15, -1.73, 0.35], + "lerp_mode": "catmullrom" + }, + "2.9167": [15, -1.73205, 0.3473] + } + }, + "tail_end": { + "rotation": [12, 0, 5.63816] + }, + "head": { + "rotation": [-9.18404, 0, 0] + }, + "tail_base": { + "rotation": { + "0.0": [0, 1, -3.4641], + "1.0417": { + "pre": [0, -1, -6.54], + "post": [0, -1, -6.54], + "lerp_mode": "catmullrom" + }, + "1.4167": { + "post": [0, -1, 15.46], + "lerp_mode": "catmullrom" + }, + "1.9167": { + "post": [0, -1, -6.04], + "lerp_mode": "catmullrom" + }, + "2.3333": { + "post": [0, -1, 6.46], + "lerp_mode": "catmullrom" + }, + "3.0": [0, 1, -3.4641] + } + }, + "cannon_left": { + "rotation": { + "0.0": [-0.7503, 17.01572, 0.30669], + "0.25": { + "pre": [-0.7503, 12.01572, 0.30669], + "post": [-0.7503, 12.01572, 0.30669], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [-4.9, 17.02, 0.31], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-0.7503, 4.51572, 0.30669], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-0.7503, 4.51572, 0.30669], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-0.7503, 18.01572, 0.30669], + "lerp_mode": "catmullrom" + }, + "3.0": [-0.7503, 17.01572, 0.30669] + }, + "position": { + "0.875": [0, 0, 0], + "1.4583": { + "pre": [0, 0, 2.7], + "post": [0, 0, 2.7], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, 0, 2.7], + "lerp_mode": "catmullrom" + }, + "2.7917": [0, 0, 0] + } + }, + "right_toe_out": { + "rotation": [0, 12.5, 0] + }, + "right_toe_in": { + "rotation": [0, -12.5, 0] + }, + "left_toe_out": { + "rotation": [0, -12.5, 0] + }, + "left_toe_in": { + "rotation": [0, 12.5, 0] + }, + "cannon_right": { + "rotation": { + "0.0": [-0.7503, -17.01572, -0.30669], + "0.25": { + "pre": [-0.7503, -12.01572, -0.30669], + "post": [-0.7503, -12.01572, -0.30669], + "lerp_mode": "catmullrom" + }, + "1.2083": { + "post": [-4.9, -17.02, -0.31], + "lerp_mode": "catmullrom" + }, + "1.4583": { + "post": [-0.7503, -4.51572, -0.30669], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [-0.7503, -4.51572, -0.30669], + "lerp_mode": "catmullrom" + }, + "2.5833": { + "post": [-0.7503, -18.01572, -0.30669], + "lerp_mode": "catmullrom" + }, + "3.0": [-0.7503, -17.01572, -0.30669] + }, + "position": { + "0.875": [0, 0, 0], + "1.4583": { + "pre": [0, 0, 2.7], + "post": [0, 0, 2.7], + "lerp_mode": "catmullrom" + }, + "2.25": { + "post": [0, 0, 2.7], + "lerp_mode": "catmullrom" + }, + "2.7917": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.2917": [0, 0, 0], + "0.3333": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}, + "1.1667": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "1.2083": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "eyelid_right": { + "position": { + "0.2917": [0, 0, 0], + "0.3333": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}, + "1.1667": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "1.2083": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]} + } + } + } + }, + "animation.blastoise.recoil": { + "animation_length": 1.5, + "bones": { + "torso": { + "rotation": { + "0.0": [0, 0, 0], + "0.125": { + "pre": [-8, 1, 0], + "post": [-8, 1, 0], + "lerp_mode": "catmullrom" + }, + "0.8333": { + "post": [1, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": [0, 0, 0] + } + }, + "head_angle": { + "rotation": { + "0.0": [0, 0, 0], + "0.0417": { + "pre": [17.5, 0, 0], + "post": [17.5, 0, 0], + "lerp_mode": "catmullrom" + }, + "0.4583": { + "post": [-5.4, 1.5, 0], + "lerp_mode": "catmullrom" + }, + "1.1667": { + "post": [-0.3, 0, 0], + "lerp_mode": "catmullrom" + }, + "1.5": [0, 0, 0] + } + }, + "eyelid_left": { + "position": { + "0.0": [0.1, 0, -0.1], + "0.25": {"pre": [0.1, 0, -0.1], "post": [0.1, 0, -0.1]}, + "0.2917": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]} + } + }, + "eyelid_right": { + "position": { + "0.0": [-0.1, 0, -0.1], + "0.25": {"pre": [-0.1, 0, -0.1], "post": [-0.1, 0, -0.1]}, + "0.2917": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]} + } } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/special/particle_dummy.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/special/particle_dummy.animation.json new file mode 100644 index 0000000000..74c4828d28 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/animations/special/particle_dummy.animation.json @@ -0,0 +1,440 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.particle_dummy.hurt": { + "animation_length": 1, + "bones": { + "body": { + "rotation": { + "0.0": [0, 0, 0], + "0.0833": [-32.5, 0, 0], + "0.1667": [-36.25, 0, 0], + "0.2917": [-36.25, 0, 0], + "0.3333": [-33.75, 0, 0], + "0.4167": [-16.26, 0, 0], + "0.4583": [0, 0, 0] + }, + "position": { + "0.0417": [0, 0, 0], + "0.0833": [0, 2.5, 0], + "0.125": [0, 2.75, 0.5], + "0.1667": [0, 3, 1], + "0.2083": [0, 2.75, 1.5], + "0.25": [0, 2.5, 2], + "0.2917": [0, 2, 2], + "0.375": [0, 2, 3], + "0.5": [0, 0, 0] + } + }, + "torso": { + "rotation": { + "0.0": [10, 0, 0], + "0.0833": [10, 0, 0], + "0.3333": [-16.59, 0, 0], + "0.4167": [-25, 0, 0], + "0.5833": [10, 0, 0], + "0.625": [-2.5, 0, 0], + "0.6667": [0, 0, 0] + } + }, + "head": { + "rotation": { + "0.0833": [5, 0, 0], + "0.1667": [5, 0, 0], + "0.5": [-7.5, 0, 0], + "0.5833": [-17.5, 0, 0], + "0.625": [5, 0, 0], + "0.6667": [-2.5, 0, 0], + "0.7083": [0, 0, 0] + } + }, + "tail": { + "rotation": { + "0.0": [0, 0, 0], + "0.0417": [17.5, 0, 0], + "0.2917": [42.5, 0, 0], + "0.5833": [42.5, 0, 0], + "0.7083": [35, 0, 0], + "0.7917": [0, 0, 0], + "0.8333": [5, 0, 0], + "0.875": [0, 0, 0] + }, + "position": { + "0.0": [0, 0, 0], + "0.0417": [0, 0, 0], + "0.2917": [0, 3, 0], + "0.5": [0, 3, 0], + "0.5833": [0, 0, 0], + "0.7083": [0, 0, 0] + } + } + } + }, + "animation.particle_dummy.explosion_target": { + "animation_length": 2, + "sound_effects": { + "0.0": { + "effect": "effective" + }, + "0.0417": { + "effect": "explosion1" + } + }, + "particle_effects": { + "0.0417": [ + { + "effect": "multi_hit", + "locator": "center" + }, + { + "effect": "impact_normal", + "locator": "center" + } + ], + "0.0833": { + "effect": "explosion_target", + "locator": "target" + } + } + }, + "animation.particle_dummy.dragon_claw_target": { + "animation_length": 1.25, + "sound_effects": { + "0.0": { + "effect": "supereffective" + } + }, + "particle_effects": { + "0.0833": { + "effect": "dragon_claw_target_scratch", + "locator": "target" + }, + "0.1667": [ + { + "effect": "impact_dragon", + "locator": "center" + }, + { + "effect": "hit_dragon", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.flamethrower_actor": { + "animation_length": 2, + "particle_effects": { + "0.0": { + "effect": "flamethrower_actor", + "locator": "special_attack" + } + } + }, + "animation.particle_dummy.flamethrower_target": { + "animation_length": 2, + "sound_effects": { + "0.0": { + "effect": "effective" + } + }, + "particle_effects": { + "0.0833": [ + { + "effect": "flamethrower_target", + "locator": "center" + }, + { + "effect": "impact_fire", + "locator": "center" + }, + { + "effect": "flamethrower_target_linger", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.sludge_bomb_target": { + "animation_length": 2, + "sound_effects": { + "0.0": { + "effect": "squid_slide.mp3" + }, + "0.375": { + "effect": "effective" + } + }, + "particle_effects": { + "0.0": [ + { + "effect": "sludge_bomb_target_projectile_1", + "locator": "center" + }, + { + "effect": "sludge_bomb_target_projectile_2", + "locator": "center" + } + ], + "0.4583": [ + { + "effect": "sludge_bomb_target_1", + "locator": "center" + }, + { + "effect": "sludge_bomb_target_2", + "locator": "center" + }, + { + "effect": "hit_poison", + "locator": "center" + }, + { + "effect": "impact_poison", + "locator": "center" + }, + { + "effect": "sludge_bomb_target_smog", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.hurt_delay": { + "animation_length": 1.375, + "bones": { + "body": { + "rotation": { + "0.25": [0, 0, 0], + "0.2917": [0, 0, 0], + "0.375": [-32.5, 0, 0], + "0.4583": [-36.25, 0, 0], + "0.5833": [-36.25, 0, 0], + "0.7083": [-32.5, 0, 0], + "0.7917": [0, 0, 0] + }, + "position": { + "0.25": [0, 0, 0], + "0.2917": [0, 0, 0], + "0.375": [0, 2.5, 0], + "0.4583": [0, 3, 1], + "0.5417": [0, 2.5, 2], + "0.625": [0, 0, 1], + "0.7083": [0, 0, 0] + } + }, + "torso": { + "rotation": { + "0.25": [0, 0, 0], + "0.2917": [10, 0, 0], + "0.375": [10, 0, 0], + "0.625": [-16.59, 0, 0], + "0.7083": [-25, 0, 0], + "0.875": [10, 0, 0], + "0.9167": [-2.5, 0, 0], + "0.9583": [0, 0, 0] + } + }, + "head": { + "rotation": { + "0.25": [0, 0, 0], + "0.375": [5, 0, 0], + "0.4583": [5, 0, 0], + "0.7917": [-7.5, 0, 0], + "0.875": [-17.5, 0, 0], + "0.9167": [5, 0, 0], + "0.9583": [-2.5, 0, 0], + "1.0": [0, 0, 0] + } + }, + "tail": { + "rotation": { + "0.25": [0, 0, 0], + "0.2917": [0, 0, 0], + "0.3333": [17.5, 0, 0], + "0.5833": [42.5, 0, 0], + "0.875": [42.5, 0, 0], + "1.0": [35, 0, 0], + "1.0833": [0, 0, 0], + "1.125": [5, 0, 0], + "1.1667": [0, 0, 0] + }, + "position": { + "0.25": [0, 0, 0], + "0.2917": [0, 0, 0], + "0.3333": [0, 0, 0], + "0.5833": [0, 3, 0], + "0.7917": [0, 3, 0], + "0.875": [0, 0, 0], + "1.0": [0, 0, 0] + } + } + } + }, + "animation.particle_dummy.population_bomb_target": { + "animation_length": 2, + "sound_effects": { + "0.0": { + "effect": "effective" + }, + "0.2917": { + "effect": "effective" + }, + "0.5833": { + "effect": "effective" + }, + "0.875": { + "effect": "effective" + } + }, + "particle_effects": { + "0.0": { + "effect": "multi_hit", + "locator": "center" + }, + "0.0833": [ + { + "effect": "population_bomb_target_mice", + "locator": "center" + }, + { + "effect": "cut", + "locator": "target" + } + ], + "0.2917": { + "effect": "multi_hit", + "locator": "center" + }, + "0.375": [ + { + "effect": "population_bomb_target_mice", + "locator": "center" + }, + { + "effect": "cut", + "locator": "target" + } + ], + "0.5833": { + "effect": "multi_hit", + "locator": "center" + }, + "0.6667": [ + { + "effect": "population_bomb_target_mice", + "locator": "center" + }, + { + "effect": "cut", + "locator": "target" + } + ], + "0.875": { + "effect": "multi_hit", + "locator": "center" + }, + "0.9583": [ + { + "effect": "population_bomb_target_mice", + "locator": "center" + }, + { + "effect": "cut", + "locator": "target" + } + ] + } + }, + "animation.particle_dummy.synthesis": { + "animation_length": 3.5, + "sound_effects": { + "0.0": { + "effect": "synthesis" + } + }, + "particle_effects": { + "0.0": [ + { + "effect": "synthesis_sunlight", + "locator": "center" + }, + { + "effect": "synthesis_sun", + "locator": "center" + } + ], + "2.0": [ + { + "effect": "shiny_glimmer", + "locator": "center" + }, + { + "effect": "shiny_glimmer", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.stat_up": { + "animation_length": 2, + "particle_effects": { + "0.0": [ + { + "effect": "stat_up_lines", + "locator": "center" + }, + { + "effect": "stat_up_circles", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.stat_down": { + "animation_length": 2, + "particle_effects": { + "0.0": [ + { + "effect": "stat_down_lines", + "locator": "center" + }, + { + "effect": "stat_down_circles", + "locator": "center" + } + ] + } + }, + "animation.particle_dummy.razor_leaf_actor": { + "animation_length": 2.5, + "particle_effects": { + "0.0": { + "effect": "razor_leaf_actor_1" + }, + "0.875": { + "effect": "razor_leaf_actor_2", + "locator": "target" + } + } + }, + "animation.particle_dummy.razor_leaf_target": { + "animation_length": 1.5, + "particle_effects": { + "0.0": { + "effect": "razor_leaf_target", + "locator": "center" + }, + "0.25": [ + { + "effect": "impact_grass", + "locator": "center" + }, + { + "effect": "multi_hit_grass", + "locator": "center" + } + ] + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0006_charizard/charizard.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0006_charizard/charizard.geo.json index 0c5f18a453..824880dfd7 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0006_charizard/charizard.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0006_charizard/charizard.geo.json @@ -13,7 +13,12 @@ "bones": [ { "name": "charizard", - "pivot": [0, 0, 0] + "pivot": [0, 0, 0], + "locators": { + "target": [0, 14, -9], + "ground_center": [0, 0, 0], + "center": [0, 14, -1] + } }, { "name": "body", @@ -23,15 +28,22 @@ { "name": "torso", "parent": "body", - "pivot": [0, 12.5, -0.5], + "pivot": [0, 7.5, -0.5], "cubes": [ - {"origin": [-5.5, 13, -5], "size": [11, 7, 9], "uv": [88, 30]}, {"origin": [-6.5, 4, -5.5], "size": [13, 9, 10], "uv": [0, 24]} ] }, { - "name": "neck", + "name": "torso2", "parent": "torso", + "pivot": [0, 12.75, 0.75], + "cubes": [ + {"origin": [-5.5, 13, -5], "size": [11, 7, 9], "uv": [88, 30]} + ] + }, + { + "name": "neck", + "parent": "torso2", "pivot": [0, 20, -0.5], "cubes": [ {"origin": [-2, 19, -2.5], "size": [4, 5, 4], "inflate": 0.02, "uv": [94, 55]} @@ -48,108 +60,82 @@ { "name": "head", "parent": "neck2", - "pivot": [0, 28, -0.5], + "pivot": [0, 28.5, -1], "rotation": [-22.5, 0, 0] }, { "name": "head_ai", "parent": "head", - "pivot": [0, 28, -0.5], + "pivot": [0, 28.5, -1], "rotation": [22.5, 0, 0], "cubes": [ - {"origin": [-3, 28, -4.5], "size": [6, 6, 7], "uv": [71, 24]}, - {"origin": [-2.5, 30, -10], "size": [5, 3, 6], "inflate": 0.02, "uv": [93, 46]}, - {"origin": [-2.5, 29, -9.5], "size": [0, 1, 1], "inflate": 0.01, "pivot": [-2.5, 30, -9.5], "rotation": [45, 0, 0], "uv": [7, 25]}, - {"origin": [2.5, 29, -9.5], "size": [0, 1, 1], "inflate": 0.01, "pivot": [2.5, 30, -9.5], "rotation": [45, 0, 0], "uv": [7, 24], "mirror": true}, - {"origin": [-2.5, 32, 2.25], "size": [1, 2, 6], "pivot": [-2, 32.75, 2.5], "rotation": [5, -5, 0], "uv": [81, 49]}, - {"origin": [1.5, 32, 2.25], "size": [1, 2, 6], "pivot": [2, 32.75, 2.5], "rotation": [5, 5, 0], "uv": [81, 49], "mirror": true} - ] + {"origin": [-3, 28.5, -4.5], "size": [6, 6, 7], "uv": [71, 24]}, + {"origin": [-2.5, 30.5, -10], "size": [5, 3, 6], "inflate": 0.02, "uv": [93, 46]}, + {"origin": [-2.5, 29.5, -9.5], "size": [0, 1, 1], "inflate": 0.01, "pivot": [-2.5, 30.5, -9.5], "rotation": [45, 0, 0], "uv": [7, 25]}, + {"origin": [2.5, 29.5, -9.5], "size": [0, 1, 1], "inflate": 0.01, "pivot": [2.5, 30.5, -9.5], "rotation": [45, 0, 0], "uv": [7, 24], "mirror": true}, + {"origin": [-2.5, 32.5, 2.25], "size": [1, 2, 6], "pivot": [-2, 33.25, 2.5], "rotation": [5, -5, 0], "uv": [81, 49]}, + {"origin": [1.5, 32.5, 2.25], "size": [1, 2, 6], "pivot": [2, 33.25, 2.5], "rotation": [5, 5, 0], "uv": [81, 49], "mirror": true} + ], + "locators": { + "special_attack": { + "offset": [0, 29, -8], + "rotation": [5, 0, 0] + }, + "head_top": [0, 35, -2] + } }, { "name": "eyes", "parent": "head_ai", - "pivot": [0, 35.17388, -2.88268] + "pivot": [0, 35.67388, -2.88268] }, { "name": "eye_right", "parent": "eyes", - "pivot": [-3.01, 32.25, -2.25], + "pivot": [-3.01, 32.75, -2.25], "rotation": [10, 0, 0], "cubes": [ - {"origin": [-3.01, 31.25, -4.25], "size": [0, 2, 3], "uv": [36, 25]} + {"origin": [-3.01, 31.75, -4.25], "size": [0, 2, 3], "uv": [36, 25]} ] }, { "name": "eyelid_right", "parent": "eye_right", - "pivot": [-2.405, 32.25, -2.75], + "pivot": [-2.405, 32.75, -2.75], "cubes": [ - {"origin": [-2.91, 31.25, -4.25], "size": [1, 2, 3], "inflate": 0.01, "uv": [120, 27]} + {"origin": [-2.91, 31.75, -4.25], "size": [1, 2, 3], "inflate": 0.01, "uv": [120, 27]} ] }, { "name": "eye_left", "parent": "eyes", - "pivot": [3.01, 32.25, -2.75], + "pivot": [3.01, 32.75, -2.75], "rotation": [10, 0, 0], "cubes": [ - {"origin": [3.01, 31.25, -4.25], "size": [0, 2, 3], "uv": [36, 23], "mirror": true} + {"origin": [3.01, 31.75, -4.25], "size": [0, 2, 3], "uv": [36, 23], "mirror": true} ] }, { "name": "eyelid_left", "parent": "eye_left", - "pivot": [2.41, 32.25, -2.75], + "pivot": [2.41, 32.75, -2.75], "cubes": [ - {"origin": [1.91, 31.25, -4.25], "size": [1, 2, 3], "inflate": 0.01, "uv": [120, 22], "mirror": true} + {"origin": [1.91, 31.75, -4.25], "size": [1, 2, 3], "inflate": 0.01, "uv": [120, 22], "mirror": true} ] }, { "name": "jaw", "parent": "head_ai", - "pivot": [0, 30, -4], + "pivot": [0, 30.5, -4], "cubes": [ - {"origin": [-2.5, 28.025, -9.75], "size": [5, 2, 6], "uv": [36, 26]}, - {"origin": [-2.25, 29.75, -9.55], "size": [0, 1, 1], "pivot": [-2.5, 30, -9.5], "rotation": [-45, 0, 0], "uv": [7, 27]}, - {"origin": [2.25, 29.75, -9.55], "size": [0, 1, 1], "pivot": [2.5, 30, -9.5], "rotation": [-45, 0, 0], "uv": [7, 27], "mirror": true} - ] - }, - { - "name": "tail", - "parent": "torso", - "pivot": [0, 7.875, 4.5], - "cubes": [ - {"origin": [-3, 4.05, 2.5], "size": [6, 6, 13], "uv": [46, 24]} - ] - }, - { - "name": "tail2", - "parent": "tail", - "pivot": [0, 6.5, 15.5], - "cubes": [ - {"origin": [-2, 4.1, 14.5], "size": [4, 5, 13], "uv": [60, 46]} - ] - }, - { - "name": "tail3", - "parent": "tail2", - "pivot": [0, 6, 27.5], - "cubes": [ - {"origin": [-1, 4.15, 26.5], "size": [2, 4, 11], "uv": [5, 49]} - ] - }, - { - "name": "fire", - "parent": "tail3", - "pivot": [0, 7.75, 36.5], - "cubes": [ - {"origin": [0, 7.75, 33], "size": [0, 12, 7], "uv": [62, -7]}, - {"origin": [0, 7.75, 33], "size": [0, 12, 7], "pivot": [0, 7.75, 36.5], "rotation": [0, 90, 0], "uv": [62, 5]} + {"origin": [-2.5, 28.525, -9.75], "size": [5, 2, 6], "uv": [36, 26]}, + {"origin": [-2.25, 30.25, -9.55], "size": [0, 1, 1], "pivot": [-2.5, 30.5, -9.5], "rotation": [-45, 0, 0], "uv": [7, 27]}, + {"origin": [2.25, 30.25, -9.55], "size": [0, 1, 1], "pivot": [2.5, 30.5, -9.5], "rotation": [-45, 0, 0], "uv": [7, 27], "mirror": true} ] }, { "name": "arm_right", - "parent": "torso", + "parent": "torso2", "pivot": [-5.5, 20, -1], "cubes": [ {"origin": [-11.5, 19, -2], "size": [6, 2, 3], "uv": [31, 59]} @@ -197,7 +183,7 @@ }, { "name": "arm_left", - "parent": "torso", + "parent": "torso2", "pivot": [5.5, 20, -1], "cubes": [ {"origin": [5.5, 19, -2], "size": [6, 2, 3], "uv": [110, 59], "mirror": true} @@ -245,7 +231,7 @@ }, { "name": "wing_right", - "parent": "torso", + "parent": "torso2", "pivot": [-2, 17, 4], "cubes": [ {"origin": [-8, 13, 4], "size": [6, 10, 0], "uv": [50, 10]} @@ -269,7 +255,7 @@ }, { "name": "wing_left", - "parent": "torso", + "parent": "torso2", "pivot": [2, 17, 4], "cubes": [ {"origin": [2, 13, 4], "size": [6, 10, 0], "uv": [50, 0], "mirror": true} @@ -291,6 +277,39 @@ {"origin": [17, 11, 4], "size": [16, 22, 0], "uv": [94, 0], "mirror": true} ] }, + { + "name": "tail", + "parent": "torso", + "pivot": [0, 7.875, 4.5], + "cubes": [ + {"origin": [-3, 4.05, 2.5], "size": [6, 6, 13], "uv": [46, 24]} + ] + }, + { + "name": "tail2", + "parent": "tail", + "pivot": [0, 6.5, 15.5], + "cubes": [ + {"origin": [-2, 4.1, 14.5], "size": [4, 5, 13], "uv": [60, 46]} + ] + }, + { + "name": "tail3", + "parent": "tail2", + "pivot": [0, 6, 27.5], + "cubes": [ + {"origin": [-1, 4.15, 26.5], "size": [2, 4, 11], "uv": [5, 49]} + ] + }, + { + "name": "fire", + "parent": "tail3", + "pivot": [0, 7.75, 36.5], + "cubes": [ + {"origin": [0, 7.75, 33], "size": [0, 12, 7], "uv": [62, -7]}, + {"origin": [0, 7.75, 33], "size": [0, 12, 7], "pivot": [0, 7.75, 36.5], "rotation": [0, 90, 0], "uv": [62, 5]} + ] + }, { "name": "leg_right", "parent": "body", diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0009_blastoise/blastoise.geo.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0009_blastoise/blastoise.geo.json index 4e6a91035c..dab74ea443 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0009_blastoise/blastoise.geo.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/models/0009_blastoise/blastoise.geo.json @@ -4,11 +4,11 @@ { "description": { "identifier": "geometry.blastoise", - "texture_width": 128, - "texture_height": 64, + "texture_width": 256, + "texture_height": 256, "visible_bounds_width": 5, - "visible_bounds_height": 3.5, - "visible_bounds_offset": [0, 1.25, 0] + "visible_bounds_height": 4.5, + "visible_bounds_offset": [0, 1.75, 0] }, "bones": [ { @@ -18,212 +18,472 @@ { "name": "body", "parent": "blastoise", - "pivot": [0, 16, 0] + "pivot": [0, 24, 2], + "locators": { + "target": [0, 25, -19], + "center": { + "offset": [0, 14, -1], + "rotation": [0, 0, -180] + }, + "ground_center": [0, 0, 0] + } + }, + { + "name": "body2", + "parent": "body", + "pivot": [0, 24, 2] }, { "name": "torso", - "parent": "body", - "pivot": [0, 16, 0], + "parent": "body2", + "pivot": [0, 14, 0], "cubes": [ - {"origin": [-9, 5, -6.5], "size": [18, 22, 13], "uv": [0, 0]} + {"origin": [-15.5, 14, -8.5], "size": [31, 24, 11], "uv": [0, 37]}, + {"origin": [-13.5, 6, -5.5], "size": [27, 8, 11], "inflate": 0.02, "uv": [84, 37]}, + {"origin": [-9, 38, -3], "size": [18, 2, 1], "uv": [88, 78]} + ] + }, + { + "name": "shell", + "parent": "torso", + "pivot": [-4, 21, 10], + "rotation": [10, 0, 0], + "cubes": [ + {"origin": [-17.5, 16, 1.5], "size": [35, 21, 16], "inflate": 0.01, "uv": [0, 0]}, + {"origin": [-14.5, 8.03038, 1.6527], "size": [29, 8, 16], "inflate": 0.01, "uv": [72, 83]}, + {"origin": [-9.5, 37, 3.5], "size": [19, 8, 14], "inflate": 0.01, "uv": [88, 56]} + ] + }, + { + "name": "shell_lip", + "parent": "shell", + "pivot": [-4, 21, 10], + "cubes": [ + {"origin": [-9.5, 42, 0.5], "size": [19, 4, 5], "uv": [116, 122]}, + {"origin": [-19.5, 14, 0.5], "size": [39, 22, 5], "uv": [0, 72]}, + {"origin": [6.5, 6.03038, 0.4027], "size": [10, 8, 5], "uv": [127, 153]}, + {"origin": [-16.5, 6.03038, 0.4027], "size": [10, 8, 5], "uv": [97, 149]}, + {"origin": [-10.5, 6.03038, 5.1527], "size": [21, 4, 5], "uv": [102, 20]}, + {"origin": [-7.5, 42, 5.5], "size": [15, 4, 2], "uv": [157, 140]} + ] + }, + { + "name": "shell_lip_fold_left", + "parent": "shell_lip", + "pivot": [9.5, 46, 10], + "rotation": [0, 0, 45], + "cubes": [ + {"origin": [9.5, 42, 0.5], "size": [14, 4, 5], "inflate": 0.01, "uv": [146, 87]}, + {"origin": [12.5, 42, -2.5], "size": [11, 4, 3], "inflate": 0.01, "uv": [28, 160]} + ] + }, + { + "name": "arm_hole_left", + "parent": "shell_lip_fold_left", + "pivot": [16, 46, -2.5], + "rotation": [45, 0, 0], + "cubes": [ + {"origin": [12.5, 42, -13.5], "size": [11, 4, 11], "uv": [83, 122]} + ] + }, + { + "name": "arm_rotate_left", + "parent": "arm_hole_left", + "pivot": [18.5, 46, -8] + }, + { + "name": "arm_left", + "parent": "arm_rotate_left", + "pivot": [18.5, 46, -4.5], + "cubes": [ + {"origin": [14.5, 44, -12], "size": [8, 8, 8], "uv": [146, 21]} + ] + }, + { + "name": "elbow_left", + "parent": "arm_left", + "pivot": [18.5, 51, -8], + "cubes": [ + {"origin": [15, 50, -11.5], "size": [7, 7, 7], "uv": [0, 154]} + ] + }, + { + "name": "hand_left", + "parent": "elbow_left", + "pivot": [18.5, 56, -8], + "cubes": [ + {"origin": [15.5, 55, -11], "size": [6, 5, 6], "uv": [50, 161]} + ] + }, + { + "name": "fingers_left", + "parent": "hand_left", + "pivot": [18.5, 60, -7], + "cubes": [ + {"origin": [17.25, 59.5, -8], "size": [0, 3, 2], "pivot": [17, 59.5, -7], "rotation": [0, -27.5, 0], "uv": [56, 97]}, + {"origin": [19.75, 59.5, -8], "size": [0, 3, 2], "pivot": [19.75, 59.5, -7], "rotation": [0, 42.5, 0], "uv": [39, 97]}, + {"origin": [6.5, 59.5, 15.25], "size": [0, 3, 2], "pivot": [-19.5, 59.5, -9], "rotation": [0, 45, 0], "uv": [86, 0]} + ] + }, + { + "name": "shell_lip_fold_right", + "parent": "shell_lip", + "pivot": [-9.5, 46, 10], + "rotation": [0, 0, -45], + "cubes": [ + {"origin": [-23.5, 42, -2.5], "size": [11, 4, 3], "inflate": 0.01, "uv": [159, 120]}, + {"origin": [-23.5, 42, 0.5], "size": [14, 4, 5], "inflate": 0.01, "uv": [146, 78]} + ] + }, + { + "name": "arm_hole_right", + "parent": "shell_lip_fold_right", + "pivot": [-16, 46, -2.5], + "rotation": [45, 0, 0], + "cubes": [ + {"origin": [-23.5, 42, -13.5], "size": [11, 4, 11], "uv": [94, 107]} + ] + }, + { + "name": "arm_rotate_right", + "parent": "arm_hole_right", + "pivot": [-18.5, 46, -8] + }, + { + "name": "arm_right", + "parent": "arm_rotate_right", + "pivot": [-18.5, 46, -4.5], + "cubes": [ + {"origin": [-22.5, 44, -12], "size": [8, 8, 8], "uv": [36, 144]} + ] + }, + { + "name": "elbow_right", + "parent": "arm_right", + "pivot": [-18.5, 51, -8], + "cubes": [ + {"origin": [-22, 50, -11.5], "size": [7, 7, 7], "uv": [68, 150]} + ] + }, + { + "name": "hand_right", + "parent": "elbow_right", + "pivot": [-18.5, 56, -8], + "cubes": [ + {"origin": [-21.5, 55, -11], "size": [6, 5, 6], "uv": [160, 44]} + ] + }, + { + "name": "fingers_right", + "parent": "hand_right", + "pivot": [-18.5, 60, -7], + "cubes": [ + {"origin": [-17.25, 59.5, -8], "size": [0, 3, 2], "pivot": [-17, 59.5, -7], "rotation": [0, 27.5, 0], "uv": [84, 56]}, + {"origin": [-19.75, 59.5, -8], "size": [0, 3, 2], "pivot": [-19.75, 59.5, -7], "rotation": [0, -42.5, 0], "uv": [83, 70]}, + {"origin": [-6.5, 59.5, 15.25], "size": [0, 3, 2], "pivot": [19.5, 59.5, -9], "rotation": [0, -45, 0], "uv": [0, 70]} + ] + }, + { + "name": "shell_fold_right", + "parent": "shell", + "pivot": [-9.5, 45, 17.5], + "rotation": [0, 0, -45] + }, + { + "name": "shell_cannon_right", + "parent": "shell_fold_right", + "pivot": [-9.5, 36, 17.5], + "cubes": [ + {"origin": [-20.5, 36, 9.5], "size": [11, 9, 8], "uv": [38, 127]}, + {"origin": [-20.5, 36, 3.5], "size": [11, 1, 6], "inflate": 0.01, "uv": [154, 69]}, + {"origin": [-20.5, 36, 3.5], "size": [1, 8, 6], "uv": [90, 162]}, + {"origin": [-10.5, 36, 3.5], "size": [1, 8, 6], "uv": [135, 131]}, + {"origin": [-20.5, 44, 3.5], "size": [11, 1, 6], "uv": [149, 37]} + ] + }, + { + "name": "cannon_right", + "parent": "shell_cannon_right", + "pivot": [-15, 41, 8.5], + "cubes": [ + {"origin": [-17, 39, -4], "size": [4, 4, 14], "uv": [135, 135]}, + {"origin": [-16.5, 39.5, -5], "size": [3, 3, 1], "uv": [92, 56]}, + {"origin": [-17.5, 38.5, -12], "size": [5, 5, 7], "uv": [157, 153]} + ] + }, + { + "name": "shell_fold_left", + "parent": "shell", + "pivot": [9.5, 45, 17.5], + "rotation": [0, 0, 45] + }, + { + "name": "shell_cannon_left", + "parent": "shell_fold_left", + "pivot": [9.5, 36, 17.5], + "cubes": [ + {"origin": [9.5, 36, 9.5], "size": [11, 9, 8], "uv": [0, 124]}, + {"origin": [9.5, 36, 3.5], "size": [11, 1, 6], "inflate": 0.01, "uv": [92, 137]}, + {"origin": [19.5, 36, 3.5], "size": [1, 8, 6], "uv": [84, 56]}, + {"origin": [9.5, 36, 3.5], "size": [1, 8, 6], "uv": [0, 0]}, + {"origin": [9.5, 44, 3.5], "size": [11, 1, 6], "uv": [102, 29]} + ] + }, + { + "name": "cannon_left", + "parent": "shell_cannon_left", + "pivot": [15, 41, 8.5], + "cubes": [ + {"origin": [13, 39, -4], "size": [4, 4, 14], "uv": [113, 131]}, + {"origin": [13.5, 39.5, -5], "size": [3, 3, 1], "uv": [8, 0]}, + {"origin": [12.5, 38.5, -12], "size": [5, 5, 7], "uv": [39, 99]} ] }, { "name": "head", "parent": "torso", - "pivot": [0, 25, -2.25] + "pivot": [0, 38, -6.25], + "locators": { + "head_top": [0, 51, -7] + } }, { "name": "head_correction", "parent": "head", - "pivot": [0, 25, -2.25] + "pivot": [0, 38, -6.25] }, { "name": "head_ai", "parent": "head_correction", - "pivot": [0, 25, -2.25] + "pivot": [0, 38, -6.25] }, { "name": "head_angle", "parent": "head_ai", - "pivot": [0, 25, -2.25], + "pivot": [0, 38, -6.25], "cubes": [ - {"origin": [-5, 25, -7.75], "size": [10, 9, 9], "uv": [0, 35]}, - {"origin": [-4.5, 27, -10.75], "size": [9, 3, 3], "inflate": 0.01, "uv": [58, 41]}, - {"origin": [-3.25, 26.5, -10.25], "size": [1, 1, 0], "pivot": [-2.75, 27, -10.25], "rotation": [15, 15, 45], "uv": [0, 0]}, - {"origin": [2.25, 26.5, -10.25], "size": [1, 1, 0], "pivot": [2.75, 27, -10.25], "rotation": [15, -15, -45], "uv": [0, 1], "mirror": true} + {"origin": [-6.5, 38, -12.75], "size": [13, 12, 13], "uv": [0, 99]} + ], + "locators": { + "special_attack": [0, 48, -25] + } + }, + { + "name": "muzzle", + "parent": "head_angle", + "pivot": [0, 40, -14.75], + "cubes": [ + {"origin": [-5.5, 41, -17.25], "size": [11, 4, 5], "inflate": 0.01, "uv": [157, 131]}, + {"origin": [1.75, 40.75, -16.25], "size": [2, 2, 0], "inflate": 0.01, "pivot": [2.5, 41, -16.75], "rotation": [0, 0, 45], "uv": [12, 14]}, + {"origin": [-3.75, 40.75, -16.25], "size": [2, 2, 0], "inflate": 0.01, "pivot": [-2.5, 41, -16.75], "rotation": [0, 0, -45], "uv": [0, 0]} + ] + }, + { + "name": "jaw", + "parent": "muzzle", + "pivot": [0, 41, -12.75], + "cubes": [ + {"origin": [-5.5, 38, -14.75], "size": [11, 3, 2], "inflate": 0.01, "uv": [68, 127]}, + {"origin": [-4.5, 38, -16.75], "size": [9, 3, 2], "uv": [73, 37]}, + {"origin": [2, 40.75, -16.25], "size": [1, 1, 0], "pivot": [2.75, 41, -16.25], "rotation": [0, 0, -45], "uv": [4, 1]}, + {"origin": [3.25, 40.25, -16], "size": [1, 1, 0], "pivot": [3.5, 41, -15.75], "rotation": [30.68206, -27.03402, -52.54628], "uv": [4, 0]}, + {"origin": [-4.25, 40.25, -16], "size": [1, 1, 0], "pivot": [-3.5, 41, -15.75], "rotation": [30.68206, 27.03402, 52.54628], "uv": [0, 2]}, + {"origin": [-3, 40.75, -16.25], "size": [1, 1, 0], "pivot": [-2.75, 41, -16.25], "rotation": [0, 0, 45], "uv": [2, 2]} ] }, { "name": "eyelid_left", "parent": "head_angle", - "pivot": [3.41, 31, -7.16], + "pivot": [3.81, 45, -8.81], "cubes": [ - {"origin": [1.91, 30, -7.66], "size": [3, 2, 1], "inflate": 0.01, "uv": [32, 54], "mirror": true} + {"origin": [2.4, 45, -12.65], "size": [4, 2, 2], "inflate": 0.01, "uv": [0, 99]} ] }, { "name": "eyelid_right", "parent": "head_angle", - "pivot": [-3.41, 31, -7.16], + "pivot": [-3.81, 45, -8.81], "cubes": [ - {"origin": [-4.91, 30, -7.66], "size": [3, 2, 1], "inflate": 0.01, "uv": [24, 54]} + {"origin": [-6.4, 45, -12.65], "size": [4, 2, 2], "inflate": 0.01, "uv": [86, 11]} ] }, { "name": "ears", "parent": "head_angle", - "pivot": [0, 34, -2.25] - }, - { - "name": "ear_right", - "parent": "ears", - "pivot": [-3.5, 33.25, -1.75], - "rotation": [0, 0, -30], - "cubes": [ - {"origin": [-4.25, 32.75, -3], "size": [4, 4, 0], "pivot": [0, 0, -0.25], "rotation": [0, 25, 0], "uv": [8, 53]} - ] + "pivot": [0, 49, -3.25] }, { "name": "ear_left", "parent": "ears", - "pivot": [3.5, 33.25, -1.75], - "rotation": [0, 0, 30], + "pivot": [6.5, 49.25, -5.75], + "rotation": [0, 0, 45], "cubes": [ - {"origin": [0.25, 32.75, -3], "size": [4, 4, 0], "pivot": [0, 0, -0.25], "rotation": [0, -25, 0], "uv": [16, 53]} + {"origin": [2.25, 48.75, -7], "size": [5, 4, 0], "pivot": [3, 16, -4.25], "rotation": [0, -57.5, 0], "uv": [85, 42]} ] }, { - "name": "jaw", - "parent": "head_angle", - "pivot": [0, 27, -7.5], + "name": "ear_right", + "parent": "ears", + "pivot": [-6.5, 49.25, -5.75], + "rotation": [0, 0, -45], "cubes": [ - {"origin": [-4.5, 25, -9.5], "size": [9, 2, 2], "inflate": 0.01, "uv": [54, 47]}, - {"origin": [-4, 25, -10.5], "size": [8, 2, 1], "uv": [57, 51]}, - {"origin": [-2.75, 26.25, -10.25], "size": [1, 1, 0], "pivot": [-2.25, 26.75, -10.25], "rotation": [-5, 5, -45], "uv": [2, 0]}, - {"origin": [-3.75, 26.25, -10], "size": [1, 1, 0], "pivot": [-3.25, 26.75, -10], "rotation": [-15, 15, -45], "uv": [0, 2]}, - {"origin": [1.75, 26.25, -10.25], "size": [1, 1, 0], "pivot": [2.25, 26.75, -10.25], "rotation": [-5, -5, 45], "uv": [2, 2], "mirror": true}, - {"origin": [2.75, 26.25, -10], "size": [1, 1, 0], "pivot": [3.25, 26.75, -10], "rotation": [-15, -15, 45], "uv": [2, 1], "mirror": true} + {"origin": [-7.25, 48.75, -7], "size": [5, 4, 0], "pivot": [-3, 16, -4.25], "rotation": [0, 57.5, 0], "uv": [0, 42]} ] }, { - "name": "arm_right", + "name": "tail_rotate", "parent": "torso", - "pivot": [-9, 25, -1.5], + "pivot": [0, 9, 1.5] + }, + { + "name": "tail_base", + "parent": "tail_rotate", + "pivot": [0, 9, 1.5], + "rotation": [40, 0, 0], "cubes": [ - {"origin": [-13, 20, -4.5], "size": [6, 5, 6], "uv": [80, 30]} + {"origin": [-4, 2, -0.5], "size": [8, 8, 8], "uv": [144, 0]} ] }, { - "name": "arm_right2", - "parent": "arm_right", - "pivot": [-13, 22.5, 1.5], + "name": "tail_bend", + "parent": "tail_base", + "pivot": [0, 2, -0.5], "cubes": [ - {"origin": [-18, 20, -4.5], "size": [5, 5, 6], "uv": [106, 19]} + {"origin": [-3, -3, -0.5], "size": [6, 5, 6], "uv": [86, 0]} ] }, { - "name": "arm_right3", - "parent": "arm_right2", - "pivot": [-18, 22.5, 1.5], + "name": "tail_end", + "parent": "tail_bend", + "pivot": [0, -3, -0.5], "cubes": [ - {"origin": [-23, 20, -4.5], "size": [5, 5, 6], "uv": [58, 30]}, - {"origin": [-24.66733, 23, -4.80697], "size": [3, 0, 2], "pivot": [-22.21321, 22.5, -3.90958], "rotation": [15, -35, -20], "uv": [47, 6]}, - {"origin": [-25.75, 23, -3], "size": [3, 0, 3], "pivot": [-23, 22.5, -1.5], "rotation": [0, 0, -15], "uv": [52, 6]}, - {"origin": [-24.66733, 23, -0.19303], "size": [3, 0, 2], "pivot": [-22.21321, 22.5, 0.90958], "rotation": [-15, 35, -20], "uv": [53, 9]} - ] - }, - { - "name": "arm_left", - "parent": "torso", - "pivot": [9, 25, -1.5], - "cubes": [ - {"origin": [7, 20, -4.5], "size": [6, 5, 6], "uv": [104, 30], "mirror": true} - ] - }, - { - "name": "arm_left2", - "parent": "arm_left", - "pivot": [13, 22.5, 1.5], - "cubes": [ - {"origin": [13, 20, -4.5], "size": [5, 5, 6], "uv": [62, 19], "mirror": true} - ] - }, - { - "name": "arm_left3", - "parent": "arm_left2", - "pivot": [18, 22.5, 1.5], - "cubes": [ - {"origin": [18, 20, -4.5], "size": [5, 5, 6], "uv": [84, 19], "mirror": true}, - {"origin": [21.66733, 23, -4.80697], "size": [3, 0, 2], "pivot": [22.21321, 22.5, -3.90958], "rotation": [15, 35, 20], "uv": [47, 8], "mirror": true}, - {"origin": [22.75, 23, -3], "size": [3, 0, 3], "pivot": [23, 22.5, -1.5], "rotation": [0, 0, 15], "uv": [46, 10], "mirror": true}, - {"origin": [21.66733, 23, -0.19303], "size": [3, 0, 2], "pivot": [22.21321, 22.5, 0.90958], "rotation": [-15, -35, 20], "uv": [53, 11], "mirror": true} - ] - }, - { - "name": "cannon_right0", - "parent": "torso", - "pivot": [-7, 25.75, 6.5] - }, - { - "name": "cannon_right", - "parent": "cannon_right0", - "pivot": [-7, 26.75, 3.75], - "rotation": [-55, 2.5, -42.5], - "cubes": [ - {"origin": [-10.5, 26.75, 1.75], "size": [7, 5, 6], "uv": [76, 41]}, - {"origin": [-8.25, 28, -2.25], "size": [2, 2, 4], "uv": [38, 42]}, - {"origin": [-8.75, 27.5, -6.25], "size": [3, 3, 4], "uv": [29, 35]} - ] - }, - { - "name": "cannon_left0", - "parent": "torso", - "pivot": [7, 25.75, 6.5] - }, - { - "name": "cannon_left", - "parent": "cannon_left0", - "pivot": [7, 26.75, 3.75], - "rotation": [-55, -2.5, 42.5], - "cubes": [ - {"origin": [3.5, 26.75, 1.75], "size": [7, 5, 6], "uv": [102, 41], "mirror": true}, - {"origin": [6.25, 28, -2.25], "size": [2, 2, 4], "uv": [38, 48], "mirror": true}, - {"origin": [5.75, 27.5, -6.25], "size": [3, 3, 4], "uv": [43, 35], "mirror": true} - ] - }, - { - "name": "tail", - "parent": "torso", - "pivot": [0, 6.5, 6.5], - "cubes": [ - {"origin": [0, 4.5, 5.5], "size": [0, 6, 8], "uv": [49, -8]} + {"origin": [0, -8, -0.5], "size": [0, 5, 5], "uv": [0, 32]} ] }, { "name": "leg_right", - "parent": "body", - "pivot": [-7.5, 8.5, -2], - "rotation": [0, 5, 0], + "parent": "body2", + "pivot": [-13, 11, -5], "cubes": [ - {"origin": [-11, 0, -6], "size": [7, 11, 8], "uv": [62, 0]}, - {"origin": [-10, 0, -10], "size": [0, 3, 4], "pivot": [-10, 1.5, -6], "rotation": [0, 30, 0], "uv": [0, 34]}, - {"origin": [-7.5, 0, -12], "size": [0, 4, 6], "uv": [0, 3]}, - {"origin": [-5, 0, -10], "size": [0, 3, 4], "pivot": [-5, 1.5, -6], "rotation": [0, -30, 0], "uv": [4, -4]}, - {"origin": [-7.5, 0, -2], "size": [0, 3, 4], "pivot": [-7.5, 1.5, 2], "rotation": [-180, 0, 180], "uv": [0, 31]} + {"origin": [-18, 6, -11], "size": [10, 9, 11], "uv": [52, 107]} + ] + }, + { + "name": "knee_right", + "parent": "leg_right", + "pivot": [-13, 6, -10], + "cubes": [ + {"origin": [-17, 3, -10], "size": [8, 3, 10], "uv": [0, 141]} + ] + }, + { + "name": "foot_right", + "parent": "knee_right", + "pivot": [-13, 3, -10], + "cubes": [ + {"origin": [-17, 0, -10], "size": [8, 3, 10], "inflate": 0.01, "uv": [140, 56]} + ] + }, + { + "name": "right_toes", + "parent": "foot_right", + "pivot": [-17, 0, -10] + }, + { + "name": "right_toe_out", + "parent": "right_toes", + "pivot": [-17, 0, -10], + "rotation": [0, 27.5, 0], + "cubes": [ + {"origin": [-17, 0, -13], "size": [0, 2, 3], "uv": [0, 43]} + ] + }, + { + "name": "right_toe_in", + "parent": "right_toes", + "pivot": [-9, 0, -10], + "rotation": [0, -27.5, 0], + "cubes": [ + {"origin": [-9, 0, -13], "size": [0, 2, 3], "uv": [6, 11]} + ] + }, + { + "name": "right_toe_front", + "parent": "right_toes", + "pivot": [-13, 0, -10], + "cubes": [ + {"origin": [-13, 0, -16], "size": [0, 3, 6], "uv": [73, 39]} + ] + }, + { + "name": "right_toe_back", + "parent": "foot_right", + "pivot": [-13, 0, 0], + "cubes": [ + {"origin": [-13, 0, 0], "size": [0, 2, 3], "uv": [84, 53]} ] }, { "name": "leg_left", - "parent": "body", - "pivot": [7.5, 8.5, -2], - "rotation": [0, -5, 0], + "parent": "body2", + "pivot": [13, 11, -5], "cubes": [ - {"origin": [4, 0, -6], "size": [7, 11, 8], "uv": [92, 0]}, - {"origin": [5, 0, -10], "size": [0, 3, 4], "pivot": [5, 1.5, -6], "rotation": [0, 30, 0], "uv": [0, 49]}, - {"origin": [7.5, 0, -12], "size": [0, 4, 6], "uv": [0, -1]}, - {"origin": [10, 0, -10], "size": [0, 3, 4], "pivot": [10, 1.5, -6], "rotation": [0, -30, 0], "uv": [0, 37]}, - {"origin": [7.5, 0, -2], "size": [0, 3, 4], "pivot": [7.5, 1.5, 2], "rotation": [-180, 0, 180], "uv": [0, 37]} + {"origin": [8, 6, -11], "size": [10, 9, 11], "uv": [102, 0]} + ] + }, + { + "name": "knee_left", + "parent": "leg_left", + "pivot": [13, 6, -10], + "cubes": [ + {"origin": [9, 3, -10], "size": [8, 3, 10], "uv": [138, 107]} + ] + }, + { + "name": "foot_left", + "parent": "knee_left", + "pivot": [13, 3, -10], + "cubes": [ + {"origin": [9, 0, -10], "size": [8, 3, 10], "inflate": 0.01, "uv": [66, 137]} + ] + }, + { + "name": "left_toes", + "parent": "foot_left", + "pivot": [17, 0, -10] + }, + { + "name": "left_toe_out", + "parent": "left_toes", + "pivot": [17, 0, -10], + "rotation": [0, -27.5, 0], + "cubes": [ + {"origin": [17, 0, -13], "size": [0, 2, 3], "uv": [0, 11]} + ] + }, + { + "name": "left_toe_in", + "parent": "left_toes", + "pivot": [9, 0, -10], + "rotation": [0, 27.5, 0], + "cubes": [ + {"origin": [9, 0, -13], "size": [0, 2, 3], "uv": [8, 1]} + ] + }, + { + "name": "left_toe_front", + "parent": "left_toes", + "pivot": [13, 0, -10], + "cubes": [ + {"origin": [13, 0, -16], "size": [0, 3, 6], "uv": [73, 36]} + ] + }, + { + "name": "left_toe_back", + "parent": "foot_left", + "pivot": [13, 0, 0], + "cubes": [ + {"origin": [13, 0, 0], "size": [0, 2, 3], "uv": [0, 0]} ] } ] diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/posers/blastoise.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/posers/blastoise.json new file mode 100644 index 0000000000..748f609d9a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/posers/blastoise.json @@ -0,0 +1,68 @@ +{ + "portraitScale": 1.3, + "portraitTranslation": [-0.7, 2.1, 0], + "profileScale": 0.4, + "profileTranslation": [-0.1, 1.1, 0], + "animations": { + "faint": "q.bedrock_primary('blastoise', 'faint', q.curve('one'))", + "cry": "q.bedrock_stateful('blastoise', 'cry')", + "recoil": "q.bedrock_stateful('blastoise', 'recoil')", + "physical": "q.bedrock_primary('blastoise', 'physical', q.curve('symmetrical_wide'))", + "special": "q.bedrock_primary('blastoise', 'special', q.curve('symmetrical_wide'))", + "status": "q.bedrock_primary('blastoise', 'status', q.curve('symmetrical_wide'))" + }, + "poses": { + "battle-standing": { + "poseTypes": ["STAND"], + "isBattle": true, + "animations": [ + "q.look('head_ai')", + "q.bedrock('blastoise', 'battle_idle')" + ], + "quirks": [ + "q.bedrock_quirk('blastoise', 'blink')", + "q.bedrock_quirk('blastoise', q.array('quirk_battle_idle', 'quirk_battle_idle2'), 30, 60, 1)" + ] + }, + "standing": { + "poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"], + "isBattle": false, + "animations": [ + "q.look('head_ai')", + "q.bedrock('blastoise', 'ground_idle')" + ], + "quirks": [ + "q.bedrock_quirk('blastoise', 'blink')", + "q.bedrock_quirk('blastoise', 'quirk_ground_idle', 20, 60, 1)" + ] + }, + "walking": { + "poseTypes": ["WALK"], + "animations": [ + "q.look('head_ai')", + "q.bedrock('blastoise', 'ground_walk')" + ], + "quirks": ["q.bedrock_quirk('blastoise', 'blink')"] + }, + "float": { + "poseTypes": ["FLOAT"], + "animations": [ + "q.look('head_ai')", + "q.bedrock('blastoise', 'water_idle')" + ], + "quirks": ["q.bedrock_quirk('blastoise', 'blink')"] + }, + "swim": { + "poseTypes": ["SWIM"], + "animations": [ + "q.look('head_ai')", + "q.bedrock('blastoise', 'water_swim')" + ], + "quirks": ["q.bedrock_quirk('blastoise', 'blink')"] + }, + "sleep": { + "poseTypes": ["SLEEP"], + "animations": ["q.bedrock('blastoise', 'sleep')"] + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/fossil_analyzer.json b/common/src/main/resources/assets/cobblemon/blockstates/fossil_analyzer.json new file mode 100644 index 0000000000..b32f9a16b1 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/blockstates/fossil_analyzer.json @@ -0,0 +1,34 @@ +{ + "variants": { + "facing=south,on=false": { + "model": "cobblemon:block/fossil_analyzer" + }, + "facing=west,on=false": { + "model": "cobblemon:block/fossil_analyzer", + "y": 90 + }, + "facing=north,on=false": { + "model": "cobblemon:block/fossil_analyzer", + "y": 180 + }, + "facing=east,on=false": { + "model": "cobblemon:block/fossil_analyzer", + "y": 270 + }, + "facing=south,on=true": { + "model": "cobblemon:block/fossil_analyzer_scanning" + }, + "facing=west,on=true": { + "model": "cobblemon:block/fossil_analyzer_scanning", + "y": 90 + }, + "facing=north,on=true": { + "model": "cobblemon:block/fossil_analyzer_scanning", + "y": 180 + }, + "facing=east,on=true": { + "model": "cobblemon:block/fossil_analyzer_scanning", + "y": 270 + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/fossil_compartment.json b/common/src/main/resources/assets/cobblemon/blockstates/fossil_compartment.json deleted file mode 100644 index abdfef7456..0000000000 --- a/common/src/main/resources/assets/cobblemon/blockstates/fossil_compartment.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "variants": { - "facing=south,on=false": { - "model": "cobblemon:block/fossil/fossil_compartment" - }, - "facing=west,on=false": { - "model": "cobblemon:block/fossil/fossil_compartment", - "y": 90 - }, - "facing=north,on=false": { - "model": "cobblemon:block/fossil/fossil_compartment", - "y": 180 - }, - "facing=east,on=false": { - "model": "cobblemon:block/fossil/fossil_compartment", - "y": 270 - }, - "facing=south,on=true": { - "model": "cobblemon:block/fossil/fossil_compartment_scanning" - }, - "facing=west,on=true": { - "model": "cobblemon:block/fossil/fossil_compartment_scanning", - "y": 90 - }, - "facing=north,on=true": { - "model": "cobblemon:block/fossil/fossil_compartment_scanning", - "y": 180 - }, - "facing=east,on=true": { - "model": "cobblemon:block/fossil/fossil_compartment_scanning", - "y": 270 - } - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/fossil_monitor.json b/common/src/main/resources/assets/cobblemon/blockstates/fossil_monitor.json deleted file mode 100644 index 5e8e81a025..0000000000 --- a/common/src/main/resources/assets/cobblemon/blockstates/fossil_monitor.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "variants": { - "facing=south,progress=0": { - "model": "cobblemon:block/fossil/fossil_monitor" - }, - "facing=west,progress=0": { - "model": "cobblemon:block/fossil/fossil_monitor", - "y": 90 - }, - "facing=north,progress=0": { - "model": "cobblemon:block/fossil/fossil_monitor", - "y": 180 - }, - "facing=east,progress=0": { - "model": "cobblemon:block/fossil/fossil_monitor", - "y": 270 - }, - "facing=south,progress=1": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_0" - }, - "facing=west,progress=1": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_0", - "y": 90 - }, - "facing=north,progress=1": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_0", - "y": 180 - }, - "facing=east,progress=1": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_0", - "y": 270 - }, - "facing=south,progress=2": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_1" - }, - "facing=west,progress=2": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_1", - "y": 90 - }, - "facing=north,progress=2": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_1", - "y": 180 - }, - "facing=east,progress=2": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_1", - "y": 270 - }, - "facing=south,progress=3": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_2" - }, - "facing=west,progress=3": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_2", - "y": 90 - }, - "facing=north,progress=3": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_2", - "y": 180 - }, - "facing=east,progress=3": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_2", - "y": 270 - }, - "facing=south,progress=4": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_3" - }, - "facing=west,progress=4": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_3", - "y": 90 - }, - "facing=north,progress=4": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_3", - "y": 180 - }, - "facing=east,progress=4": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_3", - "y": 270 - }, - "facing=south,progress=5": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_4" - }, - "facing=west,progress=5": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_4", - "y": 90 - }, - "facing=north,progress=5": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_4", - "y": 180 - }, - "facing=east,progress=5": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_4", - "y": 270 - }, - "facing=south,progress=6": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_5" - }, - "facing=west,progress=6": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_5", - "y": 90 - }, - "facing=north,progress=6": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_5", - "y": 180 - }, - "facing=east,progress=6": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_5", - "y": 270 - }, - "facing=south,progress=7": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_6" - }, - "facing=west,progress=7": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_6", - "y": 90 - }, - "facing=north,progress=7": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_6", - "y": 180 - }, - "facing=east,progress=7": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_6", - "y": 270 - }, - "facing=south,progress=8": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_7" - }, - "facing=west,progress=8": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_7", - "y": 90 - }, - "facing=north,progress=8": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_7", - "y": 180 - }, - "facing=east,progress=8": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_7", - "y": 270 - }, - "facing=south,progress=9": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_8" - }, - "facing=west,progress=9": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_8", - "y": 90 - }, - "facing=north,progress=9": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_8", - "y": 180 - }, - "facing=east,progress=9": { - "model": "cobblemon:block/fossil/fossil_monitor_scanning_8", - "y": 270 - } - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/fossil_tube.json b/common/src/main/resources/assets/cobblemon/blockstates/fossil_tube.json deleted file mode 100644 index 3ecdcc65ab..0000000000 --- a/common/src/main/resources/assets/cobblemon/blockstates/fossil_tube.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "variants": { - "facing=north,part=bottom": { - "model": "cobblemon:block/fossil/restoration_tank_lower", - "y": 180 - }, - "facing=east,part=bottom": { - "model": "cobblemon:block/fossil/restoration_tank_lower", - "y": 270 - }, - "facing=south,part=bottom": { - "model": "cobblemon:block/fossil/restoration_tank_lower" - }, - "facing=west,part=bottom": { - "model": "cobblemon:block/fossil/restoration_tank_lower", - "y": 90 - }, - "facing=north,part=top": { - "model": "cobblemon:block/fossil/restoration_tank_upper", - "y": 180 - }, - "facing=east,part=top": { - "model": "cobblemon:block/fossil/restoration_tank_upper", - "y": 270 - }, - "facing=south,part=top": { - "model": "cobblemon:block/fossil/restoration_tank_upper" - }, - "facing=west,part=top": { - "model": "cobblemon:block/fossil/restoration_tank_upper", - "y": 90 - } - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/monitor.json b/common/src/main/resources/assets/cobblemon/blockstates/monitor.json new file mode 100644 index 0000000000..e091a6279c --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/blockstates/monitor.json @@ -0,0 +1,169 @@ +{ + "variants": { + "facing=south,screen=off": { + "model": "cobblemon:block/monitor" + }, + "facing=west,screen=off": { + "model": "cobblemon:block/monitor", + "y": 90 + }, + "facing=north,screen=off": { + "model": "cobblemon:block/monitor", + "y": 180 + }, + "facing=east,screen=off": { + "model": "cobblemon:block/monitor", + "y": 270 + }, + "facing=south,screen=blue_progress_1": { + "model": "cobblemon:block/monitor_scanning_0" + }, + "facing=west,screen=blue_progress_1": { + "model": "cobblemon:block/monitor_scanning_0", + "y": 90 + }, + "facing=north,screen=blue_progress_1": { + "model": "cobblemon:block/monitor_scanning_0", + "y": 180 + }, + "facing=east,screen=blue_progress_1": { + "model": "cobblemon:block/monitor_scanning_0", + "y": 270 + }, + "facing=south,screen=blue_progress_2": { + "model": "cobblemon:block/monitor_scanning_1" + }, + "facing=west,screen=blue_progress_2": { + "model": "cobblemon:block/monitor_scanning_1", + "y": 90 + }, + "facing=north,screen=blue_progress_2": { + "model": "cobblemon:block/monitor_scanning_1", + "y": 180 + }, + "facing=east,screen=blue_progress_2": { + "model": "cobblemon:block/monitor_scanning_1", + "y": 270 + }, + "facing=south,screen=blue_progress_3": { + "model": "cobblemon:block/monitor_scanning_2" + }, + "facing=west,screen=blue_progress_3": { + "model": "cobblemon:block/monitor_scanning_2", + "y": 90 + }, + "facing=north,screen=blue_progress_3": { + "model": "cobblemon:block/monitor_scanning_2", + "y": 180 + }, + "facing=east,screen=blue_progress_3": { + "model": "cobblemon:block/monitor_scanning_2", + "y": 270 + }, + "facing=south,screen=blue_progress_4": { + "model": "cobblemon:block/monitor_scanning_3" + }, + "facing=west,screen=blue_progress_4": { + "model": "cobblemon:block/monitor_scanning_3", + "y": 90 + }, + "facing=north,screen=blue_progress_4": { + "model": "cobblemon:block/monitor_scanning_3", + "y": 180 + }, + "facing=east,screen=blue_progress_4": { + "model": "cobblemon:block/monitor_scanning_3", + "y": 270 + }, + "facing=south,screen=blue_progress_5": { + "model": "cobblemon:block/monitor_scanning_4" + }, + "facing=west,screen=blue_progress_5": { + "model": "cobblemon:block/monitor_scanning_4", + "y": 90 + }, + "facing=north,screen=blue_progress_5": { + "model": "cobblemon:block/monitor_scanning_4", + "y": 180 + }, + "facing=east,screen=blue_progress_5": { + "model": "cobblemon:block/monitor_scanning_4", + "y": 270 + }, + "facing=south,screen=blue_progress_6": { + "model": "cobblemon:block/monitor_scanning_5" + }, + "facing=west,screen=blue_progress_6": { + "model": "cobblemon:block/monitor_scanning_5", + "y": 90 + }, + "facing=north,screen=blue_progress_6": { + "model": "cobblemon:block/monitor_scanning_5", + "y": 180 + }, + "facing=east,screen=blue_progress_6": { + "model": "cobblemon:block/monitor_scanning_5", + "y": 270 + }, + "facing=south,screen=blue_progress_7": { + "model": "cobblemon:block/monitor_scanning_6" + }, + "facing=west,screen=blue_progress_7": { + "model": "cobblemon:block/monitor_scanning_6", + "y": 90 + }, + "facing=north,screen=blue_progress_7": { + "model": "cobblemon:block/monitor_scanning_6", + "y": 180 + }, + "facing=east,screen=blue_progress_7": { + "model": "cobblemon:block/monitor_scanning_6", + "y": 270 + }, + "facing=south,screen=blue_progress_8": { + "model": "cobblemon:block/monitor_scanning_7" + }, + "facing=west,screen=blue_progress_8": { + "model": "cobblemon:block/monitor_scanning_7", + "y": 90 + }, + "facing=north,screen=blue_progress_8": { + "model": "cobblemon:block/monitor_scanning_7", + "y": 180 + }, + "facing=east,screen=blue_progress_8": { + "model": "cobblemon:block/monitor_scanning_7", + "y": 270 + }, + "facing=south,screen=blue_progress_9": { + "model": "cobblemon:block/monitor_scanning_8" + }, + "facing=west,screen=blue_progress_9": { + "model": "cobblemon:block/monitor_scanning_8", + "y": 90 + }, + "facing=north,screen=blue_progress_9": { + "model": "cobblemon:block/monitor_scanning_8", + "y": 180 + }, + "facing=east,screen=blue_progress_9": { + "model": "cobblemon:block/monitor_scanning_8", + "y": 270 + }, + "facing=south,screen=green_progress_9": { + "model": "cobblemon:block/monitor_locked" + }, + "facing=west,screen=green_progress_9": { + "model": "cobblemon:block/monitor_locked", + "y": 90 + }, + "facing=north,screen=green_progress_9": { + "model": "cobblemon:block/monitor_locked", + "y": 180 + }, + "facing=east,screen=green_progress_9": { + "model": "cobblemon:block/monitor_locked", + "y": 270 + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/nether_fire_stone_ore.json b/common/src/main/resources/assets/cobblemon/blockstates/nether_fire_stone_ore.json new file mode 100644 index 0000000000..75af59f123 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/blockstates/nether_fire_stone_ore.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "cobblemon:block/nether_fire_stone_ore" + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/blockstates/restoration_tank.json b/common/src/main/resources/assets/cobblemon/blockstates/restoration_tank.json new file mode 100644 index 0000000000..3208749b79 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/blockstates/restoration_tank.json @@ -0,0 +1,49 @@ +{ + "variants": { + "facing=north,part=bottom,on=false": { + "model": "cobblemon:block/restoration_tank_lower", + "y": 180 + }, + "facing=east,part=bottom,on=false": { + "model": "cobblemon:block/restoration_tank_lower", + "y": 270 + }, + "facing=south,part=bottom,on=false": { + "model": "cobblemon:block/restoration_tank_lower" + }, + "facing=west,part=bottom,on=false": { + "model": "cobblemon:block/restoration_tank_lower", + "y": 90 + }, + "facing=north,part=top,on=false": { + "model": "cobblemon:block/restoration_tank_upper", + "y": 180 + }, + "facing=east,part=top,on=false": { + "model": "cobblemon:block/restoration_tank_upper", + "y": 270 + }, + "facing=south,part=top,on=false": { + "model": "cobblemon:block/restoration_tank_upper" + }, + "facing=west,part=top,on=false": { + "model": "cobblemon:block/restoration_tank_upper", + "y": 90 + }, + "facing=south,part=top,on=true": { + "model": "cobblemon:block/restoration_tank_upper_animated" + }, + "facing=west,part=top,on=true": { + "model": "cobblemon:block/restoration_tank_upper_animated", + "y": 90 + }, + "facing=north,part=top,on=true": { + "model": "cobblemon:block/restoration_tank_upper_animated", + "y": 180 + }, + "facing=east,part=top,on=true": { + "model": "cobblemon:block/restoration_tank_upper_animated", + "y": 270 + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/lang/en_us.json b/common/src/main/resources/assets/cobblemon/lang/en_us.json index 2857b5f7e5..2e615350aa 100644 --- a/common/src/main/resources/assets/cobblemon/lang/en_us.json +++ b/common/src/main/resources/assets/cobblemon/lang/en_us.json @@ -270,7 +270,7 @@ "item.cobblemon.ancient_heavy_ball.tooltip": "1×, throws less far", "item.cobblemon.ancient_leaden_ball.tooltip": "1.5×, throws less far", "item.cobblemon.ancient_gigaton_ball.tooltip": "2×, throws less far", - "item.cobblemon.ancient_origin_ball.tooltip": "1× catch rate", + "item.cobblemon.ancient_origin_ball.tooltip": "Guaranteed capture", "item.cobblemon.mulch_base": "Mulch", "item.cobblemon.coarse_mulch": "Coarse Mulch", @@ -340,12 +340,17 @@ "item.cobblemon.capture_sherd": "Capture Pottery Sherd", "item.cobblemon.dome_sherd": "Dome Pottery Sherd", "item.cobblemon.helix_sherd": "Helix Pottery Sherd", - "item.cobblemon.nostalgic_sherd": "Nostalgic Pottery Sherd", + "item.cobblemon.nostalgic_sherd": "Nostalgic Pottery Sherd", + "item.cobblemon.suspicious_sherd": "Suspicious Pottery Sherd", "item.cobblemon.tumblestone": "Tumblestone", "item.cobblemon.black_tumblestone": "Black Tumblestone", "item.cobblemon.sky_tumblestone": "Sky Tumblestone", + "trim_pattern.cobblemon.automaton": "Automaton", + + "item.cobblemon.automaton_armor_trim_smithing_template": "Automaton Armor Trim", + "cobblemon.fossil.armor": "Armor", "cobblemon.fossil.bird": "Bird", "cobblemon.fossil.claw": "Claw", @@ -362,6 +367,7 @@ "cobblemon.fossil.sail": "Sail", "cobblemon.fossil.skull": "Skull", + "cobblemon.fossilmachine.protected": "This fossil belongs to %s!", "itemGroup.cobblemon.blocks": "Blocks", @@ -400,9 +406,9 @@ "block.cobblemon.healing_machine.tooltip1": "Must be charged after placing.", "block.cobblemon.healing_machine.tooltip2": "Charges over time.", "block.cobblemon.pc": "PC", - "block.cobblemon.fossil_tube": "Restoration Tank", - "block.cobblemon.fossil_compartment": "Fossil Compartment", - "block.cobblemon.fossil_monitor": "Data Monitor", + "block.cobblemon.restoration_tank": "Restoration Tank", + "block.cobblemon.fossil_analyzer": "Fossil Analyzer", + "block.cobblemon.monitor": "Data Monitor", "block.cobblemon.red_mint": "Red Mint Seeds", "block.cobblemon.blue_mint": "Blue Mint Seeds", "block.cobblemon.cyan_mint": "Cyan Mint Seeds", @@ -504,6 +510,12 @@ "cobblemon.ui.pasture.owned_name": "%1$s (%2$s)", "cobblemon.pasture.too_many_nearby": "There are too many Pokémon nearby.", + "cobblemon.ui.interact.give.item": "Change held item", + "cobblemon.ui.interact.spectate": "Spectate", + "cobblemon.ui.interact.trade": "Trade", + "cobblemon.ui.interact.battle": "Battle", + "cobblemon.ui.interact.mount.shoulder": "Shoulder", + "key.cobblemon.upshiftparty": "Party Shift Up", "key.cobblemon.downshiftparty": "Party Shift Down", "key.cobblemon.hideparty": "Hide Party Overlay", @@ -515,14 +527,15 @@ "cobblemon.subtitle.poke_ball.capture_succeeded": "Poké Ball capture succeeds", "cobblemon.subtitle.fossilmachine.activate": "Restoration Machine activates", "cobblemon.subtitle.fossilmachine.active_loop": "Restoration Machine hums", - "cobblemon.subtitle.fossilmachine.dna_full": "Restoration Tube reaches capacity", + "cobblemon.subtitle.fossilmachine.dna_full": "Restoration Tank reaches capacity", "cobblemon.subtitle.fossilmachine.finished": "Restoration Machine finishes", - "cobblemon.subtitle.fossilmachine.insert_dna": "Restoration Tube splashes", - "cobblemon.subtitle.fossilmachine.insert_dna_small": "Restoration Tube splashes lightly", + "cobblemon.subtitle.fossilmachine.insert_dna": "Restoration Tank splashes", + "cobblemon.subtitle.fossilmachine.insert_dna_small": "Restoration Tank splashes lightly", "cobblemon.subtitle.fossilmachine.insert_fossil": "Fossil inserted", "cobblemon.subtitle.fossilmachine.retrieve_fossil": "Fossil retrieved", "cobblemon.subtitle.fossilmachine.retrieve_pokemon": "Fossil Pokémon retrieved", "cobblemon.subtitle.fossilmachine.unprotected": "Restoration Machine protection ends", + "cobblemon.subtitle.fossilmachine.assemble": "Restoration Machine assembles", "cobblemon.healingmachine.alreadyinuse": "This healing machine is already in use!", "cobblemon.healingmachine.nopokemon": "You don't have any Pokémon in your party to heal!", @@ -1403,6 +1416,7 @@ "block.cobblemon.deepslate_thunder_stone_ore": "Deepslate Thunder Stone Ore", "block.cobblemon.deepslate_water_stone_ore": "Deepslate Water Stone Ore", "block.cobblemon.dripstone_moon_stone_ore": "Dripstone Moon Stone Ore", + "block.cobblemon.nether_fire_stone_ore": "Nether Fire Stone Ore", "block.cobblemon.pasture": "Pasture Block", "gamerule.doPokemonSpawning": "Spawn Pokémon", @@ -3293,6 +3307,7 @@ "cobblemon.move.zippyzap.desc": "The user attacks the target with bursts of electricity at high speed. This move always goes first and results in a critical hit.", "cobblemon.entity.pokemon": "Pokémon", + "entity.cobblemon.empty_pokeball": "Empty Poké Ball", "cobblemon.species.bulbasaur.name": "Bulbasaur", "cobblemon.species.bulbasaur.desc": "While it is young, it uses the nutrients that are stored in the seed on its back in order to grow.", diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment.json b/common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer.json similarity index 94% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment.json rename to common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer.json index 9032e90405..8bf1549c61 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment.json +++ b/common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer.json @@ -1,9 +1,9 @@ { - "credit": "Made with Blockbench by dhi_holo (@holo_modeller)", + "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "1": "cobblemon:block/fossil_compartment", - "particle": "cobblemon:block/fossil_compartment_particle" + "1": "cobblemon:block/fossil_analyzer", + "particle": "cobblemon:block/fossil_analyzer_particle" }, "elements": [ { @@ -115,14 +115,14 @@ }, "groups": [ { - "name": "fossil_compartment", + "name": "fossil_analyzer", "origin": [0, 0, 0], "color": 0, "children": [ 0, 1, { - "name": "compartment_door", + "name": "analyzer_door", "origin": [0, 0, 0], "color": 0, "children": [2] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment_scanning.json b/common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer_scanning.json similarity index 93% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment_scanning.json rename to common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer_scanning.json index 693e4fccea..4e6db1b923 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_compartment_scanning.json +++ b/common/src/main/resources/assets/cobblemon/models/block/fossil_analyzer_scanning.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "1": "cobblemon:block/fossil_compartment_scanning", - "particle": "cobblemon:block/fossil_compartment_particle" + "1": "cobblemon:block/fossil_analyzer_scanning", + "particle": "cobblemon:block/fossil_analyzer_particle" }, "elements": [ { @@ -82,14 +82,14 @@ ], "groups": [ { - "name": "fossil_compartment", + "name": "fossil_analyzer", "origin": [0, 0, 0], "color": 0, "children": [ 0, 1, { - "name": "compartment_door", + "name": "analyzer_door", "origin": [0, 0, 0], "color": 0, "children": [2] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor.json b/common/src/main/resources/assets/cobblemon/models/block/monitor.json similarity index 96% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor.json index 7ac1e96097..042c4a1480 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor", - "particle": "cobblemon:block/fossil_monitor" + "0": "cobblemon:block/monitor", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -107,7 +107,7 @@ }, "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/monitor_locked.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_locked.json new file mode 100644 index 0000000000..a3a25a5d8a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_locked.json @@ -0,0 +1,83 @@ +{ + "credit": "Made with Blockbench", + "texture_size": [64, 64], + "textures": { + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" + }, + "elements": [ + { + "from": [1, 0, 1], + "to": [15, 6, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [24, 16, 8.25]}, + "faces": { + "north": {"uv": [0.25, 2.5, 3.75, 4], "texture": "#0"}, + "east": {"uv": [4.25, 2.5, 7.75, 4], "texture": "#0"}, + "south": {"uv": [0.25, 6.5, 3.75, 8], "texture": "#0"}, + "west": {"uv": [7.75, 2.5, 4.25, 4], "texture": "#0"}, + "up": {"uv": [3.75, 4, 0.25, 0.5], "texture": "#0"}, + "down": {"uv": [11.75, 0.25, 8.25, 3.75], "texture": "#0"} + } + }, + { + "from": [1, 14, 1], + "to": [15, 16, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [24, 16, 8.25]}, + "faces": { + "north": {"uv": [0.25, 0, 3.75, 0.5], "texture": "#0"}, + "east": {"uv": [4.25, 0, 7.75, 0.5], "texture": "#0"}, + "south": {"uv": [0.25, 4, 3.75, 4.5], "texture": "#0"}, + "west": {"uv": [7.75, 0, 4.25, 0.5], "texture": "#0"}, + "up": {"uv": [11.75, 3.75, 8.25, 0.25], "texture": "#0"}, + "down": {"uv": [7.75, 0.5, 4.25, 4], "texture": "#0"} + } + }, + { + "from": [13, 6, 1], + "to": [15, 14, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [24, 16, 8.25]}, + "faces": { + "north": {"uv": [0.25, 0.5, 0.75, 2.5], "texture": "#0"}, + "east": {"uv": [4.25, 0.5, 7.75, 2.5], "texture": "#0"}, + "south": {"uv": [3.25, 4.5, 3.75, 6.5], "texture": "#0"}, + "west": {"uv": [4.25, 0.5, 7.75, 2.5], "texture": "#0"}, + "up": {"uv": [9.5, 14.25, 9, 10.75], "texture": "#0"}, + "down": {"uv": [10, 10.75, 9.5, 14.25], "texture": "#0"} + } + }, + { + "from": [3, 6, 2], + "to": [13, 14, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [24, 16, 8.25]}, + "faces": { + "north": {"uv": [4.75, 12.5, 7.25, 14.5], "texture": "#0"}, + "east": {"uv": [2.5, 9, 5.75, 11], "texture": "#0"}, + "south": {"uv": [0.75, 4.5, 3.25, 6.5], "texture": "#0"}, + "west": {"uv": [5.75, 9.25, 9, 11.25], "texture": "#0"}, + "up": {"uv": [2.5, 10.25, 0, 7], "texture": "#0"}, + "down": {"uv": [9.5, 0, 7, 3.25], "texture": "#0"} + } + }, + { + "from": [1, 6, 1], + "to": [3, 14, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [24, 16, 8.25]}, + "faces": { + "north": {"uv": [3.25, 0.5, 3.75, 2.5], "texture": "#0"}, + "east": {"uv": [4.25, 0.5, 7.75, 2.5], "texture": "#0"}, + "south": {"uv": [0.25, 4.5, 0.75, 6.5], "texture": "#0"}, + "west": {"uv": [7.75, 0.5, 4.25, 2.5], "texture": "#0"}, + "up": {"uv": [10.5, 14.25, 10, 10.75], "texture": "#0"}, + "down": {"uv": [11, 10.75, 10.5, 14.25], "texture": "#0"} + } + } + ], + "groups": [ + { + "name": "monitor", + "origin": [0, 0, 0], + "color": 0, + "children": [0, 1, 2, 3, 4] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_0.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_0.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_0.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_0.json index 34c16ead5e..2754685b2f 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_0.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_0.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_1.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_1.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_1.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_1.json index 815787025a..a9aa1c61d0 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_1.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_1.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_2.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_2.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_2.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_2.json index e8a1e2baef..76be1d4f83 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_2.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_2.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_3.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_3.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_3.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_3.json index 4b08e6a32b..6ba6360991 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_3.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_3.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_4.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_4.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_4.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_4.json index 9f84726530..a04599f3b6 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_4.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_4.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_5.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_5.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_5.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_5.json index 31a3c65d6d..199c355b08 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_5.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_5.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_6.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_6.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_6.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_6.json index 6e4edf5c2d..777bfdab52 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_6.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_6.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_7.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_7.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_7.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_7.json index a7980507f5..dd20b0d1cf 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_7.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_7.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_8.json b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_8.json similarity index 95% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_8.json rename to common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_8.json index 872db09bce..6265896f8a 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_monitor_scanning_8.json +++ b/common/src/main/resources/assets/cobblemon/models/block/monitor_scanning_8.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "0": "cobblemon:block/fossil_monitor_scanning", - "particle": "cobblemon:block/fossil_monitor_scanning" + "0": "cobblemon:block/monitor_scanning", + "particle": "cobblemon:block/monitor_particle" }, "elements": [ { @@ -74,7 +74,7 @@ ], "groups": [ { - "name": "fossil_monitor", + "name": "monitor", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/nether_fire_stone_ore.json b/common/src/main/resources/assets/cobblemon/models/block/nether_fire_stone_ore.json new file mode 100644 index 0000000000..21ae63e306 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/nether_fire_stone_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "cobblemon:block/nether_fire_stone_ore" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank.json similarity index 97% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank.json index 7c3ffab2e9..b0cdc6ecb8 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "2": "cobblemon:block/fossil_tube", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -166,13 +166,13 @@ }, "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] }, { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [5, 6, 7, 8, 9] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_connector.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_connector.json similarity index 66% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_connector.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_connector.json index a50184693e..d4353c8b5d 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_connector.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_connector.json @@ -2,13 +2,14 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "2": "cobblemon:block/fossil_tube", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { - "from": [4, 7, 0.99], - "to": [12, 16, 0.99], + "from": [4, 7, 0.98], + "to": [12, 16, 0.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [9.5, 8.25, 11.5, 10.5], "texture": "#2"}, "east": {"uv": [9.5, 8.25, 11.5, 10.5], "texture": "#2"}, @@ -19,8 +20,9 @@ } }, { - "from": [5, 8, 0], - "to": [11, 14, 1], + "from": [5, 8, -0.02], + "to": [11, 14, 0.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [13.25, 1.25, 14.75, 2.75], "texture": "#2"}, "east": {"uv": [4, 4.5, 4.25, 6], "texture": "#2"}, @@ -31,17 +33,18 @@ } }, { - "from": [4, 16, 0.99], - "to": [9, 28, 0.99], + "from": [4, 16, 0.98], + "to": [9, 29, 0.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { - "north": {"uv": [8, 8.5, 9.25, 11.5], "texture": "#2"}, - "south": {"uv": [9.25, 8.5, 8, 11.5], "texture": "#2"} + "north": {"uv": [8, 8.25, 9.25, 11.5], "texture": "#2"}, + "south": {"uv": [9.25, 8.25, 8, 11.5], "texture": "#2"} } } ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [ diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_bubbling.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_bubbling.json similarity index 80% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_bubbling.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_bubbling.json index aada1c651b..a6edb09710 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_bubbling.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_bubbling.json @@ -2,8 +2,7 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "1": "cobblemon:block/fossil_fluid_bubbling", - "particle": "cobblemon:block/fossil_tube_particle" + "1": "cobblemon:block/restoration_tank_fluid_bubbling" }, "elements": [ { @@ -20,7 +19,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked.json new file mode 100644 index 0000000000..da668a9f98 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked.json @@ -0,0 +1,101 @@ +{ + "credit": "Made with Blockbench", + "texture_size": [32, 32], + "textures": { + "2": "cobblemon:block/restoration_tank_fluid_base" + }, + "elements": [ + { + "name": "1", + "from": [1.5, 3, 1.5], + "to": [14.5, 6, 14.5], + "faces": { + "north": {"uv": [0, 9, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 9, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 9, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 9, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "2", + "from": [1.5, 3, 1.5], + "to": [14.5, 9, 14.5], + "faces": { + "north": {"uv": [0, 7.5, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 7.5, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 7.5, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 7.5, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "3", + "from": [1.5, 3, 1.5], + "to": [14.5, 12, 14.5], + "faces": { + "north": {"uv": [0, 6, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 6, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 6, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 6, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "4", + "from": [1.5, 3, 1.5], + "to": [14.5, 15, 14.5], + "faces": { + "north": {"uv": [0, 4.5, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 4.5, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 4.5, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 4.5, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "5", + "from": [1.5, 3, 1.5], + "to": [14.5, 18, 14.5], + "faces": { + "north": {"uv": [0, 3, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 3, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 3, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 3, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "6", + "from": [1.5, 3, 1.5], + "to": [14.5, 21, 14.5], + "faces": { + "north": {"uv": [0, 1.5, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 1.5, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 1.5, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 1.5, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + }, + { + "name": "7", + "from": [1.5, 3, 1.5], + "to": [14.5, 24, 14.5], + "faces": { + "north": {"uv": [0, 0, 6.5, 10.5], "texture": "#2"}, + "east": {"uv": [0, 0, 6.5, 10.5], "texture": "#2"}, + "south": {"uv": [0, 0, 6.5, 10.5], "texture": "#2"}, + "west": {"uv": [0, 0, 6.5, 10.5], "texture": "#2"}, + "up": {"uv": [9.5, 0, 16, 6.5], "texture": "#2"} + } + } + ], + "groups": [ + { + "name": "restoration_tank", + "origin": [0, 0, 0], + "color": 0, + "children": [0, 1, 2, 3, 4, 5, 6] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_1.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_1.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_1.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_1.json index a46bc0e87e..4b2aa5c586 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_1.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_1.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_2.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_2.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_2.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_2.json index 5251c75901..24c9bff1dc 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_2.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_2.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_3.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_3.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_3.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_3.json index df8b7b03a6..38b75cb4fd 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_3.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_3.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_4.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_4.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_4.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_4.json index 1c11427cf0..55fb56c60a 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_4.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_4.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_5.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_5.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_5.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_5.json index 215583b19a..1c69f11a4f 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_5.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_5.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_6.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_6.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_6.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_6.json index 0999b88d10..2606125934 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_6.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_6.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_7.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_7.json similarity index 79% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_7.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_7.json index 15aebe1e1f..9654eec0b7 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_7.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_7.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_8.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_8.json similarity index 80% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_8.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_8.json index 14a617601b..2c90d6cc7b 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/fossil_fluid_chunked_8.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_fluid_chunked_8.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { - "2": "cobblemon:block/fossil_fluid_base", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_fluid_base", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -21,7 +21,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4, 5, 6, 7] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_lower.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_lower.json similarity index 86% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_lower.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_lower.json index 748e995599..6219b1c77d 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_lower.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_lower.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "2": "cobblemon:block/fossil_tube", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -25,7 +25,7 @@ "north": {"uv": [4.25, 4, 7.75, 7.25], "texture": "#2"}, "east": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "south": {"uv": [4.25, 4, 7.75, 7.25], "texture": "#2"}, - "west": {"uv": [3.75, 4, 0.25, 7.25], "texture": "#2"}, + "west": {"uv": [7.75, 4, 4.25, 7.25], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"}, "down": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"} } @@ -37,7 +37,7 @@ "faces": { "north": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "east": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, - "south": {"uv": [3.75, 4, 0.25, 7.25], "texture": "#2"}, + "south": {"uv": [7.75, 4, 4.25, 7.25], "texture": "#2"}, "west": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "rotation": 270, "texture": "#2"}, "down": {"uv": [12.25, 0.25, 15.75, 3.75], "rotation": 90, "texture": "#2"} @@ -48,7 +48,7 @@ "to": [15, 16, 15], "rotation": {"angle": 0, "axis": "y", "origin": [15, 16, 8]}, "faces": { - "north": {"uv": [3.75, 4, 0.25, 7.25], "texture": "#2"}, + "north": {"uv": [7.75, 4, 4.25, 7.25], "texture": "#2"}, "east": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "south": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "west": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, @@ -61,7 +61,7 @@ "to": [1, 16, 15], "faces": { "north": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, - "east": {"uv": [3.75, 4, 0.25, 7.25], "texture": "#2"}, + "east": {"uv": [7.75, 4, 4.25, 7.25], "texture": "#2"}, "south": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "west": {"uv": [0.25, 4, 3.75, 7.25], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"}, @@ -71,7 +71,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper.json similarity index 86% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper.json index 49afb63c17..b3228e05dd 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "2": "cobblemon:block/fossil_tube", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -13,7 +13,7 @@ "faces": { "north": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "east": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, - "south": {"uv": [3.75, 0.75, 0.25, 4], "texture": "#2"}, + "south": {"uv": [7.75, 0.75, 4.25, 4], "texture": "#2"}, "west": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "rotation": 270, "texture": "#2"}, "down": {"uv": [12.25, 0.25, 15.75, 3.75], "rotation": 90, "texture": "#2"} @@ -24,7 +24,7 @@ "to": [15, 13, 15], "rotation": {"angle": 0, "axis": "y", "origin": [15, 16, 8]}, "faces": { - "north": {"uv": [3.75, 0.75, 0.25, 4], "texture": "#2"}, + "north": {"uv": [7.75, 0.75, 4.25, 4], "texture": "#2"}, "east": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "south": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "west": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, @@ -37,7 +37,7 @@ "to": [1, 13, 15], "faces": { "north": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, - "east": {"uv": [3.75, 0.75, 0.25, 4], "texture": "#2"}, + "east": {"uv": [7.75, 0.75, 4.25, 4], "texture": "#2"}, "south": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "west": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"}, @@ -51,7 +51,7 @@ "north": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "east": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, "south": {"uv": [0.25, 0.75, 3.75, 4], "texture": "#2"}, - "west": {"uv": [3.75, 0.75, 0.25, 4], "texture": "#2"}, + "west": {"uv": [7.75, 0.75, 4.25, 4], "texture": "#2"}, "up": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"}, "down": {"uv": [12.25, 0.25, 15.75, 3.75], "texture": "#2"} } @@ -71,7 +71,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper_animated.json b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper_animated.json similarity index 94% rename from common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper_animated.json rename to common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper_animated.json index 49afb63c17..97799d9d20 100644 --- a/common/src/main/resources/assets/cobblemon/models/block/fossil/restoration_tank_upper_animated.json +++ b/common/src/main/resources/assets/cobblemon/models/block/restoration_tank_upper_animated.json @@ -2,8 +2,8 @@ "credit": "Made with Blockbench", "texture_size": [64, 64], "textures": { - "2": "cobblemon:block/fossil_tube", - "particle": "cobblemon:block/fossil_tube_particle" + "2": "cobblemon:block/restoration_tank_animated", + "particle": "cobblemon:block/restoration_tank_particle" }, "elements": [ { @@ -71,7 +71,7 @@ ], "groups": [ { - "name": "fossil_tube", + "name": "restoration_tank", "origin": [0, 0, 0], "color": 0, "children": [0, 1, 2, 3, 4] diff --git a/common/src/main/resources/assets/cobblemon/models/item/automaton_armor_trim_smithing_template.json b/common/src/main/resources/assets/cobblemon/models/item/automaton_armor_trim_smithing_template.json new file mode 100644 index 0000000000..f741277af1 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/automaton_armor_trim_smithing_template.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "cobblemon:item/trims/automaton_armor_trim_smithing_template" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/fossil_analyzer.json b/common/src/main/resources/assets/cobblemon/models/item/fossil_analyzer.json new file mode 100644 index 0000000000..1580693557 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/fossil_analyzer.json @@ -0,0 +1,3 @@ +{ + "parent": "cobblemon:block/fossil_analyzer" +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/fossil_compartment.json b/common/src/main/resources/assets/cobblemon/models/item/fossil_compartment.json deleted file mode 100644 index 6ba0c3890f..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/fossil_compartment.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "cobblemon:block/fossil/fossil_compartment" -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/fossil_monitor.json b/common/src/main/resources/assets/cobblemon/models/item/fossil_monitor.json deleted file mode 100644 index 08db17bab9..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/fossil_monitor.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "cobblemon:block/fossil/fossil_monitor" -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/fossil_tube.json b/common/src/main/resources/assets/cobblemon/models/item/fossil_tube.json deleted file mode 100644 index add2416009..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/fossil_tube.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "cobblemon:block/fossil/restoration_tank" -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dawn_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dawn_stone_trim.json deleted file mode 100644 index 396440609b..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dawn_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_dawn_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dusk_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dusk_stone_trim.json deleted file mode 100644 index 7f9aea4923..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_dusk_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_dusk_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_fire_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_fire_stone_trim.json deleted file mode 100644 index 5661923844..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_fire_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_fire_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_ice_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_ice_stone_trim.json deleted file mode 100644 index dab043b969..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_ice_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_ice_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_leaf_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_leaf_stone_trim.json deleted file mode 100644 index c4f49ea23e..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_leaf_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_leaf_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_moon_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_moon_stone_trim.json deleted file mode 100644 index 73d26e1e5a..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_moon_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_moon_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_shiny_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_shiny_stone_trim.json deleted file mode 100644 index 6be0a1676f..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_shiny_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_shiny_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_sun_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_sun_stone_trim.json deleted file mode 100644 index 59d1147d0c..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_sun_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_moon_sun" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_thunder_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_thunder_stone_trim.json deleted file mode 100644 index ae7a31f6bb..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_thunder_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_thunder_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_water_stone_trim.json b/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_water_stone_trim.json deleted file mode 100644 index b3d18da5f7..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/item/iron_chestplate_water_stone_trim.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "textures": { - "layer0": "minecraft:item/iron_chestplate", - "layer1": "minecraft:trims/items/chestplate_trim_water_stone" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/monitor.json b/common/src/main/resources/assets/cobblemon/models/item/monitor.json new file mode 100644 index 0000000000..f8ab661465 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/monitor.json @@ -0,0 +1,3 @@ +{ + "parent": "cobblemon:block/monitor" +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/nether_fire_stone_ore.json b/common/src/main/resources/assets/cobblemon/models/item/nether_fire_stone_ore.json new file mode 100644 index 0000000000..33b626d8b5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/nether_fire_stone_ore.json @@ -0,0 +1,3 @@ +{ + "parent": "cobblemon:block/nether_fire_stone_ore" +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/restoration_tank.json b/common/src/main/resources/assets/cobblemon/models/item/restoration_tank.json new file mode 100644 index 0000000000..442885da5a --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/restoration_tank.json @@ -0,0 +1,3 @@ +{ + "parent": "cobblemon:block/restoration_tank" +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/suspicious_sherd.json b/common/src/main/resources/assets/cobblemon/models/item/suspicious_sherd.json new file mode 100644 index 0000000000..6146cf3832 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/item/suspicious_sherd.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "cobblemon:item/sherds/suspicious_sherd" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/particles/snowstorm.json b/common/src/main/resources/assets/cobblemon/particles/snowstorm.json index 21963651ea..1bae5b3f5e 100644 --- a/common/src/main/resources/assets/cobblemon/particles/snowstorm.json +++ b/common/src/main/resources/assets/cobblemon/particles/snowstorm.json @@ -1,15 +1,80 @@ { "textures": [ + "cobblemon:bigsparkle", + "cobblemon:bubble", + "cobblemon:bubble_large", + "cobblemon:cherry_petal", + "cobblemon:confetti", + "cobblemon:crit", + "cobblemon:cut", + "cobblemon:drip", + "cobblemon:electricity", + "cobblemon:energyball", + "cobblemon:fang", + "cobblemon:fist", + "cobblemon:foot", "cobblemon:goo", + "cobblemon:hit", + "cobblemon:impact-bug", + "cobblemon:impact-dark", + "cobblemon:impact-dragon", + "cobblemon:impact-electric", + "cobblemon:impact-fairy", + "cobblemon:impact-fighting", + "cobblemon:impact-fire", + "cobblemon:impact-flying", + "cobblemon:impact-ghost", + "cobblemon:impact-grass", + "cobblemon:impact-ground", + "cobblemon:impact-ice", + "cobblemon:impact-normal", + "cobblemon:impact-poison", + "cobblemon:impact-psychic", + "cobblemon:impact-rock", + "cobblemon:impact-steel", + "cobblemon:impact-water", + "cobblemon:lava_bubble", + "cobblemon:lightbeam", + "cobblemon:maus", + "cobblemon:obscuringsmoke", + "cobblemon:ooze", + "cobblemon:orb", + "cobblemon:pokeball_smoke", + "cobblemon:ripple", + "cobblemon:sand_tomb_1", + "cobblemon:sand_tomb_2", + "cobblemon:scratch", + "cobblemon:shiny_lava_bubble", + "cobblemon:slash", + "cobblemon:sleep_zzz", "cobblemon:smoke", + "cobblemon:sparkle", + "cobblemon:speedlines", + "cobblemon:star", + "cobblemon:stat_up", + "cobblemon:swipe", "cobblemon:tailflame", "cobblemon:vanilla_smoke", - "cobblemon:lava_bubble", - "cobblemon:shiny_lava_bubble", - "cobblemon:metal_sparks", - "cobblemon:sleep_zzz", - "cobblemon:bubble", - "cobblemon:confetti", - "cobblemon:cherry_petal" + "cobblemon:waterjet", + "cobblemon:waterjet_head", + "cobblemon:white_bubble", + "cobblemon:glowing_dots_cyan", + "cobblemon:glowing_smoke_cyan", + "cobblemon:glowing_sparkle_yellow", + "cobblemon:afterspark", + "cobblemon:capturesparks", + "cobblemon:capturestar", + "cobblemon:balls/pokeball/battle/sendflash", + "cobblemon:balls/pokeball/casual/sendflash", + "cobblemon:balls/pokeball/ballsparkle", + "cobblemon:balls/pokeball/casual/ballsparks", + "cobblemon:balls/pokeball/battle/ballsparks", + "cobblemon:balls/greatball/battle/sendflash", + "cobblemon:balls/greatball/casual/sendflash", + "cobblemon:balls/greatball/ballsparkle", + "cobblemon:balls/greatball/casual/ballsparks", + "cobblemon:balls/greatball/battle/ballsparks", + "cobblemon:balls/greatball/casual/ballsendsparkle", + "cobblemon:balls/greatball/battle/ballsendsparkle" ] } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.fsh b/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.fsh new file mode 100644 index 0000000000..0101236d40 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.fsh @@ -0,0 +1,25 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; +uniform sampler2D Sampler2; + +uniform vec4 ColorModulator; +uniform float FogStart; +uniform float FogEnd; +uniform vec4 FogColor; + +in float vertexDistance; +in vec2 texCoord0; +in vec4 vertexColor; + +out vec4 fragColor; + +void main() { + vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; + if (color.a < 0.0039) { + discard; + } + fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); +} diff --git a/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.json b/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.json new file mode 100644 index 0000000000..16752b13c0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/shaders/core/particle_add.json @@ -0,0 +1,27 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "cobblemon:particle_base", + "fragment": "cobblemon:particle_add", + "attributes": [ + "Position", + "UV0", + "Color", + "UV2" + ], + "samplers": [ + {"name": "Sampler0"}, + {"name": "Sampler2"} + ], + "uniforms": [ + {"name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]}, + {"name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]}, + {"name": "ColorModulator", "type": "float", "count": 4, "values": [1.0, 1.0, 1.0, 1.0]}, + {"name": "FogStart", "type": "float", "count": 1, "values": [0.0]}, + {"name": "FogEnd", "type": "float", "count": 1, "values": [1.0]}, + {"name": "FogColor", "type": "float", "count": 4, "values": [0.0, 0.0, 0.0, 0.0]} + ] +} diff --git a/common/src/main/resources/assets/cobblemon/shaders/core/particle_base.vsh b/common/src/main/resources/assets/cobblemon/shaders/core/particle_base.vsh new file mode 100644 index 0000000000..638f96b232 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/shaders/core/particle_base.vsh @@ -0,0 +1,24 @@ +#version 150 + +#moj_import + +in vec3 Position; +in vec2 UV0; +in vec4 Color; +in ivec2 UV2; + +uniform sampler2D Sampler2; + +uniform mat4 ModelViewMat; +uniform mat4 ProjMat; + +out float vertexDistance; +out vec2 texCoord0; +out vec4 vertexColor; + +void main() { + gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); + vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); + texCoord0 = UV0; + vertexColor = Color; +} diff --git a/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.fsh b/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.fsh new file mode 100644 index 0000000000..1046b361a7 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.fsh @@ -0,0 +1,25 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; +uniform sampler2D Sampler2; + +uniform vec4 ColorModulator; +uniform float FogStart; +uniform float FogEnd; +uniform vec4 FogColor; + +in float vertexDistance; +in vec2 texCoord0; +in vec4 vertexColor; + +out vec4 fragColor; + +void main() { + vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; + if (color.a < 0.5) { + color = vec4(1.0,0.0,1.0,1.0); + } + fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); +} diff --git a/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.json b/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.json new file mode 100644 index 0000000000..16752b13c0 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/shaders/core/particle_cutout.json @@ -0,0 +1,27 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "cobblemon:particle_base", + "fragment": "cobblemon:particle_add", + "attributes": [ + "Position", + "UV0", + "Color", + "UV2" + ], + "samplers": [ + {"name": "Sampler0"}, + {"name": "Sampler2"} + ], + "uniforms": [ + {"name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]}, + {"name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]}, + {"name": "ColorModulator", "type": "float", "count": 4, "values": [1.0, 1.0, 1.0, 1.0]}, + {"name": "FogStart", "type": "float", "count": 1, "values": [0.0]}, + {"name": "FogEnd", "type": "float", "count": 1, "values": [1.0]}, + {"name": "FogColor", "type": "float", "count": 4, "values": [0.0, 0.0, 0.0, 0.0]} + ] +} diff --git a/common/src/main/resources/assets/cobblemon/sounds.json b/common/src/main/resources/assets/cobblemon/sounds.json index 6ce15cad32..1b3624c8af 100644 --- a/common/src/main/resources/assets/cobblemon/sounds.json +++ b/common/src/main/resources/assets/cobblemon/sounds.json @@ -57,12 +57,26 @@ "poke_ball.hit": { "sounds": [ "cobblemon:pokeball/hit" ] }, + "poke_ball.throw": { + "sounds": [ + "cobblemon:pokeball/throw_1", + "cobblemon:pokeball/throw_2", + "cobblemon:pokeball/throw_3", + "cobblemon:pokeball/throw_4" + ] + }, + "poke_ball.trail": { + "sounds": [ "cobblemon:pokeball/trail" ] + }, "item.use": { "sounds": [ "cobblemon:use_item" ] }, "pokemon.can_evolve": { "sounds": [ "cobblemon:pokemon/evolution_notification"] }, + "evolution.evolve": { + "sounds": ["cobblemon:evolve"] + }, "pokemon.evolving": { "sounds": [ "cobblemon:pokemon/evolving"] }, @@ -171,6 +185,75 @@ "cobblemon:block/tumblestone/tumblestone_step_4" ] }, + "flamethrower": { + "sounds": [ "cobblemon:attacks/flamethrower" ] + }, + "effective": { + "sounds": [ "cobblemon:effective" ] + }, + "fuse": { + "sounds": [ "cobblemon:fuse" ] + }, + "notveryeffective": { + "sounds": [ "cobblemon:notveryeffective" ] + }, + "supereffective": { + "sounds": [ "cobblemon:supereffective" ] + }, + "impact.normal": { + "sounds": [ "cobblemon:attacks/impacts/impact_normal" ] + }, + "impact.ice": { + "sounds": [ "cobblemon:attacks/impacts/impact_ice" ] + }, + "impact.water": { + "sounds": [ "cobblemon:attacks/impacts/impact_water" ] + }, + "impact.fire": { + "sounds": [ "cobblemon:attacks/impacts/impact_fire" ] + }, + "impact.electric": { + "sounds": [ "cobblemon:attacks/impacts/impact_electric" ] + }, + "impact.grass": { + "sounds": [ "cobblemon:attacks/impacts/impact_grass" ] + }, + "impact.fighting": { + "sounds": [ "cobblemon:attacks/impacts/impact_fighting" ] + }, + "impact.poison": { + "sounds": [ "cobblemon:attacks/impacts/impact_poison" ] + }, + "impact.ground": { + "sounds": [ "cobblemon:attacks/impacts/impact_ground" ] + }, + "impact.flying": { + "sounds": [ "cobblemon:attacks/impacts/impact_flying" ] + }, + "impact.psychic": { + "sounds": [ "cobblemon:attacks/impacts/impact_psychic" ] + }, + "impact.bug": { + "sounds": [ "cobblemon:attacks/impacts/impact_bug" ] + }, + "impact.rock": { + "sounds": [ "cobblemon:attacks/impacts/impact_rock" ] + }, + "impact.ghost": { + "sounds": [ "cobblemon:attacks/impacts/impact_ghost" ] + }, + "impact.dragon": { + "sounds": [ "cobblemon:attacks/impacts/impact_dragon" ] + }, + "impact.dark": { + "sounds": [ "cobblemon:attacks/impacts/impact_dark" ] + }, + "impact.steel": { + "sounds": [ "cobblemon:attacks/impacts/impact_steel" ] + }, + "impact.fairy": { + "sounds": [ "cobblemon:attacks/impacts/impact_fairy" ] + }, "pokemon.bulbasaur.ambient": { "sounds": [ "cobblemon:pokemon/bulbasaur/bulbasaur_ambient" ] }, diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/flamethrower.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/flamethrower.ogg new file mode 100644 index 0000000000..81402f09d7 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/flamethrower.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_bug.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_bug.ogg new file mode 100644 index 0000000000..afec1b6431 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_bug.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dark.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dark.ogg new file mode 100644 index 0000000000..aa1516690d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dark.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dragon.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dragon.ogg new file mode 100644 index 0000000000..e09ddc9636 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_dragon.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_electric.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_electric.ogg new file mode 100644 index 0000000000..23644fff23 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_electric.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fairy.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fairy.ogg new file mode 100644 index 0000000000..830b251af8 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fairy.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fighting.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fighting.ogg new file mode 100644 index 0000000000..a6dab367b9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fighting.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fire.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fire.ogg new file mode 100644 index 0000000000..1ec7dd0cbc Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_fire.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_flying.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_flying.ogg new file mode 100644 index 0000000000..15247ce9ce Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_flying.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ghost.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ghost.ogg new file mode 100644 index 0000000000..05f269d09c Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ghost.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_grass.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_grass.ogg new file mode 100644 index 0000000000..fbda9ca121 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_grass.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ground.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ground.ogg new file mode 100644 index 0000000000..050701cb50 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ground.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ice.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ice.ogg new file mode 100644 index 0000000000..33ee6f4958 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_ice.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_normal.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_normal.ogg new file mode 100644 index 0000000000..7e42649b4d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_normal.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_poison.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_poison.ogg new file mode 100644 index 0000000000..74edd63584 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_poison.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_psychic.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_psychic.ogg new file mode 100644 index 0000000000..785ee206ad Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_psychic.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_rock.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_rock.ogg new file mode 100644 index 0000000000..9297d0a6d4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_rock.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_steel.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_steel.ogg new file mode 100644 index 0000000000..68f618a5b0 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_steel.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_water.ogg b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_water.ogg new file mode 100644 index 0000000000..25b7bb4642 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/attacks/impacts/impact_water.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/effective.ogg b/common/src/main/resources/assets/cobblemon/sounds/effective.ogg new file mode 100644 index 0000000000..9f1e0580a9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/effective.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/evolve.ogg b/common/src/main/resources/assets/cobblemon/sounds/evolve.ogg new file mode 100644 index 0000000000..1899c973cf Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/evolve.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/fuse.ogg b/common/src/main/resources/assets/cobblemon/sounds/fuse.ogg new file mode 100644 index 0000000000..5b9b16552e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/fuse.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/notveryeffective.ogg b/common/src/main/resources/assets/cobblemon/sounds/notveryeffective.ogg new file mode 100644 index 0000000000..ff69b7d552 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/notveryeffective.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/send_out.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/send_out.ogg index 6753f39012..c01ca810ed 100644 Binary files a/common/src/main/resources/assets/cobblemon/sounds/pokeball/send_out.ogg and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/send_out.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_1.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_1.ogg new file mode 100644 index 0000000000..5d0d399309 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_1.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_2.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_2.ogg new file mode 100644 index 0000000000..e329f23ffd Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_2.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_3.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_3.ogg new file mode 100644 index 0000000000..7f6eb0574a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_3.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_4.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_4.ogg new file mode 100644 index 0000000000..da12e19c2a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/throw_4.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/pokeball/trail.ogg b/common/src/main/resources/assets/cobblemon/sounds/pokeball/trail.ogg new file mode 100644 index 0000000000..fc50abaedd Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/pokeball/trail.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/sounds/supereffective.ogg b/common/src/main/resources/assets/cobblemon/sounds/supereffective.ogg new file mode 100644 index 0000000000..0f0a5cefaa Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/sounds/supereffective.ogg differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment.png rename to common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer.png diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_particle.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_particle.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_particle.png rename to common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_particle.png diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_scanning.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_scanning.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_scanning.png rename to common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_scanning.png diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_scanning.png.mcmeta b/common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_scanning.png.mcmeta similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_compartment_scanning.png.mcmeta rename to common/src/main/resources/assets/cobblemon/textures/block/fossil_analyzer_scanning.png.mcmeta diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_base.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_base.png deleted file mode 100644 index 246acc8766..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_base.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_bubbling.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_bubbling.png deleted file mode 100644 index 482b17ede0..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_bubbling.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_scanning.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_scanning.png deleted file mode 100644 index 6fc914aa2b..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_scanning.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube.png deleted file mode 100644 index 61b1136caf..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png b/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png deleted file mode 100644 index 7ccae13378..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor.png b/common/src/main/resources/assets/cobblemon/textures/block/monitor.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor.png rename to common/src/main/resources/assets/cobblemon/textures/block/monitor.png diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_particle.png b/common/src/main/resources/assets/cobblemon/textures/block/monitor_particle.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_particle.png rename to common/src/main/resources/assets/cobblemon/textures/block/monitor_particle.png diff --git a/common/src/main/resources/assets/cobblemon/textures/block/monitor_scanning.png b/common/src/main/resources/assets/cobblemon/textures/block/monitor_scanning.png new file mode 100644 index 0000000000..7b655e9eed Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/monitor_scanning.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_bubbling.png.mcmeta b/common/src/main/resources/assets/cobblemon/textures/block/monitor_scanning.png.mcmeta similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_fluid_bubbling.png.mcmeta rename to common/src/main/resources/assets/cobblemon/textures/block/monitor_scanning.png.mcmeta diff --git a/common/src/main/resources/assets/cobblemon/textures/block/nether_fire_stone_ore.png b/common/src/main/resources/assets/cobblemon/textures/block/nether_fire_stone_ore.png new file mode 100644 index 0000000000..c34dfbf3df Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/nether_fire_stone_ore.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank.png new file mode 100644 index 0000000000..4b8050095b Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_all.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_all.png new file mode 100644 index 0000000000..ca299b09ac Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_all.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png new file mode 100644 index 0000000000..e8f2fb36e7 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png.mcmeta b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png.mcmeta similarity index 54% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png.mcmeta rename to common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png.mcmeta index 5169aabdc2..6e9f778d47 100644 --- a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_animated.png.mcmeta +++ b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_animated.png.mcmeta @@ -1,5 +1,5 @@ { "animation": { - "frametime": 8 + "frametime": 80 } } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_base.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_base.png new file mode 100644 index 0000000000..438c507452 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_base.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_bubbling.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_bubbling.png new file mode 100644 index 0000000000..f0abe43884 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_bubbling.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_scanning.png.mcmeta b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_bubbling.png.mcmeta similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_monitor_scanning.png.mcmeta rename to common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_fluid_bubbling.png.mcmeta diff --git a/common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_particle.png b/common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_particle.png similarity index 100% rename from common/src/main/resources/assets/cobblemon/textures/block/fossil_tube_particle.png rename to common/src/main/resources/assets/cobblemon/textures/block/restoration_tank_particle.png diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/bygone_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/bygone_pottery_pattern.png new file mode 100644 index 0000000000..82f0d0cbfd Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/bygone_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/capture_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/capture_pottery_pattern.png new file mode 100644 index 0000000000..566a0ad861 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/capture_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/dome_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/dome_pottery_pattern.png new file mode 100644 index 0000000000..b01298a780 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/dome_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/helix_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/helix_pottery_pattern.png new file mode 100644 index 0000000000..b8f732782c Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/helix_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/nostalgic_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/nostalgic_pottery_pattern.png new file mode 100644 index 0000000000..57253cf568 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/nostalgic_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/suspicious_pottery_pattern.png b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/suspicious_pottery_pattern.png new file mode 100644 index 0000000000..281a6e2b9e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/entity/decorated_pot/suspicious_pottery_pattern.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/fossils/embryo.png b/common/src/main/resources/assets/cobblemon/textures/fossils/embryo.png new file mode 100644 index 0000000000..f23b601d9a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/fossils/embryo.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/LICENSE b/common/src/main/resources/assets/cobblemon/textures/item/fossils/LICENSE new file mode 100644 index 0000000000..e9bf32b4a5 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/textures/item/fossils/LICENSE @@ -0,0 +1,52 @@ +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions +a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. +b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. +c. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. +d. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. +e. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. +f. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. +g. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. +h. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. +i. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: +a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; +b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; +c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, +d. to Distribute and Publicly Perform Adaptations. +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights set forth in Section 4(d). + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: +a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. +b. You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in connection with the exchange of copyrighted works. +c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and, (iv) consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. +d. For the avoidance of doubt: +i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; +ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(b) and otherwise waives the right to collect royalties through any statutory or compulsory licensing scheme; and, +iii. Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License that is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(c). +e. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. +5. Representations, Warranties and Disclaimer +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +7. Termination +a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. +b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. +8. Miscellaneous +a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. +b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. +c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. +d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. +e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. +f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. +Creative Commons Notice + +Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. + +Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. + +Creative Commons may be contacted at http://creativecommons.org/. diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/armor_fossil.png b/common/src/main/resources/assets/cobblemon/textures/item/fossils/armor_fossil.png index 3187c0e2dd..d9a7c5df4e 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/fossils/armor_fossil.png and b/common/src/main/resources/assets/cobblemon/textures/item/fossils/armor_fossil.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/claw_fossil.png b/common/src/main/resources/assets/cobblemon/textures/item/fossils/claw_fossil.png index 7e204c1be9..e43c1b837d 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/fossils/claw_fossil.png and b/common/src/main/resources/assets/cobblemon/textures/item/fossils/claw_fossil.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/dome_fossil.png b/common/src/main/resources/assets/cobblemon/textures/item/fossils/dome_fossil.png index 77985b5f61..5a64fefd49 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/fossils/dome_fossil.png and b/common/src/main/resources/assets/cobblemon/textures/item/fossils/dome_fossil.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/helix_fossil.png b/common/src/main/resources/assets/cobblemon/textures/item/fossils/helix_fossil.png index c639b791bb..9c07cb7f28 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/fossils/helix_fossil.png and b/common/src/main/resources/assets/cobblemon/textures/item/fossils/helix_fossil.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/fossils/root_fossil.png b/common/src/main/resources/assets/cobblemon/textures/item/fossils/root_fossil.png index 90cd69b306..67d3fb4dc3 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/fossils/root_fossil.png and b/common/src/main/resources/assets/cobblemon/textures/item/fossils/root_fossil.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/poke_balls/models/ancient_origin_ball.png b/common/src/main/resources/assets/cobblemon/textures/item/poke_balls/models/ancient_origin_ball.png index a9d223e64e..d10fe4f3c9 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/poke_balls/models/ancient_origin_ball.png and b/common/src/main/resources/assets/cobblemon/textures/item/poke_balls/models/ancient_origin_ball.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/sherds/suspicious_sherd.png b/common/src/main/resources/assets/cobblemon/textures/item/sherds/suspicious_sherd.png new file mode 100644 index 0000000000..d7fd14d596 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/item/sherds/suspicious_sherd.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/trims/automaton_armor_trim_smithing_template.png b/common/src/main/resources/assets/cobblemon/textures/item/trims/automaton_armor_trim_smithing_template.png new file mode 100644 index 0000000000..ff0c2fc815 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/item/trims/automaton_armor_trim_smithing_template.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/afterspark.png b/common/src/main/resources/assets/cobblemon/textures/particle/afterspark.png new file mode 100644 index 0000000000..611608cc08 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/afterspark.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/battle/divesendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/battle/divesendflash.png new file mode 100644 index 0000000000..348ab2fa2b Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/battle/divesendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/casual/divesendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/casual/divesendcasual.png new file mode 100644 index 0000000000..ff8a8455c8 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/casual/divesendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsendsparkle.png new file mode 100644 index 0000000000..06c41d07d0 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparkle.png new file mode 100644 index 0000000000..81c2e1142f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparks.png new file mode 100644 index 0000000000..d85362da6c Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/diveball/diveballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/battle/fastsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/battle/fastsendflash.png new file mode 100644 index 0000000000..ddcc6988a4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/battle/fastsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/casual/fastsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/casual/fastsendcasual.png new file mode 100644 index 0000000000..3284142c48 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/casual/fastsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsendsparkle.png new file mode 100644 index 0000000000..6d3eeca5c7 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparkle.png new file mode 100644 index 0000000000..acccf7a826 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparks.png new file mode 100644 index 0000000000..e0df3b6f2f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/fastball/fastballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/battle/friendsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/battle/friendsendflash.png new file mode 100644 index 0000000000..630d3db9f3 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/battle/friendsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/casual/friendsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/casual/friendsendcasual.png new file mode 100644 index 0000000000..78b3cb5a5f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/casual/friendsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsendsparkle.png new file mode 100644 index 0000000000..8096cd5c5a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparkle.png new file mode 100644 index 0000000000..b5b45829a5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparks.png new file mode 100644 index 0000000000..3a85fc6c20 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/friendball/friendballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/battle/greatsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/battle/greatsendflash.png new file mode 100644 index 0000000000..2bb493b78f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/battle/greatsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/casual/greatsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/casual/greatsendcasual.png new file mode 100644 index 0000000000..fecdf27f29 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/casual/greatsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsendsparkle.png new file mode 100644 index 0000000000..a3444b45fa Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparkle.png new file mode 100644 index 0000000000..89ef524271 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparks.png new file mode 100644 index 0000000000..faf5c04565 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/greatball/greatballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/battle/healsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/battle/healsendflash.png new file mode 100644 index 0000000000..ecd6dbef71 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/battle/healsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/casual/healsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/casual/healsendcasual.png new file mode 100644 index 0000000000..b95aabe943 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/casual/healsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsendsparkle.png new file mode 100644 index 0000000000..43d74fcb31 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparkle.png new file mode 100644 index 0000000000..9c4aa310fb Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparks.png new file mode 100644 index 0000000000..e33d7bf374 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/healball/healballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/battle/heavysendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/battle/heavysendflash.png new file mode 100644 index 0000000000..a2128de61f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/battle/heavysendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/casual/heavysendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/casual/heavysendcasual.png new file mode 100644 index 0000000000..d4927fba69 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/casual/heavysendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsendsparkle.png new file mode 100644 index 0000000000..557c412fbc Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparkle.png new file mode 100644 index 0000000000..1b126fb998 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparks.png new file mode 100644 index 0000000000..c67eba9490 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/heavyball/heavyballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/battle/levelsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/battle/levelsendflash.png new file mode 100644 index 0000000000..07010c7590 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/battle/levelsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/casual/levelsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/casual/levelsendcasual.png new file mode 100644 index 0000000000..9b61d11dad Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/casual/levelsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsendsparkle.png new file mode 100644 index 0000000000..95b90e3a3a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparkle.png new file mode 100644 index 0000000000..116e97bde6 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparks.png new file mode 100644 index 0000000000..c89471320d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/levelball/levelballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/battle/lovesendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/battle/lovesendflash.png new file mode 100644 index 0000000000..2d59117248 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/battle/lovesendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/casual/lovesendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/casual/lovesendcasual.png new file mode 100644 index 0000000000..6229b46795 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/casual/lovesendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsendsparkle.png new file mode 100644 index 0000000000..78350648f1 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparkle.png new file mode 100644 index 0000000000..99566ff679 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparks.png new file mode 100644 index 0000000000..99566ff679 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/loveball/loveballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/battle/luresendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/battle/luresendflash.png new file mode 100644 index 0000000000..200e68f1f2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/battle/luresendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/casual/luresendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/casual/luresendcasual.png new file mode 100644 index 0000000000..ba6f8f1613 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/casual/luresendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsendsparkle.png new file mode 100644 index 0000000000..3342061540 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparkle.png new file mode 100644 index 0000000000..acccf7a826 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparks.png new file mode 100644 index 0000000000..560a730f97 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/lureball/lureballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/battle/luxurysendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/battle/luxurysendflash.png new file mode 100644 index 0000000000..60b2e5d3cb Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/battle/luxurysendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/casual/luxurysendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/casual/luxurysendcasual.png new file mode 100644 index 0000000000..2b1bfe511e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/casual/luxurysendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsendsparkle.png new file mode 100644 index 0000000000..4e23389570 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparkle.png new file mode 100644 index 0000000000..c03f7f8eab Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparks.png new file mode 100644 index 0000000000..152e829519 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/luxuryball/luxuryballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/battle/mastersendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/battle/mastersendflash.png new file mode 100644 index 0000000000..d4dcfa3d75 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/battle/mastersendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/casual/mastersendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/casual/mastersendcasual.png new file mode 100644 index 0000000000..927c427efd Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/casual/mastersendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsendsparkle.png new file mode 100644 index 0000000000..57894c2d35 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparkle.png new file mode 100644 index 0000000000..b4ccbe37a4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparks.png new file mode 100644 index 0000000000..53b6b83237 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/masterball/masterballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/battle/moonsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/battle/moonsendflash.png new file mode 100644 index 0000000000..745094bca2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/battle/moonsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/casual/moonsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/casual/moonsendcasual.png new file mode 100644 index 0000000000..4a0853fd88 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/casual/moonsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsendsparkle.png new file mode 100644 index 0000000000..c2264ead8d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparkle.png new file mode 100644 index 0000000000..6319228885 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparks.png new file mode 100644 index 0000000000..fb7d3b1b7e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/moonball/moonballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/battle/nestsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/battle/nestsendflash.png new file mode 100644 index 0000000000..c14fa8ff8f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/battle/nestsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/casual/nestsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/casual/nestsendcasual.png new file mode 100644 index 0000000000..6f3299cd15 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/casual/nestsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsendsparkle.png new file mode 100644 index 0000000000..a9cd5479ac Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparkle.png new file mode 100644 index 0000000000..532d38647b Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparks.png new file mode 100644 index 0000000000..8158ba4cec Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/nestball/nestballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/battle/netsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/battle/netsendflash.png new file mode 100644 index 0000000000..4326c7ea1f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/battle/netsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/casual/netsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/casual/netsendcasual.png new file mode 100644 index 0000000000..33392e3133 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/casual/netsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsendsparkle.png new file mode 100644 index 0000000000..1a841d0e29 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparkle.png new file mode 100644 index 0000000000..4cc19173c5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparks.png new file mode 100644 index 0000000000..a3207a3f20 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/netball/netballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/battle/parksendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/battle/parksendflash.png new file mode 100644 index 0000000000..3034f61625 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/battle/parksendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/casual/parksendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/casual/parksendcasual.png new file mode 100644 index 0000000000..2330b601f9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/casual/parksendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsendsparkle.png new file mode 100644 index 0000000000..ca1fe1275f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparkle.png new file mode 100644 index 0000000000..7f81423159 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparks.png new file mode 100644 index 0000000000..635e9f6a88 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/parkball/parkballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsendsparkle.png new file mode 100644 index 0000000000..e84e056517 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparkle.png new file mode 100644 index 0000000000..acccf7a826 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparks.png new file mode 100644 index 0000000000..e0df3b6f2f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/ballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/battle/sendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/battle/sendflash.png new file mode 100644 index 0000000000..46e58d62d4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/battle/sendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/casual/sendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/casual/sendcasual.png new file mode 100644 index 0000000000..5df80026ec Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/pokeball/casual/sendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/battle/premiersendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/battle/premiersendflash.png new file mode 100644 index 0000000000..a03f06df1b Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/battle/premiersendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/casual/premiersendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/casual/premiersendcasual.png new file mode 100644 index 0000000000..c186d961f0 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/casual/premiersendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsendsparkle.png new file mode 100644 index 0000000000..d7ffa5c316 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparkle.png new file mode 100644 index 0000000000..7731976d6f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparks.png new file mode 100644 index 0000000000..ca80408e13 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/premierball/premierballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/battle/quicksendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/battle/quicksendflash.png new file mode 100644 index 0000000000..58a6056e46 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/battle/quicksendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/casual/quicksendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/casual/quicksendcasual.png new file mode 100644 index 0000000000..0a96a55157 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/casual/quicksendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsendsparkle.png new file mode 100644 index 0000000000..6f545604d8 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparkle.png new file mode 100644 index 0000000000..13e9f42e3a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparks.png new file mode 100644 index 0000000000..910403dafd Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/quickball/quickballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/battle/repeatsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/battle/repeatsendflash.png new file mode 100644 index 0000000000..bc7ea0960f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/battle/repeatsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/casual/repeatsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/casual/repeatsendcasual.png new file mode 100644 index 0000000000..67781c27d2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/casual/repeatsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsendsparkle.png new file mode 100644 index 0000000000..19a3b0bb9d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparkle.png new file mode 100644 index 0000000000..7731976d6f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparks.png new file mode 100644 index 0000000000..ca80408e13 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/repeatball/repeatballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/battle/safarisendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/battle/safarisendflash.png new file mode 100644 index 0000000000..8c1cafb330 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/battle/safarisendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/casual/safarisendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/casual/safarisendcasual.png new file mode 100644 index 0000000000..5292064d40 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/casual/safarisendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsendsparkle.png new file mode 100644 index 0000000000..f69caecae5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparkle.png new file mode 100644 index 0000000000..11f9c26e37 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparks.png new file mode 100644 index 0000000000..eb2c614976 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/safariball/safariballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/battle/sportsendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/battle/sportsendflash.png new file mode 100644 index 0000000000..0c22f4d116 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/battle/sportsendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/casual/sportsendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/casual/sportsendcasual.png new file mode 100644 index 0000000000..253d07ab5d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/casual/sportsendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsendsparkle.png new file mode 100644 index 0000000000..576908c720 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparkle.png new file mode 100644 index 0000000000..088803b490 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparks.png new file mode 100644 index 0000000000..94bc305e6d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/sportball/sportballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/battle/timersendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/battle/timersendflash.png new file mode 100644 index 0000000000..2f8d0004b9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/battle/timersendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/casual/timersendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/casual/timersendcasual.png new file mode 100644 index 0000000000..14340a7668 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/casual/timersendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsendsparkle.png new file mode 100644 index 0000000000..c7cc9b65ea Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparkle.png new file mode 100644 index 0000000000..268634d990 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparks.png new file mode 100644 index 0000000000..9f5846c37f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/timerball/timerballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/battle/ultrasendflash.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/battle/ultrasendflash.png new file mode 100644 index 0000000000..32fa6a75e8 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/battle/ultrasendflash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/casual/ultrasendcasual.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/casual/ultrasendcasual.png new file mode 100644 index 0000000000..f16334abf9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/casual/ultrasendcasual.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsendsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsendsparkle.png new file mode 100644 index 0000000000..0f3b29d8c0 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsendsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparkle.png new file mode 100644 index 0000000000..e9dcff97b9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparks.png new file mode 100644 index 0000000000..18d818eb51 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/balls/ultraball/ultraballsparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/bigsparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/bigsparkle.png new file mode 100644 index 0000000000..755ba5d7ca Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/bigsparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/bubble_large.png b/common/src/main/resources/assets/cobblemon/textures/particle/bubble_large.png new file mode 100644 index 0000000000..24e2b70664 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/bubble_large.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/capturesparks.png b/common/src/main/resources/assets/cobblemon/textures/particle/capturesparks.png new file mode 100644 index 0000000000..cf66f9154b Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/capturesparks.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/capturestar.png b/common/src/main/resources/assets/cobblemon/textures/particle/capturestar.png new file mode 100644 index 0000000000..97729ba67c Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/capturestar.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/crit.png b/common/src/main/resources/assets/cobblemon/textures/particle/crit.png new file mode 100644 index 0000000000..fc94055b3a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/crit.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/cut.png b/common/src/main/resources/assets/cobblemon/textures/particle/cut.png new file mode 100644 index 0000000000..8e284e14af Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/cut.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/drip.png b/common/src/main/resources/assets/cobblemon/textures/particle/drip.png new file mode 100644 index 0000000000..efc7ecb8e2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/drip.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/electricity.png b/common/src/main/resources/assets/cobblemon/textures/particle/electricity.png new file mode 100644 index 0000000000..600e6a3b53 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/electricity.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/energyball.png b/common/src/main/resources/assets/cobblemon/textures/particle/energyball.png new file mode 100644 index 0000000000..b42dd78222 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/energyball.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/fang.png b/common/src/main/resources/assets/cobblemon/textures/particle/fang.png new file mode 100644 index 0000000000..125f7f52b3 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/fang.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/fist.png b/common/src/main/resources/assets/cobblemon/textures/particle/fist.png new file mode 100644 index 0000000000..9304189f21 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/fist.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/foot.png b/common/src/main/resources/assets/cobblemon/textures/particle/foot.png new file mode 100644 index 0000000000..9430b410cf Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/foot.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/glowing_dots_cyan.png b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_dots_cyan.png new file mode 100644 index 0000000000..49f8e3753a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_dots_cyan.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/glowing_smoke_cyan.png b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_smoke_cyan.png new file mode 100644 index 0000000000..1a4906d6ea Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_smoke_cyan.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/glowing_sparkle_yellow.png b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_sparkle_yellow.png new file mode 100644 index 0000000000..3caf7235ab Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/glowing_sparkle_yellow.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuiafterspark.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuiafterspark.png new file mode 100644 index 0000000000..97cfd7608e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuiafterspark.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuicapturestar.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuicapturestar.png new file mode 100644 index 0000000000..7f2d724bd6 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuicapturestar.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuipuff.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuipuff.png new file mode 100644 index 0000000000..5e6612228d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuipuff.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuisendspark.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuisendspark.png new file mode 100644 index 0000000000..17e3a761ad Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuisendspark.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuispark.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuispark.png new file mode 100644 index 0000000000..45a339d626 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuispark.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hisuitrail.png b/common/src/main/resources/assets/cobblemon/textures/particle/hisuitrail.png new file mode 100644 index 0000000000..8461736569 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hisuitrail.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/hit.png b/common/src/main/resources/assets/cobblemon/textures/particle/hit.png new file mode 100644 index 0000000000..9c9e470109 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/hit.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-bug.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-bug.png new file mode 100644 index 0000000000..29dedebca5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-bug.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-dark.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-dark.png new file mode 100644 index 0000000000..48d5bf14f5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-dark.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-dragon.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-dragon.png new file mode 100644 index 0000000000..e983a614be Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-dragon.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-electric.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-electric.png new file mode 100644 index 0000000000..ddc0458642 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-electric.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-fairy.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fairy.png new file mode 100644 index 0000000000..3dd6be1b37 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fairy.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-fighting.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fighting.png new file mode 100644 index 0000000000..108a5bf2ff Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fighting.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-fire.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fire.png new file mode 100644 index 0000000000..9b68b3c26d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-fire.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-flying.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-flying.png new file mode 100644 index 0000000000..6cc87ec681 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-flying.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-ghost.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ghost.png new file mode 100644 index 0000000000..cc470d71c9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ghost.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-grass.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-grass.png new file mode 100644 index 0000000000..e604854140 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-grass.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-ground.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ground.png new file mode 100644 index 0000000000..ee82beb7d5 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ground.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-ice.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ice.png new file mode 100644 index 0000000000..f069afe4e2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-ice.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-normal.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-normal.png new file mode 100644 index 0000000000..fad3b597fb Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-normal.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-poison.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-poison.png new file mode 100644 index 0000000000..42ffb3a822 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-poison.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-psychic.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-psychic.png new file mode 100644 index 0000000000..0550ffbdae Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-psychic.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-rock.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-rock.png new file mode 100644 index 0000000000..143f266f08 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-rock.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-steel.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-steel.png new file mode 100644 index 0000000000..f399dc6396 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-steel.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/impact-water.png b/common/src/main/resources/assets/cobblemon/textures/particle/impact-water.png new file mode 100644 index 0000000000..fd0ca2ecad Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/impact-water.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/leaf.png b/common/src/main/resources/assets/cobblemon/textures/particle/leaf.png new file mode 100644 index 0000000000..e076318e93 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/leaf.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/maus.png b/common/src/main/resources/assets/cobblemon/textures/particle/maus.png new file mode 100644 index 0000000000..4911e60714 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/maus.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/obscuringsmoke.png b/common/src/main/resources/assets/cobblemon/textures/particle/obscuringsmoke.png new file mode 100644 index 0000000000..a2fa10c43a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/obscuringsmoke.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/ooze.png b/common/src/main/resources/assets/cobblemon/textures/particle/ooze.png new file mode 100644 index 0000000000..269ac5f790 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/ooze.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/orb.png b/common/src/main/resources/assets/cobblemon/textures/particle/orb.png new file mode 100644 index 0000000000..cdef2595c2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/orb.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/pokeball_smoke.png b/common/src/main/resources/assets/cobblemon/textures/particle/pokeball_smoke.png new file mode 100644 index 0000000000..1a4906d6ea Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/pokeball_smoke.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/ripple.png b/common/src/main/resources/assets/cobblemon/textures/particle/ripple.png new file mode 100644 index 0000000000..1e0242c6b3 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/ripple.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_1.png b/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_1.png new file mode 100644 index 0000000000..075f3b9a68 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_1.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_2.png b/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_2.png new file mode 100644 index 0000000000..fe033a437e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/sand_tomb_2.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/scratch.png b/common/src/main/resources/assets/cobblemon/textures/particle/scratch.png new file mode 100644 index 0000000000..fcb903f257 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/scratch.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/shiny.png b/common/src/main/resources/assets/cobblemon/textures/particle/shiny.png new file mode 100644 index 0000000000..905bf30122 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/shiny.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw.png b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw.png new file mode 100644 index 0000000000..c4201a76e4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw_square.png b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw_square.png new file mode 100644 index 0000000000..e1a9d83aaa Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_bw_square.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/shiny_send_out.gif b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_send_out.gif new file mode 100644 index 0000000000..107436689e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_send_out.gif differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/shiny_square.png b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_square.png new file mode 100644 index 0000000000..a61593ed9a Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/shiny_square.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/slash.png b/common/src/main/resources/assets/cobblemon/textures/particle/slash.png new file mode 100644 index 0000000000..73d973cdf4 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/slash.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/sparkle.png b/common/src/main/resources/assets/cobblemon/textures/particle/sparkle.png new file mode 100644 index 0000000000..d8ee6a4f4d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/sparkle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/speedlines.png b/common/src/main/resources/assets/cobblemon/textures/particle/speedlines.png new file mode 100644 index 0000000000..304677c276 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/speedlines.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/star.png b/common/src/main/resources/assets/cobblemon/textures/particle/star.png new file mode 100644 index 0000000000..75c89cd7cc Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/star.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/stat_up.png b/common/src/main/resources/assets/cobblemon/textures/particle/stat_up.png new file mode 100644 index 0000000000..d9d72ca2fb Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/stat_up.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/swipe.png b/common/src/main/resources/assets/cobblemon/textures/particle/swipe.png new file mode 100644 index 0000000000..38049d8f70 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/swipe.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/waterjet.png b/common/src/main/resources/assets/cobblemon/textures/particle/waterjet.png new file mode 100644 index 0000000000..cbf21452b3 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/waterjet.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/waterjet_head.png b/common/src/main/resources/assets/cobblemon/textures/particle/waterjet_head.png new file mode 100644 index 0000000000..2a354e578d Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/waterjet_head.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/particle/white_bubble.png b/common/src/main/resources/assets/cobblemon/textures/particle/white_bubble.png new file mode 100644 index 0000000000..8c325bf0a6 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/particle/white_bubble.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/poke_balls/ancient_origin_ball.png b/common/src/main/resources/assets/cobblemon/textures/poke_balls/ancient_origin_ball.png new file mode 100644 index 0000000000..d10fe4f3c9 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/poke_balls/ancient_origin_ball.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise.png index cc570c4c26..f5c355bc4a 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise_shiny.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise_shiny.png index 3f5fdde2f6..827ae5a4b8 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise_shiny.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0009_blastoise/blastoise_shiny.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/black_tumblestone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/black_tumblestone.png deleted file mode 100644 index 99459501bc..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/black_tumblestone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dawn_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dawn_stone.png deleted file mode 100644 index 17ef28fb27..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dawn_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dusk_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dusk_stone.png deleted file mode 100644 index e878b28acc..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/dusk_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/fire_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/fire_stone.png deleted file mode 100644 index dab3e79fca..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/fire_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/ice_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/ice_stone.png deleted file mode 100644 index 2a426ee5f3..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/ice_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/leaf_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/leaf_stone.png deleted file mode 100644 index 2faec2b745..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/leaf_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/moon_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/moon_stone.png deleted file mode 100644 index bc6d5ead0a..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/moon_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/shiny_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/shiny_stone.png deleted file mode 100644 index 241ad6c0fc..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/shiny_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sky_tumblestone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sky_tumblestone.png deleted file mode 100644 index ab8be1a974..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sky_tumblestone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sun_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sun_stone.png deleted file mode 100644 index 6dbd9fc8a4..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/sun_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/thunder_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/thunder_stone.png deleted file mode 100644 index ed73906645..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/thunder_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/tumblestone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/tumblestone.png deleted file mode 100644 index 82cf328c6b..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/tumblestone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/water_stone.png b/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/water_stone.png deleted file mode 100644 index 005893a5a2..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/color_palettes/water_stone.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique.png deleted file mode 100644 index 00e24a3719..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique_leggings.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique_leggings.png deleted file mode 100644 index 41c047a8a7..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/antique_leggings.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton.png index c07735aa2e..9e89903bc2 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton.png and b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton_leggings.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton_leggings.png index 7b433c4f44..68c3abb285 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton_leggings.png and b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/automaton_leggings.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic.png deleted file mode 100644 index edf1c146af..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic.png and /dev/null differ diff --git a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic_leggings.png b/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic_leggings.png deleted file mode 100644 index 9d5acf86ec..0000000000 Binary files a/common/src/main/resources/assets/cobblemon/textures/trims/models/armor/oceanic_leggings.png and /dev/null differ diff --git a/common/src/main/resources/assets/minecraft/atlases/armor_trims.json b/common/src/main/resources/assets/minecraft/atlases/armor_trims.json index 867fd78be6..8b8d1cf592 100644 --- a/common/src/main/resources/assets/minecraft/atlases/armor_trims.json +++ b/common/src/main/resources/assets/minecraft/atlases/armor_trims.json @@ -1,48 +1,23 @@ { "sources": [ { - "type": "paletted_permutations", + "type": "minecraft:paletted_permutations", "textures": [ - "trims/models/armor/coast", - "trims/models/armor/coast_leggings", - "trims/models/armor/sentry", - "trims/models/armor/sentry_leggings", - "trims/models/armor/dune", - "trims/models/armor/dune_leggings", - "trims/models/armor/wild", - "trims/models/armor/wild_leggings", - "trims/models/armor/ward", - "trims/models/armor/ward_leggings", - "trims/models/armor/eye", - "trims/models/armor/eye_leggings", - "trims/models/armor/vex", - "trims/models/armor/vex_leggings", - "trims/models/armor/tide", - "trims/models/armor/tide_leggings", - "trims/models/armor/snout", - "trims/models/armor/snout_leggings", - "trims/models/armor/rib", - "trims/models/armor/rib_leggings", - "trims/models/armor/silence", - "trims/models/armor/silence_leggings", - "trims/models/armor/spire", - "trims/models/armor/spire_leggings" + "cobblemon:trims/models/armor/automaton", + "cobblemon:trims/models/armor/automaton_leggings" ], "palette_key": "trims/color_palettes/trim_palette", "permutations": { - "fire_stone": "cobblemon:trims/color_palettes/fire_stone", - "water_stone": "cobblemon:trims/color_palettes/water_stone", - "thunder_stone": "cobblemon:trims/color_palettes/thunder_stone", - "leaf_stone": "cobblemon:trims/color_palettes/leaf_stone", - "moon_stone": "cobblemon:trims/color_palettes/moon_stone", - "sun_stone": "cobblemon:trims/color_palettes/sun_stone", - "shiny_stone": "cobblemon:trims/color_palettes/shiny_stone", - "dusk_stone": "cobblemon:trims/color_palettes/dusk_stone", - "dawn_stone": "cobblemon:trims/color_palettes/dawn_stone", - "ice_stone": "cobblemon:trims/color_palettes/ice_stone", - "tumblestone": "cobblemon:trims/color_palettes/tumblestone", - "black_tumblestone": "cobblemon:trims/color_palettes/black_tumblestone", - "sky_tumblestone": "cobblemon:trims/color_palettes/sky_tumblestone" + "quartz": "trims/color_palettes/quartz", + "iron": "trims/color_palettes/iron", + "gold": "trims/color_palettes/gold", + "diamond": "trims/color_palettes/diamond", + "netherite": "trims/color_palettes/netherite", + "redstone": "trims/color_palettes/redstone", + "copper": "trims/color_palettes/copper", + "emerald": "trims/color_palettes/emerald", + "lapis": "trims/color_palettes/lapis", + "amethyst": "trims/color_palettes/amethyst" } } ] diff --git a/common/src/main/resources/assets/minecraft/atlases/blocks.json b/common/src/main/resources/assets/minecraft/atlases/blocks.json deleted file mode 100644 index 825ecf83d0..0000000000 --- a/common/src/main/resources/assets/minecraft/atlases/blocks.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "sources": [ - { - "type": "paletted_permutations", - "textures": [ - "trims/items/leggings_trim", - "trims/items/chestplate_trim", - "trims/items/helmet_trim", - "trims/items/boots_trim" - ], - "palette_key": "trims/color_palettes/trim_palette", - "permutations": { - "fire_stone": "cobblemon:trims/color_palettes/fire_stone", - "water_stone": "cobblemon:trims/color_palettes/water_stone", - "thunder_stone": "cobblemon:trims/color_palettes/thunder_stone", - "leaf_stone": "cobblemon:trims/color_palettes/leaf_stone", - "moon_stone": "cobblemon:trims/color_palettes/moon_stone", - "sun_stone": "cobblemon:trims/color_palettes/sun_stone", - "shiny_stone": "cobblemon:trims/color_palettes/shiny_stone", - "dusk_stone": "cobblemon:trims/color_palettes/dusk_stone", - "dawn_stone": "cobblemon:trims/color_palettes/dawn_stone", - "ice_stone": "cobblemon:trims/color_palettes/ice_stone", - "tumblestone": "cobblemon:trims/color_palettes/tumblestone", - "black_tumblestone": "cobblemon:trims/color_palettes/black_tumblestone", - "sky_tumblestone": "cobblemon:trims/color_palettes/sky_tumblestone" - } - } - ] -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/chainmail_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/chainmail_chestplate.json deleted file mode 100644 index 9cefbac775..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/chainmail_chestplate.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/chainmail_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_iron_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/chainmail_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_netherite_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_gold_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_diamond_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/chainmail_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/chainmail_chestplate" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/diamond_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/diamond_chestplate.json deleted file mode 100644 index dd874aef99..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/diamond_chestplate.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/diamond_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/diamond_chestplate_iron_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/diamond_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/diamond_chestplate_netherite_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/diamond_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/diamond_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/diamond_chestplate_gold_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/diamond_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/diamond_chestplate_diamond_darker_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/diamond_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/diamond_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/diamond_chestplate" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/golden_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/golden_chestplate.json deleted file mode 100644 index 09c60312e6..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/golden_chestplate.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/golden_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/golden_chestplate_iron_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/golden_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/golden_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/golden_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/golden_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/golden_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/golden_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/golden_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/golden_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/golden_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/golden_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/golden_chestplate_netherite_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/golden_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/golden_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/golden_chestplate_gold_darker_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/golden_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/golden_chestplate_diamond_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/golden_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/golden_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/golden_chestplate" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/iron_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/iron_chestplate.json deleted file mode 100644 index 1675f4f66e..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/iron_chestplate.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/iron_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/iron_chestplate_iron_darker_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/iron_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/iron_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/iron_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/iron_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/iron_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/iron_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/iron_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/iron_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/iron_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/iron_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/iron_chestplate_netherite_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/iron_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/iron_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/iron_chestplate_gold_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/iron_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/iron_chestplate_diamond_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/iron_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/iron_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/iron_chestplate" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/leather_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/leather_chestplate.json deleted file mode 100644 index 14a58eac48..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/leather_chestplate.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/leather_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/leather_chestplate_iron_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/leather_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/leather_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/leather_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/leather_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/leather_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/leather_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/leather_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/leather_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/leather_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/leather_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/leather_chestplate_netherite_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/leather_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/leather_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/leather_chestplate_gold_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/leather_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/leather_chestplate_diamond_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/leather_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/leather_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/leather_chestplate", - "layer1": "minecraft:item/leather_chestplate_overlay" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/models/item/netherite_chestplate.json b/common/src/main/resources/assets/minecraft/models/item/netherite_chestplate.json deleted file mode 100644 index 4e7268ad30..0000000000 --- a/common/src/main/resources/assets/minecraft/models/item/netherite_chestplate.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "parent": "minecraft:item/generated", - "overrides": [ - { - "model": "minecraft:item/netherite_chestplate_quartz_trim", - "predicate": { - "trim_type": 0.1 - } - }, - { - "model": "minecraft:item/netherite_chestplate_iron_trim", - "predicate": { - "trim_type": 0.2 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_fire_stone_trim", - "predicate": { - "trim_type": 0.2622 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_water_stone_trim", - "predicate": { - "trim_type": 0.2623 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_thunder_stone_trim", - "predicate": { - "trim_type": 0.2624 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_leaf_stone_trim", - "predicate": { - "trim_type": 0.2625 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_moon_stone_trim", - "predicate": { - "trim_type": 0.2626 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_sun_stone_trim", - "predicate": { - "trim_type": 0.2627 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_shiny_stone_trim", - "predicate": { - "trim_type": 0.2628 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_dusk_stone_trim", - "predicate": { - "trim_type": 0.2629 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_dawn_stone_trim", - "predicate": { - "trim_type": 0.2630 - } - }, - { - "model": "cobblemon:item/netherite_chestplate_ice_stone_trim", - "predicate": { - "trim_type": 0.2631 - } - }, - { - "model": "minecraft:item/netherite_chestplate_netherite_darker_trim", - "predicate": { - "trim_type": 0.3 - } - }, - { - "model": "minecraft:item/netherite_chestplate_redstone_trim", - "predicate": { - "trim_type": 0.4 - } - }, - { - "model": "minecraft:item/netherite_chestplate_copper_trim", - "predicate": { - "trim_type": 0.5 - } - }, - { - "model": "minecraft:item/netherite_chestplate_gold_trim", - "predicate": { - "trim_type": 0.6 - } - }, - { - "model": "minecraft:item/netherite_chestplate_emerald_trim", - "predicate": { - "trim_type": 0.7 - } - }, - { - "model": "minecraft:item/netherite_chestplate_diamond_trim", - "predicate": { - "trim_type": 0.8 - } - }, - { - "model": "minecraft:item/netherite_chestplate_lapis_trim", - "predicate": { - "trim_type": 0.9 - } - }, - { - "model": "minecraft:item/netherite_chestplate_amethyst_trim", - "predicate": { - "trim_type": 1.0 - } - } - ], - "textures": { - "layer0": "minecraft:item/netherite_chestplate" - } -} \ No newline at end of file diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.fsh b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.fsh new file mode 100644 index 0000000000..1b80ee227b --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.fsh @@ -0,0 +1,32 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; + +uniform vec4 ColorModulator; +uniform float FogStart; +uniform float FogEnd; +uniform vec4 FogColor; +uniform float u_evo_progress; + +in float vertexDistance; +in vec4 vertexColor; +in vec4 lightMapColor; +in vec4 overlayColor; +in vec2 texCoord0; +in vec4 normal; + +out vec4 fragColor; + +void main() { + vec4 color = texture(Sampler0, texCoord0); + if (color.a < 0.1) { + discard; + } + color *= vertexColor * ColorModulator; + color.rgb = mix(overlayColor.rgb, color.rgb, overlayColor.a); + color *= lightMapColor; + color = mix(color, vec4(1.0, 1.0, 1.0, 1.0), u_evo_progress); + fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); +} diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.json b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.json new file mode 100644 index 0000000000..45d33f7704 --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_cutout.json @@ -0,0 +1,35 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "rendertype_entity_cutout", + "fragment": "rendertype_entity_cutout", + "attributes": [ + "Position", + "Color", + "UV0", + "UV1", + "UV2", + "Normal" + ], + "samplers": [ + { "name": "Sampler0" }, + { "name": "Sampler1" }, + { "name": "Sampler2" } + ], + "uniforms": [ + { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "IViewRotMat", "type": "matrix3x3", "count": 9, "values": [ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, + { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, + { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, + { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] }, + { "name": "u_evo_progress", "type": "float", "count": 1, "values": [ 0 ]} + ] +} diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.fsh b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.fsh new file mode 100644 index 0000000000..1b80ee227b --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.fsh @@ -0,0 +1,32 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; + +uniform vec4 ColorModulator; +uniform float FogStart; +uniform float FogEnd; +uniform vec4 FogColor; +uniform float u_evo_progress; + +in float vertexDistance; +in vec4 vertexColor; +in vec4 lightMapColor; +in vec4 overlayColor; +in vec2 texCoord0; +in vec4 normal; + +out vec4 fragColor; + +void main() { + vec4 color = texture(Sampler0, texCoord0); + if (color.a < 0.1) { + discard; + } + color *= vertexColor * ColorModulator; + color.rgb = mix(overlayColor.rgb, color.rgb, overlayColor.a); + color *= lightMapColor; + color = mix(color, vec4(1.0, 1.0, 1.0, 1.0), u_evo_progress); + fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); +} diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.json b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.json new file mode 100644 index 0000000000..45cf8498ca --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent.json @@ -0,0 +1,35 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "rendertype_entity_translucent", + "fragment": "rendertype_entity_translucent", + "attributes": [ + "Position", + "Color", + "UV0", + "UV1", + "UV2", + "Normal" + ], + "samplers": [ + { "name": "Sampler0" }, + { "name": "Sampler1" }, + { "name": "Sampler2" } + ], + "uniforms": [ + { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "IViewRotMat", "type": "matrix3x3", "count": 9, "values": [ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, + { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, + { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, + { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] }, + { "name": "u_evo_progress", "type": "float", "count": 1, "values": [ 0 ]} + ] +} diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.fsh b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.fsh new file mode 100644 index 0000000000..a6c43a0171 --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.fsh @@ -0,0 +1,29 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; + +uniform vec4 ColorModulator; +uniform float FogStart; +uniform float FogEnd; +uniform float u_evo_progress; + +in float vertexDistance; +in vec4 vertexColor; +in vec4 overlayColor; +in vec2 texCoord0; +in vec4 normal; + +out vec4 fragColor; + +void main() { + vec4 color = texture(Sampler0, texCoord0); + if (color.a < 0.1) { + discard; + } + color *= vertexColor * ColorModulator; + color.rgb = mix(overlayColor.rgb, color.rgb, overlayColor.a); + color = mix(color, vec4(1.0, 1.0, 1.0, 1.0), u_evo_progress); + fragColor = color * linear_fog_fade(vertexDistance, FogStart, FogEnd); +} diff --git a/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json new file mode 100644 index 0000000000..b8a4e63ff8 --- /dev/null +++ b/common/src/main/resources/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json @@ -0,0 +1,32 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "rendertype_entity_translucent_emissive", + "fragment": "rendertype_entity_translucent_emissive", + "attributes": [ + "Position", + "Color", + "UV0", + "UV1", + "UV2", + "Normal" + ], + "samplers": [ + { "name": "Sampler0" }, + { "name": "Sampler1" }, + { "name": "Sampler2" } + ], + "uniforms": [ + { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, + { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, + { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, + { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, + { "name": "u_evo_progress", "type": "float", "count": 1, "values": [ 0 ]} + ] +} diff --git a/common/src/main/resources/data/cobblemon/action_effects/moves/dragonclaw.json b/common/src/main/resources/data/cobblemon/action_effects/moves/dragonclaw.json new file mode 100644 index 0000000000..3b41e64e14 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/action_effects/moves/dragonclaw.json @@ -0,0 +1,27 @@ +{ + "timeline": [ + { + "type": "add_holds", + "holds": ["effects"] + }, + { + "type": "animation", + "animation": ["dragonclaw", "scratch", "physical"], + "delay": 1.02 + }, + { + "type": "entity_molang", + "entityCondition": "q.entity.is_user == false", + "expressions": ["q.play_animation(q.bedrock_stateful('particle_dummy', 'dragon_claw_target'))"], + "delay": 0.1 + }, + { + "type": "remove_holds", + "holds": ["effects"] + }, + { + "type": "pause", + "pause": 2 + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/action_effects/moves/flamethrower.json b/common/src/main/resources/data/cobblemon/action_effects/moves/flamethrower.json new file mode 100644 index 0000000000..5447017030 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/action_effects/moves/flamethrower.json @@ -0,0 +1,32 @@ +{ + "timeline": [ + { + "type": "add_holds", + "holds": ["effects"] + }, + { + "type": "animation", + "animation": ["flamethrower", "fire", "special"], + "delay": 1.15 + }, + { + "type": "entity_molang", + "expressions": ["q.play_animation(q.bedrock_stateful('particle_dummy', 'flamethrower_actor'))"], + "delay": 0.6 + }, + { + "type": "entity_molang", + "expressions": ["q.play_animation(q.bedrock_stateful('particle_dummy', 'flamethrower_target'))"], + "entityCondition": "q.entity.is_user == false && q.missed(q.entity.uuid) == false", + "delay": 0.1 + }, + { + "type": "remove_holds", + "holds": ["effects"] + }, + { + "type": "pause", + "pause": 1.9 + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/action_effects/moves/generic/physical_normal.json b/common/src/main/resources/data/cobblemon/action_effects/moves/generic/physical_normal.json new file mode 100644 index 0000000000..6ac4556570 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/action_effects/moves/generic/physical_normal.json @@ -0,0 +1,28 @@ +{ + "timeline": [ + { + "type": "add_holds", + "holds": ["effects"] + }, + { + "type": "animation", + "animation": ["physical"], + "delay": 1.2 + }, + { + "type": "remove_holds", + "holds": ["effects"] + }, + { + "type": "entity_molang", + "entityCondition": "q.entity.is_user == false", + "expressions": ["q.sound('impact_normal');"] + }, + { + "type": "entity_molang", + "expressions": ["q.particle('cobblemon:impact_normal', 'target')"], + "entityCondition": "q.entity.is_user == false", + "delay": 2 + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/action_effects/moves/generic_move.json b/common/src/main/resources/data/cobblemon/action_effects/moves/generic_move.json new file mode 100644 index 0000000000..787211689e --- /dev/null +++ b/common/src/main/resources/data/cobblemon/action_effects/moves/generic_move.json @@ -0,0 +1,42 @@ +{ + "timeline": [ + { + "type": "add_holds", + "holds": ["effects"] + }, + { + "type": "animation", + "animation": ["q.move.name", "q.move.damage_category"], + "delay": 1.2 + }, + { + "type": "sequence", + "condition": "q.move.damage_category != 'status'", + "keyframes": [ + { + "type": "entity_sound", + "entityCondition": "q.entity.is_user == false && q.missed(q.entity.uuid) == false", + "sound": "'cobblemon:impact.' + q.move.type" + }, + { + "type": "entity_particles", + "entityCondition": "q.entity.is_user == false && q.missed(q.entity.uuid) == false", + "effect": "'cobblemon:impact_' + q.move.type", + "locator": "target" + } + ] + }, + { + "type": "pause", + "pause": 0.1 + }, + { + "type": "remove_holds", + "holds": ["effects"] + }, + { + "type": "pause", + "pause": 2 + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/action_effects/moves/oldscratch.json b/common/src/main/resources/data/cobblemon/action_effects/moves/oldscratch.json new file mode 100644 index 0000000000..d33a00aa67 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/action_effects/moves/oldscratch.json @@ -0,0 +1,33 @@ +{ + "timeline": [ + { + "type": "sequence", + "condition": "q.do_effect_walks", + "keyframes": [ + "save_position", + "move_to_target", + "pause" + ] + }, + { + "type": "animation", + "animation": ["scratch", "physical"], + "variables": [ + "v.animation='cobblemon:scratch'" + ], + "delay": "q.do_effect_walks ? 3 : 1" + }, + { + "type": "remove_holds", + "holds": ["damage"] + }, + { + "type": "sequence", + "condition": "q.do_effect_walks", + "keyframes": [ + "return_to_position", + "pause" + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_monitor.json b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_analyzer.json similarity index 86% rename from common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_monitor.json rename to common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_analyzer.json index da79ff6dc5..ca598dcfcd 100644 --- a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_monitor.json +++ b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_analyzer.json @@ -15,7 +15,7 @@ }, "has_the_recipe": { "conditions": { - "recipe": "cobblemon:fossil_monitor" + "recipe": "cobblemon:fossil_analyzer" }, "trigger": "minecraft:recipe_unlocked" } @@ -28,7 +28,7 @@ ], "rewards": { "recipes": [ - "cobblemon:fossil_monitor" + "cobblemon:fossil_analyzer" ] } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_tube.json b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/monitor.json similarity index 87% rename from common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_tube.json rename to common/src/main/resources/data/cobblemon/advancements/recipes/blocks/monitor.json index 3a257f4af0..363f52b6df 100644 --- a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_tube.json +++ b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/monitor.json @@ -15,7 +15,7 @@ }, "has_the_recipe": { "conditions": { - "recipe": "cobblemon:fossil_tube" + "recipe": "cobblemon:monitor" }, "trigger": "minecraft:recipe_unlocked" } @@ -28,7 +28,7 @@ ], "rewards": { "recipes": [ - "cobblemon:fossil_tube" + "cobblemon:monitor" ] } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_compartment.json b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/restoration_tank.json similarity index 85% rename from common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_compartment.json rename to common/src/main/resources/data/cobblemon/advancements/recipes/blocks/restoration_tank.json index c076a80150..f0b9183e9f 100644 --- a/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/fossil_compartment.json +++ b/common/src/main/resources/data/cobblemon/advancements/recipes/blocks/restoration_tank.json @@ -15,7 +15,7 @@ }, "has_the_recipe": { "conditions": { - "recipe": "cobblemon:fossil_compartment" + "recipe": "cobblemon:restoration_tank" }, "trigger": "minecraft:recipe_unlocked" } @@ -28,7 +28,7 @@ ], "rewards": { "recipes": [ - "cobblemon:fossil_compartment" + "cobblemon:restoration_tank" ] } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/advancements/resurrect_pokemon.json b/common/src/main/resources/data/cobblemon/advancements/resurrect_pokemon.json index 2935e293f4..2468a1c8b7 100644 --- a/common/src/main/resources/data/cobblemon/advancements/resurrect_pokemon.json +++ b/common/src/main/resources/data/cobblemon/advancements/resurrect_pokemon.json @@ -2,7 +2,7 @@ "parent": "cobblemon:obtain_fossil", "display": { "icon": { - "item": "cobblemon:fossil_tube" + "item": "cobblemon:restoration_tank" }, "title": { "translate": "advancements.cobblemon.resurrect_pokemon" diff --git a/common/src/main/resources/data/cobblemon/loot_tables/blocks/fossil_analyzer.json b/common/src/main/resources/data/cobblemon/loot_tables/blocks/fossil_analyzer.json new file mode 100644 index 0000000000..f78a9a2784 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/loot_tables/blocks/fossil_analyzer.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "cobblemon:fossil_analyzer" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/loot_tables/blocks/monitor.json b/common/src/main/resources/data/cobblemon/loot_tables/blocks/monitor.json new file mode 100644 index 0000000000..962d3f8d83 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/loot_tables/blocks/monitor.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "cobblemon:monitor" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/loot_tables/blocks/nether_fire_stone_ore.json b/common/src/main/resources/data/cobblemon/loot_tables/blocks/nether_fire_stone_ore.json new file mode 100644 index 0000000000..bd554f0575 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/loot_tables/blocks/nether_fire_stone_ore.json @@ -0,0 +1,46 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "cobblemon:nether_fire_stone_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops", + "function": "minecraft:apply_bonus" + } + ], + "name": "cobblemon:fire_stone" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/loot_tables/blocks/restoration_tank.json b/common/src/main/resources/data/cobblemon/loot_tables/blocks/restoration_tank.json new file mode 100644 index 0000000000..b3bd91c41b --- /dev/null +++ b/common/src/main/resources/data/cobblemon/loot_tables/blocks/restoration_tank.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "cobblemon:restoration_tank" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/automaton_armor_trim.json b/common/src/main/resources/data/cobblemon/recipes/automaton_armor_trim.json new file mode 100644 index 0000000000..064e663bcd --- /dev/null +++ b/common/src/main/resources/data/cobblemon/recipes/automaton_armor_trim.json @@ -0,0 +1,12 @@ +{ + "type": "minecraft:smithing_trim", + "addition": { + "tag": "minecraft:trim_materials" + }, + "base": { + "tag": "minecraft:trimmable_armor" + }, + "template": { + "item": "cobblemon:automaton_armor_trim_smithing_template" + } +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_blasting_nether_fire_stone_ore.json b/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_blasting_nether_fire_stone_ore.json new file mode 100644 index 0000000000..5110257387 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_blasting_nether_fire_stone_ore.json @@ -0,0 +1,10 @@ +{ + "type": "minecraft:blasting", + "group": "fire_stone", + "ingredient": { + "item": "cobblemon:nether_fire_stone_ore" + }, + "result": "cobblemon:fire_stone", + "experience": 0.1, + "cookingtime": 100 +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_smelting_nether_fire_stone_ore.json b/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_smelting_nether_fire_stone_ore.json new file mode 100644 index 0000000000..14560f8c22 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/recipes/fire_stone_from_smelting_nether_fire_stone_ore.json @@ -0,0 +1,10 @@ +{ + "type": "minecraft:smelting", + "group": "fire_stone", + "ingredient": { + "item": "cobblemon:nether_fire_stone_ore" + }, + "result": "cobblemon:fire_stone", + "experience": 0.1, + "cookingtime": 100 +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/fossil_compartment.json b/common/src/main/resources/data/cobblemon/recipes/fossil_analyzer.json similarity index 91% rename from common/src/main/resources/data/cobblemon/recipes/fossil_compartment.json rename to common/src/main/resources/data/cobblemon/recipes/fossil_analyzer.json index e868b47359..e2d940a278 100644 --- a/common/src/main/resources/data/cobblemon/recipes/fossil_compartment.json +++ b/common/src/main/resources/data/cobblemon/recipes/fossil_analyzer.json @@ -23,6 +23,6 @@ } }, "result": { - "item": "cobblemon:fossil_compartment" + "item": "cobblemon:fossil_analyzer" } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/fossil_monitor.json b/common/src/main/resources/data/cobblemon/recipes/monitor.json similarity index 90% rename from common/src/main/resources/data/cobblemon/recipes/fossil_monitor.json rename to common/src/main/resources/data/cobblemon/recipes/monitor.json index 327fb12dbe..4815bc8eaa 100644 --- a/common/src/main/resources/data/cobblemon/recipes/fossil_monitor.json +++ b/common/src/main/resources/data/cobblemon/recipes/monitor.json @@ -20,6 +20,6 @@ } }, "result": { - "item": "cobblemon:fossil_monitor" + "item": "cobblemon:monitor" } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/recipes/fossil_tube.json b/common/src/main/resources/data/cobblemon/recipes/restoration_tank.json similarity index 90% rename from common/src/main/resources/data/cobblemon/recipes/fossil_tube.json rename to common/src/main/resources/data/cobblemon/recipes/restoration_tank.json index 928cc192ab..1c4ad98b4b 100644 --- a/common/src/main/resources/data/cobblemon/recipes/fossil_tube.json +++ b/common/src/main/resources/data/cobblemon/recipes/restoration_tank.json @@ -20,6 +20,6 @@ } }, "result": { - "item": "cobblemon:fossil_tube" + "item": "cobblemon:restoration_tank" } } \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/species/generation1/blastoise.json b/common/src/main/resources/data/cobblemon/species/generation1/blastoise.json index 4ab3cade84..b050466824 100644 --- a/common/src/main/resources/data/cobblemon/species/generation1/blastoise.json +++ b/common/src/main/resources/data/cobblemon/species/generation1/blastoise.json @@ -335,10 +335,10 @@ ], "preEvolution": "wartortle", "evolutions": [], - "baseScale": 1.3, + "baseScale": 0.9, "hitbox": { - "width": 1.1, - "height": 2.1, + "width": 1.8, + "height": 2.75, "fixed": false }, "baseFriendship": 50, diff --git a/common/src/main/resources/data/cobblemon/species/generation6/inkay.json b/common/src/main/resources/data/cobblemon/species/generation6/inkay.json index 3c066c1df2..76dc6cbf17 100644 --- a/common/src/main/resources/data/cobblemon/species/generation6/inkay.json +++ b/common/src/main/resources/data/cobblemon/species/generation6/inkay.json @@ -141,7 +141,7 @@ ], "evolutions": [ { - "id": "inkay_malamar", + "id": "inkay_malamar_dinnerbone", "variant": "level_up", "result": "malamar", "consumeHeldItem": false, @@ -156,6 +156,23 @@ "target": "nickname=Dinnerbone" } ] + }, + { + "id": "inkay_malamar_grumm", + "variant": "level_up", + "result": "malamar", + "consumeHeldItem": false, + "learnableMoves": [], + "requirements": [ + { + "variant": "level", + "minLevel": 30 + }, + { + "variant": "properties", + "target": "nickname=Grumm" + } + ] } ], "baseScale": 1, diff --git a/common/src/main/resources/data/cobblemon/tags/blocks/tumblestone_heat_source.json b/common/src/main/resources/data/cobblemon/tags/blocks/tumblestone_heat_source.json new file mode 100644 index 0000000000..96f5ef5db2 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/tags/blocks/tumblestone_heat_source.json @@ -0,0 +1,6 @@ +{ + "values": [ + "minecraft:lava", + "minecraft:magma_block" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/tags/items/decorated_pot_sherds.json b/common/src/main/resources/data/cobblemon/tags/items/decorated_pot_sherds.json new file mode 100644 index 0000000000..7616e82af4 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/tags/items/decorated_pot_sherds.json @@ -0,0 +1,10 @@ +{ + "values": [ + "cobblemon:bygone_sherd", + "cobblemon:capture_sherd", + "cobblemon:dome_sherd", + "cobblemon:helix_sherd", + "cobblemon:nostalgic_sherd", + "cobblemon:suspicious_sherd" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/tags/items/held/leaves_leftovers.json b/common/src/main/resources/data/cobblemon/tags/items/held/leaves_leftovers.json new file mode 100644 index 0000000000..ebc9d7fa91 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/tags/items/held/leaves_leftovers.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "minecraft:apple" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/tags/worldgen/biome/has_ore/ore_fire_stone_nether.json b/common/src/main/resources/data/cobblemon/tags/worldgen/biome/has_ore/ore_fire_stone_nether.json new file mode 100644 index 0000000000..25112926e8 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/tags/worldgen/biome/has_ore/ore_fire_stone_nether.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "#minecraft:is_nether" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/trim_material/black_tumblestone.json b/common/src/main/resources/data/cobblemon/trim_material/black_tumblestone.json deleted file mode 100644 index 2da0243f0c..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/black_tumblestone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "black_tumblestone", - "description": { - "translate": "trim_material.cobblemon.black_tumblestone", - "fallback": "Black Tumblestone", - "color": "#7C897E" - }, - "ingredient": "cobblemon:black_tumblestone", - "item_model_index": 0.2633 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/dawn_stone.json b/common/src/main/resources/data/cobblemon/trim_material/dawn_stone.json deleted file mode 100644 index da6a756f35..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/dawn_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "dawn_stone", - "description": { - "translate": "trim_material.cobblemon.dawn_stone", - "fallback": "Dawn Stone", - "color": "#9BFFFF" - }, - "ingredient": "cobblemon:dawn_stone", - "item_model_index": 0.2630 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/dusk_stone.json b/common/src/main/resources/data/cobblemon/trim_material/dusk_stone.json deleted file mode 100644 index 1b3ec614f0..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/dusk_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "dusk_stone", - "description": { - "translate": "trim_material.cobblemon.dusk_stone", - "fallback": "Dusk Stone", - "color": "#804E80" - }, - "ingredient": "cobblemon:dusk_stone", - "item_model_index": 0.2629 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/fire_stone.json b/common/src/main/resources/data/cobblemon/trim_material/fire_stone.json deleted file mode 100644 index bf0d12cc3a..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/fire_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "fire_stone", - "description": { - "translate": "trim_material.cobblemon.fire_stone", - "fallback": "Fire Stone", - "color": "#FFCA60" - }, - "ingredient": "cobblemon:fire_stone", - "item_model_index": 0.2622 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/ice_stone.json b/common/src/main/resources/data/cobblemon/trim_material/ice_stone.json deleted file mode 100644 index f2f6d36a1f..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/ice_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "ice_stone", - "description": { - "translate": "trim_material.cobblemon.ice_stone", - "fallback": "Ice Stone", - "color": "#BAEDF4" - }, - "ingredient": "cobblemon:ice_stone", - "item_model_index": 0.2631 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/leaf_stone.json b/common/src/main/resources/data/cobblemon/trim_material/leaf_stone.json deleted file mode 100644 index 91c02eaaa7..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/leaf_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "leaf_stone", - "description": { - "translate": "trim_material.cobblemon.leaf_stone", - "fallback": "Leaf Stone", - "color": "#849961" - }, - "ingredient": "cobblemon:leaf_stone", - "item_model_index": 0.2625 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/moon_stone.json b/common/src/main/resources/data/cobblemon/trim_material/moon_stone.json deleted file mode 100644 index caefe7ceeb..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/moon_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "moon_stone", - "description": { - "translate": "trim_material.cobblemon.moon_stone", - "fallback": "Moon Stone", - "color": "#6658B5" - }, - "ingredient": "cobblemon:moon_stone", - "item_model_index": 0.2626 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/shiny_stone.json b/common/src/main/resources/data/cobblemon/trim_material/shiny_stone.json deleted file mode 100644 index 4b913656ea..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/shiny_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "shiny_stone", - "description": { - "translate": "trim_material.cobblemon.shiny_stone", - "fallback": "Shiny Stone", - "color": "#FFF69E" - }, - "ingredient": "cobblemon:shiny_stone", - "item_model_index": 0.2628 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/sky_tumblestone.json b/common/src/main/resources/data/cobblemon/trim_material/sky_tumblestone.json deleted file mode 100644 index 3f179e8433..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/sky_tumblestone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "sky_tumblestone", - "description": { - "translate": "trim_material.cobblemon.sky_tumblestone", - "fallback": "Sky Tumblestone", - "color": "#B5FFF8" - }, - "ingredient": "cobblemon:sky_tumblestone", - "item_model_index": 0.2634 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/sun_stone.json b/common/src/main/resources/data/cobblemon/trim_material/sun_stone.json deleted file mode 100644 index c73de306de..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/sun_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "sun_stone", - "description": { - "translate": "trim_material.cobblemon.sun_stone", - "fallback": "Sun Stone", - "color": "#D58252" - }, - "ingredient": "cobblemon:sun_stone", - "item_model_index": 0.2627 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/thunder_stone.json b/common/src/main/resources/data/cobblemon/trim_material/thunder_stone.json deleted file mode 100644 index 682ca08382..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/thunder_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "thunder_stone", - "description": { - "translate": "trim_material.cobblemon.thunder_stone", - "fallback": "Thunder Stone", - "color": "#D5FF87" - }, - "ingredient": "cobblemon:thunder_stone", - "item_model_index": 0.2624 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/tumblestone.json b/common/src/main/resources/data/cobblemon/trim_material/tumblestone.json deleted file mode 100644 index c6c9429d3e..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/tumblestone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "tumblestone", - "description": { - "translate": "trim_material.cobblemon.tumblestone", - "fallback": "Tumblestone", - "color": "#ED9C62" - }, - "ingredient": "cobblemon:tumblestone", - "item_model_index": 0.2632 -} diff --git a/common/src/main/resources/data/cobblemon/trim_material/water_stone.json b/common/src/main/resources/data/cobblemon/trim_material/water_stone.json deleted file mode 100644 index bb54f392c0..0000000000 --- a/common/src/main/resources/data/cobblemon/trim_material/water_stone.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "asset_name": "water_stone", - "description": { - "translate": "trim_material.cobblemon.water_stone", - "fallback": "Water Stone", - "color": "#54A2F0" - }, - "ingredient": "cobblemon:water_stone", - "item_model_index": 0.2623 -} diff --git a/common/src/main/resources/data/cobblemon/trim_pattern/automaton.json b/common/src/main/resources/data/cobblemon/trim_pattern/automaton.json new file mode 100644 index 0000000000..720977bb96 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/trim_pattern/automaton.json @@ -0,0 +1,7 @@ +{ + "asset_id": "cobblemon:automaton", + "description": { + "translate": "trim_pattern.cobblemon.automaton" + }, + "template_item": "cobblemon:automaton_armor_trim_smithing_template" +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/worldgen/configured_feature/ore/nether_fire_stone.json b/common/src/main/resources/data/cobblemon/worldgen/configured_feature/ore/nether_fire_stone.json new file mode 100644 index 0000000000..c60d0038a2 --- /dev/null +++ b/common/src/main/resources/data/cobblemon/worldgen/configured_feature/ore/nether_fire_stone.json @@ -0,0 +1,18 @@ +{ + "type": "minecraft:ore", + "config": { + "discard_chance_on_air_exposure": 0.0, + "size": 5, + "targets": [ + { + "state": { + "Name": "cobblemon:nether_fire_stone_ore" + }, + "target": { + "block": "minecraft:netherrack", + "predicate_type": "minecraft:block_match" + } + } + ] + } +} \ No newline at end of file diff --git a/common/src/main/resources/data/cobblemon/worldgen/placed_feature/ore/fire_stone_nether.json b/common/src/main/resources/data/cobblemon/worldgen/placed_feature/ore/fire_stone_nether.json new file mode 100644 index 0000000000..38e3c3381e --- /dev/null +++ b/common/src/main/resources/data/cobblemon/worldgen/placed_feature/ore/fire_stone_nether.json @@ -0,0 +1,27 @@ +{ + "feature": "cobblemon:ore/nether_fire_stone", + "placement": [ + { + "type": "minecraft:count", + "count": 1 + }, + { + "type": "minecraft:in_square" + }, + { + "type": "minecraft:height_range", + "height": { + "type": "minecraft:uniform", + "max_inclusive": { + "below_top": 10 + }, + "min_inclusive": { + "above_bottom": 10 + } + } + }, + { + "type": "minecraft:biome" + } + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json b/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json index 2f0f6a4f10..c35f0324ef 100644 --- a/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json +++ b/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json @@ -22,7 +22,11 @@ "cobblemon:deepslate_thunder_stone_ore", "cobblemon:deepslate_water_stone_ore", "cobblemon:dripstone_moon_stone_ore", + "cobblemon:nether_fire_stone_ore", "cobblemon:healing_machine", - "cobblemon:pc" + "cobblemon:pc", + "cobblemon:restoration_tank", + "cobblemon:monitor", + "cobblemon:fossil_analyzer" ] } \ No newline at end of file diff --git a/common/src/main/resources/data/minecraft/tags/items/decorated_pot_sherds.json b/common/src/main/resources/data/minecraft/tags/items/decorated_pot_sherds.json new file mode 100644 index 0000000000..62a443b774 --- /dev/null +++ b/common/src/main/resources/data/minecraft/tags/items/decorated_pot_sherds.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "#cobblemon:decorated_pot_sherds" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/data/minecraft/tags/items/trim_materials.json b/common/src/main/resources/data/minecraft/tags/items/trim_materials.json deleted file mode 100644 index fa0088c012..0000000000 --- a/common/src/main/resources/data/minecraft/tags/items/trim_materials.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "values": [ - "cobblemon:fire_stone", - "cobblemon:water_stone", - "cobblemon:thunder_stone", - "cobblemon:leaf_stone", - "cobblemon:moon_stone", - "cobblemon:sun_stone", - "cobblemon:shiny_stone", - "cobblemon:dusk_stone", - "cobblemon:dawn_stone", - "cobblemon:ice_stone", - "cobblemon:tumblestone", - "cobblemon:black_tumblestone", - "cobblemon:sky_tumblestone" - ] -} \ No newline at end of file diff --git a/common/src/main/resources/data/minecraft/tags/items/trim_templates.json b/common/src/main/resources/data/minecraft/tags/items/trim_templates.json new file mode 100644 index 0000000000..275b33b776 --- /dev/null +++ b/common/src/main/resources/data/minecraft/tags/items/trim_templates.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "cobblemon:automaton_armor_trim_smithing_template" + ] +} \ No newline at end of file diff --git a/common/src/main/resources/mixins.cobblemon-common.json b/common/src/main/resources/mixins.cobblemon-common.json index a939a88640..f6416cd58a 100644 --- a/common/src/main/resources/mixins.cobblemon-common.json +++ b/common/src/main/resources/mixins.cobblemon-common.json @@ -8,6 +8,7 @@ "EntityRenderDispatcherMixin", "GameRendererMixin", "ModelPartMixin", + "ParticleManagerMixin", "MusicTrackerMixin", "PartyScrollMixin", "SoundManagerMixin", @@ -18,6 +19,7 @@ "ModelLoaderMixin" ], "mixins": [ + "DecoratedPotPatternsMixin", "EntityVillagerMixin", "ExplosionMixin", "LivingEntityMixin", diff --git a/deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.jar b/deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.jar similarity index 84% rename from deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.jar rename to deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.jar index 9bb4acb9b3..a92d2815b5 100644 Binary files a/deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.jar and b/deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.jar differ diff --git a/deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.pom b/deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.pom similarity index 92% rename from deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.pom rename to deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.pom index 2fd2b4f560..6b11b3ee7b 100644 --- a/deps/local/com/bedrockk/molang/1.1.10/molang-1.1.10.pom +++ b/deps/local/com/bedrockk/molang/1.1.11/molang-1.1.11.pom @@ -4,5 +4,5 @@ 4.0.0 local.com.bedrockk molang - 1.1.10 + 1.1.11 diff --git a/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.jar b/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.jar deleted file mode 100644 index 7087fa558b..0000000000 Binary files a/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.jar and /dev/null differ diff --git a/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.pom b/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.pom deleted file mode 100644 index b2989dbdbc..0000000000 --- a/deps/local/com/bedrockk/molang/1.1.5/molang-1.1.5.pom +++ /dev/null @@ -1,8 +0,0 @@ - - - 4.0.0 - local.com.bedrockk - molang - 1.1.5 - diff --git a/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.jar b/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.jar deleted file mode 100644 index 5cfbd48ce4..0000000000 Binary files a/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.jar and /dev/null differ diff --git a/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.pom b/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.pom deleted file mode 100644 index 3a65988544..0000000000 --- a/deps/local/com/bedrockk/molang/1.1.9/molang-1.1.9.pom +++ /dev/null @@ -1,8 +0,0 @@ - - - 4.0.0 - local.com.bedrockk - molang - 1.1.9 - diff --git a/deps/local/com/bedrockk/molang/maven-metadata-local.xml b/deps/local/com/bedrockk/molang/maven-metadata-local.xml index 0fa7d350dc..5343483710 100644 --- a/deps/local/com/bedrockk/molang/maven-metadata-local.xml +++ b/deps/local/com/bedrockk/molang/maven-metadata-local.xml @@ -3,10 +3,10 @@ local.com.bedrockk molang - 1.1.10 + 1.1.11 - 1.1.10 + 1.1.11 - 20231949238999 + 20231949239999 diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index 70fe16d794..fc109acab4 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -56,6 +56,7 @@ dependencies { modApi(libs.fabricApi) modApi(libs.fabricKotlin) modApi(libs.fabricPermissionsApi) + modCompileOnly(libs.lambDynamicLights) { isTransitive = false } modRuntimeOnly(libs.jeiFabric) modCompileOnly(libs.adornFabric) // modImplementation(libs.flywheelFabric) diff --git a/fabric/src/main/java/com/cobblemon/mod/fabric/compat/lambdynamiclights/LambDynamicLightsCompatEntrypoint.java b/fabric/src/main/java/com/cobblemon/mod/fabric/compat/lambdynamiclights/LambDynamicLightsCompatEntrypoint.java new file mode 100644 index 0000000000..b9e22ad63a --- /dev/null +++ b/fabric/src/main/java/com/cobblemon/mod/fabric/compat/lambdynamiclights/LambDynamicLightsCompatEntrypoint.java @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2023 Cobblemon Contributors + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +package com.cobblemon.mod.fabric.compat.lambdynamiclights; + +import com.cobblemon.mod.common.Cobblemon; +import com.cobblemon.mod.common.compat.LambDynamicLightsCompat; +import dev.lambdaurora.lambdynlights.api.DynamicLightsInitializer; + +// Java class due to relying on entrypoint +public class LambDynamicLightsCompatEntrypoint implements DynamicLightsInitializer { + + @Override + public void onInitializeDynamicLights() { + LambDynamicLightsCompat.hookCompat(); + Cobblemon.INSTANCE.getLOGGER().info("Lamb Dynamic Lights compatibility enabled"); + } + +} diff --git a/fabric/src/main/java/com/cobblemon/mod/fabric/mixin/GameRendererMixin.java b/fabric/src/main/java/com/cobblemon/mod/fabric/mixin/GameRendererMixin.java new file mode 100644 index 0000000000..dfd2daf7e2 --- /dev/null +++ b/fabric/src/main/java/com/cobblemon/mod/fabric/mixin/GameRendererMixin.java @@ -0,0 +1,47 @@ +/* + * 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.fabric.mixin; + +import com.cobblemon.mod.common.client.render.shader.CobblemonShaders; +import com.cobblemon.mod.common.util.ShaderRegistryData; +import com.mojang.datafixers.util.Pair; +import net.fabricmc.fabric.impl.client.rendering.FabricShaderProgram; +import net.minecraft.client.gl.ShaderProgram; +import net.minecraft.client.gl.ShaderStage; +import net.minecraft.client.render.GameRenderer; +import net.minecraft.resource.ResourceFactory; +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.CallbackInfo; +import org.spongepowered.asm.mixin.injection.callback.LocalCapture; + +import java.io.IOException; +import java.util.List; +import java.util.function.Consumer; + +@Mixin(GameRenderer.class) +public class GameRendererMixin { + + + @Inject(method = "loadPrograms", at = @At(value = "INVOKE_ASSIGN", target = "Ljava/util/List;add(Ljava/lang/Object;)Z", ordinal = 0), locals = LocalCapture.CAPTURE_FAILHARD) + private void lodestone$registerShaders(ResourceFactory factory, CallbackInfo ci, List list, List>> list2) throws IOException { + CobblemonShaders.INSTANCE.init(); + CobblemonShaders.INSTANCE.getSHADERS_TO_REGISTER().forEach((pair) -> { + ShaderRegistryData data = pair.getFirst().invoke(factory); + FabricShaderProgram program = null; + try { + program = new FabricShaderProgram(data.getResourceFactory(), data.getShaderName(), data.getVertexFormat()); + } catch (IOException e) { + throw new RuntimeException(e); + } + list2.add(Pair.of(program, pair.getSecond())); + }); + } +} diff --git a/fabric/src/main/kotlin/com/cobblemon/mod/fabric/client/CobblemonFabricClient.kt b/fabric/src/main/kotlin/com/cobblemon/mod/fabric/client/CobblemonFabricClient.kt index d21b73c653..b461b39656 100644 --- a/fabric/src/main/kotlin/com/cobblemon/mod/fabric/client/CobblemonFabricClient.kt +++ b/fabric/src/main/kotlin/com/cobblemon/mod/fabric/client/CobblemonFabricClient.kt @@ -23,6 +23,9 @@ import com.cobblemon.mod.common.platform.events.ItemTooltipEvent import com.cobblemon.mod.common.platform.events.PlatformEvents import com.cobblemon.mod.common.util.cobblemonResource import com.cobblemon.mod.fabric.CobblemonFabric +import java.util.concurrent.CompletableFuture +import java.util.concurrent.Executor +import java.util.function.Supplier import net.fabricmc.api.ClientModInitializer import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents @@ -58,9 +61,6 @@ import net.minecraft.resource.ResourceManager import net.minecraft.resource.ResourceReloader import net.minecraft.resource.ResourceType import net.minecraft.util.profiler.Profiler -import java.util.concurrent.CompletableFuture -import java.util.concurrent.Executor -import java.util.function.Supplier class CobblemonFabricClient: ClientModInitializer, CobblemonClientImplementation { override fun onInitializeClient() { @@ -69,7 +69,6 @@ class CobblemonFabricClient: ClientModInitializer, CobblemonClientImplementation CobblemonFabric.networkManager.registerClientBound() - ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(object : IdentifiableResourceReloadListener { override fun reload( synchronizer: ResourceReloader.Synchronizer?, @@ -92,6 +91,7 @@ class CobblemonFabricClient: ClientModInitializer, CobblemonClientImplementation }) + CobblemonKeyBinds.register(KeyBindingHelper::registerKeyBinding) ClientTickEvents.START_CLIENT_TICK.register { client -> PlatformEvents.CLIENT_TICK_PRE.post(ClientTickEvent.Pre(client)) } diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index e62bda0b00..cd717c7c05 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -24,6 +24,9 @@ ], "jei_mod_plugin": [ "com.cobblemon.mod.common.integration.jei.CobblemonJeiPlugin" + ], + "dynamiclights": [ + "com.cobblemon.mod.fabric.compat.lambdynamiclights.LambDynamicLightsCompatEntrypoint" ] }, "mixins": [ diff --git a/fabric/src/main/resources/mixins.cobblemon-fabric.json b/fabric/src/main/resources/mixins.cobblemon-fabric.json index 0dd4042a32..7fa5ff4d68 100644 --- a/fabric/src/main/resources/mixins.cobblemon-fabric.json +++ b/fabric/src/main/resources/mixins.cobblemon-fabric.json @@ -4,6 +4,7 @@ "compatibilityLevel": "JAVA_8", "minVersion": "0.8", "client": [ + "GameRendererMixin", "GuiMixin", "pokeball.ModelLoaderMixin" ], diff --git a/forge/src/main/kotlin/com/cobblemon/mod/forge/client/CobblemonForgeClient.kt b/forge/src/main/kotlin/com/cobblemon/mod/forge/client/CobblemonForgeClient.kt index 5c03f9f32d..25dcc4a2ef 100644 --- a/forge/src/main/kotlin/com/cobblemon/mod/forge/client/CobblemonForgeClient.kt +++ b/forge/src/main/kotlin/com/cobblemon/mod/forge/client/CobblemonForgeClient.kt @@ -8,6 +8,7 @@ package com.cobblemon.mod.forge.client +import com.cobblemon.mod.common.Cobblemon import com.cobblemon.mod.common.CobblemonClientImplementation import com.cobblemon.mod.common.api.pokeball.PokeBalls import com.cobblemon.mod.common.client.render.atlas.CobblemonAtlases @@ -15,20 +16,25 @@ import com.cobblemon.mod.common.client.CobblemonClient import com.cobblemon.mod.common.client.CobblemonClient.reloadCodedAssets import com.cobblemon.mod.common.client.keybind.CobblemonKeyBinds import com.cobblemon.mod.common.client.render.item.CobblemonModelPredicateRegistry +import com.cobblemon.mod.common.compat.LambDynamicLightsCompat +import com.cobblemon.mod.common.client.render.shader.CobblemonShaders import com.cobblemon.mod.common.item.group.CobblemonItemGroups import com.cobblemon.mod.common.particle.CobblemonParticles import com.cobblemon.mod.common.particle.SnowstormParticleType +import com.cobblemon.mod.common.util.cobblemonResource import net.minecraft.block.Block import net.minecraft.block.entity.BlockEntity import net.minecraft.block.entity.BlockEntityType import net.minecraft.client.MinecraftClient import net.minecraft.client.color.block.BlockColorProvider import net.minecraft.client.color.item.ItemColorProvider +import net.minecraft.client.gl.ShaderProgram import net.minecraft.client.model.TexturedModelData import net.minecraft.client.particle.ParticleFactory import net.minecraft.client.particle.SpriteProvider import net.minecraft.client.render.RenderLayer import net.minecraft.client.render.RenderLayers +import net.minecraft.client.render.VertexFormats import net.minecraft.client.render.block.entity.BlockEntityRendererFactories import net.minecraft.client.render.block.entity.BlockEntityRendererFactory import net.minecraft.client.render.entity.EntityRendererFactory @@ -50,6 +56,7 @@ import net.minecraftforge.client.event.ModelEvent import net.minecraftforge.client.event.RegisterClientReloadListenersEvent import net.minecraftforge.client.event.RegisterKeyMappingsEvent import net.minecraftforge.client.event.RegisterParticleProvidersEvent +import net.minecraftforge.client.event.RegisterShadersEvent import net.minecraftforge.client.event.RenderGuiOverlayEvent import net.minecraftforge.client.gui.overlay.VanillaGuiOverlay import net.minecraftforge.common.MinecraftForge @@ -70,6 +77,7 @@ object CobblemonForgeClient : CobblemonClientImplementation { addListener(::register3dPokeballModels) addListener(::onBuildContents) addListener(::onRegisterReloadListener) + addListener(::onShaderRegistration) } MinecraftForge.EVENT_BUS.addListener(this::onRenderGuiOverlayEvent) } @@ -77,6 +85,7 @@ object CobblemonForgeClient : CobblemonClientImplementation { private fun onClientSetup(event: FMLClientSetupEvent) { event.enqueueWork { CobblemonClient.initialize(this) + this.attemptModCompat() CobblemonModelPredicateRegistry.registerPredicates() } ForgeClientPlatformEventHandler.register() @@ -105,6 +114,15 @@ object CobblemonForgeClient : CobblemonClientImplementation { } + private fun onShaderRegistration(event: RegisterShadersEvent) { + event.registerShader(ShaderProgram(event.resourceProvider, cobblemonResource("particle_add"), VertexFormats.POSITION_COLOR_TEXTURE_LIGHT)) { + CobblemonShaders.PARTICLE_BLEND = it + } + event.registerShader(ShaderProgram(event.resourceProvider, cobblemonResource("particle_cutout"), VertexFormats.POSITION_COLOR_TEXTURE_LIGHT)) { + CobblemonShaders.PARTICLE_CUTOUT = it + } + } + @Suppress("UnstableApiUsage") override fun registerLayer(modelLayer: EntityModelLayer, supplier: Supplier) { ForgeHooksClient.registerLayerDefinition(modelLayer, supplier) @@ -176,6 +194,15 @@ object CobblemonForgeClient : CobblemonClientImplementation { CobblemonItemGroups.inject(e.tabKey, forgeInject) } + private fun attemptModCompat() { + // They have no Maven nor are they published on Modrinth :( + // Good thing is they are a copy pasta adapted to Forge :D + if (Cobblemon.implementation.isModInstalled("dynamiclightsreforged")) { + LambDynamicLightsCompat.hookCompat() + Cobblemon.LOGGER.info("Dynamic Lights Reforged compatibility enabled") + } + } + private class ForgeItemGroupInject(private val entries: MutableHashedLinkedMap) : CobblemonItemGroups.Injector { override fun putFirst(item: ItemConvertible) { diff --git a/gradle.properties b/gradle.properties index c8fcd0eca7..a3a6cd987d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ # Sets default memory used for gradle commands. Can be overridden by user or command line properties. # This is required to provide enough memory for the Minecraft decompilation process. -org.gradle.jvmargs=-Xmx6G +org.gradle.jvmargs=-Xmx8G org.gradle.daemon=false org.gradle.parallel=true diff --git a/gradle/libs.versions.yml b/gradle/libs.versions.yml index 3c7fdc0074..feac89aeac 100644 --- a/gradle/libs.versions.yml +++ b/gradle/libs.versions.yml @@ -19,6 +19,7 @@ versions: flywheelFabric: 0.6.9-1 fabric-permissions-api: 0.2-SNAPSHOT adorn-fabric: 5.0.0-fabric + lamb-dynamic-lights: 2.3.2+1.20.1 # forge forge: 1.20.1-47.1.0 @@ -28,7 +29,7 @@ versions: # common graal: 22.3.0 - molang: 1.1.10 + molang: 1.1.11 # test junit: 5.9.0 @@ -126,6 +127,10 @@ dependencies: group: maven.modrinth name: adorn version: { ref: adorn-fabric } + lambDynamicLights: + group: maven.modrinth + name: lambdynamiclights + version: { ref: lamb-dynamic-lights } # forge forge: diff --git a/utilityscripts/cobblemon_cry_checker.py b/utilityscripts/cobblemon_cry_checker.py index dc1591e30d..0f4154f280 100644 --- a/utilityscripts/cobblemon_cry_checker.py +++ b/utilityscripts/cobblemon_cry_checker.py @@ -87,7 +87,7 @@ def main(print_missing_models=False, print_missing_animations=False): invalid_model_files.append(("Missing import", model_file_path.replace( '../common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/', ""))) - elif f'override val cryAnimation = CryProvider {{ _, _ -> bedrockStateful("{sanitized_pokemon_name_lower}", "cry").setPreventsIdle(false) }}' not in content: + elif f'override val cryAnimation = CryProvider {{ _, _ -> bedrockStateful("{sanitized_pokemon_name_lower}", "cry") }}' not in content: if "override val cryAnimation = CryProvider {" not in content or 'bedrockStateful("' not in content: invalid_model_files.append(("Missing cryAnimation override", model_file_path.replace( '../common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/pokemon/',