实验性只读block只读is只读type静态 只读componentAn array of BlockEntityStorageInfo values containing the unique ID and definition ID of each stored entity. Returns an empty array when no entities are stored by the current content pack.
Returns information about the entities stored in this block's entity storage. The returned entities are not present in the world while they are stored. Only entities stored by the current content pack are included.
世界修改
The unique ID of the stored entity. Use the value returned
by BlockEntityStorageComponent.store or the
uniqueId property from BlockEntityStorageInfo.
The released Entity. The released entity receives a new runtime ID.
Releases a stored entity from this block's entity storage and spawns it back into the world, at the same location it was when stored.
世界修改
The unique ID assigned to the stored entity. Keep this ID to release, transfer, or inspect the stored entity later.
Serializes and stores an entity in this block's entity storage. The entity is removed from the world after it is stored. Only non-player mob entities can be stored. Entities with passengers or that are passengers cannot be stored.
世界修改
The unique ID of the stored entity. Use the value returned
by BlockEntityStorageComponent.store or the
uniqueId property from BlockEntityStorageInfo.
The target Block with an entity storage component. The target block must be in the same dimension as this block.
Moves a stored entity from this block's entity storage to the target block's entity storage without releasing it into the world.
Represents storage for entities associated with a block entity. This component is available on blocks whose behavior pack definition enables entity storage with the
minecraft:block_entitycomponent. Stored entities are serialized and removed from the world until they are released or transferred. A block can store up to four entities. Entity storage is scoped to the content pack accessing it.