Skip to content
EndlessCodeGroupPublic

About

Abstraction API for Minecraft RPG plugins

Topics

Resources

Stars

12 stars

Watchers

3 watching

Forks

Repository files navigation

Version Build Status Code Quality license Discord

Mimic

Links: SpigotMC, Hangar

One API for every RPG plugin.
Think of it as Vault for RPG plugins: Vault connects plugins to any economy or permissions plugin, Mimic does the same for levels, classes, resources like mana, items and blocks.

You only need Mimic if another plugin requires it.

Installation

  1. Make sure you run Paper 1.20.6+ (or a fork) on Java 21.
  2. Put Mimic into the plugins/ folder.
  3. Restart the server.

That's it. Mimic detects installed RPG plugins automatically.

Supported plugins

API Plugins
Levels Vanilla experience, AuraSkills, mcMMO, ValhallaMMO, Jobs Reborn, MMOCore, Heroes, Fabled
Classes MMOCore, Heroes, Fabled
Resources Vanilla health, food and air, MMOCore, Heroes, AuraSkills, Fabled
Items Vanilla items, CraftEngine, Oraxen, Nexo, MMOItems, CustomItems, EcoItems, MythicMobs, ExecutableItems, ItemsAdder
Blocks Vanilla blocks, CraftEngine, ItemsAdder, Oraxen, Nexo

Is your favorite plugin missing? Open an issue or ask its author to support Mimic.

Configuration

If several plugins provide the same feature, choose which one to use with /mimic config. Every option in its output is clickable.

Commands

All commands require the mimic.admin permission.

Command Description
/mimic Show Mimic status
/mimic config Show and change Mimic config
/mimic levels Manage player's levels
/mimic classes Manage player's classes
/mimic resources Manage player's mana and similar
/mimic inventory Player's inventory info
/mimic items Give, find and compare items
/mimic blocks Set, break, find and compare blocks

Commands without arguments show info and list available subcommands: click a subcommand to use it, hover to see usage.

Links

For developers

If you are developer you can use Gradle or Maven to plug Mimic to your plugin.

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compileOnly("ru.endlesscode.mimic:mimic-bukkit-api:0.11.0")
}

Maven

<dependency>
  <groupId>ru.endlesscode.mimic</groupId>
  <artifactId>mimic-bukkit-api</artifactId>
  <version>0.11.0</version>
  <scope>provided</scope>
</dependency>

Available APIs

  • Levels - API to work with player's levels: classes, skills, professions or jobs a player levels up in. Makes it possible to use levels from several plugins at once.
  • LevelSystem (deprecated, use Levels) - API to work with player's single level and experience points.
  • Classes - API to work with player's classes: classes and races held in class slots, with subclasses and class levels. Makes it possible to use classes from several plugins at once.
  • ClassSystem (deprecated, use Classes) - API to work with player's classes.
  • Resources - API to work with player's resources: mana, stamina and similar. Read them, take costs, give them back.
  • PlayerInventory (experimental) - API to access player's inventories content.
  • Items - API to create and identify vanilla items and custom items created with plugins.
  • ItemsRegistry (deprecated, use Items) - API to create and validate custom items created with plugins.
  • Blocks - API to identify, set and break vanilla blocks and custom blocks created with plugins.

Guides

  • mimic-bukkit-api - mimic-api adapted for Bukkit. Use it in Paper plugins. Contains the developer guide with API usage examples.
  • mimic-bukkit - Bukkit plugin containing some APIs implementations. It also provides commands to test your API implementation. Use it as example of Mimic APIs usage and implementation. Item and block ID formats of the supported plugins are described there.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

AI usage

Mimic was started in 2017 and was written by hand for most of its history. Since late 2026 it is developed with the help of AI. It is the only way I can keep this project going in the time I have.

Public API is designed by me. AI doesn't decide what the API looks like.

AI helps with:

  • Research: how RPG and item plugins expose their data and how other plugins consume it.
  • Implementation behind the API, and integrations with other plugins.
  • Review, refactoring, tests, and splitting changes into reviewable commits.

I review the code before it is merged.

About

Abstraction API for Minecraft RPG plugins

Topics

Resources

Stars

12 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages