Skip to content

Commit

Permalink
Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
NeunEinser committed Sep 21, 2023
1 parent 3374272 commit 6f30a8b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ scoreboard players set $team_count fetchr.state 0
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.dark_red,limit=1] run data modify storage fetchr:card teams[{id: "fetchr:dark_red"}].backgroundIndex set value 0b
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.dark_red,limit=1] run scoreboard players add $team_count fetchr.state 1

execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.red,limit=1] store result storage fetchr:card teams[{id: "fetchr:red"}].backgroundIndex byte 1 run scoreboard players get $team_count fetchr.state
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.red,limit=1] run scoreboard players add $team_count fetchr.state 1
execute store result storage fetchr:card teams[{id: "fetchr:red"}].backgroundIndex byte 1 run scoreboard players get $team_count fetchr.state
execute run scoreboard players add $team_count fetchr.state 1

execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.orange,limit=1] store result storage fetchr:card teams[{id: "fetchr:orange"}].backgroundIndex byte 1 run scoreboard players get $team_count fetchr.state
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.orange,limit=1] run scoreboard players add $team_count fetchr.state 1
Expand Down Expand Up @@ -89,7 +89,7 @@ execute if score $lockout_mode fetchr.state matches 1 run data modify storage tm
data modify storage tmp.fetchr:game/start defaultBackground set value []

execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.dark_red,limit=1] run function fetchr:game/start/init_teams/dark_red
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.red,limit=1] run function fetchr:game/start/init_teams/red
execute run function fetchr:game/start/init_teams/red
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.orange,limit=1] run function fetchr:game/start/init_teams/orange
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.yellow,limit=1] run function fetchr:game/start/init_teams/yellow
execute if entity @a[predicate=fetchr:is_in_game, team=fetchr.lime,limit=1] run function fetchr:game/start/init_teams/lime
Expand Down
2 changes: 1 addition & 1 deletion datapack/data/fetchr/functions/tick/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ execute in fetchr:lobby run function neun_einser.timer:store_current_time
# Detect second (or more) players in a LAN world
#NEUN_SCRIPT unless realms
execute store result score $is_multiplayer fetchr.state if entity @a
scoreboard players remove $is_multiplayer fetchr.state 1
#scoreboard players remove $is_multiplayer fetchr.state 1
execute if score $is_multiplayer fetchr.state matches 2.. run scoreboard players set $is_multiplayer fetchr.state 1

# Detect the resource pack not being active server-side (So either we are on a
Expand Down
Binary file added datapack/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified world/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6f30a8b

Please sign in to comment.