Skip to content

Commit

Permalink
Disabed cosmetic on spectators
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Oct 12, 2023
1 parent 13b8ad7 commit 3b98105
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ scoreboard objectives add player.animated_title.timer dummy {"text":"Animated Ti
scoreboard objectives add player.death.animation dummy {"text":"Death Animation","color": "aqua"}

scoreboard objectives add player.win_streak dummy {"text":"Win Streak","color": "aqua"}
scoreboard objectives add player.kill_streak minecraft.killed:minecraft.villager {"text":"Kill Streak","color": "aqua"}
scoreboard objectives add player.villager_kills minecraft.killed:minecraft.villager {"text":"Villager Killed","color": "aqua"}
scoreboard objectives add player.secret_cosmetic dummy {"text":"Secret Cosmetic","color": "aqua"}

# Entities data ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ advancement revoke @a everything

# Cosmetics -------------------------------------------------------------------

execute as @a[scores={player.win_streak=1..2}] at @s run particle smoke ~ ~0.1 ~ 0.3 0 0.3 0 1 normal
execute as @a[scores={player.win_streak=3..}] at @s run particle flame ~ ~0.1 ~ 0.3 0 0.3 0 1 normal
execute as @a[scores={player.win_streak=5..9}] at @s run particle smoke ~ ~0.1 ~ 0.3 0 0.3 0.01 1 normal
execute as @a[scores={player.win_streak=10..}] at @s run particle flame ~ ~0.2 ~ 0.5 0.2 0.5 0 5 normal
execute as @a[scores={player.win_streak=10..19}] at @s run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 0.3 0 0.3 0.01 1 normal
execute as @a[scores={player.win_streak=20..}] at @s run particle large_smoke ~ ~0.2 ~ 0.5 0.2 0.5 0.01 1 normal
execute as @a[scores={player.win_streak=20..}] at @s run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 0.3 0 0.3 0.05 1 normal

execute at @a[scores={player.kill_streak=3..4}] run particle flame ~ ~1 ~ 0 0.5 0 0 1 normal
execute at @a[scores={player.kill_streak=5..}] run particle lava ~ ~ ~ 0 0 0 0 1 normal
execute as @a run scoreboard players operation @s player.kill_streak += @s player.killed_villager
scoreboard players set @a player.killed_villager 0
execute as @a[gamemode=!spectator,scores={player.win_streak=1..2}] at @s run particle smoke ~ ~0.1 ~ 0.3 0 0.3 0 1 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=3..}] at @s run particle flame ~ ~0.1 ~ 0.3 0 0.3 0 1 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=5..9}] at @s run particle smoke ~ ~0.1 ~ 0.3 0 0.3 0.01 1 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=10..}] at @s run particle flame ~ ~0.2 ~ 0.5 0.2 0.5 0 5 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=10..19}] at @s run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 0.3 0 0.3 0.01 1 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=20..}] at @s run particle large_smoke ~ ~0.2 ~ 0.5 0.2 0.5 0.01 1 normal
execute as @a[gamemode=!spectator,scores={player.win_streak=20..}] at @s run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 0.3 0 0.3 0.05 1 normal

execute at @a[gamemode=!spectator,scores={player.villager_kills=3..4}] run particle flame ~ ~1 ~ 0 0.5 0 0 1 normal
execute at @a[gamemode=!spectator,scores={player.villager_kills=5..}] run particle lava ~ ~ ~ 0 0 0 0 1 normal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tp @e[type=marker,name="lava.level",limit=1] ~ 2 ~
scoreboard players set @s player.kill_streak 0
scoreboard players set @s player.villager_kills 0

tag @a remove TeamEliminated
tag @a remove player.item.have_egg
Expand Down

0 comments on commit 3b98105

Please sign in to comment.