-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align line numbers and tweak dbg formatting
- Loading branch information
Showing
3 changed files
with
53 additions
and
44 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
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,11 +1,11 @@ | ||
# My cool function | ||
|
||
say hello | ||
|
||
#!set foo = generate_objective("foo") | ||
|
||
scoreboard players set @p __foo__ 123 | ||
say 1 | ||
execute if score $size rx.temp matches 1 run data modify storage rx:io playerdb.player set from storage rx:global playerdb.players[{selected: 1b}] | ||
execute if score $size rx.temp matches 1 run data remove storage rx:io playerdb.player.bits | ||
say Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
#!dbg score "@p", foo | ||
say hello | ||
execute if score $size rx.temp matches 1 run data modify storage rx:io playerdb.player set from storage rx:global playerdb.players[{selected: 1b}] | ||
execute if score $size rx.temp matches 1 run data remove storage rx:io playerdb.player.bits | ||
say 1 | ||
say 42 | ||
scoreboard players reset @p __foo__ |
16 changes: 8 additions & 8 deletions
16
tests/snapshots/examples__build_load_dbg__0.data_pack/data/demo/functions/foo.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,9 +1,9 @@ | ||
scoreboard players set @p 5wyugd7r8mxoc 123 | ||
say 1 | ||
execute if score $size rx.temp matches 1 run data modify storage rx:io playerdb.player set from storage rx:global playerdb.players[{selected: 1b}] | ||
execute if score $size rx.temp matches 1 run data remove storage rx:io playerdb.player.bits | ||
tellraw @a [{"text": "", "hoverEvent": {"action": "show_text", "contents": ["", {"text": "Type: Score\n", "color": "gray"}, {"text": "Path: demo:foo\n\n", "color": "gray"}, "",{"text": "", "extra": [{"text": "", "extra": [{"text": "5", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "execute if score $size rx.temp matches 1 run ...\n", "color": "#dddddd"}]}, {"text": "", "extra": [{"text": "6", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "execute if score $size rx.temp matches 1 run ...\n", "color": "gray"}]}, {"text": "", "extra": [{"text": "7", "color": "red"}, {"text": " | ", "color": "dark_gray"}, {"text": "#!dbg score \"@p\", foo\n", "color": "#dddddd"}]}, {"text": "", "extra": [{"text": "8", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "say hello\n", "color": "gray"}]}, {"text": "", "extra": [{"text": "9", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "execute if score $size rx.temp matches 1 run ...\n", "color": "#dddddd"}]}]},""]}}, {"text": "[load_dbg]: ", "color": "gray"}, {"text": "< @p ", "color": "gold", "extra": ["",{"score": {"name": "@p", "objective": "5wyugd7r8mxoc"}},"", " >"]}] | ||
# My cool function | ||
|
||
say hello | ||
execute if score $size rx.temp matches 1 run data modify storage rx:io playerdb.player set from storage rx:global playerdb.players[{selected: 1b}] | ||
execute if score $size rx.temp matches 1 run data remove storage rx:io playerdb.player.bits | ||
say 1 | ||
|
||
scoreboard players set @p 5wyugd7r8mxoc 123 | ||
say Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
tellraw @a [{"text": "", "hoverEvent": {"action": "show_text", "contents": ["", {"text": "demo:foo ", "color": "aqua"}, {"text": "(score)\n\n", "color": "dark_aqua"}, "",{"text": "", "extra": ["", {"text": ""}, {"text": " ", "bold": true}, {"text": "7", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "scoreboard players set @p __foo__ 123\n", "color": "#dddddd"}, {"text": ""}, {"text": " ", "bold": true}, {"text": "8", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "say Lorem ipsum dolor sit amet, consectet...\n", "color": "gray"}, {"text": ""}, {"text": " ", "bold": true}, {"text": "9", "color": "red"}, {"text": " | ", "color": "dark_gray"}, {"text": "#!dbg score \"@p\", foo\n", "color": "#dddddd"}, {"text": " "}, {"text": "", "bold": true}, {"text": "10", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "say 42\n", "color": "gray"}, {"text": " "}, {"text": "", "bold": true}, {"text": "11", "color": "dark_red"}, {"text": " | ", "color": "dark_gray"}, {"text": "scoreboard players reset @p __foo__\n", "color": "#dddddd"}]},""]}}, {"text": "[load_dbg]: ", "color": "gray"}, {"text": "5wyugd7r8mxoc for @p = ", "color": "gold", "extra": ["",{"score": {"name": "@p", "objective": "5wyugd7r8mxoc"}},""]}] | ||
say 42 | ||
scoreboard players reset @p 5wyugd7r8mxoc |