setFloat

fun setFloat(key: String, value: Float): MutableNBTCompound

Sets (and overwrites previous) tag associated to the given key (shorthand method that in turn calls set)