#help with flagging chest name.

1 messages · Page 1 of 1 (latest)

simple river
#

so im trying to flag the chests container name but what i have isnt working, anyone know why?

"chest_label": {
    "type": "label",
    "offset": [
      7,
      -1
    ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "text": "$container_title",
    "size": [
      "90%",
      "default"
    ],
    "font_type": "MinecraftTen",
    "color": "$title_text_color",
    "layer": 2,
    "bindings": [
      {
        "binding_name": "#container_title",
        "binding_name_override": "#text",
        "binding_type": "global"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((#text - '§0') = #text))",
        "target_property_name": "#visible"
      }
    ]
  },```
#

it clearly has to do with the binding name

#

i dont think its correct

drifting kraken
#

I may be wrong but you need to write "visible" : "(not(($container_title - '§0') = #text))"