{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:tnt_minecart",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": false,
      "spawn_category": "misc"
    },
    "components": {
      "minecraft:collision_box": {
        "height": 0.7,
        "width": 0.98
      },
      "minecraft:conditional_bandwidth_optimization": {
        "conditional_values": [
          {
            "conditional_values": [
              {
                "operator": "==",
                "test": "is_moving",
                "subject": "self",
                "value": true
              }
            ],
            "max_dropped_ticks": 0,
            "max_optimized_distance": 0.0
          }
        ],
        "default_values": {
          "max_dropped_ticks": 20,
          "max_optimized_distance": 60.0,
          "use_motion_prediction_hints": true
        }
      },
      "minecraft:is_stackable": {},
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:rail_movement": {},
      "minecraft:type_family": {
        "family": [
          "minecart",
          "inanimate"
        ]
      }
    },
    "component_groups": {
      "minecraft:inactive": {
        "minecraft:interact": {
          "interactions": [
            {
              "interact_text": "action.interact.creeper",
              "on_interact": {
                "event": "minecraft:on_prime",
                "filters": {
                  "all_of": [
                    {
                      "subject": "other",
                      "test": "is_family",
                      "value": "player"
                    },
                    {
                      "domain": "tntexplodes",
                      "operator": "==",
                      "test": "is_game_rule",
                      "value": true
                    }
                  ],
                  "any_of": [
                    {
                      "domain": "hand",
                      "subject": "other",
                      "test": "has_equipment",
                      "value": "fireball:0"
                    },
                    {
                      "domain": "hand",
                      "subject": "other",
                      "test": "has_equipment",
                      "value": "flint_and_steel"
                    }
                  ]
                },
                "target": "self"
              },
              "play_sounds": "ignite",
              "swing": true
            },
            {
              "interact_text": "action.interact.creeper",
              "on_interact": {
                "event": "minecraft:on_prime",
                "filters": {
                  "all_of": [
                    {
                      "domain": "tntexplodes",
                      "operator": "==",
                      "test": "is_game_rule",
                      "value": true
                    }
                  ],
                  "any_of": [
                    {
                      "subject": "other",
                      "test": "has_component",
                      "value": "fire_aspect"
                    }
                  ]
                },
                "target": "self"
              },
              "swing": true
            }
          ]
        },
        "minecraft:rail_sensor": {
          "on_activate": {
            "event": "minecraft:on_prime",
            "filters": {
              "all_of": [
                {
                  "domain": "tntexplodes",
                  "operator": "==",
                  "test": "is_game_rule",
                  "value": true
                }
              ]
            }
          }
        }
      },
      "minecraft:instant_explode_tnt": {
        "minecraft:explode": {
          "causes_fire": false,
          "fuse_lit": true,
          "power": 3,
          "fuse_length": 0
        },
        "minecraft:is_ignited": {},
        "minecraft:rail_sensor": {}
      },
      "minecraft:primed_tnt": {
        "minecraft:explode": {
          "causes_fire": false,
          "fuse_lit": true,
          "power": 3,
          "fuse_length": 4
        },
        "minecraft:is_ignited": {},
        "minecraft:rail_sensor": {}
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:inactive"
          ]
        }
      },
      "minecraft:on_instant_prime": {
        "add": {
          "component_groups": [
            "minecraft:instant_explode_tnt"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:inactive"
          ]
        }
      },
      "minecraft:on_prime": {
        "add": {
          "component_groups": [
            "minecraft:primed_tnt"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:inactive"
          ]
        }
      }
    }
  }
}