{
  "condition": "minecraft:inverted",
  "term": {
    "condition": "minecraft:any_of",
    "terms": [
      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "location": {
            "dimension": "minecraft:overworld"
          },
          "equipment": {
            "mainhand": {
              "components": {
                "minecraft:custom_model_data": {
                  "strings": [
                    "dnt:chart"
                  ]
                }
              },
              "predicates": {
                "minecraft:custom_data": {
                  "dimension": "minecraft_overworld"
                }
              }
            }
          }
        }
      },
      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "location": {
            "dimension": "minecraft:the_nether"
          },
          "equipment": {
            "mainhand": {
              "components": {
                "minecraft:custom_model_data": {
                  "strings": [
                    "dnt:chart"
                  ]
                }
              },
              "predicates": {
                "minecraft:custom_data": {
                  "dimension": "minecraft_nether"
                }
              }
            }
          }
        }
      },
      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "location": {
            "dimension": "minecraft:the_end"
          },
          "equipment": {
            "mainhand": {
              "components": {
                "minecraft:custom_model_data": {
                  "strings": [
                    "dnt:chart"
                  ]
                }
              },
              "predicates": {
                "minecraft:custom_data": {
                  "dimension": "minecraft_end"
                }
              }
            }
          }
        }
      }
    ]
  }
}