From 8b7e399e60efdbe14c3bc919a5c4406b3e0ee8b5 Mon Sep 17 00:00:00 2001 From: oasoby <134684352+oasoby@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:10:31 +0900 Subject: [PATCH] =?UTF-8?q?=E6=A5=BD=E5=99=A8=E9=81=95=E3=81=84=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=82=92=E3=81=8A=E9=A1=98=E3=81=84=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=99=EF=BC=88v2.0.2=EF=BC=89=20#15=E3=80=80?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3\npiano=E3=81=8C=E5=A4=A7=E6=96=87?= =?UTF-8?q?=E5=AD=97=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3/n?= =?UTF-8?q?=E6=A5=BD=E5=99=A8=E8=A1=A8=E7=A4=BA=E3=81=AEBeta=E3=82=92?= =?UTF-8?q?=E8=A7=A3=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 11 ++++++++--- scripts/main.js | 13 +++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index a92c12b..8b4ddd5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "format_version": 2, "header": { - "name": "Note Block+ v2.0.2", + "name": "Note Block+ v2.0.3", "description": "音ブロックの音階を表示するアドオン。 \nTwitter:@oasoby", "min_engine_version": [ 1, @@ -12,7 +12,7 @@ "version": [ 2, 0, - 2 + 3 ] }, "modules": [ @@ -46,5 +46,10 @@ "module_name": "@minecraft/server-ui", "version": "1.4.0-beta" } - ] + ], + "metadata": { + "authors": ["oasobi"], + "url": "https://go.oasoobi.net/NoteBlockPlus", + "product_type": "addon" + } } diff --git a/scripts/main.js b/scripts/main.js index d5c0980..90980c6 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -210,7 +210,8 @@ const instruments = { "sandstone": "bass_drum", //砂岩系 "_ore": "bass_drum", //鉱石系 "deepslate": "bass_drum", //深層岩系 - "clay": "bass_drum", + "hardened_clay": "bass_drum", //通常のテラコッタ + "clay": "flute", //粘土 "raw_": "bass_drum", //原石ブロック系 "brick": "bass_drum", //レンガ系 "prismarine": "bass_drum", //プリズマリン系 @@ -288,7 +289,7 @@ world.beforeEvents.playerInteractWithBlock.subscribe(e => { } } if (!instrument) { //楽器が見つからなかったときにピアノに - instrument = lang == ENGLISH ? "piano" : "ピアノ" + instrument = lang == ENGLISH ? "Piano" : "ピアノ" } resultMsg += lang == ENGLISH ? " instrument: " + instrument : " 楽器: " + instrument; } @@ -312,7 +313,7 @@ system.afterEvents.scriptEventReceive.subscribe(e => { .title("設定") .dropdown("\n言語", ["English", "日本語"], sourceEntity.getDynamicProperty("language")) .dropdown("音階の表示形式", ["イタリア式(ドレミ)", "国際式(C,C#,D)"], sourceEntity.getDynamicProperty("scale_notation")) - .toggle("楽器を表示する (Beta)", sourceEntity.getDynamicProperty("is_display_instrument")) + .toggle("楽器を表示する", sourceEntity.getDynamicProperty("is_display_instrument")) .toggle("クリック数を表示する", sourceEntity.getDynamicProperty("is_display_click_count")) .toggle("デフォルトに戻す") .submitButton("変更を適用") @@ -342,7 +343,7 @@ system.afterEvents.scriptEventReceive.subscribe(e => { .title("Settings") .dropdown("\nLanguage", ["English", "日本語"], sourceEntity.getDynamicProperty("language")) .dropdown("scale notation", ["solfege(do,re,mi)", "international(C,C#,D)"], sourceEntity.getDynamicProperty("scale_notation")) - .toggle("Show instruments (Beta)", sourceEntity.getDynamicProperty("is_display_instrument")) + .toggle("Show instruments", sourceEntity.getDynamicProperty("is_display_instrument")) .toggle("Show number of clicks", sourceEntity.getDynamicProperty("is_display_click_count")) .toggle("Restore settings") .submitButton("Apply") @@ -380,9 +381,9 @@ system.afterEvents.scriptEventReceive.subscribe(e => { }) } else if (id == "note:version") { if (sourceEntity.getDynamicProperty("language") == 1) { - sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.2 です。"); + sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.3 です。"); } else { - sourceEntity.sendMessage("§eNoteBlock+ is at version 2.0.2."); + sourceEntity.sendMessage("§eNoteBlock+ is at version 2.0.3."); } } })