-
Notifications
You must be signed in to change notification settings - Fork 2
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
8 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
nnb_main/data/nnb_main/function/__private__/switch_case/1/1.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$tellraw $(pl) "<gray> \u2139 | $(text)" | ||
scoreboard players set __found_case__ __variable__ 1 |
2 changes: 2 additions & 0 deletions
2
nnb_main/data/nnb_main/function/__private__/switch_case/1/2.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$tellraw $(pl) "<yellow> \u26a0 | $(text)" | ||
scoreboard players set __found_case__ __variable__ 1 |
2 changes: 2 additions & 0 deletions
2
nnb_main/data/nnb_main/function/__private__/switch_case/1/3.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$tellraw $(pl) "<red> \ud83d\uded1 | $(text)" | ||
scoreboard players set __found_case__ __variable__ 1 |
1 change: 1 addition & 0 deletions
1
nnb_main/data/nnb_main/function/__private__/switch_case/1/default.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
$tellraw $(pl) "<dark_gray> \u2754 | $(text)" |
1 change: 1 addition & 0 deletions
1
nnb_main/data/nnb_main/function/__private__/switch_case/1/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$function nnb_main:__private__/switch_case/1/$(switch_key) |
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 +1,2 @@ | ||
function nnb_main:logger {"pl":"@s","ll":"1","text":"Generated sucessfully"} | ||
$give @s minecraft:armor_stand[minecraft:entity_data={Invisible:true,Invulnerable:true,NoBasePlate:true,NoGravity:true,Small:true,CustomNameVisible:false,CustomName:'{"text":"$(Tag) Marker"}',DisabledSlots:4128768,Tags:["$(Tag)"],id:"minecraft:armor_stand"},minecraft:custom_name='{"text":"$(Tag) Marker"}'] 1 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scoreboard players set __found_case__ __variable__ 0 | ||
execute store result storage nnb_main:__storage__ switch_key int 1 run scoreboard players get $ll __variable__ | ||
function nnb_main:__private__/switch_case/1/select with storage nnb_main:__storage__ | ||
execute unless score __found_case__ __variable__ matches 1 run function nnb_main:__private__/switch_case/1/default |
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