--- title: set - --- //[KSpigot](../../index.md)/[net.axay.kspigot.data](../index.md)/[NBTData](index.md)/[set](set.md) # set [jvm] Brief description This method sets some value at the position of the given key. The dataType of the given value must be specified. Content operator fun <[T](set.md)> [set](set.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), dataType: [NBTDataType](../-n-b-t-data-type/index.md)<[T](set.md)>, value: [T](set.md))