{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "drz:market_drz",
      "spawn_category": "creature",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "money": {
        "minecraft:economy_trade_table": {
          "display_name": "Money",
          "table": "trading/money_drz.json",
          "new_screen": true
        }
      },
      "blocks": {
        "minecraft:economy_trade_table": {
          "display_name": "Blocks",
          "table": "trading/blocks_drz.json",
          "new_screen": true
        }
      },
      "chair": {
        "minecraft:economy_trade_table": {
          "display_name": "Chairs",
          "table": "trading/chair_drz.json",
          "new_screen": true
        }
      },
      "table": {
        "minecraft:economy_trade_table": {
          "display_name": "Tables",
          "table": "trading/table_drz.json",
          "new_screen": true
        }
      },
      "sofa": {
        "minecraft:economy_trade_table": {
          "display_name": "Sofa",
          "table": "trading/sofa_drz.json",
          "new_screen": true
        }
      },
      "retail": {
        "minecraft:economy_trade_table": {
          "display_name": "Retail",
          "table": "trading/retail_drz.json",
          "new_screen": true
        }
      },
      "items": {
        "minecraft:economy_trade_table": {
          "display_name": "Items",
          "table": "trading/items_drz.json",
          "new_screen": true
        }
      },
      "bench": {
        "minecraft:economy_trade_table": {
          "display_name": "Bench",
          "table": "trading/bench_drz.json",
          "new_screen": true
        }
      },
      "lamp": {
        "minecraft:economy_trade_table": {
          "display_name": "Lamps",
          "table": "trading/lamp_drz.json",
          "new_screen": true
        }
      },
      "sign": {
        "minecraft:economy_trade_table": {
          "display_name": "Signs",
          "table": "trading/sign_drz.json",
          "new_screen": true
        }
      },
      "traffic": {
        "minecraft:economy_trade_table": {
          "display_name": "Traffics",
          "table": "trading/traffic_drz.json",
          "new_screen": true
        }
      },
      "other": {
        "minecraft:economy_trade_table": {
          "display_name": "Others",
          "table": "trading/other_drz.json",
          "new_screen": true
        }
      }
    },
    "components": {
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "all",
          "deals_damage": false
        }
      },
      "minecraft:type_family": {
        "family": [ "market", "drz" ]
      },
      "minecraft:collision_box": {
        "width": 0.3,
        "height": 1.8
      },
      "minecraft:physics": {
        "has_gravity": false,
        "has_collision": false
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": false
      },
      "minecraft:despawn": {
         "filters": {
           "test": "distance_to_nearest_player",
           "operator": ">",
           "value": 60
         }
      },
      "minecraft:knockback_resistance": {"value": 9},
      "minecraft:conditional_bandwidth_optimization": {
      }
    },
    "events": {
      "money": {
        "add"   : { "component_groups": ["money"] }
      },
      "items": {
        "add"   : { "component_groups": ["items"] }
      },
      "blocks": {
        "add"   : { "component_groups": ["blocks"] }
      },
      "chair": {
        "add"   : { "component_groups": ["chair"] }
      },
      "table": {
        "add"   : { "component_groups": ["table"] }
      },
      "sofa": {
        "add"   : { "component_groups": ["sofa"] }
      },
      "retail": {
        "add"   : { "component_groups": ["retail"] }
      },
      "bench": {
        "add"   : { "component_groups": ["bench"] }
      },
      "lamp": {
        "add"   : { "component_groups": ["lamp"] }
      },
      "sign": {
        "add"   : { "component_groups": ["sign"] }
      },
      "traffic": {
        "add"   : { "component_groups": ["traffic"] }
      },
      "other": {
        "add"   : { "component_groups": ["other"] }
      }
    }
  }
}