feat: Display Entity mechanic support (1.19.4+)#1647
Draft
Conversation
…support Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/c317fb71-9ff5-409e-8cf2-46d80e8a9f75 Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for display entities in SkillApi
feat: Display Entity mechanic support (1.19.4+)
Apr 25, 2026
- Add DisplayEntityTransform: holds 12 Formula objects (scale-x/y/z, translate-x/y/z, left-rotation-x/y/z, right-rotation-x/y/z) with t (elapsed ticks) and l (skill level) as variables - Update DisplayEntityInstance: stores the transform, level, tick counter, and interpolation duration; applies transform.compute(t, l) each tick via Bukkit main-thread runTask - Update DisplayEntityMechanic: builds a DisplayEntityTransform from settings strings instead of a one-shot static Transformation; adds interpolation-duration setting for smooth client-side animation Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/e0457758-fbef-483c-a7ff-3d33104656af Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/e0457758-fbef-483c-a7ff-3d33104656af Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
Resolves item-material names via CodexItemManager.getItemType() before falling back to vanilla Material, enabling custom item providers such as Divinity, Nexo, and any other provider registered with Codex to be used as the displayed item in an item display entity. Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/69961564-e033-46f3-881e-f3ee548a7be4 Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
…ity mechanic - inherit-rotation (default true): when false, spawn location and follow-teleport locations have yaw/pitch zeroed so the entity does not inherit the caster's facing direction - center-rotation (default false): when true, the translation is automatically adjusted each tick so the visual centre of the block (or item/text) sits at the entity's world position; user translate-x/y/z become additive offsets from that centre rather than from the corner. Handles both left- and right-rotation including time-animated formulas. Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/7dfc4bb5-768c-40c5-a799-f1ceb08d578a Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/3f7f10ba-f6d1-47e8-b58b-c521b8f92a9a Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
…otation=false; add follow teleport interpolation Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/3f7f10ba-f6d1-47e8-b58b-c521b8f92a9a Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
…set formulas to DisplayEntity Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/ba015f6d-abf0-4d80-a58a-8320a69db2ef Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
…ent is not stripped Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/b0958466-f790-4e92-bca8-d3be22712267 Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
…ntity offsets Agent-Logs-Url: https://github.com/magemonkeystudio/fabled/sessions/4725ed22-d95f-4f8d-8268-4fb8036b9d49 Co-authored-by: Travja <1574947+Travja@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
execute(): use flattenedhorizDirforforwardoffset whenfollow=false, full 3Ddirwhenfollow=true; passforwardDirascastDirto constructor for consistencyplayPreview(): readfollowsetting, apply same branchDisplayEntityInstance.castDirJavadoc updated to note the follow-based dualityDisplayEntityInstance.tick(): already insideif (follow)block — no change needed