Skip to content

Commit

Permalink
move objective add command to correct function
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Aug 21, 2022
1 parent 0bddc23 commit 0e85a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ scoreboard objectives add fennifith.animals_spawned dummy

# create a new scoreboard tracking the "carrot_on_a_stick" statistic
scoreboard objectives add fennifith.animals_carrot_stick minecraft.used:minecraft.carrot_on_a_stick

# create a dummy objective to store unique pig entity ids
scoreboard objectives add fennifith.animals_id dummy
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ execute as @a if score @s fennifith.animals_carrot_stick matches 1.. run functio

# set the "carrot_stick" score for all players to 0
scoreboard players set @a fennifith.animals_carrot_stick 0

# create a dummy objective to store unique pig entity ids
scoreboard objectives add fennifith.animals_id dummy

0 comments on commit 0e85a95

Please sign in to comment.