-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Example/data/menu_manager/functions/callback/set_menu.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Example/data/menu_manager/functions/callback/set_variable.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Example/data/menu_manager/functions/handler/on_close.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Example/data/menu_manager/functions/handler/on_select.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters