Skip to content

Commit

Permalink
if 0 isn't after return. It doesn't return
Browse files Browse the repository at this point in the history
  • Loading branch information
Frustrated-Programmer committed Jul 13, 2024
1 parent 57e9635 commit ec75be8
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
@@ -1,3 +1,3 @@
execute if score $dungeon do2.run.artifactValue matches ..0 run return
execute if score $dungeon do2.run.artifactValue matches ..0 run return 0
execute if score $dungeon do2.run.items.embers > $dungeon do2.run.artifactValue run advancement grant @a[team=do2.players] only do2:hidden/treasure/end_more_embers_than_artifact
execute if score $dungeon do2.run.items.embers > $dungeon do2.run.artifactValue run advancement grant @a[team=do2.ghosts] only do2:hidden/treasure/end_more_embers_than_artifact
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
execute as @a[scores={do2.logs.cards=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Card Bought: ("},{"text":"§aPork Chop Power","hoverEvent":{"action":"show_item","value":"{id:'minecraft:iron_nugget', Count:1, tag:{NameFormat:{color:\"#fed83d\",OriginalName:'{\"color\":\"gray\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}',ModifiedName:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}'},CustomRoleplayData:1b,CustomModelData:109,display:{Name:'{\"color\":\"#FED83D\",\"text\":\"✲≡ Pork Chop Power ≡✲\"}'},tracked:0b}}"}},{"text":")"}]
# - End Log -

return
return 0

# Note a card has been bought
execute as @p[tag=do2.received_shulker] run scoreboard players add @s do2.cards.bought.PCP 1
Expand Down

0 comments on commit ec75be8

Please sign in to comment.