Skip to content

Commit

Permalink
Add MyBadImBanned's heartcosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
DBTDerpbox committed Jun 24, 2024
1 parent efefcdb commit c4d8f71
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ execute as @a[scores={heartcosmetic=30},tag=!heart-homiesidjack] run function le
#CuddleDrivenPony
execute as @a[scores={heartcosmetic=31},tag=heart-cuddledrivenpony] run function lem.base:clientconfig/heart/switch/custom/cuddledrivenpony
execute as @a[scores={heartcosmetic=31},tag=!heart-cuddledrivenpony] run function lem.base:clientconfig/heart/switch/notunlocked
#MyBadImBanned
execute as @a[scores={heartcosmetic=32},tag=heart-mybadimbanned] run function lem.base:clientconfig/heart/switch/custom/mybadimbanned
execute as @a[scores={heartcosmetic=32},tag=!heart-mybadimbanned] run function lem.base:clientconfig/heart/switch/notunlocked

##Enable toggle
scoreboard players enable @a heartcosmetic
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ userconfig @s test lem.base:heartcosmetic EQUAL custom_lion8cake runCommand setS
userconfig @s test lem.base:heartcosmetic EQUAL custom_homiesidjack runCommand setSuffixFont alive "lem.base:tablist/heart/secret/homiesidjack" @s
#CuddleDrivenPony
userconfig @s test lem.base:heartcosmetic EQUAL custom_cuddledrivenpony runCommand setSuffixFont alive "lem.base:tablist/heart/secret/cuddledrivenpony" @s
#MyBadImBanned
userconfig @s test lem.base:heartcosmetic EQUAL custom_mybadimbanned runCommand execute store result score @s lem.temp run random value 1..2
userconfig @s test lem.base:heartcosmetic EQUAL custom_mybadimbanned runCommand execute if score @s lem.temp matches 1 run setSuffixFont alive "lem.base:tablist/heart/secret/mybadimbanned/rick" @s
userconfig @s test lem.base:heartcosmetic EQUAL custom_mybadimbanned runCommand execute if score @s lem.temp matches 2 run setSuffixFont alive "lem.base:tablist/heart/secret/mybadimbanned/meals" @s
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ execute if entity @s[tag=heart-lion8cake] run tellraw @s ["",{"text":"[ ","color
execute if entity @s[tag=heart-homiesidjack] run tellraw @s ["",{"text":"[ ","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 30"}},{"text":"1","color":"white","font":"lem.base:tablist/heart/secret/homiesidjack","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 30"}},{"text":" HomieSiDjack","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 30"}},{"text":"]","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 30"}}]
#CuddleDrivenPony
execute if entity @s[tag=heart-cuddledrivenpony] run tellraw @s ["",{"text":"[ ","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 31"}},{"text":"1","color":"white","font":"lem.base:tablist/heart/secret/cuddledrivenpony","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 31"}},{"text":" CuddleDrivenPony","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 31"}},{"text":"]","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 31"}}]
#MyBadImBanned
execute if entity @s[tag=heart-mybadimbanned] run tellraw @s ["",{"text":"[ ","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 32"}},{"text":"1","color":"white","font":"lem.base:tablist/heart/secret/mybadimbanned/rick","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 32"}},{"text":" MyBadImBanned","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 32"}},{"text":"]","color":"blue","clickEvent":{"action":"run_command","value":"/trigger heartcosmetic set 32"}}]

##Go Back
function lem.base:clientconfig/heart/menu/back
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
##Give heart
userconfig @s set lem.base:heartcosmetic custom_mybadimbanned

##Sync with backend
userconfig @s sync

##Load heart
#Pick randomly
execute store result score @s lem.temp run random value 1..2
#Load
execute if score @s lem.temp matches 1 run setSuffixFont alive "lem.base:tablist/heart/secret/mybadimbanned/rick" @s
execute if score @s lem.temp matches 2 run setSuffixFont alive "lem.base:tablist/heart/secret/mybadimbanned/meals" @s

##Display message
tellraw @s {"translate":"lem.config.heart.menu.text.success","color":"green"}

##Reset score
scoreboard players reset @s heartcosmetic
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tag e9e4b393-29d1-4004-b469-125d8b87c124 add heart-lion8cake
tag 89da0d81-fc65-42d0-9668-2bd538bd3c26 add heart-homiesidjack
#CuddleDrivenPony
tag ea149491-22e9-4458-b52e-ddd3f66e6d92 add heart-cuddledrivenpony
#MyBadImBanned
tag 14fc9045-fe84-4a04-af38-45181de0b4e8 add heart-mybadimbanned

##DSMSYB mode
execute as 6c746b61-7f58-4597-8d9a-32fc518b9d87 run tag @s add dsmsyb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tag @s remove heart-pixeogames
tag @s remove heart-lion8cake
tag @s remove heart-homiesidjack
tag @s remove heart-cuddledrivenpony
tag @s remove heart-mybadimbanned

##Set title times
title @s times 0 50 1
Expand Down

0 comments on commit c4d8f71

Please sign in to comment.