storageNbt
@ApiStatus.Experimental
Appends a storage NBT component that queries data from command storage. Displays NBT data from persistent command storage at the specified key.
Return
this component builder for chaining
Parameters
nbt
the NBT path to query from storage
storage
the storage key identifying the storage location
consumer
the consumer lambda that configures the StorageNBTComponent.Builder
abstract fun storageNbt(@Language(value = "NBTPath") nbt: String, storage: String, consumer: StorageNBTComponent.Builder.() -> Unit): ComponentBuilder
Appends a storage NBT component that queries data from command storage. Displays NBT data from persistent command storage at the specified key (parsed from string).
Return
this component builder for chaining
Parameters
nbt
the NBT path to query from storage
storage
the storage key as string (e.g., "minecraft:custom_data")
consumer
the consumer lambda that configures the StorageNBTComponent.Builder