{"id":20910276,"url":"https://github.com/toxicity188/mult-layer-display-text","last_synced_at":"2025-05-13T07:31:36.413Z","repository":{"id":238161847,"uuid":"796004530","full_name":"toxicity188/mult-layer-display-text","owner":"toxicity188","description":"An simple core shader allows you make multiple layer text component.","archived":false,"fork":false,"pushed_at":"2024-05-04T17:04:00.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T19:48:40.483Z","etag":null,"topics":["core-shader","glsl","glsl-shaders","minecraft","mod","paper","paper-plugin","plugin","spigot","spigot-plugin","util"],"latest_commit_sha":null,"homepage":"","language":"GLSL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toxicity188.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-04T16:41:40.000Z","updated_at":"2025-03-01T23:38:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c602d4cd-2015-4720-a7ac-89c97c86d50e","html_url":"https://github.com/toxicity188/mult-layer-display-text","commit_stats":null,"previous_names":["toxicity188/mult-layer-display-text"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2Fmult-layer-display-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2Fmult-layer-display-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2Fmult-layer-display-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2Fmult-layer-display-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toxicity188","download_url":"https://codeload.github.com/toxicity188/mult-layer-display-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253894807,"owners_count":21980402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["core-shader","glsl","glsl-shaders","minecraft","mod","paper","paper-plugin","plugin","spigot","spigot-plugin","util"],"created_at":"2024-11-18T14:14:28.972Z","updated_at":"2025-05-13T07:31:36.407Z","avatar_url":"https://github.com/toxicity188.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi line display text\nAn simple core shader allows you make multiple layer text component.\n\n# How this core shader can help you?\nThere's some issues in minecraft font and text display component.\n\n- Text's ascent value cannot be more than it's height.\n- If two different images overlapped, z-fighting problem is occurred.\n\nBut, this core shader removes all of this problem!\n\n# Comparison\n![녹화_2024_05_03_10_03_28_717-min](https://github.com/toxicity188/mult-layer-display-text/assets/114675706/161e5af4-7e13-4373-9028-7ff634dc8788)  \nNormal core shader, occurring z-fighting problem.\n![녹화_2024_05_03_10_05_19_637-min (1)](https://github.com/toxicity188/mult-layer-display-text/assets/114675706/5f367ad1-d75b-432e-a56c-a9bc9bdb40a0)  \nMy shader. no z-fighting!\n\n# How to use?\n``` json\n{\"type\":\"bitmap\",\"file\":\"betterhealthbar:default_layout/image/1/empty_empty.png\",\"ascent\":-8192,\"height\":4,\"chars\":[\"򰀀\"]}\n```\nFirst, you should minuse **-8192** to your font ascent.\n\n``` json\n{\"type\":\"bitmap\",\"file\":\"betterhealthbar:splitter.png\",\"ascent\":-9999,\"height\":-2,\"chars\":[\"򠀀\"]}\n```\nThen, merge your image by space font.\n\n``` json\n{\"type\":\"space\",\"advances\":{\"򮀀\":-8192,\"򮀁\":-8191,\"򮀂\":-8190,\"򮀃\":-8189,\"򮀄\":-8188,\"򮀅\":-8187}}\n```\nDon't forget to use spliitter!\n\n``` kotlin\n        val display = TextDisplay(EntityType.TEXT_DISPLAY, (player.world as CraftWorld).handle).apply {\n            billboardConstraints = Display.BillboardConstraints.CENTER //Must!!!!!!!\n            entityData.run {\n                set(Display.DATA_POS_ROT_INTERPOLATION_DURATION_ID, 1)\n                set(TextDisplay.DATA_BACKGROUND_COLOR_ID, 0)\n                set(TextDisplay.DATA_LINE_WIDTH_ID, Int.MAX_VALUE)\n            }\n            brightnessOverride = Brightness(15, 15)\n            text = PaperAdventure.asVanilla(component)\n        }\n```\nAnd, you can use display or amor stand. but don't forget to set the billboard of display to CENTER!\n\n![mob_effect_absorption_absorption](https://github.com/toxicity188/mult-layer-display-text/assets/114675706/0ebe9dcb-9bf6-4451-8f28-729d046c512a)  \nNow, you have to modify image's alpha value to 1~254 (the greater, the higher layer.)\n\n# Result\n![녹화_2024_05_05_01_48_15_383-min](https://github.com/toxicity188/mult-layer-display-text/assets/114675706/ae033d45-f040-486e-9943-6ce9c1cf6bc6)  \nEnjoy your multi line text display!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxicity188%2Fmult-layer-display-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoxicity188%2Fmult-layer-display-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxicity188%2Fmult-layer-display-text/lists"}