Back to mods

Modrinth · Minecraft mod

Crypt: Mimic

Data-driven fake-player NPCs

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Crypt: Mimic release matches 1.21?

Updated 2 years ago
alpha file 0.1.0-alpha.2
Game version 1.21
Loader Fabric

Crypt: Mimic 0.1.0-alpha.2 targets 1.21 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 2 required mods have matching files.

Where it goes

Is Crypt: Mimic required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Crypt: Mimic 0.1.0-alpha.2 need?

0.1.0-alpha.2 on 1.21. Every mod below is checked against that same setup.

All 2 required mods have matching files

Install Fabric API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

Fabric API Needed by Crypt: Mimic 0.1.0-alpha.2
required
Matching file found Matched file: [1.21] Fabric API 0.102.0+1.21
Fabric Language Kotlin Needed by Crypt: Mimic 0.1.0-alpha.2
required
Matching file found Matched file: 1.14.2+kotlin.2.4.21

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Crypt: Mimic without breaking your instance.

Built for Crypt: Mimic 0.1.0-alpha.2 on 1.21. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1.0-alpha.2. It targets 1.21 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1.0-alpha.2. It opens that exact file at the source.

About this project

What does Crypt: Mimic add?

Made for ModFest: Carnival

Not what I set out to make, but still something cool :3

Usage guide

Spawning

/crypt-mimic <identifier> <x> <y> <z> <nbt>
The npc will act as an armour stand until it is locked with:
/data modify entity <seletor> Locked set value True
While it is unlocked interacting will modify items, once locked dialog actions will show.
You can also modify model part rotations just as you would an armour stand.

NBT tags
NpcId - The npc types id
ArmourItems - A list of item stack compounds
HandItems - A list of item stack compounds
Small - Boolean for small model
Locked - Boolean for locked model
Pose - Compound of pose rotations.
Pose.Head - A list of floats, euler for Head rotation.
Pose.Body - A list of floats, euler for Body rotation.
Pose.LeftArm - A list of floats, euler for Left Arm rotation.
Pose.RightArm - A list of floats, euler for Right Arm rotation.
Pose.LeftLeg - A list of floats, euler for Left Leg rotation.
Pose.RightLeg - A list of floats, euler for Right Leg rotation.

NPCs

data/<namespace>/crypt-mimic/npc/<id>.json

// note: this example uses json5 for the comments, use regular json for actual data
{
  // `name` uses the vanilla Text codec, so you can build fancy things
  "name": [ // required
    {
      "type": "translatable",
      "translate": "npc.<namespace>.<id>.name"
    }
  ],
  // `title` also uses the vanilla Text codec
  "title": [ // optional
    {
      "type": "translatable",
      "translate": "npc.<namespace>.<id>.title"
    }
  ],
  "skin": { // optional
    "texture": "<namespace>:textures/entity/npc/<id>.png", // required
    "hasSlimArms": true // optional, defaults to false
  },
  "action": { // optional
    "action": "crypt-mimic:show_dialog", // required
    "value": "<namespace>:dialog_<id>" // may be required, dependent on `action`
  }
}

Dialog

data/<namespace>/crypt-mimic/dialog/<id>.json

// note: this example uses json5 for the comments, use regular json for actual data
{
  // `text` uses the vanilla Text codec
  "text": [ // required
    {
      "type": "translatable",
      "translate": "dialog.<namespace>.<id>"
    }
  ],
  "actions": [ // required, even if empty but should contain at least one
    {
      "action": "crypt_mimic:show_dialog", // required
      "value": "<namespace>:<different_id>" // may be required, dependent on `action`
    }
  ]
}

Custom dialog actions

Dialog actions use the action.<namespace>.<id> translation key.

import gay.pyrrha.mimic.dialog.DialogAction;
DialogAction.getEVENT().register((player, entity, action) -> {
    // do things
});
Kotlin Example
import gay.pyrrha.mimic.dialog.DialogAction
DialogAction.EVENT.register { player, entity, action ->
    // do things (but in kotlin :3)
}

Project description from Modrinth.

Pick your setup

Crypt: Mimic by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Crypt: Mimic versions and loaders

3 of 3 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.