{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:command_block_minecart",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": false,
      "spawn_category": "misc"
    },
    "components": {
      "minecraft:collision_box": {
        "height": 0.7,
        "width": 0.98
      },
      "minecraft:inventory": {},
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:rail_movement": {},
      "minecraft:type_family": {
        "family": [
          "minecart",
          "inanimate"
        ]
      }
    },
    "component_groups": {
      "minecraft:command_block_active": {
        "minecraft:rail_sensor": {
          "check_block_types": true,
          "on_deactivate": {
            "event": "minecraft:command_block_deactivate"
          },
          "eject_on_activate": false,
          "eject_on_deactivate": false,
          "tick_command_block_on_activate": true,
          "tick_command_block_on_deactivate": false
        }
      },
      "minecraft:command_block_inactive": {
        "minecraft:rail_sensor": {
          "check_block_types": false,
          "eject_on_activate": false,
          "eject_on_deactivate": false,
          "on_activate": {
            "event": "minecraft:command_block_activate"
          },
          "tick_command_block_on_activate": true,
          "tick_command_block_on_deactivate": false
        }
      }
    },
    "events": {
      "minecraft:command_block_activate": {
        "add": {
          "component_groups": [
            "minecraft:command_block_active"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:command_block_inactive"
          ]
        }
      },
      "minecraft:command_block_deactivate": {
        "add": {
          "component_groups": [
            "minecraft:command_block_inactive"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:command_block_active"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:command_block_inactive"
          ]
        }
      }
    }
  }
}