diff --git a/build.gradle b/build.gradle index f7f5e8a..4ec6d9c 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,11 @@ repositories { includeGroup "maven.modrinth" } } + + maven { + name = "Nucleoid" + url = "https://maven.nucleoid.xyz" + } } dependencies { @@ -45,6 +50,8 @@ dependencies { modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") { exclude(group: "net.fabricmc.fabric-api") } + + modImplementation include("fr.catcore:server-translations-api:${project.server_translation_api_version}") } processResources { diff --git a/gradle.properties b/gradle.properties index 5b63ac4..a5283cd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,3 +17,4 @@ supported_minecraft_version=1.19.x fabric_version=0.72.0+1.19.2 cloth_config_version=7.0.69 modmenu_version=4.1.2 +server_translation_api_version=1.4.16+1.19 diff --git a/src/main/resources/data/realisticsleep/lang/de_de.json b/src/main/resources/data/realisticsleep/lang/de_de.json new file mode 100644 index 0000000..d262d29 --- /dev/null +++ b/src/main/resources/data/realisticsleep/lang/de_de.json @@ -0,0 +1,23 @@ +{ + "text.autoconfig.realisticsleep.title": "Realistic Sleep Konfiguration", + "text.autoconfig.realisticsleep.option.dawnMessage": "Dämmerungsmeldung", + "text.autoconfig.realisticsleep.option.dawnMessage.@Tooltip": "Die Nachricht, die allen Spielern in der Aktionsleiste angezeigt wird, nachdem sie die Nacht durchgeschlafen haben.", + "text.autoconfig.realisticsleep.option.sendSleepingMessage": "Schlafnachricht senden?", + "text.autoconfig.realisticsleep.option.sendSleepingMessage.@Tooltip": "Schaltet die Meldung \"x/y Spieler schlafen diese Nacht durch (Zeit bis zum Morgengrauen: z)\" in der Aktionsleiste ein.", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage": "Nachricht über nicht genug schlafende Spieler senden?", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage.@Tooltip": "Schaltet die Meldung \"x/y Spieler schlafen derzeit. z/w Spieler müssen die Nacht durchschlafen.\" in der Aktionsleiste ein.", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve": "Schlafgeschwindigkeitskurve", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve.@Tooltip": "Die Kurve, die verwendet wird, um den Multiplikator der Geschwindigkeit der Nacht mit fortschreitender Zeit zu bestimmen", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier": "Schlafgeschwindigkeitsmultiplikator", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier.@Tooltip": "Wie viel schneller die Nacht verlaufen soll", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier": "Block-Entity-Tick-Geschwindigkeit-Multiplikator", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier.@Tooltip": "Wie viel schneller Block-Entitäten wie Öfen ticken sollen", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier": "Chunk-Tick-Geschwindigkeitsmultiplikator", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier.@Tooltip": "Wie viele Male schneller die Chunks ticken sollen. Es gibt einen Grund, warum diese Option standardmäßig deaktiviert ist, aktivieren Sie sie auf eigene Gefahr. Wahnsinniger TPS-Verlust ist garantiert.", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier": "Raid-Tick-Geschwindigkeitsmultiplikator", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier.@Tooltip": "Wie viel schneller die Raid-Timer ticken sollen.", + "text.autoconfig.realisticsleep.option.entityTickSpeedMultiplier": "Entitäts-Tick-Geschwindigkeitsmultiplikator", + "text.autoconfig.realisticsleep.option.entityTickSpeedMultiplier.@Tooltip": "Wie viele Male schneller Entitäten ticken sollen", + "text.autoconfig.realisticsleep.option.tickDelay": "Tick-Verzögerung", + "text.autoconfig.realisticsleep.option.tickDelay.@Tooltip": "Fügt jedem Tick eine Verzögerung von mehreren Ticks hinzu, so dass die Zeit langsamer vergeht." +} diff --git a/src/main/resources/data/realisticsleep/lang/en_us.json b/src/main/resources/data/realisticsleep/lang/en_us.json new file mode 100644 index 0000000..a2a9b01 --- /dev/null +++ b/src/main/resources/data/realisticsleep/lang/en_us.json @@ -0,0 +1,56 @@ +{ + "text.autoconfig.realisticsleep.title": "Realistic Sleep Config", + "text.autoconfig.realisticsleep.option.sendDawnMessage": "Send dawn message?", + "text.autoconfig.realisticsleep.option.sendDawnMessage.@Tooltip": "Send a message to all players on the actionbar at dawn.", + "text.autoconfig.realisticsleep.option.sendDuskMessage": "Send dusk message?", + "text.autoconfig.realisticsleep.option.sendDuskMessage.@Tooltip": "Send a message to all players on the actionbar at dusk.", + "text.autoconfig.realisticsleep.option.dawnMessage": "Dawn message", + "text.autoconfig.realisticsleep.option.dawnMessage.@Tooltip": "The message displayed to all players on the actionbar at dawn.", + "text.autoconfig.realisticsleep.option.duskMessage": "Dusk message", + "text.autoconfig.realisticsleep.option.duskMessage.@Tooltip": "The message displayed to all players at dawn on the actionbar.", + "text.autoconfig.realisticsleep.option.sendSleepingMessage": "Send sleeping message?", + "text.autoconfig.realisticsleep.option.sendSleepingMessage.@Tooltip": "Toggles the \"players are sleeping through this night...\" message on the actionbar.", + "text.autoconfig.realisticsleep.option.showTimeUntilDawn": "Show time until dawn?", + "text.autoconfig.realisticsleep.option.showTimeUntilDawn.@Tooltip": "Displays the seconds until dawn on the actionbar.", + "text.autoconfig.realisticsleep.option.showTimeUntilDusk": "Show time until dusk?", + "text.autoconfig.realisticsleep.option.showTimeUntilDusk.@Tooltip": "Displays the seconds until dusk on the actionbar.", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage": "Send not enough players sleeping message?", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage.@Tooltip": "Toggles the amount of players who need to sleep to skip to dawn message on the actionbar.", + "text.autoconfig.realisticsleep.option.allowDaySleeping": "Allow sleeping through the day?", + "text.autoconfig.realisticsleep.option.allowDaySleeping.@Tooltip": "Toggles daytime sleeping.", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve": "Sleep speed curve", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve.@Tooltip": "The curve used to determine the speed multiplier of the night as time progresses.", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier": "Sleep speed multiplier", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier.@Tooltip": "How many times faster the night should go.", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier": "Block entity tick speed multiplier", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier.@Tooltip": "How many times faster block entities like furnaces should tick.", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier": "Chunk tick speed multiplier", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier.@Tooltip": "How many times faster chunks should tick. Enable at your own risk, may cause huge TPS loss!", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier": "Raid tick speed multiplier", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier.@Tooltip": "How many times faster raid timers should tick.", + "text.autoconfig.realisticsleep.option.fluidScheduledTickSpeedMultiplier": "Fluid scheduled tick speed multiplier", + "text.autoconfig.realisticsleep.option.fluidScheduledTickSpeedMultiplier.@Tooltip": "How many times faster fluid movements should tick.", + "text.autoconfig.realisticsleep.option.thunderTickSpeedMultiplier": "Thunder tick speed multiplier", + "text.autoconfig.realisticsleep.option.thunderTickSpeedMultiplier.@Tooltip": "How many times faster thunder should occur.", + "text.autoconfig.realisticsleep.option.iceAndSnowTickSpeedMultiplier": "Ice and snow formation speed multiplier", + "text.autoconfig.realisticsleep.option.iceAndSnowTickSpeedMultiplier.@Tooltip": "How many times faster ice and snow should form.", + "text.autoconfig.realisticsleep.option.cropGrowthTickSpeedMultiplier": "Crop growth speed multiplier", + "text.autoconfig.realisticsleep.option.cropGrowthTickSpeedMultiplier.@Tooltip": "How many times faster crops should grow.", + "text.autoconfig.realisticsleep.option.precipitationTickSpeedMultiplier": "Precipitation tick speed multiplier", + "text.autoconfig.realisticsleep.option.precipitationTickSpeedMultiplier.@Tooltip": "How many times faster cauldrons should fill.", + "text.autoconfig.realisticsleep.option.blockRandomTickSpeedMultiplier": "Block random tick speed multiplier", + "text.autoconfig.realisticsleep.option.blockRandomTickSpeedMultiplier.@Tooltip": "How many times faster blocks should random tick. Enable at your own risk, may cause huge TPS loss!", + "text.autoconfig.realisticsleep.option.fluidRandomTickSpeedMultiplier": "Fluid random tick speed multiplier", + "text.autoconfig.realisticsleep.option.fluidRandomTickSpeedMultiplier.@Tooltip": "How many times faster fluids should random tick. Enable at your own risk, may cause huge TPS loss!", + "text.autoconfig.realisticsleep.option.cloudSpeedMultiplier": "Cloud speed multiplier", + "text.autoconfig.realisticsleep.option.cloudSpeedMultiplier.@Tooltip": "How many times faster clouds should move.", + "text.autoconfig.realisticsleep.option.tickDelay": "Tick delay", + "text.autoconfig.realisticsleep.option.tickDelay.@Tooltip": "Adds an amount of ticks delay to every tick, so time goes slower.", + "realisticsleep.text.sleep_message": "%d/%d players are sleeping through this ", + "realisticsleep.text.not_enough_players_sleeping_message": "%d/%d players are currently sleeping. %d/%d players are required to sleep through the %s", + "realisticsleep.text.night": "night", + "realisticsleep.text.day": "day", + "realisticsleep.text.thunderstorm": "thunderstorm", + "realisticsleep.text.time_until_dawn": " (time until dawn: %ds)", + "realisticsleep.text.time_until_dusk": " (time until dusk: %ds)" +} diff --git a/src/main/resources/data/realisticsleep/lang/ru_ru.json b/src/main/resources/data/realisticsleep/lang/ru_ru.json new file mode 100644 index 0000000..8e0bdbd --- /dev/null +++ b/src/main/resources/data/realisticsleep/lang/ru_ru.json @@ -0,0 +1,23 @@ +{ + "text.autoconfig.realisticsleep.title": "Конфиг мода Realistic Sleep", + "text.autoconfig.realisticsleep.option.dawnMessage": "Сообщение о рассвете", + "text.autoconfig.realisticsleep.option.dawnMessage.@Tooltip": "Сообщение, которое будет отображаться у всех игроков на панели действий после того, как они проспят.", + "text.autoconfig.realisticsleep.option.sendSleepingMessage": "Отправить сообщение о сне?", + "text.autoconfig.realisticsleep.option.sendSleepingMessage.@Tooltip": "Переключает \"x/y игроков спят этой ночью (до рассвета осталось: z)\" сообщение на панели действий.", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage": "Отправить сообщение о недостаточном количестве спящих игроков?", + "text.autoconfig.realisticsleep.option.sendNotEnoughPlayersSleepingMessage.@Tooltip": "Переключает \"x/y игроков сейчас спят. Требуется z/w игроков чтобы проспать ночь.\" сообщение на панели действий.", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve": "Кривая скорости сна", + "text.autoconfig.realisticsleep.option.sleepSpeedCurve.@Tooltip": "Кривая, которая используется для определения множителя скорости ночи с течением времени.", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier": "Множитель скорости сна", + "text.autoconfig.realisticsleep.option.sleepSpeedMultiplier.@Tooltip": "Во сколько раз быстрее должна пройти ночь.", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier": "Множитель скорости тика блока-сущности", + "text.autoconfig.realisticsleep.option.blockEntityTickSpeedMultiplier.@Tooltip": "Во сколько раз быстрее должны тикать такие блоки-сущности, как печи.", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier": "Множитель скорости тика чанка", + "text.autoconfig.realisticsleep.option.chunkTickSpeedMultiplier.@Tooltip": "Во сколько раз быстрее должны тикать чанки. Не зря по умолчанию эта функция отключена, включайте на свой страх и риск. Безумная потеря TPS гарантирована.", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier": "Множитель скорости тика рейда", + "text.autoconfig.realisticsleep.option.raidTickSpeedMultiplier.@Tooltip": "Во сколько раз быстрее должны тикать таймеры рейда .", + "text.autoconfig.realisticsleep.option.entityTickSpeedMultiplier": "Множитель скорости тика сущности", + "text.autoconfig.realisticsleep.option.entityTickSpeedMultiplier.@Tooltip": "Во сколько раз быстрее должны тикать сущности.", + "text.autoconfig.realisticsleep.option.tickDelay": "Задержка тика", + "text.autoconfig.realisticsleep.option.tickDelay.@Tooltip": "Добавляет количество тиков задержки к каждому тику, так что время идет медленнее." +}