Skip to content

Commit

Permalink
英語対応
Browse files Browse the repository at this point in the history
  • Loading branch information
oasoobi committed Nov 3, 2024
1 parent 896d47c commit aa91efa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}
})

Expand Down

0 comments on commit aa91efa

Please sign in to comment.