Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
One API for every RPG plugin: write integration once, and support all
Items API
New Items API replaces ItemsRegistry (#95).
See Items for details and examples.
Mimic.getItems()creates and identifies items,Mimic.registerItemProvider()makes a plugin's items available. Requires Mimic API levelMimicApiLevel.VERSION_0_11. The API is stable.- Item IDs are
Keys with a required namespace:minecraft:diamond,craftengine:default/palm_log. There is no search over all providers in the new API. - An item belongs to the provider with the highest priority recognizing it, so a custom item no longer matches the ID of its vanilla base (#86).
- Items can be created for a player, MMOItems, CraftEngine, MythicMobs and ExecutableItems use it.
ItemsRegistryAPI is deprecated but keeps working, every items registry is available via Items API.- Changed: MMOItems IDs include the item type:
mmoitems:sword/excaliburinstead ofmmoitems:excalibur(#87).ItemsRegistryAPI still accepts IDs without the type, but logs a warning. - Breaking:
CraftEngineItemsRegistryis removed, CraftEngine items are still available via Items API andMimic.getItemsRegistry(). - Deprecated: The HOCON payload (
ItemMetaPayload) ofminecraftitems still works, but logs a warning. Use item components instead, for example[damage=10,unbreakable={}].
Blocks API
New Blocks API replaces the experimental BlockRegistry (#96).
See Blocks for details and examples.
Mimic.getBlocks()identifies, sets and breaks blocks,Mimic.registerBlockProvider()makes a plugin's blocks available. Requires Mimic API levelMimicApiLevel.VERSION_0_11. The API is stable.- Block IDs are
Keys with a required namespace:minecraft:stone,craftengine:default/palm_log. - Breaking:
BlockRegistry,BukkitBlockRegistry,Mimic.getBlockRegistry(),Mimic.registerBlockRegistry()andMimic.getAllBlockRegistries()are removed without replacement bridges. - Breaking:
DropsConsumeris moved tomimic-bukkit-apiand is no longer generic: it consumesItemStacks. The package is the same, it is no longer experimental. - Breaking: A block is not set if its state is invalid. Previously, the default state was used.
Integrations
- New item and block providers: ItemsAdder (#49), Oraxen (#51), Nexo (#50).
- Changed: The
iaitems registry provided by ItemsAdder itself is not available via Items API, Mimic warns about it. Useitemsadder:ruby_swordinstead ofia:itemsadder:ruby_sword. - New item providers: MythicMobs, including items of MythicCrucible (#38), ExecutableItems (#111), EcoItems (#53).
Plugin changes
- Added support for Minecraft 26.2 and 26.3.
/mimic itemsand/mimic blocksrequire IDs with a namespace.- Config options
disabled-items-registriesanddisabled-block-registriesare renamed todisabled-item-providersanddisabled-block-providers, the old values are moved automatically.
Platforms
Paper
1.20.6–26.3
Dependencies
Paper
- AuraSkills Optional
- CraftEngine Optional
- Fabled Optional
- ValhallaMMO Optional