Skip to content

Commit ab7e22f

Browse files
committed
blockPlacedCount sounds more vanilla
1 parent 51d5158 commit ab7e22f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

patches/net/minecraft/item/ItemBlock.java.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
+ // TISCM break_bedrock stat
4242
+ BedrockBreakingStatHelper.onPlayerPlacedBlock(block, world, blockpos, entityplayer);
4343
+
44-
+ // TISCM blockPlaced criteria
45-
+ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED, entityplayer.getScoreboardName(), Score::incrementScore);
44+
+ // TISCM blockPlacedCount criteria
45+
+ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED_COUNT, entityplayer.getScoreboardName(), Score::incrementScore);
4646
}
4747
}
4848

patches/net/minecraft/scoreboard/ScoreCriteria.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
private final ScoreCriteria.RenderType renderType;
66

77
+ // TISCM: Added block placed total criteria
8-
+ public static final ScoreCriteria BLOCK_PLACED = new ScoreCriteria("blockPlaced");
8+
+ public static final ScoreCriteria BLOCK_PLACED_COUNT = new ScoreCriteria("blockPlacedCount");
99
+
1010
public ScoreCriteria(String p_i47676_1_)
1111
{

0 commit comments

Comments
 (0)