Synced
annotation class Synced( val key: String, val doc: String = "", val external: Boolean = false, val type: String = "", val max: Long = -1, val capacity: Int = -1, val clientSetting: String = "")class Thirst : Component() { @Synced("game:thirst", doc = "How thirsty the player is.", max = 100) var level: Int = 0}
on_login { player -> player.replaceComponent(Thirst()) }val key: Stringval doc: Stringexternal
Section titled “external”val external: Booleanval type: Stringval max: Longcapacity
Section titled “capacity”val capacity: IntclientSetting
Section titled “clientSetting”val clientSetting: String