Skip to content

Emote.json

KosmX edited this page Sep 11, 2021 · 7 revisions

Emotecraft emotes are JSON files.
If you don't know this, first read that's documentation.

Emote json is serialized with custom serializer, you can add meaningless fields,
however if you want to comment you should add it to a comment field

"comment": "just a random comment"

Emotecraft will warn for every unknown field except comment
bold type will indicate required fields (others are optional)

  • "version" int : emote.json format version (currently using 2)
  • "name" string : Emote name, MC format codes can be used
  • "author" string : The author of the emote
  • "description: string : Emote description
  • "uuid" string : Emote UUID. If not exists, Emotecraft will generate a random.
  • "emote" json object : The emote itself
    • "beginTick" int : The first tick of the emote. (if > 0, it will give a little time to move to the begin pose)
    • "endTick" int : The last tick of the emote
    • "stopTick" int : Give time to move back to the normal pose, after the end of the emote
    • "isLoop" boolean : true if the emote is looped
    • "returnTick" int : where to return after the endTick, if looped
    • "degrees" boolean : true, if rotation values are in degrees (instead of radians)
    • "easeBeforeKeyframe" boolean : easing function stored at the keyframe after(T)/before(F) the easing - v2
    • "nsfw" boolean : true if emote is NSFW (Not Safe For Work)
    • "moves" json array : The keyframes
      • json object : The keyframe (if there is zero of these, there is no emote)
        • "tick" int : The keyframe's location in Minecraft ticks (20tick/s)
        • "easing" string : easing to the next keyframe. can be any from easings.net
        • "turn" int : full turn for every given rotation value inside of this keyframe
        • "head"/"torso"/"rightArm"/"leftArm"/"rightLeg"/"leftLeg" json object : some part of the body
          • "x"/"y"/"z"/"pitch"/"yaw"/"roll"/"bend"/"axis" int : value(s) of the keyframe bend and axis are for bending that body part. (head can't bend)

for lawyers: This format in under the same license as the mod

Clone this wiki locally