-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathedit.mcfunction
More file actions
18 lines (12 loc) · 2.96 KB
/
edit.mcfunction
File metadata and controls
18 lines (12 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
data modify storage turtlecraft:tmp temp set from block ~ ~ ~ lock.components.minecraft:custom_data."turtlecraft.block".Instructions
scoreboard players set @s turtlecraft.s.page 1
tellraw @s [{"text":"\nYou should not click on any text above this!\n\n","color":"red"},{"text":" ","color":"dark_gray","strikethrough":true}]
tellraw @s {"text":"\n Edit Instructions ","color":"dark_aqua"}
tellraw @s ["",{"text":" "},{"text":"1","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"First page","color":"gray"}]}},{"text":" < ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Previous page","color":"gray"}]}},{"score":{"name":"$current_page","objective":"turtlecraft.tmp"},"color":"gray"},{"text":" > ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Next page","color":"gray"}]}},{"score":{"name":"$last_page","objective":"turtlecraft.tmp"},"color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Last page","color":"gray"}]}}," ",{"text":" ✕ ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Remove line","color":"red"}]}},{"text":" ✂ ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Cut","color":"gray"}]}},{"text":" 🗍 ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Copy","color":"gray"}]}},{"text":" 🗐 ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Paste","color":"gray"}]}},{"text":" ↑ ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Switch up","color":"gray"}]}},{"text":" ↓ ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Switch down","color":"gray"}]}},{"text":" ❏ ","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger TurtleCraft set -1000"},"hoverEvent":{"action":"show_text","contents":[{"text":"Toggle Numpad","color":"gray"}]}}]
tellraw @s "\n"
scoreboard players set i turtlecraft.tmp 9
function turtlecraft:block/message/lines
function turtlecraft:block/message/commands_prepare
scoreboard players reset chars turtlecraft.tmp
data remove storage turtlecraft:tmp temp
function turtlecraft:block/message/bar