Compare commits

..
Author SHA1 Message Date
JadedArts 14f7c4051c Begin standardizing Move Action Effects
A stat boost failing to change stats now has a 1 second pause in the battle system for improved readability.

Set up Amnesia and Nasty Plot to use Fork Keyframes in their Action Effect timelines.

Fixed positioning on Amnesia and Nasty Plot particles.
2026-11-27 15:17:46 -06:00
22 changed files with 102 additions and 128 deletions

No files matched your search

+2 -2
View File
@@ -6,11 +6,11 @@
- 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 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.
- Added footstep sounds to Venusaur, Blastoise, Dewgong, Rhydon, Rhyhorn, Parasect, Mr. Mime, Lapras, Aerodactyl, Dragonite, Ariados, Girafarig, Heracross, Ursaring, Mantine, Skarmory and Slaking.
- Added footstep sounds to Venusaur, Blastoise, Dewgong, Rhydon, Rhyhorn, Parasect, Mr. Mime, Lapras, Aerodactyl, Dragonite and Ariados.
### Changes
- Amethyst now grows from Typegem core blocks like typegems do
- 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 Shriekers still functions as normal.)
- Pokémon that received footstep sounds this update no longer make the usual Minecraft footstep sounds. This is also the case for Crobat. (Note, game event detection like with Sculk Shriekers still functions as normal.)
### Fixes
- Fixed Ponigiri food values for AppleSkin integration
@@ -22,6 +22,7 @@ import com.cobblemon.mod.common.battles.ShowdownInterpreter
import com.cobblemon.mod.common.battles.dispatch.ActionEffectInstruction
import com.cobblemon.mod.common.battles.dispatch.GO
import com.cobblemon.mod.common.battles.dispatch.UntilDispatch
import com.cobblemon.mod.common.battles.dispatch.WaitDispatch
import com.cobblemon.mod.common.util.battleLang
import com.cobblemon.mod.common.util.cobblemonResource
import java.util.concurrent.CompletableFuture
@@ -82,6 +83,7 @@ class BoostInstruction(battle: PokemonBattle, val message: BattleMessage, val is
else -> battleLang("$rootKey.$severity", pokemon.getName(), stat)
}
battle.broadcastChatMessage(lang)
if (stages == 0) return@dispatch WaitDispatch(1F)
val boostBucket = if (isBoost) BattleContext.Type.BOOST else BattleContext.Type.UNBOOST
val context = ShowdownInterpreter.getContextFromAction(message, boostBucket, battle)
@@ -17,7 +17,7 @@
"active_time": 1.5
},
"minecraft:emitter_shape_sphere": {
"offset": [-0.68571, 1.16204, -0.68571],
"offset": [0.68571, 1.16204, -0.68571],
"radius": 0.125,
"surface_only": true,
"direction": ["((v.particle_random_1)-0.5)*4", 0, "((v.particle_random_3)-0.5)*4"]
@@ -16,13 +16,13 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.68571, 1.16204, -0.68571]
"offset": [0.68571, 1.16204, -0.68571]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 1
},
"minecraft:particle_motion_parametric": {
"relative_position": [0.68571, "-1.6*(math.pow((0.5*((math.clamp(v.particle_age, 0, 0.5))-0.5)), 2))+1.26204", -0.68571]
"relative_position": [-0.68571, "-1.6*(math.pow((0.5*((math.clamp(v.particle_age, 0, 0.5))-0.5)), 2))+1.26204", -0.68571]
},
"minecraft:particle_appearance_billboard": {
"size": [0.625, 0.625],
@@ -24,7 +24,7 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.43214, 0.31347, -0.43214],
"offset": [0.43214, 0.31347, -0.43214],
"direction": [-0.5, 0.766, -0.5]
},
"minecraft:particle_lifetime_expression": {
@@ -24,7 +24,7 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.22857, 0.07837, -0.22857],
"offset": [0.22857, 0.07837, -0.22857],
"direction": [-0.5, 0.666, -0.5]
},
"minecraft:particle_lifetime_expression": {
@@ -17,7 +17,7 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.68571, 1.16204, -0.68571],
"offset": [0.68571, 1.16204, -0.68571],
"direction": ["((v.particle_random_1)-0.5)*4", "((v.particle_random_2)-0.5)/3", "((v.particle_random_3)-0.5)*4"]
},
"minecraft:particle_lifetime_expression": {
@@ -16,13 +16,13 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.68571, 1.36204, -0.68571]
"offset": [0.68571, 1.36204, -0.68571]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 0.5
},
"minecraft:particle_motion_parametric": {
"relative_position": [0.68571, "-0.2*(math.pow((2*((math.clamp(v.particle_age, 0, 0.5))-0.5)), 2))+1.36204", -0.68571]
"relative_position": [-0.68571, "-0.2*(math.pow((2*((math.clamp(v.particle_age, 0, 0.5))-0.5)), 2))+1.36204", -0.68571]
},
"minecraft:particle_appearance_billboard": {
"size": [0.625, 0.625],
@@ -24,7 +24,7 @@
"active_time": 2
},
"minecraft:emitter_shape_point": {
"offset": [-0.43214, 0.31347, -0.43214],
"offset": [0.43214, 0.31347, -0.43214],
"direction": [-0.5, 0.766, -0.5]
},
"minecraft:particle_lifetime_expression": {
@@ -24,7 +24,7 @@
"active_time": 1
},
"minecraft:emitter_shape_point": {
"offset": [-0.22857, 0.07837, -0.22857],
"offset": [0.22857, 0.07837, -0.22857],
"direction": [-0.5, 0.666, -0.5]
},
"minecraft:particle_lifetime_expression": {
@@ -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": {
@@ -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": {
@@ -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": {
@@ -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": {
@@ -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": {
@@ -1,14 +1,18 @@
{
"timeline": [
{
"type": "add_holds",
"holds": ["effects"]
},
"timeline": [
{
"type": "add_holds",
"holds": ["effects"]
},
{
"type": "fork",
"condition": "q.failed(q.user.uuid) == false",
"ifTrue": [
{
"type": "entity_particles",
"effect": "cobblemon:amnesia_actortrailsmall",
"locators": ["top"]
},
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.1
@@ -16,8 +20,8 @@
{
"type": "entity_particles",
"effect": "cobblemon:amnesia_actortraillarge",
"locators": ["top"]
},
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.1
@@ -25,8 +29,8 @@
{
"type": "entity_particles",
"effect": "cobblemon:amnesia_actorcloud",
"locators": ["top"]
},
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 1.8
@@ -34,8 +38,8 @@
{
"type": "entity_particles",
"effect": "cobblemon:amnesia_actorquestion",
"locators": ["top"]
},
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.25
@@ -43,18 +47,22 @@
{
"type": "entity_molang",
"expressions": ["q.play_animation(q.bedrock_stateful('amnesia', 'actor'))"]
},
},
{
"type": "pause",
"pause": 1.55
},
{
"type": "remove_holds",
"holds": ["effects"]
},
{
"type": "pause",
"pause": 1.5
"pause": 1.0
}
]
],
"ifFalse": [
{
"type": "pause",
"pause": 1.2
}
]
},
{
"type": "remove_holds",
"holds": ["effects"]
}
]
}
@@ -3,59 +3,68 @@
{
"type": "add_holds",
"holds": ["effects"]
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actortrailsmall",
"locators": ["top"]
},
{
"type": "pause",
"pause": 0.1
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actortraillarge",
"locators": ["top"]
},
{
"type": "pause",
"pause": 0.1
"type": "fork",
"condition": "q.failed(q.user.uuid) == false",
"ifTrue": [
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actortrailsmall",
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.1
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actortraillarge",
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.1
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actorcloud",
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 1.4
},
{
"type": "entity_molang",
"expressions": ["q.play_animation(q.bedrock_stateful('nastyplot', 'actor'))"]
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actorexclamation",
"locators": ["head", "top"]
},
{
"type": "pause",
"pause": 0.3
},
{
"type": "animation",
"animation": ["nastyplot", "status"],
"delay": 1.2
}
],
"ifFalse": [
{
"type": "animation",
"animation": ["nastyplot", "status"],
"delay": 1.2
}
]
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actorcloud",
"locators": ["top"]
},
{
"type": "pause",
"pause": 1.4
},
{
"type": "entity_molang",
"expressions": ["q.play_animation(q.bedrock_stateful('nastyplot', 'actor'))"]
},
{
"type": "entity_particles",
"effect": "cobblemon:nastyplot_actorexclamation",
"locators": ["top"]
},
{
"type": "pause",
"pause": 0.3
},
{
"type": "animation",
"animation": ["nastyplot", "status"],
"delay": 0.5
},
{
"type": "remove_holds",
"holds": ["effects"]
},
{
"type": "pause",
"pause": 2.5
}
]
}
@@ -7,7 +7,6 @@
"maleRatio": 0.5,
"height": 15,
"weight": 540,
"silenceStepSounds": true,
"pokedex": [
"cobblemon.species.heracross.desc"
],
@@ -7,7 +7,6 @@
"maleRatio": 0.5,
"height": 21,
"weight": 2200,
"silenceStepSounds": true,
"pokedex": [
"cobblemon.species.mantine.desc"
],
@@ -7,7 +7,6 @@
"maleRatio": 0.5,
"height": 17,
"weight": 505,
"silenceStepSounds": true,
"pokedex": [
"cobblemon.species.skarmory.desc"
],
@@ -6,7 +6,6 @@
"maleRatio": 0.5,
"height": 18,
"weight": 1258,
"silenceStepSounds": true,
"pokedex": [
"cobblemon.species.ursaring.desc"
],
@@ -6,7 +6,6 @@
"maleRatio": 0.5,
"height": 20,
"weight": 1305,
"silenceStepSounds": true,
"pokedex": [
"cobblemon.species.slaking.desc"
],