Skip to content

Commit

Permalink
Tweaked puzzle success message for easier detection
Browse files Browse the repository at this point in the history
  • Loading branch information
BigPapi13 committed Apr 16, 2024
1 parent b86c001 commit 26b3831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ playsound minecraft:entity.player.levelup player @a ~ ~ ~ 2 1
execute at @e[type=item_display, tag=whimc.barrelbot, tag=!whimc.dispenser_bot, predicate=whimc:barrelbot/match_id] run particle happy_villager ~ ~ ~ 0.6 0.6 0.6 0 35 force
execute as @e[type=item_display, tag=whimc.barrelbot, tag=!whimc.dispenser_bot, predicate=whimc:barrelbot/match_id] run item replace entity @s container.0 with black_stained_glass_pane{CustomModelData: 130001}
execute as @a if score @s whimc.barrelbot.in_puzzle_id = $temp whimc.barrelbot.puzzle_id run tag @s add whimc.success_haver
tellraw @a ["", {"selector": "@a[tag=whimc.success_haver]", "color": "gold"}, " has completed puzzle #", {"score": {"name": "@s", "objective": "whimc.barrelbot.puzzle_type_id"}, "color": "green"}, "!"]
tellraw @a ["", {"text": "[Barrelbot] ", "bold": true, "color": "gray"}, {"selector": "@a[tag=whimc.success_haver]", "color": "gold"}, " has completed puzzle #", {"score": {"name": "@s", "objective": "whimc.barrelbot.puzzle_type_id"}, "color": "green"}, "!"]
tag @s remove whimc.success_haver
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ execute at @e[type=item_display,tag=whimc.barrelbot,tag=!whimc.dispenser_bot,pre
execute as @e[type=item_display,tag=whimc.barrelbot,tag=!whimc.dispenser_bot,predicate=whimc:barrelbot/match_id] run item replace entity @s container.0 with black_stained_glass_pane{CustomModelData:130001}

execute as @a if score @s whimc.barrelbot.in_puzzle_id = $temp whimc.barrelbot.puzzle_id run tag @s add whimc.success_haver
tellraw @a ["",{"selector":"@a[tag=whimc.success_haver]","color":"gold"}," has completed puzzle #",{"score":{"name":"@s","objective":"whimc.barrelbot.puzzle_type_id"},"color":"green"},"!"]
tellraw @a ["",{"text":"[Barrelbot] ","bold":true,"color":"gray"},{"selector":"@a[tag=whimc.success_haver]","color":"gold"}," has completed puzzle #",{"score":{"name":"@s","objective":"whimc.barrelbot.puzzle_type_id"},"color":"green"},"!"]
tag @s remove whimc.success_haver

0 comments on commit 26b3831

Please sign in to comment.