Skip to content

Commit

Permalink
blockPlacedCount sounds more vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 10, 2021
1 parent 51d5158 commit ab7e22f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions patches/net/minecraft/item/ItemBlock.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
+ // TISCM break_bedrock stat
+ BedrockBreakingStatHelper.onPlayerPlacedBlock(block, world, blockpos, entityplayer);
+
+ // TISCM blockPlaced criteria
+ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED, entityplayer.getScoreboardName(), Score::incrementScore);
+ // TISCM blockPlacedCount criteria
+ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED_COUNT, entityplayer.getScoreboardName(), Score::incrementScore);
}
}

Expand Down
2 changes: 1 addition & 1 deletion patches/net/minecraft/scoreboard/ScoreCriteria.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
private final ScoreCriteria.RenderType renderType;

+ // TISCM: Added block placed total criteria
+ public static final ScoreCriteria BLOCK_PLACED = new ScoreCriteria("blockPlaced");
+ public static final ScoreCriteria BLOCK_PLACED_COUNT = new ScoreCriteria("blockPlacedCount");
+
public ScoreCriteria(String p_i47676_1_)
{
Expand Down

0 comments on commit ab7e22f

Please sign in to comment.