{ "format_version": "1.12.0", "minecraft:entity": { "description": { "identifier": "minecraft:hopper_minecart", "is_spawnable": false, "is_summonable": true, "is_experimental": false }, "component_groups": { "minecraft:hopper_active": { "minecraft:item_hopper": { }, "minecraft:rail_sensor": { "on_activate": { "event": "minecraft:hopper_deactivate" } } }, "minecraft:hopper_inactive": { "minecraft:rail_sensor": { "on_deactivate": { "event": "minecraft:hopper_activate" } } } }, "components": { "minecraft:type_family": { "family": [ "minecart", "inanimate" ] }, "minecraft:collision_box": { "width": 0.98, "height": 0.7 }, "minecraft:rail_movement": { }, "minecraft:inventory": { "container_type": "minecart_hopper", "inventory_size": 5, "can_be_siphoned_from": true }, "minecraft:is_stackable": { }, "minecraft:physics": { }, "minecraft:pushable": { "is_pushable": true, "is_pushable_by_piston": true } }, "events": { "minecraft:entity_spawned": { "add": { "component_groups": [ "minecraft:hopper_active" ] } }, "minecraft:hopper_activate": { "remove": { "component_groups": [ "minecraft:hopper_inactive" ] }, "add": { "component_groups": [ "minecraft:hopper_active" ] } }, "minecraft:hopper_deactivate": { "remove": { "component_groups": [ "minecraft:hopper_active" ] }, "add": { "component_groups": [ "minecraft:hopper_inactive" ] } } } } }