Skip to content

Commit 5cb808b

Browse files
Clicking in Config now runs instead of suggesting commands; Tooltips are more informative
1 parent d4b7c38 commit 5cb808b

File tree

19 files changed

+50
-37
lines changed

19 files changed

+50
-37
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
tellraw @s " "
3+
tellraw @s " "
4+
5+
tellraw @s {"text":"Strawberry Pack Configuration","color":"light_purple","underlined":"true"}
6+
7+
execute if score crawling sp_var matches 1 run tellraw @s [{"text":"Crawling: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/crawling/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nSneak and Aim The Camera Down to Enter Crawl Spaces"}}, {"text":"true","color":"green"}]
8+
execute if score crawling sp_var matches 0 run tellraw @s [{"text":"Crawling: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/crawling/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nSneak and Aim The Camera Down to Enter Crawl Spaces"}}, {"text":"false","color":"red"}]
9+
10+
execute if score destructiveProjectiles sp_var matches 1 run tellraw @s [{"text":"Destructive Projectiles: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/destructive_projectiles/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nArrows and Tridents break Glass Panes and Flower Pots"}}, {"text":"true","color":"green"}]
11+
execute if score destructiveProjectiles sp_var matches 0 run tellraw @s [{"text":"Destructive Projectiles: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/destructive_projectiles/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nArrows and Tridents break Glass Panes and Flower Pots"}}, {"text":"false","color":"red"}]
12+
13+
execute if score killerBunny sp_var matches 1 run tellraw @s [{"text":"Killer Bunny: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/killer_bunny/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nMurdering bunnies will cause them to seek retribution"}}, {"text":"true","color":"green"}]
14+
execute if score killerBunny sp_var matches 0 run tellraw @s [{"text":"Killer Bunny: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/killer_bunny/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nMurdering bunnies will cause them to seek retribution"}}, {"text":"false","color":"red"}]
15+
16+
execute if score navInfo sp_var matches 1 run tellraw @s [{"text":"Navigation Info: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/nav_info/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nCompasses & Maps display Coordinates and Direction above Hot Bar"}}, {"text":"true","color":"green"}]
17+
execute if score navInfo sp_var matches 0 run tellraw @s [{"text":"Navigation Info: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/nav_info/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nCompasses & Maps display Coordinates and Direction above Hot Bar"}}, {"text":"false","color":"red"}]
18+
19+
execute if score warpSys sp_var matches 1 run tellraw @s [{"text":"Warp System: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/warp/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nMake End Gateways for fast travel in the Overworld\nDrop a Book & Ender Pearl on an Enchanting Table to get started!\n\nNOTE: Disabling does NOT remove any existing Gateways or Books, it only disables the items!"}}, {"text":"true","color":"green"}]
20+
execute if score warpSys sp_var matches 0 run tellraw @s [{"text":"Warp System: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/warp/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nMake End Gateways for fast travel in the Overworld\nDrop a Book & Ender Pearl on an Enchanting Table to get started!\n\nNOTE: Disabling does NOT remove any existing Gateways or Books, it only disables the items!"}}, {"text":"false","color":"red"}]
21+
22+
execute if score sleepIndicator sp_var matches 1 run tellraw @s [{"text":"Sleep Indicator: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/sleep_indicator/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nIf more than one player is in world, announce sleep and show a progress meter."}}, {"text":"true","color":"green"}]
23+
execute if score sleepIndicator sp_var matches 0 run tellraw @s [{"text":"Sleep Indicator: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/sleep_indicator/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nIf more than one player is in world, announce sleep and show a progress meter."}}, {"text":"false","color":"red"}]
24+
25+
execute if score skyWarp sp_var matches 1 run tellraw @s [{"text":"Sky Warping: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/sky_warp/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nWarp to the next dimension above Y2000 and Below Y-2 works for players, arrows, tridents, and items!"}}, {"text":"true","color":"green"}]
26+
execute if score skyWarp sp_var matches 0 run tellraw @s [{"text":"Sky Warping: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/sky_warp/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nWarp to the next dimension above Y2000 and Below Y-2 works for players, arrows, tridents, and items!"}}, {"text":"false","color":"red"}]
27+
28+
execute if score quarkLadders sp_var matches 1 run tellraw @s [{"text":"Quark Ladders: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/quark_ladders/false"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nSlide down ladders faster while looking down\nJust like the Quark Mod!"}}, {"text":"true","color":"green"}]
29+
execute if score quarkLadders sp_var matches 0 run tellraw @s [{"text":"Quark Ladders: ","clickEvent":{"action":"run_command","value":"/function strawberry:gamerule/quark_ladders/true"},"hoverEvent":{"action":"show_text","value":"Click to Toggle\nSlide down ladders faster while looking down\nJust like the Quark Mod!"}}, {"text":"false","color":"red"}]
30+
31+
tellraw @s " "
32+
tellraw @s " "

data/strawberry/functions/gamerule.mcfunction

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
scoreboard players set crawling sp_var 0
22

3-
function strawberry:gamerule
3+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set crawling sp_var 1
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set destructiveProjectiles sp_var 0
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set destructiveProjectiles sp_var 1
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set killerBunny sp_var 0
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set killerBunny sp_var 1
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set navInfo sp_var 0
2-
function strawberry:gamerule
2+
function strawberry:config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
scoreboard players set navInfo sp_var 1
2-
function strawberry:gamerule
2+
function strawberry:config

0 commit comments

Comments
 (0)