Skip to content
Saritahh edited this page Oct 25, 2026 · 1 revision

Got a pack where a bunch of animations are basically the same one with a tiny change? Like the same Update animation on the Ship and the UFO, but the only difference between gamemodes is your offset? Instead of copy pasting the same block over and over and cluttering your JSON, you can tell the mod to copy it for you with mimic.

mimic goes inside an event (or a Taunt).

If its name isn't self explanatory, Mimics copy everything from another animation from another gamemode, then, every key you define on your animation AFTER using a mimic, override the attributes from the copied animation.

The basics

Field Type Required Default Description
mimic string No none The animation to copy, written as "Gamemode/AnimationID". The animation ID is the name you gave that animation in the json (the key it's under), not the event that triggers it.
"events": [
	{
		"Cube": {
			"Slash": {
				"triggerOn": ["OrbActivated"],
				"subfolder": "cube",
				"spriteBaseName": "slash_",
				"frameCount": 6,
				"frameTime": 0.05,
				"loopAnim": false
			}
		},
		"Robot": {
			"Slash": {
				"mimic": "Cube/Slash",
				"offsetY": 4
			}
		}
	}
]

The Robot's Slash is the exact same animation as the Cube's: Same frames, same timings, same triggers. The only difference is that it's moved 4 units up, since we added that key in the new animation that's mimicking another, it acts as an override to the copied animation.

Rules

  • The target has to exist in the same pack, in the same list: events can only mimic other events, and taunts can only mimic other taunts.
  • The target can be in another gamemode, or the same one. This is why the format for mimics requires the "Gamemode/" prefix before specifying the animation ID to mimic.
  • Order doesn't matter. You can mimic an animation that's defined further down your file.
  • The target can also be a mimic itself, so chains are possible (e.g. C copies B, which copies A). Just don't make a loop (A copies B, B copies A), since it'll stop the pack from loading and throw an error.
  • Both the gamemode and the event ID are case sensitive.

What gets copied?

Mimics copy everything. Frames, timing, behavior, offsets, triggerOn, cancelOn, all of it. So there's a couple of things to keep in mind:

  • triggerOn gets copied too. Say you're creating a Robot animation mimicking a Cube animation triggered on NormalJump, the trigger gets copied too, however, it'll never properly trigger, since you need to trigger on RobotBoostStart for an on-jump animation for Robot. This also matters since if you're copying an animation from the same gamemode, you'll end up with 2 animations on the same trigger, which isn't ideal at all.
  • If the original has no triggerOn, its ID was acting as the trigger. The copy doesn't inherit that, it uses its own ID as the trigger like any other event.
  • Overrides replace the whole value. They don't get merged. If the original has "skipForLoop": [1, 2] and your copy has "skipForLoop": [3], the copy ends up with just [3], not [1, 2, 3]. Same for triggerOn, cancelOn, and any key you add as an override.
  • The mimic key itself is the only thing that isn't copied.

Errors

Message (roughly) What's wrong/Fix?
'mimic' must be a string like "Cube/EventId" mimic has to be a string, in quotes.
'mimic' must look like "Gamemode/EventId" You're missing the gamemode, the /, or the event ID. Like "Cube/Slash".
'mimic' target 'X' doesn't exist in this pack The gamemode or the event ID you wrote isn't in your pack (or it's in the wrong list, like a taunt trying to mimic an event). Double check the spelling and capitalization.
'mimic' chain loops back on itself An animation is copying one that, eventually, copies it back.

Anything wrong in the copied result gets reported like normal, with the name of the animation that's mimicking. For example, if you copy an animation and your override is "frameTime": "0.1" (shouldn't have quotes), you'll get the usual "must be a number" error pointing to your copy.

Clone this wiki locally