mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-12-04 22:18:53 -05:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
848475c10b | ||
|
|
ad08abcc4a |
No files matched your search
+28
-24
@@ -2,47 +2,51 @@
|
||||
## [1.8.5 (MONTH xth, 2026)](#1-8-5)
|
||||
|
||||
### Additions
|
||||
- You can now view the biome, level, and date you caught a Pokémon.
|
||||
- Added the `healersSetSpawn` gamerule. When enabled, using a healing machine will set your spawnpoint.
|
||||
- A Pokémon holding a Power item now gains 1 point in the corresponding riding stat every two minutes while being ridden. The interval is configurable, and can be disabled with `-1`.
|
||||
- Added sounds to Play rough, Gigaton Hammer and Pyro Ball
|
||||
- Certain Pokémon now have custom, animation-driven footstep sounds that change based on the surface! We're slowly working on adding them to all animated Pokémon, but for now we've covered most that are rideable on land.
|
||||
- Added footstep sounds to Charizard, Venusaur, Blastoise, Parasect, Arcanine, Dewgong, Rhydon, Rhyhorn, Parasect, Mr. Mime, Lapras, Aerodactyl, Dragonite, Ariados, Girafarig, Heracross, Ursaring, Mantine, Skarmory, Slaking, Camerupt, Flygon, Altaria, Tropius, Salamence, Metagross, Staraptor, Bastiodon, Honchkrow, Garchomp, Lickilicky, Mamoswine, Zebstrika, Darmanitan, Crustle, Archeops, Golurk, Bouffalant, Braviary, Hisuian Braviary, Skiddo, Gogoat, Tyrantrum, Goodra, Hisuian Goodra, Noivern, Vikavolt, Mudsdale, Corviknight, Duraludon, Wyrdeer, Ursaluna, Sneasler, Kilowattrel, Espathra, Cyclizar, Farigiraf and Archaludon.
|
||||
- Unremarkable and Masterpiece Teacups now have new sounds
|
||||
|
||||
### Animation updates for the following Pokémon
|
||||
- Trapinch
|
||||
- Vibrava
|
||||
- Added sounds to Gigaton Hammer and Pyro Ball
|
||||
- Added stepsounds to Venusaur, Blastoise, Dewgong, Rhydon, Rhyhorn, Parasect and Mr. Mime.
|
||||
|
||||
### Changes
|
||||
- Amethyst now grows from Typegem core blocks like typegems do
|
||||
- Updated the recipe category for the Create compatibility EXP Candy recipe
|
||||
- Added No Man's Lands' Honeyed Apple to the Leaves Leftovers tag
|
||||
- Updated Unown's punctuation form names from `!` and `?` to `Exclamation` and `Question`, changing their visible form labels in tooltips and mod integrations.
|
||||
- Pokémon that received footstep sounds this update no longer make the usual Minecraft footstep sounds. Footstep sounds have also been removed for Crobat. (Note, game event detection like with Sculk Sensors still functions as normal.)
|
||||
- Pokémon that received footstep sounds this update no longer make the usual Minecraft footstep sounds. (Note, game event detection like with Sculk Sensors still functions as normal.)
|
||||
- Footstep sounds have also been removed for Gastly, Magnemite, Magneton, Magnezone, Crobat, Hydreigon, Volcarona, Dhelmise and Dragapult.
|
||||
- Skiddo no longer unintentionally plays its cry sound during its status animation.
|
||||
|
||||
### Fixes
|
||||
- Fixed Ponigiri food values for AppleSkin integration
|
||||
- Fixed errors emitted by typos in Parched Peat bog structure files
|
||||
- Fixed Unown punctuation forms (? and !) resolving to duplicate Showdown IDs and colliding in form displays.
|
||||
- Removed unimplemented Sweet Heart recipe
|
||||
- Fixed a 1.5-second visual delay in damage and fainting animations when combining Pledge moves in double battles.
|
||||
- Fixed flying mounts taking off after a single jump press on NeoForge instead of a double press
|
||||
- Avoid updating helditem representations if nothing has actually changed
|
||||
- Fixed datapacks with item interaction evolutions that don't specify an item crashing the world on load.
|
||||
- Fixed the Pokédex evolution tree crashing when a datapack's dex entry is missing an evolution's form.
|
||||
- Fixed the Pokédex evolution tree crashing with a stack overflow on evolutions that loop back on themselves.
|
||||
- Fixed the Pokédex evolution tree crashing when looking at a dex that is not part of the "National Dex" aggregate.
|
||||
- Fixed evolution trees not building properly when a Pokémon has several Pokédex entries for different regions.
|
||||
- Fixed form-changing evolutions sometimes resolving to the source form in the Pokédex evolution tree.
|
||||
- Broken datapack evolutions are now logged and skipped in the Pokédex evolution tree instead of crashing.
|
||||
- Fixed the `alpha` property having no tab completion in commands such as `/pokespawn`, `/pokegive` and `/pokeedit`, and added the missing `dmax_level`, `gmax_factor` and `tradable` aliases to tab completion
|
||||
- Fixed friendship booster items not being recognised as such
|
||||
- Fixed conflicts with other mods that would make use of recipe books in certain ways (Farmer's Delight Cooking Pot)
|
||||
- Fixed Pokémon battles stalling when a sidemod cancels the `THROWN_POKEBALL_HIT` hit event
|
||||
- Fixed choice feature tab completion in `spawnpokemon/pokegive/pokeedit` commands
|
||||
- Fixed MoLang that's targeting players intermittedly failing when they have died, needing them to relog
|
||||
- Fixed a NeoForge bug where none of the Cobblemon plants/berries could be placed into pots
|
||||
- Fixed party overlay not hiding when the player opens the Pokédex scanner
|
||||
- Added compat for AppleSkin
|
||||
- Fixed some display names having unintended font colours
|
||||
- Fixed `hate_entity` task focusing on its own entity
|
||||
- Thus enabled deadly warfare between Zangoose and Seviper
|
||||
- Prehistoric Frozen Pond, Prehistoric Frozen Spike, and Prehistoric Lush Den now generate
|
||||
- Fixed Frogadier floating in its battle_idle animation
|
||||
- Fixed absence or incorrect mergers in spawning conditions, making max height/depth of conditions to use the min value instead
|
||||
- Added stricter riding checks on server side to prevent possible packet forgery when player tries to ride pokemon
|
||||
- Fixed Pokémon cries and animation sounds played from GUIs, such as the starter selection screen and the Pokédex, being tied to the Master volume slider instead of Friendly Creatures
|
||||
- Fixed boat style mounts sprinting on their own after landing in water from jet flight
|
||||
|
||||
### Developer
|
||||
- Fixed JsonArray to MoValue conversion not working properly.
|
||||
|
||||
### Molang & Datapacks
|
||||
- `q.is_standing_on_blocks` now properly checks for non-full blocks like slabs, Mud or Soul Sand.
|
||||
- `q.is_standing_on_blocks` now properly checks for non-full blocks like slabs, Mud or Soul Sand
|
||||
- Added Molang functions to play footstep sounds based on the corresponding surface. These are intended to be used by Pokémon animations.
|
||||
- Pokémon can now have their Minecraft footstep sounds silenced in their poser. This doesn't affect emitting game events.
|
||||
- Fixed the Molang coalescing operator not working the way you'd expect a coalesce operator to.
|
||||
- Added `v.spawnable_position` to the weight spawn rule component's "weight" expression
|
||||
- Pokémon can now have their Minecraft footstep sounds silenced in their species file. This doesn't affect emitting game events.
|
||||
|
||||
### Particles
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ package com.cobblemon.mod.common.mixin;
|
||||
|
||||
import com.cobblemon.mod.common.client.sound.BattleMusicController;
|
||||
import com.cobblemon.mod.common.client.sound.SoundTracker;
|
||||
import com.cobblemon.mod.common.client.sound.conditional.ConditionalSoundsRegistry;
|
||||
import com.cobblemon.mod.common.duck.SoundEngineDuck;
|
||||
import com.cobblemon.mod.common.duck.SoundManagerDuck;
|
||||
import net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler;
|
||||
@@ -19,15 +18,12 @@ import net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances;
|
||||
import net.minecraft.client.sounds.SoundEngine;
|
||||
import net.minecraft.client.sounds.SoundManager;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.server.packs.resources.ResourceManager;
|
||||
import net.minecraft.util.profiling.ProfilerFiller;
|
||||
import net.minecraft.sounds.SoundSource;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Coerce;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@@ -40,12 +36,6 @@ public abstract class SoundManagerMixin implements SoundManagerDuck {
|
||||
@Shadow @Final
|
||||
private SoundEngine soundEngine;
|
||||
|
||||
/** After sounds.json is applied, reload conditional sounds so their entries join vanilla's weighted pick in the fresh sound registry. */
|
||||
@Inject(method = "apply(Lnet/minecraft/client/sounds/SoundManager$Preparations;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V", at = @At("TAIL"), require = 1)
|
||||
private void cobblemon$addConditionalSounds(@Coerce Object preparations, ResourceManager resourceManager, ProfilerFiller profiler, CallbackInfo ci) {
|
||||
ConditionalSoundsRegistry.INSTANCE.reload(resourceManager);
|
||||
}
|
||||
|
||||
// Never-ending ambient loops are a special exception (they are only initiated once) and should always be paused if filtered.
|
||||
private boolean isAmbientLoop(SoundInstance sound) {
|
||||
return sound instanceof BiomeAmbientSoundsHandler.LoopSoundInstance || sound instanceof UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance;
|
||||
|
||||
@@ -205,8 +205,7 @@ public abstract class LocalPlayerMixin extends AbstractClientPlayer implements O
|
||||
this.cobblemon$isJumping = this.input.jumping;
|
||||
}
|
||||
|
||||
// NeoForge adds a second isSprinting() call to aiStep, ordinal 0 keeps this to one run per tick
|
||||
@Inject(method = "aiStep", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSprinting()Z", ordinal = 0, shift = At.Shift.BEFORE))
|
||||
@Inject(method = "aiStep", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSprinting()Z", shift = At.Shift.BEFORE))
|
||||
private void cobblemon$updateDoubleJumping(CallbackInfo ci) {
|
||||
if (!this.cobblemon$isJumping && this.input.jumping && this.autoJumpTime <= 0 && !this.isSwimming()) {
|
||||
if (this.cobblemon$survivalJumpTriggerTime != 0) {
|
||||
|
||||
@@ -646,9 +646,9 @@ object CobblemonBlocks : PlatformRegistry<Registry<Block>, ResourceKey<Registry<
|
||||
@JvmField
|
||||
val GALARICA_CUFF = create("galarica_cuff", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(SoundType.AZALEA_LEAVES).mapColor(MapColor.NONE).noCollission().noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.FLATTENED_10x4))
|
||||
@JvmField
|
||||
val UNREMARKABLE_TEACUP = create("unremarkable_teacup", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(CobblemonSounds.ITEM_BLOCK_TEACUP_SOUNDS).mapColor(MapColor.NONE).noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.TEACUP))
|
||||
val UNREMARKABLE_TEACUP = create("unremarkable_teacup", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(SoundType.DECORATED_POT).mapColor(MapColor.NONE).noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.TEACUP))
|
||||
@JvmField
|
||||
val MASTERPIECE_TEACUP = create("masterpiece_teacup", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(CobblemonSounds.ITEM_BLOCK_TEACUP_SOUNDS).mapColor(MapColor.NONE).noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.TEACUP))
|
||||
val MASTERPIECE_TEACUP = create("masterpiece_teacup", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(SoundType.DECORATED_POT).mapColor(MapColor.NONE).noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.TEACUP))
|
||||
@JvmField
|
||||
val CHIPPED_POT = create("chipped_pot", DecorativeItemBlock(BlockBehaviour.Properties.of().sound(SoundType.DECORATED_POT).mapColor(MapColor.NONE).noOcclusion(), DecorativeItemBlock.DecorativeItemBlockType.TEAPOT))
|
||||
@JvmField
|
||||
|
||||
@@ -750,20 +750,5 @@ object CobblemonSounds : PlatformRegistry<Registry<SoundEvent>, ResourceKey<Regi
|
||||
ITEM_BLOCK_JAR_GLASS_LIQUID_STEP
|
||||
)
|
||||
|
||||
@JvmField
|
||||
val ITEM_BLOCK_TEACUP_PLACE = this.create("block.item_block.teacup.place")
|
||||
@JvmField
|
||||
val ITEM_BLOCK_TEACUP_BREAK = this.create("block.item_block.teacup.break")
|
||||
@JvmField
|
||||
val ITEM_BLOCK_TEACUP_STEP = this.create("block.item_block.teacup.step")
|
||||
@JvmField
|
||||
val ITEM_BLOCK_TEACUP_SOUNDS = SoundType(1f, 1.1f,
|
||||
ITEM_BLOCK_TEACUP_BREAK,
|
||||
ITEM_BLOCK_TEACUP_STEP,
|
||||
ITEM_BLOCK_TEACUP_PLACE,
|
||||
ITEM_BLOCK_TEACUP_STEP,
|
||||
ITEM_BLOCK_TEACUP_STEP
|
||||
)
|
||||
|
||||
private fun create(name: String): SoundEvent = this.create(name, SoundEvent.createVariableRangeEvent(cobblemonResource(name)))
|
||||
}
|
||||
@@ -1,17 +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.api.audio
|
||||
|
||||
import com.mojang.datafixers.util.Either
|
||||
import com.mojang.serialization.Codec
|
||||
|
||||
object AudioCodecs {
|
||||
val STRING_OR_LIST: Codec<List<String>> = Codec.either(Codec.STRING.listOf(), Codec.STRING)
|
||||
.xmap({ e -> e.map({ it }, { listOf(it) }) }, { Either.left(it) })
|
||||
}
|
||||
@@ -1,40 +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.api.audio
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
import net.minecraft.util.ExtraCodecs
|
||||
|
||||
/**
|
||||
* An entry added to the target events, like an `"type": "event"` entry in `sounds.json`.
|
||||
*
|
||||
* @property sound Sound event id (from a `sounds.json`) to play. Must not itself be a target.
|
||||
* @property weight Weight against the target's other entries while conditions match; 0 otherwise. Default 1.
|
||||
* @property conditions Conditions for this entry only.
|
||||
*/
|
||||
data class ConditionalSoundEntry(val sound: ResourceLocation, val weight: Int, val conditions: List<AudioCondition>) {
|
||||
companion object {
|
||||
private val FULL_CODEC: Codec<ConditionalSoundEntry> = RecordCodecBuilder.create {
|
||||
it.group(
|
||||
ResourceLocation.CODEC.fieldOf("sound").forGetter(ConditionalSoundEntry::sound),
|
||||
ExtraCodecs.POSITIVE_INT.optionalFieldOf("weight", 1).forGetter(ConditionalSoundEntry::weight),
|
||||
AudioCondition.LIST_CODEC.optionalFieldOf("conditions", emptyList())
|
||||
.forGetter(ConditionalSoundEntry::conditions)
|
||||
).apply(it, ::ConditionalSoundEntry)
|
||||
}
|
||||
|
||||
val CODEC: Codec<ConditionalSoundEntry> = Codec.withAlternative(
|
||||
FULL_CODEC,
|
||||
ResourceLocation.CODEC.xmap({ ConditionalSoundEntry(it, 1, emptyList()) }, ConditionalSoundEntry::sound)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1,41 +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.api.audio
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.util.ExtraCodecs
|
||||
|
||||
/**
|
||||
* One file in `assets/<namespace>/conditional_sounds/`: extra entries added to existing sound events (from any
|
||||
* `sounds.json`), each only eligible while its conditions match. Vanilla still picks the event and does the weighted
|
||||
* random pick; these entries just join that pick.
|
||||
*
|
||||
* @property targets Sound event ids to extend. An id ending in `*` matches every event with that prefix.
|
||||
* @property conditions Conditions shared by every entry in this file.
|
||||
* @property sounds The entries to add.
|
||||
*/
|
||||
data class ConditionalSounds(
|
||||
val targets: List<String>,
|
||||
val conditions: List<AudioCondition>,
|
||||
val sounds: List<ConditionalSoundEntry>
|
||||
) {
|
||||
companion object {
|
||||
val CODEC: Codec<ConditionalSounds> = RecordCodecBuilder.create {
|
||||
it.group(
|
||||
AudioCodecs.STRING_OR_LIST.fieldOf("targets").forGetter(ConditionalSounds::targets),
|
||||
AudioCondition.LIST_CODEC.optionalFieldOf("conditions", emptyList())
|
||||
.forGetter(ConditionalSounds::conditions),
|
||||
ExtraCodecs.nonEmptyList(ConditionalSoundEntry.CODEC.listOf()).fieldOf("sounds")
|
||||
.forGetter(ConditionalSounds::sounds)
|
||||
).apply(it, ::ConditionalSounds)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,40 +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.api.audio.condition
|
||||
|
||||
import com.mojang.serialization.Codec
|
||||
|
||||
/**
|
||||
* A client-side check against the local player's situation, used to filter conditional sound entries.
|
||||
* Each condition reads what it needs from [AudioContext] itself. [test] runs on the client thread.
|
||||
*/
|
||||
interface AudioCondition {
|
||||
|
||||
fun test(ctx: AudioContext): Boolean
|
||||
|
||||
fun type(): ConditionType<*>
|
||||
|
||||
companion object {
|
||||
val CODEC: Codec<AudioCondition> = Codec.lazyInitialized {
|
||||
ConditionType.CODEC.dispatch("type", AudioCondition::type) { it.codec }
|
||||
}
|
||||
|
||||
val LIST_CODEC: Codec<List<AudioCondition>> = CODEC.listOf()
|
||||
|
||||
fun all(conditions: List<AudioCondition>, ctx: AudioContext): Boolean {
|
||||
for (i in conditions.indices) if (!conditions[i].test(ctx)) return false
|
||||
return true
|
||||
}
|
||||
|
||||
fun any(conditions: List<AudioCondition>, ctx: AudioContext): Boolean {
|
||||
for (i in conditions.indices) if (conditions[i].test(ctx)) return true
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,57 +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.api.audio.condition
|
||||
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.multiplayer.ClientLevel
|
||||
import net.minecraft.client.player.LocalPlayer
|
||||
import net.minecraft.core.BlockPos
|
||||
import net.minecraft.util.Mth
|
||||
|
||||
/**
|
||||
* A reusable snapshot of who and where the local player is, which [AudioCondition]s read from.
|
||||
* Holds only the player, level and positions; each condition derives the rest itself.
|
||||
*
|
||||
* Not thread-safe: client thread only. Positions are mutable and reused, so copy them if you need to keep them.
|
||||
*/
|
||||
class AudioContext {
|
||||
private var _player: LocalPlayer? = null
|
||||
private var _level: ClientLevel? = null
|
||||
private val feet = BlockPos.MutableBlockPos()
|
||||
private val eye = BlockPos.MutableBlockPos()
|
||||
|
||||
val player: LocalPlayer get() = checkNotNull(_player) { "AudioContext not updated" }
|
||||
|
||||
val level: ClientLevel get() = checkNotNull(_level) { "AudioContext not updated" }
|
||||
|
||||
fun update(player: LocalPlayer, level: ClientLevel) {
|
||||
_player = player
|
||||
_level = level
|
||||
feet.set(player.blockPosition())
|
||||
eye.set(player.blockX, Mth.floor(player.eyeY), player.blockZ)
|
||||
}
|
||||
|
||||
fun clear() {
|
||||
_player = null
|
||||
_level = null
|
||||
}
|
||||
|
||||
fun feetPos(): BlockPos = feet
|
||||
|
||||
fun eyePos(): BlockPos = eye
|
||||
|
||||
companion object {
|
||||
fun capture(): AudioContext? {
|
||||
val mc = Minecraft.getInstance()
|
||||
val player = mc.player ?: return null
|
||||
val level = mc.level ?: return null
|
||||
return AudioContext().also { it.update(player, level) }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,41 +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.api.audio.condition
|
||||
|
||||
import com.cobblemon.mod.common.Cobblemon
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.DataResult
|
||||
import com.mojang.serialization.MapCodec
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
|
||||
/**
|
||||
* A registered kind of [AudioCondition].
|
||||
*
|
||||
* @property id The id written in JSON. Ids without a namespace resolve to `cobblemon`.
|
||||
* @property codec Codec for the condition's other fields.
|
||||
*/
|
||||
data class ConditionType<T : AudioCondition>(val id: ResourceLocation, val codec: MapCodec<T>) {
|
||||
companion object {
|
||||
private val REGISTRY = HashMap<ResourceLocation, ConditionType<*>>()
|
||||
|
||||
fun <T : AudioCondition> register(id: ResourceLocation, codec: MapCodec<T>): ConditionType<T> {
|
||||
val type = ConditionType(id, codec)
|
||||
check(REGISTRY.putIfAbsent(id, type) == null) { "Duplicate audio condition type: $id" }
|
||||
return type
|
||||
}
|
||||
|
||||
fun get(id: ResourceLocation): ConditionType<*>? = REGISTRY[id]
|
||||
|
||||
val CODEC: Codec<ConditionType<*>> = Codec.STRING.comapFlatMap({ raw ->
|
||||
val id = ResourceLocation.tryParse(if (':' in raw) raw else "${Cobblemon.MODID}:$raw")
|
||||
val type = id?.let { REGISTRY[it] }
|
||||
if (type != null) DataResult.success(type) else DataResult.error { "Unknown audio condition type '$raw'" }
|
||||
}, { it.id.toString() })
|
||||
}
|
||||
}
|
||||
@@ -1,59 +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.api.audio.condition
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.AudioCodecs
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.DataResult
|
||||
import net.minecraft.core.Holder
|
||||
import net.minecraft.core.Registry
|
||||
import net.minecraft.resources.ResourceKey
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
import net.minecraft.tags.TagKey
|
||||
|
||||
/**
|
||||
* Matches registry entries by id or tag. Parsed from a string or list of strings, where a `#` prefix means a tag.
|
||||
* Ids and tags are resolved once when decoded, so matching does no parsing or registry lookups.
|
||||
*/
|
||||
class KeyMatcher<T> private constructor(
|
||||
val keys: Set<ResourceKey<T>>,
|
||||
val tags: List<TagKey<T>>
|
||||
) {
|
||||
fun matches(holder: Holder<T>): Boolean {
|
||||
if (holder is Holder.Reference<T> && holder.key() in keys) return true
|
||||
for (i in tags.indices) if (holder.`is`(tags[i])) return true
|
||||
return false
|
||||
}
|
||||
|
||||
fun matches(key: ResourceKey<T>): Boolean = key in keys
|
||||
|
||||
companion object {
|
||||
fun <T> codec(registry: ResourceKey<out Registry<T>>, allowTags: Boolean): Codec<KeyMatcher<T>> =
|
||||
AudioCodecs.STRING_OR_LIST.flatXmap({ strings -> parse(registry, allowTags, strings) }, { m ->
|
||||
DataResult.success(m.keys.map { it.location().toString() } + m.tags.map { "#${it.location}" })
|
||||
})
|
||||
|
||||
private fun <T> parse(
|
||||
registry: ResourceKey<out Registry<T>>,
|
||||
allowTags: Boolean,
|
||||
strings: List<String>
|
||||
): DataResult<KeyMatcher<T>> {
|
||||
val keys = HashSet<ResourceKey<T>>()
|
||||
val tags = ArrayList<TagKey<T>>()
|
||||
for (s in strings) {
|
||||
val isTag = s.startsWith("#")
|
||||
if (isTag && !allowTags) return DataResult.error { "Tags are not supported here: '$s'" }
|
||||
val id = ResourceLocation.read(if (isTag) s.substring(1) else s).result().orElse(null)
|
||||
?: return DataResult.error { "Invalid id '$s'" }
|
||||
if (isTag) tags += TagKey.create(registry, id) else keys += ResourceKey.create(registry, id)
|
||||
}
|
||||
return DataResult.success(KeyMatcher(keys, tags))
|
||||
}
|
||||
}
|
||||
}
|
||||
-24
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** Every nested condition passes. */
|
||||
data class AllOfCondition(val conditions: List<AudioCondition>) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = AudioCondition.all(conditions, ctx)
|
||||
override fun type() = BuiltinConditions.ALL_OF
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<AllOfCondition> =
|
||||
AudioCondition.LIST_CODEC.fieldOf("conditions").xmap(::AllOfCondition, AllOfCondition::conditions)
|
||||
}
|
||||
}
|
||||
-24
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** At least one nested condition passes. */
|
||||
data class AnyOfCondition(val conditions: List<AudioCondition>) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = AudioCondition.any(conditions, ctx)
|
||||
override fun type() = BuiltinConditions.ANY_OF
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<AnyOfCondition> =
|
||||
AudioCondition.LIST_CODEC.fieldOf("conditions").xmap(::AnyOfCondition, AnyOfCondition::conditions)
|
||||
}
|
||||
}
|
||||
-27
@@ -1,27 +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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.cobblemon.mod.common.api.audio.condition.KeyMatcher
|
||||
import com.mojang.serialization.MapCodec
|
||||
import net.minecraft.core.registries.Registries
|
||||
import net.minecraft.world.level.biome.Biome
|
||||
|
||||
/** Biome at the player's feet matches an id or `#tag`. */
|
||||
data class BiomeCondition(val biomes: KeyMatcher<Biome>) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = biomes.matches(ctx.level.getBiome(ctx.feetPos()))
|
||||
override fun type() = BuiltinConditions.BIOME
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<BiomeCondition> =
|
||||
KeyMatcher.codec(Registries.BIOME, true).fieldOf("biomes").xmap(::BiomeCondition, BiomeCondition::biomes)
|
||||
}
|
||||
}
|
||||
-35
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.ConditionType
|
||||
import com.cobblemon.mod.common.util.cobblemonResource
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** The built-in [AudioCondition] types. Ids are in the `cobblemon` namespace, so JSON can write just `"biome"`. */
|
||||
object BuiltinConditions {
|
||||
val BIOME = register("biome", BiomeCondition.CODEC)
|
||||
val DIMENSION = register("dimension", DimensionCondition.CODEC)
|
||||
val TIME_OF_DAY = register("time_of_day", TimeOfDayCondition.CODEC)
|
||||
val SKY_ACCESS = register("sky_access", SkyAccessCondition.CODEC)
|
||||
val UNDERGROUND = register("underground", UndergroundCondition.CODEC)
|
||||
val LIGHT_LEVEL = register("light_level", LightLevelCondition.CODEC)
|
||||
val Y_LEVEL = register("y_level", YLevelCondition.CODEC)
|
||||
val WEATHER = register("weather", WeatherCondition.CODEC)
|
||||
val UNDERWATER = register("underwater", UnderwaterCondition.CODEC)
|
||||
val ALL_OF = register("all_of", AllOfCondition.CODEC)
|
||||
val ANY_OF = register("any_of", AnyOfCondition.CODEC)
|
||||
val NOT = register("not", NotCondition.CODEC)
|
||||
|
||||
fun bootstrap() {}
|
||||
|
||||
private fun <T : AudioCondition> register(name: String, codec: MapCodec<T>) =
|
||||
ConditionType.register(cobblemonResource(name), codec)
|
||||
}
|
||||
-27
@@ -1,27 +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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.cobblemon.mod.common.api.audio.condition.KeyMatcher
|
||||
import com.mojang.serialization.MapCodec
|
||||
import net.minecraft.core.registries.Registries
|
||||
import net.minecraft.world.level.Level
|
||||
|
||||
/** Current dimension matches one of the ids. Tags are not supported for dimensions. */
|
||||
data class DimensionCondition(val dimensions: KeyMatcher<Level>) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = dimensions.matches(ctx.level.dimension())
|
||||
override fun type() = BuiltinConditions.DIMENSION
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<DimensionCondition> = KeyMatcher.codec(Registries.DIMENSION, false).fieldOf("dimensions")
|
||||
.xmap(::DimensionCondition, DimensionCondition::dimensions)
|
||||
}
|
||||
}
|
||||
-57
@@ -1,57 +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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.DataResult
|
||||
import com.mojang.serialization.MapCodec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.util.StringRepresentable
|
||||
import net.minecraft.world.level.LightLayer
|
||||
|
||||
/** Light at the player's eyes is within an inclusive range. */
|
||||
data class LightLevelCondition(val min: Int, val max: Int, val source: LightSource) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = source.read(ctx) in min..max
|
||||
override fun type() = BuiltinConditions.LIGHT_LEVEL
|
||||
|
||||
companion object {
|
||||
private val LIGHT = Codec.intRange(0, 15)
|
||||
val CODEC: MapCodec<LightLevelCondition> = RecordCodecBuilder.mapCodec<LightLevelCondition> {
|
||||
it.group(
|
||||
LIGHT.optionalFieldOf("min", 0).forGetter(LightLevelCondition::min),
|
||||
LIGHT.optionalFieldOf("max", 15).forGetter(LightLevelCondition::max),
|
||||
LightSource.CODEC.optionalFieldOf("source", LightSource.COMBINED).forGetter(LightLevelCondition::source)
|
||||
).apply(it, ::LightLevelCondition)
|
||||
}
|
||||
.validate { if (it.min <= it.max) DataResult.success(it) else DataResult.error { "light_level: min must be <= max" } }
|
||||
}
|
||||
}
|
||||
|
||||
enum class LightSource : StringRepresentable {
|
||||
BLOCK {
|
||||
override fun read(ctx: AudioContext) = ctx.level.getBrightness(LightLayer.BLOCK, ctx.eyePos())
|
||||
},
|
||||
|
||||
SKY {
|
||||
override fun read(ctx: AudioContext) = ctx.level.getBrightness(LightLayer.SKY, ctx.eyePos())
|
||||
},
|
||||
|
||||
COMBINED {
|
||||
override fun read(ctx: AudioContext) = ctx.level.getMaxLocalRawBrightness(ctx.eyePos())
|
||||
};
|
||||
|
||||
abstract fun read(ctx: AudioContext): Int
|
||||
override fun getSerializedName() = name.lowercase()
|
||||
|
||||
companion object {
|
||||
val CODEC: Codec<LightSource> = StringRepresentable.fromEnum(::values)
|
||||
}
|
||||
}
|
||||
-24
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** The nested condition fails. */
|
||||
data class NotCondition(val condition: AudioCondition) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = !condition.test(ctx)
|
||||
override fun type() = BuiltinConditions.NOT
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<NotCondition> =
|
||||
AudioCondition.CODEC.fieldOf("condition").xmap(::NotCondition, NotCondition::condition)
|
||||
}
|
||||
}
|
||||
-25
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** Sky is (or is not) visible straight up from the player's eyes. */
|
||||
data class SkyAccessCondition(val value: Boolean) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = ctx.level.canSeeSky(ctx.eyePos()) == value
|
||||
override fun type() = BuiltinConditions.SKY_ACCESS
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<SkyAccessCondition> =
|
||||
Codec.BOOL.optionalFieldOf("value", true).xmap(::SkyAccessCondition, SkyAccessCondition::value)
|
||||
}
|
||||
}
|
||||
-69
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Cobblemon Contributors
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package com.cobblemon.mod.common.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.DataResult
|
||||
import com.mojang.serialization.MapCodec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.util.StringRepresentable
|
||||
import java.util.*
|
||||
|
||||
/** Time of day (0 to 23999) is within an inclusive tick range; `min > max` wraps past midnight (e.g. 22000 to 2000). */
|
||||
data class TimeOfDayCondition(val period: TimePeriod?, val min: Int, val max: Int) : AudioCondition {
|
||||
override fun test(ctx: AudioContext): Boolean {
|
||||
val t = Math.floorMod(ctx.level.dayTime, 24000L).toInt()
|
||||
return if (min <= max) t in min..max else t !in (max + 1)..<min
|
||||
}
|
||||
|
||||
override fun type() = BuiltinConditions.TIME_OF_DAY
|
||||
|
||||
companion object {
|
||||
private val TICK = Codec.intRange(0, 23999)
|
||||
val CODEC: MapCodec<TimeOfDayCondition> =
|
||||
RecordCodecBuilder.mapCodec<Triple<Optional<TimePeriod>, Optional<Int>, Optional<Int>>> {
|
||||
it.group(
|
||||
TimePeriod.CODEC.optionalFieldOf("period").forGetter { t -> t.first },
|
||||
TICK.optionalFieldOf("min").forGetter { t -> t.second },
|
||||
TICK.optionalFieldOf("max").forGetter { t -> t.third }
|
||||
).apply(it, ::Triple)
|
||||
}.flatXmap({ (period, min, max) ->
|
||||
when {
|
||||
period.isPresent && (min.isPresent || max.isPresent) -> DataResult.error { "time_of_day: use either 'period' or 'min'+'max', not both" }
|
||||
period.isPresent -> DataResult.success(
|
||||
TimeOfDayCondition(
|
||||
period.get(),
|
||||
period.get().min,
|
||||
period.get().max
|
||||
)
|
||||
)
|
||||
|
||||
min.isPresent && max.isPresent -> DataResult.success(TimeOfDayCondition(null, min.get(), max.get()))
|
||||
else -> DataResult.error { "time_of_day: needs 'period' or both 'min' and 'max'" }
|
||||
}
|
||||
}, { c ->
|
||||
DataResult.success(
|
||||
if (c.period != null) Triple(Optional.of(c.period), Optional.empty(), Optional.empty())
|
||||
else Triple(Optional.empty(), Optional.of(c.min), Optional.of(c.max))
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
enum class TimePeriod(val min: Int, val max: Int) : StringRepresentable {
|
||||
DAWN(23000, 999), DAY(1000, 11999), DUSK(12000, 12999), NIGHT(13000, 22999);
|
||||
|
||||
override fun getSerializedName() = name.lowercase()
|
||||
|
||||
companion object {
|
||||
val CODEC: Codec<TimePeriod> = StringRepresentable.fromEnum(::values)
|
||||
}
|
||||
}
|
||||
-43
@@ -1,43 +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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.world.level.levelgen.Heightmap
|
||||
|
||||
/**
|
||||
* Underground means no sky access AND at least [minDepth] blocks below the surface, so tree cover does not count.
|
||||
* Depth is measured from the WORLD_SURFACE heightmap (synced to clients) to the player's eyes.
|
||||
*/
|
||||
data class UndergroundCondition(val value: Boolean, val minDepth: Int) : AudioCondition {
|
||||
override fun test(ctx: AudioContext): Boolean {
|
||||
val eye = ctx.eyePos()
|
||||
val underground = !ctx.level.canSeeSky(eye) && ctx.level.getHeight(
|
||||
Heightmap.Types.WORLD_SURFACE,
|
||||
eye.x,
|
||||
eye.z
|
||||
) - eye.y >= minDepth
|
||||
return underground == value
|
||||
}
|
||||
|
||||
override fun type() = BuiltinConditions.UNDERGROUND
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<UndergroundCondition> = RecordCodecBuilder.mapCodec {
|
||||
it.group(
|
||||
Codec.BOOL.optionalFieldOf("value", true).forGetter(UndergroundCondition::value),
|
||||
Codec.INT.optionalFieldOf("min_depth", 8).forGetter(UndergroundCondition::minDepth)
|
||||
).apply(it, ::UndergroundCondition)
|
||||
}
|
||||
}
|
||||
}
|
||||
-25
@@ -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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
|
||||
/** Player's eyes are (or are not) under water. */
|
||||
data class UnderwaterCondition(val value: Boolean) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = ctx.player.isUnderWater == value
|
||||
override fun type() = BuiltinConditions.UNDERWATER
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<UnderwaterCondition> =
|
||||
Codec.BOOL.optionalFieldOf("value", true).xmap(::UnderwaterCondition, UnderwaterCondition::value)
|
||||
}
|
||||
}
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Cobblemon Contributors
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package com.cobblemon.mod.common.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
import net.minecraft.util.StringRepresentable
|
||||
import net.minecraft.world.level.Level
|
||||
|
||||
/** Current level weather (not biome-aware: it also "rains" in deserts). */
|
||||
data class WeatherCondition(val weather: Weather) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = weather.matches(ctx.level)
|
||||
override fun type() = BuiltinConditions.WEATHER
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<WeatherCondition> =
|
||||
Weather.CODEC.fieldOf("weather").xmap(::WeatherCondition, WeatherCondition::weather)
|
||||
}
|
||||
}
|
||||
|
||||
enum class Weather : StringRepresentable {
|
||||
CLEAR {
|
||||
override fun matches(level: Level) = !level.isRaining
|
||||
},
|
||||
RAIN {
|
||||
override fun matches(level: Level) = level.isRaining
|
||||
},
|
||||
THUNDER {
|
||||
override fun matches(level: Level) = level.isThundering
|
||||
};
|
||||
|
||||
abstract fun matches(level: Level): Boolean
|
||||
override fun getSerializedName() = name.lowercase()
|
||||
|
||||
companion object {
|
||||
val CODEC: Codec<Weather> = StringRepresentable.fromEnum(::values)
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +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.api.audio.condition.builtin
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.DataResult
|
||||
import com.mojang.serialization.MapCodec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
|
||||
/** Player's feet Y is within an inclusive range; either bound may be omitted. */
|
||||
data class YLevelCondition(val min: Int, val max: Int) : AudioCondition {
|
||||
override fun test(ctx: AudioContext) = ctx.feetPos().y in min..max
|
||||
override fun type() = BuiltinConditions.Y_LEVEL
|
||||
|
||||
companion object {
|
||||
val CODEC: MapCodec<YLevelCondition> = RecordCodecBuilder.mapCodec<YLevelCondition> {
|
||||
it.group(
|
||||
Codec.INT.optionalFieldOf("min", Int.MIN_VALUE).forGetter(YLevelCondition::min),
|
||||
Codec.INT.optionalFieldOf("max", Int.MAX_VALUE).forGetter(YLevelCondition::max)
|
||||
).apply(it, ::YLevelCondition)
|
||||
}
|
||||
.validate { if (it.min <= it.max) DataResult.success(it) else DataResult.error { "y_level: min must be <= max" } }
|
||||
}
|
||||
}
|
||||
+17
-6
@@ -37,6 +37,7 @@ import com.cobblemon.mod.common.util.writeRidingStats
|
||||
import kotlin.math.abs
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.core.BlockPos
|
||||
import net.minecraft.network.RegistryFriendlyByteBuf
|
||||
import net.minecraft.util.Mth
|
||||
@@ -94,12 +95,8 @@ class BoatBehaviour : RidingBehaviour<BoatSettings, BoatState> {
|
||||
state.jumpBuffer.set(state.jumpBuffer.get() + 1)
|
||||
}
|
||||
|
||||
// Only start sprinting on vehicle if the state has changed and the pokemon has atleast 1/3 stamina
|
||||
if (driver.isSprinting && !state.isVehicleSprinting.get()) {
|
||||
state.isVehicleSprinting.set(state.stamina.get() > 0.33f)
|
||||
}
|
||||
else if (!driver.isSprinting) {
|
||||
state.isVehicleSprinting.set(false)
|
||||
if (vehicle.level().isClientSide) {
|
||||
handleSprinting(state)
|
||||
}
|
||||
|
||||
if (!state.isVehicleSprinting.get()) {
|
||||
@@ -115,6 +112,20 @@ class BoatBehaviour : RidingBehaviour<BoatSettings, BoatState> {
|
||||
super.tick(settings, state, vehicle, driver, input)
|
||||
}
|
||||
|
||||
fun handleSprinting(
|
||||
state: BoatState
|
||||
) {
|
||||
// Check the keys instead of driver.isSprinting since that can still be true from a previous ride style
|
||||
val tryingToSprint = Minecraft.getInstance().options.keySprint.isDown() && Minecraft.getInstance().options.keyUp.isDown()
|
||||
// Only start sprinting on vehicle if the state has changed and the pokemon has atleast 1/3 stamina
|
||||
if (tryingToSprint && !state.isVehicleSprinting.get()) {
|
||||
state.isVehicleSprinting.set(state.stamina.get() > 0.33f)
|
||||
}
|
||||
else if (!tryingToSprint) {
|
||||
state.isVehicleSprinting.set(false)
|
||||
}
|
||||
}
|
||||
|
||||
override fun pose(settings: BoatSettings, state: BoatState, vehicle: PokemonEntity): PoseType {
|
||||
return poseProvider.select(settings, state, vehicle)
|
||||
}
|
||||
|
||||
-1
@@ -41,7 +41,6 @@ class WeightTweakRuleComponent : SpawnRuleComponent {
|
||||
return if (spawnDetailSelector.selects(detail) && spawnablePositionSelector.selects(spawnablePosition)) {
|
||||
runtime.environment.setSimpleVariable("spawn", detail.struct)
|
||||
runtime.environment.setSimpleVariable("spawn_detail", detail.struct)
|
||||
runtime.environment.setSimpleVariable("spawnable_position", spawnablePosition.getOrSetupStruct())
|
||||
runtime.environment.setSimpleVariable("weight", DoubleValue(weight.toDouble()))
|
||||
runtime.resolveFloat(this.weight)
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import com.cobblemon.mod.common.util.battleLang
|
||||
*/
|
||||
class CombineInstruction(val message: BattleMessage) : InterpreterInstruction {
|
||||
override fun invoke(battle: PokemonBattle) {
|
||||
battle.dispatchGo() {
|
||||
battle.dispatchWaiting(1.5F) {
|
||||
battle.broadcastChatMessage(battleLang("combine").yellow())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,6 +169,7 @@ class TypeGemCoreBlock(properties: Properties) : Block(properties) {
|
||||
|
||||
if (fullClusterCount == 0) {
|
||||
if (gemCount < Cobblemon.config.typeGemMinGrowth && clusters.isNotEmpty()) {
|
||||
println("Force set a cluster to FULL at size $gemCount")
|
||||
val randomCluster = clusters.random()
|
||||
level.setBlockAndUpdate(randomCluster.second, randomCluster.first.setValue(GROWTH_TYPE, GrowthType.FULL))
|
||||
}
|
||||
|
||||
-23
@@ -13,7 +13,6 @@ import com.cobblemon.mod.common.api.gui.MultiLineLabelK
|
||||
import com.cobblemon.mod.common.api.gui.blitk
|
||||
import com.cobblemon.mod.common.api.text.*
|
||||
import com.cobblemon.mod.common.client.CobblemonResources
|
||||
import com.cobblemon.mod.common.client.gui.summary.ScrollableTextBox
|
||||
import com.cobblemon.mod.common.client.gui.summary.widgets.SoundlessWidget
|
||||
import com.cobblemon.mod.common.client.gui.summary.widgets.common.reformatNatureTextIfMinted
|
||||
import com.cobblemon.mod.common.client.gui.summary.widgets.screens.stats.StatWidget.Companion.SCALE
|
||||
@@ -28,7 +27,6 @@ import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.gui.GuiGraphics
|
||||
import net.minecraft.network.chat.Component
|
||||
import net.minecraft.network.chat.MutableComponent
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
|
||||
class InfoWidget(
|
||||
pX: Int,
|
||||
@@ -47,25 +45,6 @@ class InfoWidget(
|
||||
private val infoBaseResource = cobblemonResource("textures/gui/summary/summary_info_base.png")
|
||||
}
|
||||
|
||||
private var metDataWidget: ScrollableTextBox = ScrollableTextBox(x + 5, y + 123, 20, 61, 5)
|
||||
|
||||
init {
|
||||
pokemon.metData?.let { metData ->
|
||||
val biome = ResourceLocation.parse(metData.biome.registeredName)
|
||||
val biomeName = Component.translatable("biome.${biome.namespace}.${biome.path}")
|
||||
metDataWidget.setText(lang("ui.info.met_data.${metData.variant.serializedName}",
|
||||
biomeName,
|
||||
metData.date.monthValue,
|
||||
metData.date.dayOfMonth,
|
||||
metData.date.year,
|
||||
metData.level
|
||||
))
|
||||
} ?: run {
|
||||
metDataWidget.setText(lang("ui.info.met_data.unavailable"))
|
||||
}
|
||||
addWidget(metDataWidget)
|
||||
}
|
||||
|
||||
override fun renderWidget(context: GuiGraphics, pMouseX: Int, pMouseY: Int, pPartialTicks: Float) {
|
||||
val matrices = context.pose()
|
||||
// Base texture
|
||||
@@ -184,8 +163,6 @@ class InfoWidget(
|
||||
)
|
||||
matrices.popPose()
|
||||
|
||||
metDataWidget.render(context, pMouseX, pMouseY, pPartialTicks)
|
||||
|
||||
drawScaledText(
|
||||
context = context,
|
||||
text = lang("ui.info.experience_points"),
|
||||
|
||||
+47
@@ -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.client.gui.summary.widgets.screens.moves
|
||||
|
||||
import com.cobblemon.mod.common.client.render.drawScaledText
|
||||
import net.minecraft.client.gui.GuiGraphics
|
||||
import net.minecraft.client.gui.components.ObjectSelectionList
|
||||
import net.minecraft.network.chat.Component
|
||||
import net.minecraft.network.chat.MutableComponent
|
||||
|
||||
class MoveDescriptionEntry(
|
||||
var line : MutableComponent
|
||||
) :
|
||||
ObjectSelectionList.Entry<MoveDescriptionEntry>() {
|
||||
|
||||
override fun render(
|
||||
context: GuiGraphics,
|
||||
index: Int,
|
||||
rowTop: Int,
|
||||
rowLeft: Int,
|
||||
rowWidth: Int,
|
||||
rowHeight: Int,
|
||||
mouseX: Int,
|
||||
mouseY: Int,
|
||||
isHovered: Boolean,
|
||||
partialTicks: Float
|
||||
) {
|
||||
drawScaledText(
|
||||
context = context,
|
||||
text = line,
|
||||
x = rowLeft + 82,
|
||||
y = rowTop,
|
||||
scale = 0.5F,
|
||||
shadow = true
|
||||
)
|
||||
}
|
||||
|
||||
override fun getNarration(): Component {
|
||||
return line
|
||||
}
|
||||
}
|
||||
+7
-67
@@ -6,59 +6,23 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package com.cobblemon.mod.common.client.gui.summary
|
||||
package com.cobblemon.mod.common.client.gui.summary.widgets.screens.moves
|
||||
|
||||
import com.cobblemon.mod.common.client.gui.CobblemonRenderable
|
||||
import com.cobblemon.mod.common.client.render.drawScaledText
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.gui.GuiGraphics
|
||||
import net.minecraft.client.gui.components.ObjectSelectionList
|
||||
import net.minecraft.network.chat.Component
|
||||
import net.minecraft.network.chat.MutableComponent
|
||||
import net.minecraft.util.Mth
|
||||
|
||||
class ScrollableTextBoxEntry(
|
||||
var line : MutableComponent
|
||||
) :
|
||||
ObjectSelectionList.Entry<ScrollableTextBoxEntry>() {
|
||||
|
||||
override fun render(
|
||||
context: GuiGraphics,
|
||||
index: Int,
|
||||
rowTop: Int,
|
||||
rowLeft: Int,
|
||||
rowWidth: Int,
|
||||
rowHeight: Int,
|
||||
mouseX: Int,
|
||||
mouseY: Int,
|
||||
isHovered: Boolean,
|
||||
partialTicks: Float
|
||||
) {
|
||||
drawScaledText(
|
||||
context = context,
|
||||
text = line,
|
||||
x = rowLeft + 82,
|
||||
y = rowTop,
|
||||
scale = 0.5F,
|
||||
shadow = true
|
||||
)
|
||||
}
|
||||
|
||||
override fun getNarration(): Component {
|
||||
return line
|
||||
}
|
||||
}
|
||||
|
||||
class ScrollableTextBox(
|
||||
class MoveDescriptionScrollList(
|
||||
private val listX: Int,
|
||||
private val listY: Int,
|
||||
height: Int,
|
||||
width: Int,
|
||||
slotHeight: Int
|
||||
) : ObjectSelectionList<ScrollableTextBoxEntry>(
|
||||
) : ObjectSelectionList<MoveDescriptionEntry>(
|
||||
Minecraft.getInstance(),
|
||||
width, // width
|
||||
height, // height
|
||||
60, // width
|
||||
30, // height
|
||||
0, // top
|
||||
slotHeight
|
||||
), CobblemonRenderable {
|
||||
@@ -74,31 +38,8 @@ class ScrollableTextBox(
|
||||
return x + width - 3
|
||||
}
|
||||
|
||||
override fun getMaxPosition(): Int {
|
||||
return super.getMaxPosition() + 3 // add bottom padding
|
||||
}
|
||||
|
||||
// we do our own scrollbar rendering, and this being true renders the vanilla one
|
||||
override fun scrollbarVisible() = false
|
||||
|
||||
override fun renderWidget(context: GuiGraphics, pMouseX: Int, pMouseY: Int, f: Float) {
|
||||
isHovered = pMouseX >= x && pMouseY >= y && pMouseX < x + width && pMouseY < y + height
|
||||
|
||||
if (maxScroll > 0) {
|
||||
val right = x + width
|
||||
val bottom = y + height
|
||||
val darkGray = 0xFF5B595B.toInt()
|
||||
val lightGray = 0xFF8C8C8C.toInt()
|
||||
context.fill(right - 2, y + 2, right - 4, bottom - 2, darkGray)
|
||||
// vanilla scrollbar mumbo jumbo
|
||||
var scrollHeight = ((height * height).toFloat() / maxPosition.toFloat()).toInt()
|
||||
scrollHeight = Mth.clamp(scrollHeight, 32, height - 8)
|
||||
var scrollY = scrollAmount.toInt() * (height - scrollHeight + 2) / maxScroll + y - 1
|
||||
if (scrollY < y) { scrollY = y }
|
||||
|
||||
context.fill(right - 2, scrollY + 2, right - 4, scrollY + scrollHeight - 3, lightGray)
|
||||
}
|
||||
|
||||
context.enableScissor(
|
||||
x,
|
||||
y,
|
||||
@@ -138,7 +79,7 @@ class ScrollableTextBox(
|
||||
&& mouseY < bottom
|
||||
}
|
||||
|
||||
fun setText(moveDescription: MutableComponent) {
|
||||
fun setMoveDescription(moveDescription: MutableComponent) {
|
||||
clearEntries()
|
||||
val splitWidth = 100
|
||||
val text = moveDescription.string
|
||||
@@ -162,8 +103,7 @@ class ScrollableTextBox(
|
||||
}
|
||||
|
||||
for (part in splitText) {
|
||||
addEntry(ScrollableTextBoxEntry(Component.literal(part)))
|
||||
addEntry(MoveDescriptionEntry(Component.literal(part)))
|
||||
}
|
||||
scrollAmount = 0.0
|
||||
}
|
||||
}
|
||||
+3
-6
@@ -13,7 +13,6 @@ import com.cobblemon.mod.common.api.gui.blitk
|
||||
import com.cobblemon.mod.common.api.moves.Move
|
||||
import com.cobblemon.mod.common.api.text.text
|
||||
import com.cobblemon.mod.common.client.CobblemonClient
|
||||
import com.cobblemon.mod.common.client.gui.summary.ScrollableTextBox
|
||||
import com.cobblemon.mod.common.client.gui.summary.Summary
|
||||
import com.cobblemon.mod.common.client.gui.summary.widgets.SoundlessWidget
|
||||
import com.cobblemon.mod.common.client.render.drawScaledText
|
||||
@@ -71,11 +70,9 @@ class MovesWidget(
|
||||
addWidget(it)
|
||||
}
|
||||
|
||||
private var descriptionScrollList = ScrollableTextBox(
|
||||
x + 68,
|
||||
private var descriptionScrollList = MoveDescriptionScrollList(
|
||||
x + 69,
|
||||
y + 113,
|
||||
30,
|
||||
61,
|
||||
5
|
||||
)
|
||||
|
||||
@@ -218,7 +215,7 @@ class MovesWidget(
|
||||
|
||||
fun selectMove(move: Move?) {
|
||||
selectedMove = if (selectedMove == move || move == null) null else move
|
||||
descriptionScrollList.setText(selectedMove?.description ?: "".text())
|
||||
descriptionScrollList.setMoveDescription(selectedMove?.description ?: "".text())
|
||||
}
|
||||
|
||||
override fun mouseClicked(mouseX: Double, mouseY: Double, button: Int): Boolean {
|
||||
|
||||
+70
@@ -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.client.render.models.blockbench.pokemon.gen3
|
||||
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.animation.QuadrupedWalkAnimation
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.frame.QuadrupedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
|
||||
import com.cobblemon.mod.common.entity.PoseType
|
||||
import net.minecraft.client.model.geom.ModelPart
|
||||
import net.minecraft.world.phys.Vec3
|
||||
|
||||
class TrapinchModel (root: ModelPart) : PokemonPosableModel(root), HeadedFrame, QuadrupedFrame {
|
||||
override val rootPart = root.registerChildWithAllChildren("trapinch")
|
||||
override val head = getPart("head")
|
||||
|
||||
override val foreLeftLeg = getPart("leg_front_left")
|
||||
override val foreRightLeg = getPart("leg_front_right")
|
||||
override val hindLeftLeg = getPart("leg_back_left")
|
||||
override val hindRightLeg = getPart("leg_back_right")
|
||||
|
||||
override var portraitScale = 1.44F
|
||||
override var portraitTranslation = Vec3(-0.4, -0.6, 0.0)
|
||||
|
||||
override var profileScale = 0.9F
|
||||
override var profileTranslation = Vec3(0.12, 0.33, 0.0)
|
||||
|
||||
lateinit var standing: CobblemonPose
|
||||
lateinit var walk: CobblemonPose
|
||||
|
||||
override val cryAnimation = CryProvider { bedrockStateful("trapinch", "cry") }
|
||||
|
||||
override fun registerPoses() {
|
||||
val blink = quirk { bedrockStateful("trapinch", "blink") }
|
||||
|
||||
standing = registerPose(
|
||||
poseName = "standing",
|
||||
poseTypes = PoseType.UI_POSES + PoseType.STATIONARY_POSES,
|
||||
quirks = arrayOf(blink),
|
||||
animations = arrayOf(
|
||||
singleBoneLook(),
|
||||
bedrock("trapinch", "ground_idle")
|
||||
)
|
||||
)
|
||||
|
||||
walk = registerPose(
|
||||
poseName = "walk",
|
||||
poseTypes = PoseType.MOVING_POSES,
|
||||
quirks = arrayOf(blink),
|
||||
animations = arrayOf(
|
||||
QuadrupedWalkAnimation(this, periodMultiplier = 1.1F),
|
||||
singleBoneLook(),
|
||||
bedrock("trapinch", "ground_idle")
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
// override fun getFaintAnimation(
|
||||
// pokemonEntity: PokemonEntity,
|
||||
// state: PosableState<PokemonEntity>
|
||||
// ) = if (state.isPosedIn(standing, walk)) bedrockStateful("trapinch", "faint") else null
|
||||
}
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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.gen3
|
||||
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
|
||||
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.HeadedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.frame.QuadrupedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pose.CobblemonPose
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pose.ModelPartTransformation
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.triangleFunction
|
||||
import com.cobblemon.mod.common.entity.PoseType
|
||||
import net.minecraft.client.model.geom.ModelPart
|
||||
import net.minecraft.world.phys.Vec3
|
||||
|
||||
class VibravaModel (root: ModelPart) : PokemonPosableModel(root), QuadrupedFrame, HeadedFrame {
|
||||
override val rootPart = root.registerChildWithAllChildren("vibrava")
|
||||
override val head = getPart("head")
|
||||
|
||||
override val foreLeftLeg= getPart("leg_front_left")
|
||||
override val foreRightLeg = getPart("leg_front_right")
|
||||
override val hindLeftLeg = getPart("leg_back_left")
|
||||
override val hindRightLeg = getPart("leg_back_right")
|
||||
|
||||
override var portraitScale = 1.36F
|
||||
override var portraitTranslation = Vec3(-0.37, -0.55, 0.0)
|
||||
|
||||
override var profileScale = 0.54F
|
||||
override var profileTranslation = Vec3(-0.01, 0.71, 0.0)
|
||||
|
||||
lateinit var standing: CobblemonPose
|
||||
lateinit var walk: CobblemonPose
|
||||
|
||||
override val cryAnimation = CryProvider { bedrockStateful("vibrava", "cry") }
|
||||
|
||||
val wing_front_left = getPart("wing_front_left")
|
||||
val wing_front_right = getPart("wing_front_right")
|
||||
|
||||
override fun registerPoses() {
|
||||
val blink = quirk { bedrockStateful("vibrava", "blink") }
|
||||
|
||||
val wingFrame1 = object : BiWingedFrame {
|
||||
override val rootPart = this@VibravaModel.rootPart
|
||||
override val leftWing = getPart("wing_front_left")
|
||||
override val rightWing = getPart("wing_front_right")
|
||||
}
|
||||
|
||||
val wingFrame2 = object : BiWingedFrame {
|
||||
override val rootPart = this@VibravaModel.rootPart
|
||||
override val leftWing = getPart("wing_back_left")
|
||||
override val rightWing = getPart("wing_back_right")
|
||||
}
|
||||
|
||||
standing = registerPose(
|
||||
poseName = "standing",
|
||||
poseTypes = PoseType.STATIONARY_POSES + PoseType.UI_POSES - PoseType.HOVER,
|
||||
transformTicks = 30,
|
||||
quirks = arrayOf(blink),
|
||||
animations = arrayOf(
|
||||
singleBoneLook(pitchMultiplier = 0.6F, yawMultiplier = 0.3F),
|
||||
bedrock("vibrava", "ground_idle")
|
||||
),
|
||||
transformedParts = arrayOf(
|
||||
wing_front_left.createTransformation().addRotationDegrees(ModelPartTransformation.Y_AXIS, -75),
|
||||
wing_front_right.createTransformation().addRotationDegrees(ModelPartTransformation.Y_AXIS, 75)
|
||||
)
|
||||
)
|
||||
|
||||
walk = registerPose(
|
||||
poseName = "walk",
|
||||
poseTypes = PoseType.MOVING_POSES + PoseType.HOVER,
|
||||
transformTicks = 10,
|
||||
quirks = arrayOf(blink),
|
||||
animations = arrayOf(
|
||||
singleBoneLook(pitchMultiplier = 0.6F, yawMultiplier = 0.3F),
|
||||
bedrock("vibrava", "ground_idle"),
|
||||
wingFrame1.wingFlap(
|
||||
flapFunction = triangleFunction(period = 0.08F, amplitude = 0.6F),
|
||||
timeVariable = { state, _, _ -> state.animationSeconds },
|
||||
axis = ModelPartTransformation.Z_AXIS
|
||||
),
|
||||
wingFrame2.wingFlap(
|
||||
flapFunction = triangleFunction(period = 0.1F, amplitude = 0.4F),
|
||||
timeVariable = { state, _, _ -> 0.01F + state.animationSeconds },
|
||||
axis = ModelPartTransformation.Z_AXIS
|
||||
)
|
||||
),
|
||||
transformedParts = arrayOf(
|
||||
rootPart.createTransformation().addPosition(ModelPartTransformation.Y_AXIS, -4),
|
||||
wing_front_left.createTransformation().addRotationDegrees(ModelPartTransformation.Z_AXIS, -30),
|
||||
wing_front_right.createTransformation().addRotationDegrees(ModelPartTransformation.Z_AXIS, 30)
|
||||
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
+2
@@ -507,6 +507,8 @@ object VaryingModelRepository {
|
||||
inbuilt("jangmo-o", ::JangmoOModel)
|
||||
inbuilt("hakamo-o", ::HakamoOModel)
|
||||
inbuilt("kommo-o", ::KommoOModel)
|
||||
inbuilt("trapinch", ::TrapinchModel)
|
||||
inbuilt("vibrava", ::VibravaModel)
|
||||
inbuilt("larvitar", ::LarvitarModel)
|
||||
inbuilt("pupitar", ::PupitarModel)
|
||||
inbuilt("impidimp", ::ImpidimpModel)
|
||||
|
||||
-45
@@ -1,45 +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.sound.conditional
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioContext
|
||||
import com.cobblemon.mod.common.client.sound.conditional.ConditionalSoundContext.ctx
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.multiplayer.ClientLevel
|
||||
|
||||
/** One shared [AudioContext], refreshed at most once per game tick. */
|
||||
object ConditionalSoundContext {
|
||||
private val ctx = AudioContext()
|
||||
private var level: ClientLevel? = null
|
||||
private var time = 0L
|
||||
|
||||
/** Bumped whenever [ctx] is refreshed. */
|
||||
var version = 0
|
||||
private set
|
||||
|
||||
fun current(): AudioContext? {
|
||||
val mc = Minecraft.getInstance() ?: return null
|
||||
val player = mc.player
|
||||
val level = mc.level
|
||||
if (player == null || level == null) {
|
||||
if (this.level != null) {
|
||||
this.level = null
|
||||
ctx.clear()
|
||||
}
|
||||
return null
|
||||
}
|
||||
if (level !== this.level || level.gameTime != time) {
|
||||
this.level = level
|
||||
time = level.gameTime
|
||||
ctx.update(player, level)
|
||||
version++
|
||||
}
|
||||
return ctx
|
||||
}
|
||||
}
|
||||
-128
@@ -1,128 +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.sound.conditional
|
||||
|
||||
import com.cobblemon.mod.common.Cobblemon.LOGGER
|
||||
import com.cobblemon.mod.common.api.audio.ConditionalSounds
|
||||
import com.cobblemon.mod.common.api.audio.condition.builtin.BuiltinConditions
|
||||
import com.cobblemon.mod.common.api.data.DataRegistry
|
||||
import com.cobblemon.mod.common.api.reactive.SimpleObservable
|
||||
import com.cobblemon.mod.common.util.cobblemonResource
|
||||
import com.google.gson.JsonParser
|
||||
import com.mojang.serialization.JsonOps
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.sounds.SoundManager
|
||||
import net.minecraft.resources.FileToIdConverter
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
import net.minecraft.server.level.ServerPlayer
|
||||
import net.minecraft.server.packs.PackType
|
||||
import net.minecraft.server.packs.resources.ResourceManager
|
||||
|
||||
/**
|
||||
* Client-only registry of `assets/<ns>/conditional_sounds/` files. On reload it also adds a [ConditionalWeightedSound] per
|
||||
* entry to each target sound event.
|
||||
*
|
||||
* Not registered with CobblemonDataProvider on purpose: its client reloader has no ordering against SoundManager,
|
||||
* and the entries must be added to the sound registry SoundManager just rebuilt. So SoundManagerMixin reloads this
|
||||
* at the end of SoundManager#apply (client thread).
|
||||
*/
|
||||
object ConditionalSoundsRegistry : DataRegistry {
|
||||
override val id = cobblemonResource("conditional_sounds")
|
||||
override val type = PackType.CLIENT_RESOURCES
|
||||
override val observable = SimpleObservable<ConditionalSoundsRegistry>()
|
||||
|
||||
private val files = FileToIdConverter.json("conditional_sounds")
|
||||
private var definitions: Map<ResourceLocation, ConditionalSounds> = emptyMap()
|
||||
|
||||
fun all(): Map<ResourceLocation, ConditionalSounds> = definitions
|
||||
|
||||
fun get(id: ResourceLocation): ConditionalSounds? = definitions[id]
|
||||
|
||||
override fun sync(player: ServerPlayer) {}
|
||||
|
||||
override fun reload(manager: ResourceManager) {
|
||||
BuiltinConditions.bootstrap()
|
||||
val loaded = sortedMapOf<ResourceLocation, ConditionalSounds>()
|
||||
for ((path, resource) in files.listMatchingResources(manager)) {
|
||||
val id = files.fileToId(path)
|
||||
try {
|
||||
val json = resource.openAsReader().use(JsonParser::parseReader)
|
||||
val result = ConditionalSounds.CODEC.parse(JsonOps.INSTANCE, json)
|
||||
result.result().ifPresentOrElse({ loaded[id] = it }) {
|
||||
LOGGER.error("Skipping conditional sounds {}: {}", id, result.error().get().message())
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
LOGGER.error("Skipping conditional sounds {}", id, e)
|
||||
}
|
||||
}
|
||||
definitions = loaded
|
||||
addToSoundEvents(Minecraft.getInstance().soundManager)
|
||||
observable.emit(this)
|
||||
}
|
||||
|
||||
private fun addToSoundEvents(soundManager: SoundManager) {
|
||||
val targetsByFile = definitions.mapValues { (id, def) -> resolveTargets(id, def.targets, soundManager) }
|
||||
val allTargets = targetsByFile.values.flatten().toSet()
|
||||
var added = 0
|
||||
for ((id, def) in definitions) {
|
||||
val targets = targetsByFile.getValue(id)
|
||||
for (entry in def.sounds) {
|
||||
if (entry.sound in allTargets) {
|
||||
LOGGER.error(
|
||||
"Conditional sounds {}: {} is also a target, which would loop; skipped",
|
||||
id,
|
||||
entry.sound
|
||||
)
|
||||
continue
|
||||
}
|
||||
val delegate = soundManager.getSoundEvent(entry.sound)
|
||||
if (delegate == null) {
|
||||
LOGGER.warn(
|
||||
"Conditional sounds {}: sound event {} is not defined in any sounds.json; skipped",
|
||||
id,
|
||||
entry.sound
|
||||
)
|
||||
continue
|
||||
}
|
||||
val sound = ConditionalWeightedSound(def.conditions, entry.conditions, entry.weight, delegate)
|
||||
targets.forEach { soundManager.getSoundEvent(it)!!.addSound(sound) }
|
||||
added += targets.size
|
||||
}
|
||||
}
|
||||
LOGGER.info("Loaded {} conditional sounds files, added {} entries", definitions.size, added)
|
||||
}
|
||||
|
||||
private fun resolveTargets(
|
||||
file: ResourceLocation,
|
||||
targets: List<String>,
|
||||
soundManager: SoundManager
|
||||
): List<ResourceLocation> {
|
||||
val out = LinkedHashSet<ResourceLocation>()
|
||||
for (target in targets) {
|
||||
if (target.endsWith("*")) {
|
||||
val prefix = target.dropLast(1)
|
||||
val matches = soundManager.availableSounds.filter { it.toString().startsWith(prefix) }
|
||||
if (matches.isEmpty()) LOGGER.warn(
|
||||
"Conditional sounds {}: target {} matches no sound events",
|
||||
file,
|
||||
target
|
||||
)
|
||||
out += matches
|
||||
continue
|
||||
}
|
||||
val id = ResourceLocation.tryParse(target)
|
||||
if (id == null || soundManager.getSoundEvent(id) == null) {
|
||||
LOGGER.warn("Conditional sounds {}: target {} is not a defined sound event", file, target)
|
||||
} else {
|
||||
out += id
|
||||
}
|
||||
}
|
||||
return out.toList()
|
||||
}
|
||||
}
|
||||
-47
@@ -1,47 +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.sound.conditional
|
||||
|
||||
import com.cobblemon.mod.common.api.audio.condition.AudioCondition
|
||||
import net.minecraft.client.resources.sounds.Sound
|
||||
import net.minecraft.client.sounds.SoundEngine
|
||||
import net.minecraft.client.sounds.WeighedSoundEvents
|
||||
import net.minecraft.client.sounds.Weighted
|
||||
import net.minecraft.util.RandomSource
|
||||
|
||||
/**
|
||||
* An entry added to a vanilla [WeighedSoundEvents]. Its weight is 0 while its conditions fail, so vanilla's
|
||||
* own weighted pick (WeighedSoundEvents#getSound) simply skips it. Client thread only.
|
||||
*/
|
||||
class ConditionalWeightedSound(
|
||||
private val gate: List<AudioCondition>,
|
||||
private val conditions: List<AudioCondition>,
|
||||
private val weight: Int,
|
||||
private val delegate: WeighedSoundEvents
|
||||
) : Weighted<Sound> {
|
||||
private val unconditional = gate.isEmpty() && conditions.isEmpty()
|
||||
private var version = -1
|
||||
private var matched = false
|
||||
|
||||
override fun getWeight(): Int = if (matches()) weight else 0
|
||||
|
||||
override fun getSound(random: RandomSource): Sound = delegate.getSound(random)
|
||||
|
||||
override fun preloadIfRequired(engine: SoundEngine) {}
|
||||
|
||||
private fun matches(): Boolean {
|
||||
if (unconditional) return true
|
||||
val ctx = ConditionalSoundContext.current() ?: return false
|
||||
if (version != ConditionalSoundContext.version) {
|
||||
version = ConditionalSoundContext.version
|
||||
matched = AudioCondition.all(gate, ctx) && AudioCondition.all(conditions, ctx)
|
||||
}
|
||||
return matched
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,6 @@ import com.cobblemon.mod.common.net.messages.client.battle.BattleCaptureStartPac
|
||||
import com.cobblemon.mod.common.net.messages.client.effect.SpawnSnowstormEntityParticlePacket
|
||||
import com.cobblemon.mod.common.net.messages.client.spawn.SpawnPokeballPacket
|
||||
import com.cobblemon.mod.common.pokeball.PokeBall
|
||||
import com.cobblemon.mod.common.pokemon.PokemonMetData
|
||||
import com.cobblemon.mod.common.pokemon.ai.PokemonBrain
|
||||
import com.cobblemon.mod.common.pokemon.properties.UncatchableProperty
|
||||
import com.cobblemon.mod.common.util.*
|
||||
@@ -358,7 +357,6 @@ class EmptyPokeBallEntity : ThrowableItemProjectile, PosableEntity, WaterDragMod
|
||||
val party = player.party()
|
||||
pokemon.pokemon.caughtBall = pokeBall
|
||||
pokeBall.effects.forEach { effect -> effect.apply(player, pokemon.pokemon) }
|
||||
pokemon.pokemon.metData = PokemonMetData.create(player, pokemon.pokemon)
|
||||
party.add(pokemon.pokemon)
|
||||
val leashHolder = pokemon.leashHolder
|
||||
|
||||
|
||||
+3
-5
@@ -386,20 +386,18 @@ class PokemonServerDelegate : PokemonSideDelegate {
|
||||
}
|
||||
|
||||
fun updateShownItem() {
|
||||
val itemToShow = when {
|
||||
val trackedShownItem = when {
|
||||
// Show Hand Item if Held item is hidden
|
||||
!entity.pokemon.heldItemVisible -> entity.mainHandItem
|
||||
// Show Held Item unless it is empty
|
||||
else -> (entity as PokemonEntity?)?.pokemon?.heldItemNoCopy()?.takeUnless { it.isEmpty }
|
||||
// Show Hand Item if Held item is empty
|
||||
?: entity.mainHandItem
|
||||
}
|
||||
}.copy()
|
||||
/* Hide items tagged as hidden (If the item is in this list, it will not render) */
|
||||
.let { if (it.`is`(CobblemonItemTags.HIDDEN_ITEMS) || (entity.pokemon.isAlpha && entity.pokemon.isWild())) ItemStack.EMPTY else it}
|
||||
|
||||
if (!ItemStack.matches(itemToShow, entity.shownItem)) {
|
||||
entity.shownItem = itemToShow.copy()
|
||||
}
|
||||
entity.entityData.set(PokemonEntity.SHOWN_HELD_ITEM, trackedShownItem)
|
||||
}
|
||||
|
||||
fun updatePoseType() {
|
||||
|
||||
@@ -550,8 +550,6 @@ open class Pokemon : ShowdownIdentifiable {
|
||||
onChange(OriginalTrainerUpdatePacket({ this }, value))
|
||||
}
|
||||
|
||||
var metData: PokemonMetData? = null
|
||||
|
||||
/**
|
||||
* Cache friendship on trade for OT
|
||||
*/
|
||||
@@ -1529,7 +1527,6 @@ open class Pokemon : ShowdownIdentifiable {
|
||||
this.potentialMarks.clear()
|
||||
this.potentialMarks += other.marks
|
||||
this.markings = other.markings
|
||||
this.metData = other.metData
|
||||
this.recalculateCharacteristic()
|
||||
this.updateAspects()
|
||||
this.refreshOriginalTrainer()
|
||||
|
||||
@@ -1,89 +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
|
||||
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.core.Holder
|
||||
import net.minecraft.util.StringRepresentable
|
||||
import net.minecraft.world.entity.player.Player
|
||||
import net.minecraft.world.level.biome.Biome
|
||||
import java.time.LocalDate
|
||||
import java.time.ZoneId
|
||||
|
||||
|
||||
enum class PokemonMetDataVariant(private val string: String) : StringRepresentable {
|
||||
STANDARD("standard"),
|
||||
STARTER("starter");
|
||||
|
||||
override fun getSerializedName(): String {
|
||||
return string
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun getFromName(name: String): PokemonMetDataVariant? {
|
||||
return entries.firstOrNull { it.string == name }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores information about the circumstances of a player's meeting with a [Pokemon]
|
||||
*
|
||||
* @param biome A [Holder] for the [Biome] the [Pokemon] was caught in
|
||||
* @param date A [LocalDate] of the real life date the [Pokemon] was caught
|
||||
* @param level The level the [Pokemon] was when caught
|
||||
* @param variant The text variant to display. Defaults to [PokemonMetDataVariant.STANDARD]
|
||||
*/
|
||||
@ConsistentCopyVisibility
|
||||
data class PokemonMetData private constructor(
|
||||
val biome: Holder<Biome>,
|
||||
val date: LocalDate,
|
||||
val level: Int,
|
||||
val variant: PokemonMetDataVariant = PokemonMetDataVariant.STANDARD
|
||||
) {
|
||||
companion object {
|
||||
private val LOCAL_DATE_CODEC: Codec<LocalDate> = Codec.STRING.xmap(
|
||||
LocalDate::parse,
|
||||
LocalDate::toString
|
||||
)
|
||||
|
||||
fun create(player: Player, pokemon: Pokemon, variant: PokemonMetDataVariant = PokemonMetDataVariant.STANDARD): PokemonMetData {
|
||||
return PokemonMetData(
|
||||
player.level().getBiome(player.blockPosition()),
|
||||
LocalDate.now(ZoneId.systemDefault()),
|
||||
pokemon.level, variant
|
||||
)
|
||||
}
|
||||
|
||||
val CODEC: Codec<PokemonMetData> = RecordCodecBuilder.create { instance ->
|
||||
instance.group(
|
||||
Biome.CODEC
|
||||
.fieldOf("biome")
|
||||
.forGetter { it.biome },
|
||||
LOCAL_DATE_CODEC
|
||||
.fieldOf("date")
|
||||
.forGetter { it.date },
|
||||
Codec.INT
|
||||
.fieldOf("level")
|
||||
.forGetter { it.level },
|
||||
Codec.STRING
|
||||
.fieldOf("variant")
|
||||
.forGetter { it.variant.serializedName }
|
||||
).apply(instance) { biome, date, level, variant ->
|
||||
PokemonMetData(
|
||||
biome = biome,
|
||||
date = date,
|
||||
level = level,
|
||||
variant = PokemonMetDataVariant.getFromName(variant) ?: PokemonMetDataVariant.STANDARD
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,17 +12,17 @@ import com.cobblemon.mod.common.Cobblemon
|
||||
import com.cobblemon.mod.common.advancement.CobblemonCriteria
|
||||
import com.cobblemon.mod.common.api.events.CobblemonEvents
|
||||
import com.cobblemon.mod.common.api.events.starter.StarterChosenEvent
|
||||
import com.cobblemon.mod.common.api.pokemon.PokemonProperties
|
||||
import com.cobblemon.mod.common.api.starter.StarterHandler
|
||||
import com.cobblemon.mod.common.api.storage.player.PlayerInstancedDataStoreTypes
|
||||
import com.cobblemon.mod.common.api.text.red
|
||||
import com.cobblemon.mod.common.config.starter.StarterCategory
|
||||
import com.cobblemon.mod.common.data.StarterDataLoader
|
||||
import com.cobblemon.mod.common.net.messages.client.starter.OpenStarterUIPacket
|
||||
import com.cobblemon.mod.common.pokemon.PokemonMetData
|
||||
import com.cobblemon.mod.common.pokemon.PokemonMetDataVariant
|
||||
import com.cobblemon.mod.common.util.lang
|
||||
import com.cobblemon.mod.common.world.gamerules.CobblemonGameRules
|
||||
import net.minecraft.server.level.ServerPlayer
|
||||
import kotlin.random.Random
|
||||
|
||||
open class CobblemonStarterHandler : StarterHandler {
|
||||
|
||||
@@ -73,7 +73,6 @@ open class CobblemonStarterHandler : StarterHandler {
|
||||
it.pokemon.also {
|
||||
playerData.starterSelected = true
|
||||
playerData.starterUUID = it.uuid
|
||||
pokemon.metData = PokemonMetData.create(player, pokemon, PokemonMetDataVariant.STARTER)
|
||||
if (player.level().gameRules.getBoolean(CobblemonGameRules.SHINY_STARTERS)) { pokemon.shiny = true }
|
||||
}
|
||||
)
|
||||
|
||||
@@ -86,7 +86,6 @@ object DataKeys {
|
||||
const val POKEMON_ORIGINAL_TRAINER_NAME = "PokemonOriginalTrainerName"
|
||||
const val POKEMON_ORIGINAL_TRAINER_TYPE = "PokemonOriginalTrainerType"
|
||||
const val POKEMON_ORIGINAL_TRAINER_FRIENDSHIP = "PokemonOriginalTrainerFriendship"
|
||||
const val POKEMON_MET_DATA = "PokemonMetData"
|
||||
|
||||
const val POKEMON_PROPERTIES_MOVES = "Moves"
|
||||
const val POKEMON_PROPERTIES_HELDITEM = "HeldItem"
|
||||
|
||||
+9
-13
@@ -8,23 +8,25 @@
|
||||
|
||||
package com.cobblemon.mod.common.util.codec.internal
|
||||
|
||||
import com.cobblemon.mod.common.api.mark.Marks
|
||||
import com.cobblemon.mod.common.api.riding.stats.RidingStat
|
||||
import com.cobblemon.mod.common.client.settings.ServerSettings
|
||||
import com.cobblemon.mod.common.pokemon.OriginalTrainerType
|
||||
import com.cobblemon.mod.common.pokemon.Pokemon
|
||||
import com.cobblemon.mod.common.pokemon.PokemonMetData
|
||||
import com.cobblemon.mod.common.util.DataKeys
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
import net.minecraft.world.item.ItemStack
|
||||
import java.util.*
|
||||
|
||||
internal data class ClientPokemonP4(
|
||||
val originalTrainerFriendship: Optional<Int>,
|
||||
val pokemonMetData: Optional<PokemonMetData>
|
||||
val originalTrainerFriendship: Optional<Int>
|
||||
) : Partial<Pokemon> {
|
||||
|
||||
override fun into(other: Pokemon): Pokemon {
|
||||
this.originalTrainerFriendship.ifPresent { other.originalTrainerFriendship = it }
|
||||
other.metData = this.pokemonMetData.orElse(null)
|
||||
return other
|
||||
}
|
||||
|
||||
@@ -34,18 +36,12 @@ internal data class ClientPokemonP4(
|
||||
*/
|
||||
internal val CODEC: MapCodec<ClientPokemonP4> = RecordCodecBuilder.mapCodec { instance ->
|
||||
instance.group(
|
||||
Codec.INT.optionalFieldOf(DataKeys.POKEMON_ORIGINAL_TRAINER_FRIENDSHIP).forGetter(ClientPokemonP4::originalTrainerFriendship),
|
||||
PokemonMetData.CODEC.optionalFieldOf(DataKeys.POKEMON_MET_DATA).forGetter(ClientPokemonP4::pokemonMetData)
|
||||
).apply(instance) {
|
||||
originalTrainerFriendship, pokemonMetData -> ClientPokemonP4(
|
||||
originalTrainerFriendship, pokemonMetData
|
||||
)
|
||||
}
|
||||
Codec.INT.optionalFieldOf(DataKeys.POKEMON_ORIGINAL_TRAINER_FRIENDSHIP).forGetter(ClientPokemonP4::originalTrainerFriendship)
|
||||
).apply(instance, ::ClientPokemonP4)
|
||||
}
|
||||
|
||||
internal fun from(pokemon: Pokemon): ClientPokemonP4 = ClientPokemonP4(
|
||||
Optional.ofNullable(pokemon.originalTrainerFriendship),
|
||||
Optional.ofNullable(pokemon.metData)
|
||||
Optional.ofNullable(pokemon.originalTrainerFriendship)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@
|
||||
package com.cobblemon.mod.common.util.codec.internal
|
||||
|
||||
import com.cobblemon.mod.common.pokemon.Pokemon
|
||||
import com.cobblemon.mod.common.pokemon.PokemonMetData
|
||||
import com.cobblemon.mod.common.util.DataKeys
|
||||
import com.mojang.serialization.Codec
|
||||
import com.mojang.serialization.MapCodec
|
||||
@@ -17,32 +16,28 @@ import com.mojang.serialization.codecs.RecordCodecBuilder
|
||||
import java.util.*
|
||||
|
||||
internal data class PokemonP4(
|
||||
val originalTrainerFriendship: Optional<Int>,
|
||||
val pokemonMetData: Optional<PokemonMetData>
|
||||
val originalTrainerFriendship: Optional<Int>
|
||||
) : Partial<Pokemon> {
|
||||
|
||||
override fun into(other: Pokemon): Pokemon {
|
||||
this.originalTrainerFriendship.ifPresent { other.originalTrainerFriendship = it }
|
||||
other.refreshOriginalTrainer()
|
||||
other.metData = this.pokemonMetData.orElse(null)
|
||||
return other
|
||||
}
|
||||
|
||||
companion object {
|
||||
internal val CODEC: MapCodec<PokemonP4> = RecordCodecBuilder.mapCodec { instance ->
|
||||
instance.group(
|
||||
Codec.INT.optionalFieldOf(DataKeys.POKEMON_ORIGINAL_TRAINER_FRIENDSHIP).forGetter(PokemonP4::originalTrainerFriendship),
|
||||
PokemonMetData.CODEC.optionalFieldOf(DataKeys.POKEMON_MET_DATA).forGetter(PokemonP4::pokemonMetData)
|
||||
Codec.INT.optionalFieldOf(DataKeys.POKEMON_ORIGINAL_TRAINER_FRIENDSHIP).forGetter(PokemonP4::originalTrainerFriendship)
|
||||
).apply(instance) {
|
||||
originalTrainerFriendship, pokemonMetData -> PokemonP4(
|
||||
originalTrainerFriendship, pokemonMetData
|
||||
originalTrainerFriendship -> PokemonP4(
|
||||
originalTrainerFriendship
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
internal fun from(pokemon: Pokemon): PokemonP4 = PokemonP4(
|
||||
Optional.ofNullable(pokemon.originalTrainerFriendship),
|
||||
Optional.ofNullable(pokemon.metData)
|
||||
Optional.ofNullable(pokemon.originalTrainerFriendship)
|
||||
)
|
||||
}
|
||||
}
|
||||
-3
@@ -612,9 +612,6 @@
|
||||
"locator_target": {
|
||||
"position": [0, 0, -3]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.lapras.ride_ground_walk": {
|
||||
|
||||
-8
@@ -6970,10 +6970,6 @@
|
||||
"2.6667": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_claw_large');"
|
||||
}
|
||||
},
|
||||
"animation.aerodactyl.ground_run": {
|
||||
@@ -8174,10 +8170,6 @@
|
||||
"finger_air_outer_right2": {
|
||||
"rotation": [72.5, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_claw_large');"
|
||||
}
|
||||
},
|
||||
"animation.aerodactyl.battle_air_idle": {
|
||||
|
||||
-4
@@ -835,10 +835,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.5": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.dragonite.sleep": {
|
||||
|
||||
-12
@@ -485,10 +485,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": ["-12.5+math.cos(q.anim_time*90*3*2)*3", "0-math.cos(q.anim_time*90*3-180)*6", "0-math.cos(q.anim_time*90*3)*6"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_minecraft');"
|
||||
}
|
||||
},
|
||||
"animation.ariados.ground_run": {
|
||||
@@ -1539,14 +1535,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": ["-17.5+math.cos(q.anim_time*90*9*2)*4", "0+math.cos(q.anim_time*90*9-60)*4", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.125": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"1.0417": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"1.25": "q.run_molang('cobblemon:stepsound_minecraft');"
|
||||
}
|
||||
},
|
||||
"animation.ariados.ride_ground_walk": {
|
||||
|
||||
-12
@@ -427,12 +427,6 @@
|
||||
"neck2_spikes": {
|
||||
"rotation": [0, "-math.cos(q.anim_time*90*4+30)*3", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.0278": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.5278": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.girafarig.ground_run": {
|
||||
@@ -882,12 +876,6 @@
|
||||
"head_spikes": {
|
||||
"rotation": [0, "-math.sin(q.anim_time*90*8+30)*8", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.2083": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.2917": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.girafarig.battle_idle": {
|
||||
|
||||
-8
@@ -246,10 +246,6 @@
|
||||
"seat_1_locator": {
|
||||
"rotation": ["-20+Math.cos((query.anim_time) * 90 * 32/3 - 90) * -2", 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.heracross.ground_run": {
|
||||
@@ -421,10 +417,6 @@
|
||||
"rotation": ["-10.883883476+Math.cos((query.anim_time) * 90 * 29/3 * 2 - 90) * 2", 0, "0+Math.cos((query.anim_time) * 90 * 29/3) * -3"],
|
||||
"position": ["0+Math.cos((query.anim_time) * 90 * 29/3 - 90) * -0.3", "0+Math.cos((query.anim_time) * 90 * 29/3 * 2) * 0.4", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.heracross.ride_ground_run": {
|
||||
|
||||
-8
@@ -635,10 +635,6 @@
|
||||
"rotation": [-20, 0, 0],
|
||||
"position": [0, -1.75, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.ursaring.ride_ground_walk": {
|
||||
@@ -1138,10 +1134,6 @@
|
||||
"rotation": [-45, 0, 0],
|
||||
"position": [0, -3, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1042": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.4792": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.ursaring.ride_ground_run": {
|
||||
|
||||
-4
@@ -141,10 +141,6 @@
|
||||
"tail4": {
|
||||
"rotation": ["-math.sin(q.anim_time*90*8-285)*14", 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.mantine.water_idle": {
|
||||
|
||||
-8
@@ -1396,10 +1396,6 @@
|
||||
"right_feather_tip3": {
|
||||
"rotation": [0, 30, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"1.1667": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.skarmory.ride_ground_walk": {
|
||||
@@ -2231,10 +2227,6 @@
|
||||
"right_feather_tip3": {
|
||||
"rotation": [0, 19.66667, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.skarmory.ride_ground_run": {
|
||||
|
||||
-12
@@ -1341,12 +1341,6 @@
|
||||
"rotation": [-32, 0, 0],
|
||||
"position": [0, -4.7, 0.1]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.slaking.ground_run": {
|
||||
@@ -2519,12 +2513,6 @@
|
||||
"2.0": [-39, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0833": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.5833": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.slaking.physical": {
|
||||
|
||||
-10
@@ -208,12 +208,6 @@
|
||||
"1.0": [10.74, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.125": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.625": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.camerupt.ground_run": {
|
||||
@@ -401,10 +395,6 @@
|
||||
"seat_6_locator": {
|
||||
"rotation": ["0+Math.cos((query.anim_time) * 90 * 16 - 90) * 3", "0+Math.cos((query.anim_time) * 90 * 8) * -3", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.2917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.camerupt.ride_jump": {
|
||||
|
||||
+16
-991
File diff suppressed because it is too large.
Load diff
+31
-1441
File diff suppressed because it is too large.
Load diff
-8
@@ -861,10 +861,6 @@
|
||||
"rotation": [39, 0, 0],
|
||||
"position": [0, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.flygon.ground_run": {
|
||||
@@ -1494,10 +1490,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.2917": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.flygon.air_idle": {
|
||||
|
||||
-4
@@ -607,10 +607,6 @@
|
||||
"tail_middle_left3": {
|
||||
"rotation": ["(8+math.sin(q.anim_time*90*6-170+29)*-13)", 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.9583": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.altaria.air_idle": {
|
||||
|
||||
-10
@@ -1443,12 +1443,6 @@
|
||||
"2.75": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.5": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.25": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.tropius.ground_run": {
|
||||
@@ -1878,10 +1872,6 @@
|
||||
"0.5": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.tropius.walkspeed_test": {
|
||||
|
||||
-10
@@ -650,12 +650,6 @@
|
||||
"tail8": {
|
||||
"rotation": ["2.5+math.sin(q.anim_time*90*2-285)*6", "math.sin(q.anim_time*90*1-460)*12", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.salamence.ground_run": {
|
||||
@@ -1082,10 +1076,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": [10, 0, "0+Math.cos((query.anim_time)*90*16/3)*-8"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.salamence.battle_idle": {
|
||||
|
||||
-18
@@ -508,14 +508,6 @@
|
||||
],
|
||||
"position": [0, "3.594+0.5*math.sin(q.anim_time*90*12-90)", -1.19547]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.6667": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.metagross.ground_walk": {
|
||||
@@ -1219,16 +1211,6 @@
|
||||
"-0.2*math.sin(q.anim_time*90*4-90)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.0833": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.metagross.ride_ground_run": {
|
||||
|
||||
-4
@@ -913,10 +913,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": [2.5, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.625": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.staraptor.walkspeed": {
|
||||
|
||||
-10
@@ -1233,10 +1233,6 @@
|
||||
"-math.clamp(math.sin(q.anim_time*90*1.5-30+180)*10,-10,8)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.2917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.bastiodon.ground_run": {
|
||||
@@ -2825,12 +2821,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.bastiodon.battle_idle": {
|
||||
|
||||
-4
@@ -746,10 +746,6 @@
|
||||
"1.0": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.honchkrow.ride_ground_walk": {
|
||||
|
||||
-25
@@ -736,10 +736,6 @@
|
||||
"rotation": [-50, 0, 0],
|
||||
"position": [0, -2, -1]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.ride_ground_walk": {
|
||||
@@ -1455,10 +1451,6 @@
|
||||
"rotation": [-55, 0, 0],
|
||||
"position": [0, -2, -1]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.12": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.4533": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.ride_ground_run": {
|
||||
@@ -2610,9 +2602,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.blink": {
|
||||
@@ -4520,9 +4509,6 @@
|
||||
"1.875": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"1.25": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.physical_alt": {
|
||||
@@ -5941,10 +5927,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"1.375": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.4583": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.physical_blunt": {
|
||||
@@ -8040,9 +8022,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"2.5833": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.special": {
|
||||
@@ -10946,10 +10925,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"1.0417": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.5417": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.garchomp.battle_cry": {
|
||||
|
||||
-13
@@ -301,10 +301,6 @@
|
||||
"locator_seat_2": {
|
||||
"rotation": [0, 0, "0+math.sin(q.anim_time*90*3-75)*4"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.lickilicky.ground_run": {
|
||||
@@ -394,10 +390,6 @@
|
||||
"locator_seat_2": {
|
||||
"rotation": [7.5, 0, "math.sin(q.anim_time*90*5-75)*4"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.lickilicky.sleep": {
|
||||
@@ -531,11 +523,6 @@
|
||||
"1.5": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"sound_effects": {
|
||||
"0.0": {
|
||||
"effect": "pokemon.lickilicky.cry"
|
||||
}
|
||||
}
|
||||
},
|
||||
"animation.lickilicky.ride_ground_walk": {
|
||||
|
||||
-10
@@ -409,10 +409,6 @@
|
||||
"rotation": [0, "-math.cos(q.anim_time*90*4/1.5-10)*1", "2.5*math.cos(q.anim_time*90*4/1.5-40)*1"],
|
||||
"position": [0, "-math.cos(q.anim_time*90*8/1.5)*1", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.mamoswine.ground_run": {
|
||||
@@ -765,12 +761,6 @@
|
||||
"1.0": [-24.5, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.9167": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.mamoswine.ride_ground_walk": {
|
||||
|
||||
+4
-9
@@ -1942,9 +1942,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
"sound_effects": {
|
||||
"1.1667": {
|
||||
"effect": "zebstrika_cry"
|
||||
}
|
||||
}
|
||||
},
|
||||
"animation.zebstrika.ground_run": {
|
||||
@@ -2677,12 +2678,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0333": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.1": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.2333": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.zebstrika.walkspeed_test": {
|
||||
|
||||
-10
@@ -1318,12 +1318,6 @@
|
||||
"right_eyebrow2": {
|
||||
"rotation": [0, 0, "0-math.sin(q.anim_time*90*20-40)*0.5"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.8333": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.9167": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.darmanitan.ground_run": {
|
||||
@@ -2194,10 +2188,6 @@
|
||||
"right_eyebrow2": {
|
||||
"rotation": [0, 0, "0-math.sin(q.anim_time*90*20-40)*0.5"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.875": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.darmanitan.cry": {
|
||||
|
||||
-28
@@ -2688,20 +2688,6 @@
|
||||
"rotation": ["0+math.sin(q.anim_time*90*4/3-60)*2", 0, "0+math.sin(q.anim_time*90*4/3-150)*1"],
|
||||
"position": [0, "0+math.sin(q.anim_time*90*4/3-30)*-0.8", "0+math.sin(q.anim_time*90*4/3-90)*0.2"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.25": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.5": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.75": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.25": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.5": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.75": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.crustle.ground_run": {
|
||||
@@ -3668,20 +3654,6 @@
|
||||
"rotation": ["0+math.sin(q.anim_time*90*4/2-80)*1.5", 0, "0+math.sin(q.anim_time*90*4/2-150)*0.75"],
|
||||
"position": [0, "0+math.sin(q.anim_time*90*4/2)*-0.3", "0+math.sin(q.anim_time*90*4/2-90)*0.4"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.8333": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.1667": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.5": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.6667": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.8333": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.crustle.ride_ground_walk": {
|
||||
|
||||
-8
@@ -1488,10 +1488,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": ["10-math.sin(q.anim_time*90*4-120)*3", "-math.sin(q.anim_time*90*2-60)*6", "math.sin(q.anim_time*90*2+20)*6"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.archeops.surfacewaterlocation": {
|
||||
@@ -2623,10 +2619,6 @@
|
||||
"rotation": ["17.5-math.sin(q.anim_time*90*32/3+30)*2", "-math.cos(q.anim_time*90*16/3+50)*-6", "math.cos(q.anim_time*90*16/3+10)*-4"],
|
||||
"position": [0, "1.5+math.sin(q.anim_time*90*32/3-90)*-1", "-3+math.sin(q.anim_time*90*32/3-90)*-1"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.archeops.ride_ground_run": {
|
||||
|
||||
-8
@@ -444,10 +444,6 @@
|
||||
"2.0": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.golurk.ground_run": {
|
||||
@@ -829,10 +825,6 @@
|
||||
"rotation": ["-12.5+Math.cos((query.anim_time)*90*16/3-90)*-6", "0+Math.cos((query.anim_time)*90*8/3)*4", "0+Math.cos((query.anim_time)*90*8/3)*-2"],
|
||||
"position": [0, -2, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0417": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.golurk.air_idle": {
|
||||
|
||||
+64
-56
@@ -652,10 +652,6 @@
|
||||
"1.3333": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.8333": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.ground_run": {
|
||||
@@ -1458,16 +1454,6 @@
|
||||
"pupil_right": {
|
||||
"position": [0, 0.3, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.125": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.2083": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.4583": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.625": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.7083": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.9583": "q.run_molang('cobblemon:stepsound_hoof_large');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.blink": {
|
||||
@@ -3978,15 +3964,6 @@
|
||||
"locator_target": {
|
||||
"position": [-11, 0, 1]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.625": "q.run_molang('cobblemon:stepsound_hoof_standard');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"1.5833": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"2.125": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"2.4583": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"2.5833": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.special_WIP": {
|
||||
@@ -6050,9 +6027,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4583": "q.run_molang('cobblemon:stepsound_minecraft');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.battle_cry": {
|
||||
@@ -7383,10 +7357,6 @@
|
||||
"1.25": {
|
||||
"effect": "pokemon.bouffalant.cry"
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.875": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.faint": {
|
||||
@@ -7857,20 +7827,32 @@
|
||||
"pupil_left": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.7083": {"pre": [0, 0, 0], "post": [0, 0.2, 0]},
|
||||
"2.375": {"pre": [0, 0.2, 0], "post": [0, 0, 0]}
|
||||
"1.7083": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0.2, 0]
|
||||
},
|
||||
"2.375": {
|
||||
"pre": [0, 0.2, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eyelid_left": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"2.6667": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]}
|
||||
"2.6667": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0.1, 0, -0.1]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eyelid_right": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"2.6667": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]}
|
||||
"2.6667": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, -0.1]
|
||||
}
|
||||
}
|
||||
},
|
||||
"afro": {
|
||||
@@ -9367,40 +9349,66 @@
|
||||
"eyelid_recoil_left": {
|
||||
"position": {
|
||||
"0.0": [0.1, 0, -0.1],
|
||||
"0.4583": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"0.7917": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]},
|
||||
"1.7083": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"2.3333": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]},
|
||||
"2.5": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}
|
||||
"0.4583": {
|
||||
"pre": [0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"0.7917": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0.1, 0, -0.1]
|
||||
},
|
||||
"1.7083": {
|
||||
"pre": [0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.3333": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0.1, 0, -0.1]
|
||||
},
|
||||
"2.5": {
|
||||
"pre": [0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eyelid_sad_right": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.7083": {"pre": [0, 0, 0], "post": [-0.1, 0, 0]},
|
||||
"2.3333": {"pre": [-0.1, 0, 0], "post": [0, 0, 0]}
|
||||
"1.7083": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, 0]
|
||||
},
|
||||
"2.3333": {
|
||||
"pre": [-0.1, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eyelid_recoil_right": {
|
||||
"position": {
|
||||
"0.0": [-0.1, 0, -0.1],
|
||||
"0.4583": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"0.7917": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]},
|
||||
"1.7083": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"2.3333": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]},
|
||||
"2.5": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}
|
||||
"0.4583": {
|
||||
"pre": [-0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"0.7917": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, -0.1]
|
||||
},
|
||||
"1.7083": {
|
||||
"pre": [-0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.3333": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, -0.1]
|
||||
},
|
||||
"2.5": {
|
||||
"pre": [-0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.875": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"1.25": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"1.4167": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"1.5": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"1.75": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"2.2083": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.3333": "q.run_molang('cobblemon:stepsound_standard_heavy');"
|
||||
}
|
||||
},
|
||||
"animation.bouffalant.walk_test": {
|
||||
|
||||
-4
@@ -1714,10 +1714,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.braviary.air_idle": {
|
||||
|
||||
+1
-5
@@ -2022,10 +2022,6 @@
|
||||
"1.5": [-10, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.braviary_hisuian.air_idle": {
|
||||
@@ -2298,7 +2294,7 @@
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.has_entity ? { q.sound('animation.plumage.wing_flap.medium'); };",
|
||||
"1.375": "q.has_entity ? { q.sound('animation.plumage.wing_flap.medium'); };"
|
||||
"1.3333": "q.has_entity ? { q.sound('animation.plumage.wing_flap.medium'); };"
|
||||
}
|
||||
},
|
||||
"animation.braviary_hisuian.air_fly": {
|
||||
|
||||
+4758
-4402
File diff suppressed because it is too large.
Load diff
-10
@@ -747,10 +747,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.gogoat.ground_run": {
|
||||
@@ -1365,12 +1361,6 @@
|
||||
"0.5": [0, -0.24, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_hoof_heavy');",
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.gogoat.ride_ground_walk": {
|
||||
|
||||
-18
@@ -1584,10 +1584,6 @@
|
||||
"2.3333": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"1.25": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.4583": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.tyrantrum.special": {
|
||||
@@ -4995,12 +4991,6 @@
|
||||
"finger_front_left2": {
|
||||
"rotation": [0, -17.5, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.tyrantrum.ground_run": {
|
||||
@@ -5973,14 +5963,6 @@
|
||||
"4.0": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.6667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.3333": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.tyrantrum.ride_ground_run": {
|
||||
|
||||
-8
@@ -2461,10 +2461,6 @@
|
||||
"locator_seat_1": {
|
||||
"rotation": [0, "-math.sin(q.anim_time*90*1.145)*12", "math.sin(q.anim_time*90*1.145)*12"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.5": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.goodra.ground_run": {
|
||||
@@ -3008,10 +3004,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.goodra.idle_quirk1": {
|
||||
|
||||
-8
@@ -2374,10 +2374,6 @@
|
||||
"tail1": {
|
||||
"rotation": ["-5-math.sin(q.anim_time*90*2.285-60)*3", "-math.sin(q.anim_time*90*1.145-20)*8", "math.sin(q.anim_time*90*1.145-20)*10"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.5": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.goodra_hisuian.ground_run": {
|
||||
@@ -2934,10 +2930,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.goodra_hisuian.idle_quirk": {
|
||||
|
||||
-8
@@ -919,10 +919,6 @@
|
||||
"1.0": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.noivern.ground_run2": {
|
||||
@@ -1609,10 +1605,6 @@
|
||||
"0.2083": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"0.125": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.noivern.ride_ground": {
|
||||
|
||||
-4
@@ -235,10 +235,6 @@
|
||||
"wing_fold_right3": {
|
||||
"rotation": [0, 27.5, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_minecraft');",
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_minecraft');"
|
||||
}
|
||||
},
|
||||
"animation.vikavolt.ground_idle": {
|
||||
|
||||
-12
@@ -863,12 +863,6 @@
|
||||
"1.8333": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"1.4583": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"1.8333": "q.run_molang('cobblemon:stepsound_hoof_large');"
|
||||
}
|
||||
},
|
||||
"animation.mudsdale.ground_run": {
|
||||
@@ -1445,12 +1439,6 @@
|
||||
"0.9167": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.4583": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.7083": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_hoof_medium');"
|
||||
}
|
||||
},
|
||||
"animation.mudsdale.ride_ground_walk": {
|
||||
|
||||
-23
@@ -421,10 +421,6 @@
|
||||
"seat_1_locator": {
|
||||
"rotation": ["-10-Math.cos((query.anim_time)*90*4-150)*1", "-0-Math.cos((query.anim_time)*90*2-30)*-3", "0+Math.cos((query.anim_time)*90*2-120)*4"]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0833": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.duraludon.ground_run": {
|
||||
@@ -725,10 +721,6 @@
|
||||
"rotation": ["-20-Math.cos((query.anim_time)*90*8-90)*-2", "-0-Math.cos((query.anim_time)*90*4-80)*-4", "0+Math.cos((query.anim_time)*90*4-40)*8"],
|
||||
"position": [0, 0, -2]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.duraludon.ride_ground_run": {
|
||||
@@ -2045,13 +2037,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.625": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.2917": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.125": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"2.375": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.duraludon.special": {
|
||||
@@ -2902,9 +2887,6 @@
|
||||
"2.6667": {"pre": [0, 0, -0.1], "post": [0, 0, 0]}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.7917": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.duraludon.status": {
|
||||
@@ -5200,11 +5182,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.duraludon.recoil": {
|
||||
|
||||
+9
-19
@@ -1207,10 +1207,6 @@
|
||||
"shoulder_spike_left3": {
|
||||
"rotation": [0, "math.sin(q.anim_time*90*4-120)*16", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.5833": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"1.5833": "q.run_molang('cobblemon:stepsound_claw_large');"
|
||||
}
|
||||
},
|
||||
"animation.ursaluna.ground_run": {
|
||||
@@ -1960,12 +1956,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"0.0972": "q.run_molang('cobblemon:stepsound_claw_large');",
|
||||
"0.2361": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.3472": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.ursaluna.sleep": {
|
||||
@@ -2789,31 +2779,31 @@
|
||||
"rotation": ["-30+math.sin(q.anim_time*90*20-30)*5", 0, "math.cos(q.anim_time*90*20-30)*2"]
|
||||
},
|
||||
"spike_right": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-30)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-30)*5", 0, 0]
|
||||
},
|
||||
"spike_right2": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-32)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-32)*5", 0, 0]
|
||||
},
|
||||
"spike_right3": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-51)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-51)*5", 0, 0]
|
||||
},
|
||||
"spike_right4": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-41)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-41)*5", 0, 0]
|
||||
},
|
||||
"spike_left": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-39)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-39)*5", 0, 0]
|
||||
},
|
||||
"spike_left2": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-35)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-35)*5", 0, 0]
|
||||
},
|
||||
"spike_left3": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-30)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-30)*5", 0, 0]
|
||||
},
|
||||
"spike_left4": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-45)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-45)*5", 0, 0]
|
||||
},
|
||||
"spike_middle": {
|
||||
"rotation": ["-20+q.r.velocity_y*10+math.sin(q.anim_time*90*20-50)*5", 0, 0]
|
||||
"rotation": ["-20+q.r.velocity_y(0)*10+math.sin(q.anim_time*90*20-50)*5", 0, 0]
|
||||
},
|
||||
"spike_bottom_middle": {
|
||||
"rotation": ["20+q.r.velocity_y(0)*-10+math.sin(q.anim_time*90*20-30)*5", 0, 0]
|
||||
|
||||
-8
@@ -1730,10 +1730,6 @@
|
||||
"1.25": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.9583": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.sneasler.ground_walk_basket": {
|
||||
@@ -2426,10 +2422,6 @@
|
||||
"rotation": [-50, 0, 0],
|
||||
"position": [0, -3.75, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.sneasler.ground_run_basket": {
|
||||
|
||||
+116
-45
@@ -501,10 +501,19 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.5833": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"1.5833": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"1.6667": [1, 1, 1],
|
||||
"2.7083": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"3.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}
|
||||
"2.7083": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"3.0": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"wing_open_right2": {
|
||||
@@ -738,10 +747,19 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.5833": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"1.5833": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"1.6667": [1, 1, 1],
|
||||
"2.7083": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"3.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}
|
||||
"2.7083": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"3.0": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"wing_open_left2": {
|
||||
@@ -1023,9 +1041,18 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [1, 1, 1],
|
||||
"1.5833": {"pre": [1, 1, 1], "post": [1, 1, 1]},
|
||||
"1.6667": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"2.6667": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"1.5833": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [1, 1, 1]
|
||||
},
|
||||
"1.6667": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.6667": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.7083": [1, 1, 1],
|
||||
"3.0": [1, 1, 1]
|
||||
}
|
||||
@@ -1199,9 +1226,18 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [1, 1, 1],
|
||||
"1.5833": {"pre": [1, 1, 1], "post": [1, 1, 1]},
|
||||
"1.6667": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"2.6667": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"1.5833": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [1, 1, 1]
|
||||
},
|
||||
"1.6667": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.6667": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.7083": [1, 1, 1],
|
||||
"3.0": [1, 1, 1]
|
||||
}
|
||||
@@ -1430,9 +1466,18 @@
|
||||
"eyelid_left": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"0.5": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]},
|
||||
"0.625": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"3.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}
|
||||
"0.5": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0.1, 0, -0.1]
|
||||
},
|
||||
"0.625": {
|
||||
"pre": [0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"3.0": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eye_right": {
|
||||
@@ -1444,9 +1489,18 @@
|
||||
"eyelid_right": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"0.5": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]},
|
||||
"0.625": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]},
|
||||
"3.0": {"pre": [0, 0, 0], "post": [0, 0, 0]}
|
||||
"0.5": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, -0.1]
|
||||
},
|
||||
"0.625": {
|
||||
"pre": [-0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"3.0": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"puff": {
|
||||
@@ -2663,11 +2717,6 @@
|
||||
"3.0": [-2, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"1.375": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"2.5417": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.kilowattrel.special": {
|
||||
@@ -2894,7 +2943,10 @@
|
||||
"scale": {
|
||||
"0.0": [0, 0, 0],
|
||||
"0.0833": [1, 1, 1],
|
||||
"2.9167": {"pre": [1, 1, 1], "post": [0, 0, 0]}
|
||||
"2.9167": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"wing_open_right2": {
|
||||
@@ -3289,7 +3341,10 @@
|
||||
"scale": {
|
||||
"0.0": [0, 0, 0],
|
||||
"0.0833": [1, 1, 1],
|
||||
"2.9167": {"pre": [1, 1, 1], "post": [0, 0, 0]}
|
||||
"2.9167": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"wing_open_left2": {
|
||||
@@ -3609,8 +3664,14 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [1, 1, 1],
|
||||
"0.0833": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"2.875": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"0.0833": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.875": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.9167": [1, 1, 1]
|
||||
}
|
||||
},
|
||||
@@ -3642,9 +3703,18 @@
|
||||
},
|
||||
"scale": {
|
||||
"0.0": [1, 1, 1],
|
||||
"0.0833": {"pre": [1, 1, 1], "post": [0, 0, 0]},
|
||||
"0.25": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"2.875": {"pre": [0, 0, 0], "post": [0, 0, 0]},
|
||||
"0.0833": {
|
||||
"pre": [1, 1, 1],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"0.25": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.875": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0, 0, 0]
|
||||
},
|
||||
"2.9167": [1, 1, 1]
|
||||
}
|
||||
},
|
||||
@@ -5192,15 +5262,27 @@
|
||||
"eyelid_left": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.0417": {"pre": [0, 0, 0], "post": [0.1, 0, -0.1]},
|
||||
"1.3333": {"pre": [0.1, 0, -0.1], "post": [0, 0, 0]}
|
||||
"1.0417": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [0.1, 0, -0.1]
|
||||
},
|
||||
"1.3333": {
|
||||
"pre": [0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"eyelid_right": {
|
||||
"position": {
|
||||
"0.0": [0, 0, 0],
|
||||
"1.0417": {"pre": [0, 0, 0], "post": [-0.1, 0, -0.1]},
|
||||
"1.3333": {"pre": [-0.1, 0, -0.1], "post": [0, 0, 0]}
|
||||
"1.0417": {
|
||||
"pre": [0, 0, 0],
|
||||
"post": [-0.1, 0, -0.1]
|
||||
},
|
||||
"1.3333": {
|
||||
"pre": [-0.1, 0, -0.1],
|
||||
"post": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"jaw": {
|
||||
@@ -5338,9 +5420,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"2.6667": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.kilowattrel.ground_walk": {
|
||||
@@ -6166,10 +6245,6 @@
|
||||
"claw_back_right": {
|
||||
"rotation": [-7.5, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.2917": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.9583": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.kilowattrel.ground_run": {
|
||||
@@ -6758,10 +6833,6 @@
|
||||
"claw_outer_right": {
|
||||
"rotation": [17.5, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.kilowattrel.sleep": {
|
||||
|
||||
-12
@@ -402,10 +402,6 @@
|
||||
"0+Math.cos((query.anim_time) * 90 * 4) * 3"
|
||||
]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.espathra.ground_run": {
|
||||
@@ -706,10 +702,6 @@
|
||||
"rotation": ["0+Math.cos((query.anim_time) * 90 * 16 - 90) * 3", 0, "0+Math.cos((query.anim_time) * 90 * 8) * 6"],
|
||||
"position": [0, "0+Math.cos((query.anim_time) * 90 * 16) * -0.6", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_claw_medium');",
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_claw_medium');"
|
||||
}
|
||||
},
|
||||
"animation.espathra.ride_ground_walk": {
|
||||
@@ -1558,10 +1550,6 @@
|
||||
"0.875": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"1.7083": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.0417": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.espathra.sleep": {
|
||||
|
||||
-12
@@ -401,10 +401,6 @@
|
||||
"fingers_right": {
|
||||
"rotation": ["15+Math.cos((query.anim_time)*90*8-130)*-3", 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.cyclizar.ground_run": {
|
||||
@@ -799,10 +795,6 @@
|
||||
"0.4167": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.cyclizar.mount_idle": {
|
||||
@@ -1209,10 +1201,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0417": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_standard_medium');"
|
||||
}
|
||||
},
|
||||
"animation.cyclizar.ride_mount_walk": {
|
||||
|
||||
-12
@@ -923,12 +923,6 @@
|
||||
"neck_spike6": {
|
||||
"rotation": [0, "math.cos(q.anim_time*90*8/3-120)*-6", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.5417": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"1.2917": "q.run_molang('cobblemon:stepsound_hoof_large');"
|
||||
}
|
||||
},
|
||||
"animation.farigiraf.ground_run": {
|
||||
@@ -1584,12 +1578,6 @@
|
||||
"neck_spike6": {
|
||||
"rotation": [0, "math.sin(q.anim_time*90*16/3-130)*-6", 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.0833": "q.run_molang('cobblemon:stepsound_hoof_medium');",
|
||||
"0.1667": "q.run_molang('cobblemon:stepsound_hoof_large');",
|
||||
"0.6667": "q.run_molang('cobblemon:stepsound_hoof_large');"
|
||||
}
|
||||
},
|
||||
"animation.farigiraf.battle_idle": {
|
||||
|
||||
-50
@@ -278,10 +278,6 @@
|
||||
"rotation": [-27.5, 0, 0],
|
||||
"position": [0, 0, 1]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.ground_run": {
|
||||
@@ -510,10 +506,6 @@
|
||||
"seat_1_locator": {
|
||||
"rotation": [-22.5, 0, 0]
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.0": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.5": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.ride_ground_run": {
|
||||
@@ -1460,12 +1452,6 @@
|
||||
"2.75": [0, 0, 0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.2917": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.5833": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.875": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.special": {
|
||||
@@ -2593,13 +2579,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.8333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.625": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.8333": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.electroshot": {
|
||||
@@ -3736,13 +3715,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.25": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.375": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.8333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.5417": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.status": {
|
||||
@@ -5433,13 +5405,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.125": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.375": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.battle_cry": {
|
||||
@@ -7135,13 +7100,6 @@
|
||||
"1.25": {
|
||||
"effect": "pokemon.archaludon.cry"
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.75": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.3333": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.125": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"3.375": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.faint": {
|
||||
@@ -7790,14 +7748,6 @@
|
||||
"2.1667": [2, 0.3, -0.4]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeline": {
|
||||
"0.4167": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"0.7083": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"1.0": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.4583": "q.run_molang('cobblemon:stepsound_standard_medium');",
|
||||
"1.625": "q.run_molang('cobblemon:stepsound_standard_large');",
|
||||
"2.125": "q.run_molang('cobblemon:stepsound_standard_large');"
|
||||
}
|
||||
},
|
||||
"animation.archaludon.sleep": {
|
||||
|
||||
-170
@@ -15,51 +15,11 @@
|
||||
"name": "smeargle",
|
||||
"pivot": [0, 0, 0]
|
||||
},
|
||||
{
|
||||
"name": "locator_root",
|
||||
"parent": "smeargle",
|
||||
"pivot": [0, 0, 0],
|
||||
"locators": {
|
||||
"root": [0, 0, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_top",
|
||||
"parent": "smeargle",
|
||||
"pivot": [0, 30, 0],
|
||||
"locators": {
|
||||
"top": [0, 30, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_special",
|
||||
"parent": "smeargle",
|
||||
"pivot": [0, 14, -20],
|
||||
"locators": {
|
||||
"special": [0, 14, -20]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"parent": "smeargle",
|
||||
"pivot": [0, 6, 0]
|
||||
},
|
||||
{
|
||||
"name": "locator_target",
|
||||
"parent": "body",
|
||||
"pivot": [0, 14, -8],
|
||||
"locators": {
|
||||
"target": [0, 14, -8]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_middle",
|
||||
"parent": "body",
|
||||
"pivot": [0, 14, 0],
|
||||
"locators": {
|
||||
"middle": [0, 14, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "torso",
|
||||
"parent": "body",
|
||||
@@ -108,23 +68,6 @@
|
||||
{"origin": [10.5, 14, -1.5], "size": [2, 2, 3], "inflate": 0.02, "uv": [22, 46]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_hand_secondary",
|
||||
"parent": "hand_left",
|
||||
"pivot": [12.5, 14, 0],
|
||||
"rotation": [0, -90, 0],
|
||||
"locators": {
|
||||
"hand_secondary": [12.5, 14, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_item",
|
||||
"parent": "hand_left",
|
||||
"pivot": [12.5, 14, 0],
|
||||
"locators": {
|
||||
"item": [12.5, 14, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "thumb_left",
|
||||
"parent": "hand_left",
|
||||
@@ -197,15 +140,6 @@
|
||||
{"origin": [-12.5, 14, -1.5], "size": [2, 2, 3], "inflate": 0.02, "uv": [32, 46], "mirror": true}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_hand_primary",
|
||||
"parent": "hand_right",
|
||||
"pivot": [-12.5, 14, 0],
|
||||
"rotation": [0, 90, 0],
|
||||
"locators": {
|
||||
"hand_primary": [-12.5, 14, 0]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "thumb_right",
|
||||
"parent": "hand_right",
|
||||
@@ -272,31 +206,6 @@
|
||||
{"origin": [-1.5, 21, -8.01], "size": [1, 1, 0], "uv": [0, 9], "mirror": true}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_mouth",
|
||||
"parent": "head",
|
||||
"pivot": [0, 18, -4.75],
|
||||
"locators": {
|
||||
"mouth": [0, 18, -4.75]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_item_face",
|
||||
"parent": "head",
|
||||
"pivot": [0, 25.5, -7.5],
|
||||
"rotation": [-35, 0, 0],
|
||||
"locators": {
|
||||
"item_face": [0, 25.5, -7.5]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_face",
|
||||
"parent": "head",
|
||||
"pivot": [0, 23, -8],
|
||||
"locators": {
|
||||
"face": [0, 23, -8]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "eyes",
|
||||
"parent": "head",
|
||||
@@ -346,15 +255,6 @@
|
||||
{"origin": [4.03, 22.5, -5.5], "size": [0, 2, 1], "uv": [8, -1]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_eye_left",
|
||||
"parent": "pupil_left",
|
||||
"pivot": [4, 23.5, -5],
|
||||
"rotation": [0, -90, 0],
|
||||
"locators": {
|
||||
"eye2": [4, 23.5, -5]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "eyelid_left",
|
||||
"parent": "eye_left",
|
||||
@@ -423,15 +323,6 @@
|
||||
{"origin": [-4.03, 22.5, -5.5], "size": [0, 2, 1], "uv": [8, 18], "mirror": true}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_eye_right",
|
||||
"parent": "pupil_right",
|
||||
"pivot": [-4, 23.5, -5],
|
||||
"rotation": [0, 90, 0],
|
||||
"locators": {
|
||||
"eye1": [-4, 23.5, -5]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "eyelid_happy_right",
|
||||
"parent": "eye_right",
|
||||
@@ -514,22 +405,6 @@
|
||||
{"origin": [-1, 28, -1.25], "size": [2, 3, 2], "uv": [3, 25]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_head",
|
||||
"parent": "hat",
|
||||
"pivot": [0, 26.5, -6.25],
|
||||
"locators": {
|
||||
"head": [0, 26.5, -6.25]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_item_hat",
|
||||
"parent": "hat",
|
||||
"pivot": [0, 28.5, -0.75],
|
||||
"locators": {
|
||||
"item_hat": [0, 28.5, -0.75]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tail",
|
||||
"parent": "torso",
|
||||
@@ -562,15 +437,6 @@
|
||||
{"origin": [-1.1, 6.5, 19.5], "size": [2, 2, 6], "uv": [44, 32]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_tail",
|
||||
"parent": "tail4",
|
||||
"pivot": [0, 7.5, 22.5],
|
||||
"rotation": [-180, 0, 180],
|
||||
"locators": {
|
||||
"tail": [0, 7.5, 22.5]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tail5",
|
||||
"parent": "tail4",
|
||||
@@ -620,24 +486,6 @@
|
||||
{"origin": [-3, 7.5, 50], "size": [6, 0, 4], "pivot": [0, 7.5, 52], "rotation": [0, 0, -45], "uv": [66, 19]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_tail_tip",
|
||||
"parent": "tail_end_fur",
|
||||
"pivot": [0, 7.5, 54],
|
||||
"rotation": [-180, 0, 180],
|
||||
"locators": {
|
||||
"tail_tip": [0, 7.5, 54]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "locator_physical",
|
||||
"parent": "tail_end_fur",
|
||||
"pivot": [0, 7.5, 51],
|
||||
"rotation": [-180, 0, 180],
|
||||
"locators": {
|
||||
"physical": [0, 7.5, 51]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tail_end_fur_left",
|
||||
"parent": "tail_end2",
|
||||
@@ -686,15 +534,6 @@
|
||||
{"origin": [1, 0.09, -1], "size": [2, 0, 2], "uv": [50, 48]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_foot_secondary",
|
||||
"parent": "foot_left",
|
||||
"pivot": [2, 0.5, -2],
|
||||
"rotation": [90, 0, 0],
|
||||
"locators": {
|
||||
"foot_secondary": [2, 0.5, -2]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "foot_left2",
|
||||
"parent": "foot_left",
|
||||
@@ -728,15 +567,6 @@
|
||||
{"origin": [-3, 0.09, -1], "size": [2, 0, 2], "uv": [50, 52], "mirror": true}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "locator_foot_primary",
|
||||
"parent": "foot_right",
|
||||
"pivot": [-2, 0.5, -2],
|
||||
"rotation": [90, 0, 0],
|
||||
"locators": {
|
||||
"foot_primary": [-2, 0.5, -2]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "foot_right2",
|
||||
"parent": "foot_right",
|
||||
|
||||
-61
@@ -1,61 +0,0 @@
|
||||
{
|
||||
"portraitScale": 1.5,
|
||||
"portraitTranslation": [-0.52, -0.54, 0],
|
||||
"profileScale": 0.9,
|
||||
"profileTranslation": [0.12, 0.33, 0],
|
||||
"rootBone": "trapinch",
|
||||
"animations": {
|
||||
"cry": "q.bedrock_stateful('trapinch', 'cry')"
|
||||
},
|
||||
"poses": {
|
||||
"battle-standing": {
|
||||
"poseTypes": ["STAND"],
|
||||
"isBattle": true,
|
||||
"animations": [
|
||||
"q.look('head')",
|
||||
"q.bedrock('trapinch', 'battle_idle')"
|
||||
],
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('trapinch', 'blink')"
|
||||
]
|
||||
},
|
||||
"battle-sleep": {
|
||||
"poseTypes": ["SLEEP"],
|
||||
"isBattle": true,
|
||||
"animations": ["q.bedrock('trapinch', 'battle_sleep')"],
|
||||
"namedAnimations": {
|
||||
"cry": "q.bedrock_stateful('dummy', 'cry')"
|
||||
},
|
||||
"quirks": []
|
||||
},
|
||||
"standing": {
|
||||
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
|
||||
"isBattle": false,
|
||||
"animations": [
|
||||
"q.look('head')",
|
||||
"q.bedrock('trapinch', 'ground_idle')"
|
||||
],
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('trapinch', 'blink')"
|
||||
]
|
||||
},
|
||||
"walking": {
|
||||
"poseTypes": ["WALK"],
|
||||
"animations": [
|
||||
"q.bedrock('trapinch', 'ground_walk')"
|
||||
],
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('trapinch', 'blink')"
|
||||
]
|
||||
},
|
||||
"sleep": {
|
||||
"poseTypes": ["SLEEP"],
|
||||
"isBattle": false,
|
||||
"animations": ["q.bedrock('trapinch', 'sleep')"],
|
||||
"namedAnimations": {
|
||||
"cry": "q.bedrock_stateful('dummy', 'cry')"
|
||||
},
|
||||
"quirks": []
|
||||
}
|
||||
}
|
||||
}
|
||||
-60
@@ -1,60 +0,0 @@
|
||||
{
|
||||
"portraitScale": 1.36,
|
||||
"portraitTranslation": [-0.37, -0.55, 0.0],
|
||||
"profileScale": 0.54,
|
||||
"profileTranslation": [0.01, 0.71, 0],
|
||||
"rootBone": "vibrava",
|
||||
"animations": {
|
||||
"cry": "q.bedrock_stateful('vibrava', 'cry')"
|
||||
},
|
||||
"poses": {
|
||||
"standing": {
|
||||
"poseTypes": ["STAND", "NONE", "PORTRAIT", "PROFILE"],
|
||||
"animations": [
|
||||
"q.look('head')",
|
||||
"q.bedrock('vibrava', 'ground_idle')"
|
||||
],
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('vibrava', q.array('look_left_quirk', 'look_right_quirk'), 30, 90, 1)"
|
||||
]
|
||||
},
|
||||
"walking": {
|
||||
"poseTypes": ["WALK"],
|
||||
"animations": [
|
||||
"q.bedrock('vibrava', 'air_fly')"
|
||||
],
|
||||
"transformedParts": [
|
||||
{
|
||||
"part": "body",
|
||||
"position": [0, -10, 0],
|
||||
"rotation": [0, 0, 0],
|
||||
"isVisible": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"hover": {
|
||||
"poseTypes": ["HOVER"],
|
||||
"isBattle": false,
|
||||
"animations": [
|
||||
"q.look('head')",
|
||||
"q.bedrock('vibrava', 'air_idle')"
|
||||
],
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('vibrava', q.array('look_left_quirk', 'look_right_quirk'), 30, 90, 1)"
|
||||
]
|
||||
},
|
||||
"fly": {
|
||||
"poseTypes": ["FLY"],
|
||||
"animations": [
|
||||
"q.bedrock('vibrava', 'air_fly')"
|
||||
]
|
||||
},
|
||||
"sleep": {
|
||||
"poseTypes": ["SLEEP"],
|
||||
"animations": ["q.bedrock('vibrava', 'sleep')"],
|
||||
"namedAnimations": {
|
||||
"cry": "q.bedrock_stateful('dummy', 'cry')"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"targets": [
|
||||
"cobblemon:battle.pvw.default"
|
||||
],
|
||||
"sounds": [
|
||||
{
|
||||
"sound": "cobblemon:music.cobblemon.plains",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "biome",
|
||||
"biomes": "#cobblemon:is_plains"
|
||||
},
|
||||
{
|
||||
"type": "underground",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1267,9 +1267,6 @@
|
||||
"cobblemon.ui.info.ability": "Ability",
|
||||
"cobblemon.ui.info.experience_points": "Exp. Points",
|
||||
"cobblemon.ui.info.to_next_level": "To Next Lv.",
|
||||
"cobblemon.ui.info.met_data.standard": "Met in %1$s on %2$s/%3$s/%4$s at Lv.%5$s.",
|
||||
"cobblemon.ui.info.met_data.starter": "Met in %1$s on %2$s/%3$s/%4$s at Lv.%5$s as your first partner Pokémon!",
|
||||
"cobblemon.ui.info.met_data.unavailable": "Met a long time ago...",
|
||||
"cobblemon.ui.trade": "Trade",
|
||||
"cobblemon.trade.expired.sender": "Your request to trade with %1$s has timed out!",
|
||||
"cobblemon.trade.expired.receiver": "The trade request from %1$s has timed out!",
|
||||
|
||||
Loaded 100 of 195 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user