diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2025-06-26 15:29:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-26 21:29:07 +0200 |
commit | 4627064699a0211f23f659ff6a814e717ef6f53c (patch) | |
tree | 715b8e5ab3663fd408f20b4aa8444d138527245e /web | |
parent | e5ff77c47f2936c34699a56b1394c1b5c18964e8 (diff) | |
download | Firmament-4627064699a0211f23f659ff6a814e717ef6f53c.tar.gz Firmament-4627064699a0211f23f659ff6a814e717ef6f53c.tar.bz2 Firmament-4627064699a0211f23f659ff6a814e717ef6f53c.zip |
feat: Add screen type matching to Custom Screen Layouts (#177)
Diffstat (limited to 'web')
-rw-r--r-- | web/src/pages/docs/_texture-pack-format.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web/src/pages/docs/_texture-pack-format.md b/web/src/pages/docs/_texture-pack-format.md index 8d0e2ca..2f84777 100644 --- a/web/src/pages/docs/_texture-pack-format.md +++ b/web/src/pages/docs/_texture-pack-format.md @@ -577,7 +577,7 @@ not screens from other mods. You can also target specific texts via a [string ma ## Screen Layout Replacement -You can change the layout of an entire screen by using screen layout overrides. These get placed in `firmskyblock:overrides/screen_layout/*.json`, with one file per screen. You can match on the title of a screen, replace the background texture (including extending the background canvas further than vanilla allows you) and move slots around. +You can change the layout of an entire screen by using screen layout overrides. These get placed in `firmskyblock:overrides/screen_layout/*.json`, with one file per screen. You can match on the title of a screen, the type of screen, replace the background texture (including extending the background canvas further than vanilla allows you) and move slots around. ### Selecting a screen @@ -586,13 +586,16 @@ You can change the layout of an entire screen by using screen layout overrides. "predicates": { "label": { "regex": "Hyper Furnace" - } + }, + "screenType": "minecraft:furnace" } } ``` The `label` property is a regular [string matcher](#string-matcher) and matches against the screens title (typically the chest title, or "Crafting" for the players inventory). +The `screenType` property is an optional namespaced identifier that allows matching to a [screen type](https://minecraft.wiki/w/Java_Edition_protocol/Inventory#Types). + ### Changing the background ```json |