blockNbt

@ApiStatus.Experimental
abstract fun blockNbt(@Language(value = "NBTPath") nbt: String, consumer: BlockNBTComponent.Builder.() -> Unit): ComponentBuilder

Appends a block NBT component with the specified NBT path and builder configuration. Queries and displays NBT data from a block at a specific position.

Return

this component builder for chaining

Parameters

nbt

the NBT path to query from the block

consumer

the consumer lambda that configures the BlockNBTComponent.Builder (including block position)