1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-01-31 06:01:26 +00:00
bedrock-samples/behavior_pack/entities/hopper_minecart.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

109 lines
2.4 KiB
JSON

{
"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
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 60.0,
"max_dropped_ticks": 20,
"use_motion_prediction_hints": true
},
"conditional_values": [
{
"max_optimized_distance": 0.0,
"max_dropped_ticks": 0,
"conditional_values": [
{ "test": "is_moving", "subject": "self", "operator": "==", "value": 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"
]
}
}
}
}
}