Skip to content

Adding FoodTags behavior

Dana edited this page Apr 3, 2026 · 4 revisions

Important

Make sure to familiarize yourself with the library's syntax: Attribute‐based Matching

Allows you to assign custom food tags for attribute-typed item / block (held).

Add the following behavior:

"behaviors": [
    {
        "name": "AttributeRenderingLibrary.FoodTags",
        "properties": {
            // add properties here
        }
    }
]

properties

Note

Everything listed below can only be used in behavior's own properties

foodTags

Example:

"foodTags": {
    "key-value": ["{fruit}", "fruit"],
    "key2-value2": ["{type}", "tastyvegetable"]
}

Clone this wiki locally