Skip to content

BlockEntityType

Represents the type of a block entity, identified by a unique ID that distinguishes between different block entity types.

Example: List the block entities nearby

for _, blockEntity in ipairs(spell:findBlockEntities({ maxradius = 16 })) do
  print(blockEntity.type.id .. " at " .. blockEntity.pos)
end

Fields

id: string — Read-Only

The unique identifier of the block entity type (e.g., "chest", "furnace").