Skip to content

Commit

Permalink
🌐 使用例のコメントを日本語から英語に
Browse files Browse the repository at this point in the history
  • Loading branch information
rarula committed May 27, 2023
1 parent 8a56f3b commit fe8922e
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions Example/data/menu/functions/dimensions/.mcfunction
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
#> menu:dimensions/
#
# メニューを作成する
# Create a menu
#
# @public

# 灰色のガラス板
# button (gray_stained_glass_pane)
item replace block 10000 0 10000 container.0 with minecraft:gray_stained_glass_pane{display:{Name:'""'}}
data modify storage sketch: in.key set value "f"
data modify storage sketch: in.listener set value "Frame"
function sketch:api/register_item/button

# バリアブロック
# button (barrier)
item replace block 10000 0 10000 container.0 with minecraft:barrier{display:{Name:'""'}}
data modify storage sketch: in.key set value "B"
data modify storage sketch: in.listener set value "Back"
function sketch:api/register_item/button

# 仮のアイテム
# variable
data modify storage sketch: in.key set value "D"
function sketch:api/register_item/variable


# メニューの内容を設定
# Set menu contents
data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f]
data modify storage sketch: in.contents append value [f, D, D, D, -, -, -, -, f]
data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, B]

# メニューを作成
# Create a menu
data modify storage sketch: in.id set value "dimensions"
function sketch:api/build/auto
2 changes: 1 addition & 1 deletion Example/data/menu/functions/dimensions/listener.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu:dimensions/listener
#
# ボタンを選択した時に呼び出される
# Called when a player selects a button
#
# @within function menu_manager:handler/on_select

Expand Down
14 changes: 7 additions & 7 deletions Example/data/menu/functions/dimensions/variable.mcfunction
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
#> menu:dimensions/variable
#
# 仮のアイテムを配置する時に呼び出される
# Called when placing a temporary item
#
# @within function menu_manager:callback/set_variable

# overworld
execute if data storage sketch: callback{slot:10b} if dimension minecraft:overworld run item replace block 10000 0 10000 container.0 with minecraft:red_stained_glass{display:{Name:'"overworld"'}}
execute if data storage sketch: callback{slot:10b} if dimension minecraft:overworld run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:10b} if dimension minecraft:overworld run data modify storage sketch: in.listener set value {id:"Overworld", canTeleport:false}

execute if data storage sketch: callback{slot:10b} unless dimension minecraft:overworld run item replace block 10000 0 10000 container.0 with minecraft:lime_stained_glass{display:{Name:'"overworld"'}}
execute if data storage sketch: callback{slot:10b} unless dimension minecraft:overworld run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:10b} unless dimension minecraft:overworld run data modify storage sketch: in.listener set value {id:"Overworld", canTeleport:true}

item modify block 10000 0 10000 container.0 sketch:register_item/button

# the nether
execute if data storage sketch: callback{slot:11b} if dimension minecraft:the_nether run item replace block 10000 0 10000 container.0 with minecraft:red_stained_glass{display:{Name:'"the nether"'}}
execute if data storage sketch: callback{slot:11b} if dimension minecraft:the_nether run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:11b} if dimension minecraft:the_nether run data modify storage sketch: in.listener set value {id:"TheNether", canTeleport:false}

execute if data storage sketch: callback{slot:11b} unless dimension minecraft:the_nether run item replace block 10000 0 10000 container.0 with minecraft:lime_stained_glass{display:{Name:'"the nether"'}}
execute if data storage sketch: callback{slot:11b} unless dimension minecraft:the_nether run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:11b} unless dimension minecraft:the_nether run data modify storage sketch: in.listener set value {id:"TheNether", canTeleport:true}

item modify block 10000 0 10000 container.0 sketch:register_item/button

# the end
execute if data storage sketch: callback{slot:12b} if dimension minecraft:the_end run item replace block 10000 0 10000 container.0 with minecraft:red_stained_glass{display:{Name:'"the end"'}}
execute if data storage sketch: callback{slot:12b} if dimension minecraft:the_end run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:12b} if dimension minecraft:the_end run data modify storage sketch: in.listener set value {id:"TheEnd", canTeleport:false}

execute if data storage sketch: callback{slot:12b} unless dimension minecraft:the_end run item replace block 10000 0 10000 container.0 with minecraft:lime_stained_glass{display:{Name:'"the end"'}}
execute if data storage sketch: callback{slot:12b} unless dimension minecraft:the_end run item modify block 10000 0 10000 container.0 sketch:register_item/button
execute if data storage sketch: callback{slot:12b} unless dimension minecraft:the_end run data modify storage sketch: in.listener set value {id:"TheEnd", canTeleport:true}

item modify block 10000 0 10000 container.0 sketch:register_item/button
10 changes: 5 additions & 5 deletions Example/data/menu/functions/main/.mcfunction
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
#> menu:main/
#
# メニューを作成する
# Create a menu
#
# @public

# 灰色のガラス板
# button (gray_stained_glass_pane)
item replace block 10000 0 10000 container.0 with minecraft:gray_stained_glass_pane{display:{Name:'""'}}
data modify storage sketch: in.key set value "f"
data modify storage sketch: in.listener set value "Frame"
function sketch:api/register_item/button

# ドア
# button (oak_door)
item replace block 10000 0 10000 container.0 with minecraft:oak_door{display:{Name:'"Teleport"'}}
data modify storage sketch: in.key set value "D"
data modify storage sketch: in.listener set value "DimensionsMenu"
function sketch:api/register_item/button


# メニューの内容を設定
# Set menu contents
data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f]
data modify storage sketch: in.contents append value [f, -, -, -, D, -, -, -, f]
data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f]

# メニューを作成
# Create a menu
data modify storage sketch: in.id set value "main"
function sketch:api/build/auto
2 changes: 1 addition & 1 deletion Example/data/menu/functions/main/listener.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu:main/listener
#
# ボタンを選択した時に呼び出される
# Called when a player selects a button
#
# @within function menu_manager:handler/on_select

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu_manager:callback/set_menu
#
# メニューを再設定する時に呼び出される
# Called when the menu is reconfigured
#
# @within tag/function sketch:set_menu/*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu_manager:callback/set_variable
#
# 仮のアイテムを配置する時に呼び出される
# Called when placing a temporary item
#
# @within tag/function sketch:set_variable/*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#> menu_manager:handler/on_close
#
# チェスト付きトロッコ または エンダーチェスト を閉じた時に呼び出される
# Called when a player closes Minecart with Chest or Ender Chest
#
# @within tag/function sketch:handler/on_close/*
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu_manager:handler/on_open
#
# チェスト付きトロッコ または エンダーチェスト を開いた時に呼び出される
# Called when a player opens Minecart with Chest or Ender Chest
#
# @within tag/function sketch:handler/on_open/*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#> menu_manager:handler/on_select
#
# ボタンを選択した時に呼び出される
# Called when a player selects a button
#
# @within tag/function sketch:handler/on_select/*

Expand Down
4 changes: 2 additions & 2 deletions Example/data/menu_manager/functions/init.mcfunction
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#> menu_manager:init
# @within tag/function minecraft:load

# セットアップ
# setup
execute in minecraft:overworld run function sketch:api/setup
execute in minecraft:the_nether run function sketch:api/setup
execute in minecraft:the_end run function sketch:api/setup

# アイテムを登録
# Register an item
item replace block 10000 0 10000 container.0 with minecraft:air
data modify storage sketch: in.key set value "-"
data modify storage sketch: in.isGlobal set value true
Expand Down

0 comments on commit fe8922e

Please sign in to comment.