aboutsummaryrefslogtreecommitdiff
path: root/web/src/pages/docs/_texture-pack-format.md
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-05-02 18:48:30 +0200
committerLinnea Gräf <nea@nea.moe>2025-05-04 14:24:51 +0200
commitafa128e8c621f3ad8139d57a7b4723d170b6106b (patch)
treeb3608fd83579fdc4296df3cc7f29437bd4a9a4dc /web/src/pages/docs/_texture-pack-format.md
parentb98272c3646ec5b6d9c8f39c2dbba7a89876ffe4 (diff)
downloadFirmament-afa128e8c621f3ad8139d57a7b4723d170b6106b.tar.gz
Firmament-afa128e8c621f3ad8139d57a7b4723d170b6106b.tar.bz2
Firmament-afa128e8c621f3ad8139d57a7b4723d170b6106b.zip
feat: Add generic component matcher
Diffstat (limited to 'web/src/pages/docs/_texture-pack-format.md')
-rw-r--r--web/src/pages/docs/_texture-pack-format.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/web/src/pages/docs/_texture-pack-format.md b/web/src/pages/docs/_texture-pack-format.md
index da66043..bfa22ff 100644
--- a/web/src/pages/docs/_texture-pack-format.md
+++ b/web/src/pages/docs/_texture-pack-format.md
@@ -167,6 +167,32 @@ Sub object match:
}
```
+#### Components
+
+You can match generic components similarly to [extra attributes](#extra-attributes). If you want to match an extra
+attribute match directly using that, for better performance.
+
+You can specify a `path` and match similar to extra attributes, but in addition you can also specify a `component`. This
+variable is the identifier of a component type that will then be encoded to nbt and matched according to the `match`
+using a [nbt matcher](#nbt-matcher).
+
+```json5
+"firmament:component": {
+ "path": "rgb",
+ "component": "minecraft:dyed_color",
+ "int": 255
+}
+// Alternatively
+"firmament:component": {
+ "path": "rgb",
+ "component": "minecraft:dyed_color",
+ "match": {
+ "int": 255
+ }
+}
+```
+
+
#### Pet Data
Filter by pet information. While you can already filter by the skyblock id for pet type and tier, this allows you to