From aa91efa6cc4d1695005c92b3c55b0a8251c4e9f4 Mon Sep 17 00:00:00 2001 From: oasoby <134684352+oasoby@users.noreply.github.com> Date: Sun, 3 Nov 2024 19:04:39 +0900 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/main.js b/scripts/main.js index 9dc8151..135606d 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -371,11 +371,19 @@ system.afterEvents.scriptEventReceive.subscribe(e => { } else if (id == "note:toggle") { sourceEntity.setDynamicProperty("isEnable", !sourceEntity.getDynamicProperty("isEnable")); system.run(() => { - sourceEntity.sendMessage(`${sourceEntity.getDynamicProperty("isEnable") ? "§e音階表示を有効にしました。" : "§e音階表示を無効にしました。"}`); + if (sourceEntity.getDynamicProperty("language") == 1) { + sourceEntity.sendMessage(`${sourceEntity.getDynamicProperty("isEnable") ? "§e音階表示を有効にしました。" : "§e音階表示を無効にしました。"}`); + } else { + sourceEntity.sendMessage(`${sourceEntity.getDynamicProperty("isEnable") ? "§eThe scale display has been enabled." : "§eThe scale display has been disabled."}`); + } sourceEntity.playSound("random.orb"); }) } else if (id == "note:version") { - sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.0 です。"); + if (sourceEntity.getDynamicProperty("language") == 1) { + sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.0 です。"); + } else { + sourceEntity.sendMessage("§eNoteBlock+ is at version 2.0.0."); + } } })