Mirage Kit
No reviews yet
A streamlined, server-side display manipulation toolkit purpose-built for fluent BlockDisplay control.
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Mirage
A server-side Fabric library that provides a type-safe, fluent API for Minecraft's Display Entity system. It abstracts entity construction, spatial transformation, interpolation, and hierarchical grouping into a single cohesive toolkit for mod developers.
Overview
Mirage eliminates the repetitive boilerplate required to spawn and manipulate BlockDisplayEntity, ItemDisplayEntity, and TextDisplayEntity at runtime. Instead of manually composing NBT, sending packets, or tracking entity IDs, developers describe the desired state through a chainable builder API. The library handles entity lifecycle, transform matrices, and server-tick scheduling internally.
Capabilities
Display Construction
MirageBuilder supports all three vanilla display types through a unified interface. Configure position, affine transformation, interpolation duration, view range, shadow parameters, billboard mode, brightness override, and glow color before spawning.
Transform Hierarchies
MirageHierarchy and TransformNode implement a directed tree of local-to-world transforms. Each node caches its world matrix and invalidates lazily when ancestors change. The system supports arbitrary nesting, full pivot-point rotation, and scale inheritance.
Keyframe Animation
MirageAnimation sequences vanilla interpolation fields server-side. Define hold durations, transition durations, loop modes, ping-pong playback, and speed multipliers. The animator advances only after the current interpolation window completes, preventing state tearing.
Spatial Groups
MirageGroup maintains relative offsets from a shared center point. It supports bulk translation, rotation, and interpolated movement, as well as automatic distribution algorithms for linear, circular, and grid layouts.
Task Scheduling
MirageScheduler registers one-shot, repeating, and self-cancelling callbacks synchronized to the server tick. All task handles expose their next-run tick and period for inspection.
Quick Example
ServerWorld world = ...;
MirageDisplay hologram = MirageBuilder.in(world)
.block(Blocks.DIAMOND_BLOCK.getDefaultState())
.at(100.5, 64.0, 200.5)
.transform(MirageTransform.identity().scale(2.0f))
.glowColor(0xFF00FFFF)
.buildAndSpawn();
hologram.lookAt(new Vec3d(110.0, 65.0, 210.0));
Mirage.animate(hologram)
.keyframe(20, MirageTransform.identity().scale(2.0f))
.keyframe(20, MirageTransform.identity().scale(2.5f))
.loop(true)
.pingPong(true)
.play();
Requirements
- Minecraft 1.20.x or newer
- Fabric Loader and Fabric API
- JOML (bundled with Minecraft; no additional dependency)
Architecture
- Server-authoritative. All mutations originate on the server thread. The client receives standard display entity packets; no client-side installation is required for core functionality.
- Zero-allocation hot paths.
MirageMath,MirageEasing, andTransformNodeminimize heap pressure. World-matrix queries are constant-time after the initial cached computation. - Pivot semantics. Pivot points are fully evaluated within the hierarchy pipeline via
MirageTransform.toMatrix4d(). When applied directly to a vanillaAffineTransformationthroughbuild(), the pivot is omitted because the vanilla format does not store it.
Roadmap
| Phase | Status | Deliverable |
|---|---|---|
| I | Released | Fabric 1.20.x core, builder API, display management |
| II | Released | Transform hierarchies, keyframe animation, spatial groups, tick scheduler |
| III | Planned | NeoForge 1.21.1+ port and cross-loader artifact publishing |
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources