Skip to content

Commit

Permalink
fix typo in couldmatch commit, add exhaustion metadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 13, 2021
1 parent ac9ca30 commit 9f8193c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -51,7 +51,7 @@ public BlockDropsItemScriptEvent() {

@Override
public boolean couldMatch(ScriptPath path) {
if (!path.eventArgsLowEqualStartingAt(1, "drops", "from", "breaking")) {
if (!path.eventArgLowerAt(1).equals("drops") || !path.eventArgsLowEqualStartingAt(3, "from", "breaking")) {
return false;
}
if (!couldMatchBlock(path.eventArgLowerAt(0))) {
Expand Down
Expand Up @@ -864,7 +864,8 @@ public static void registerTags() {
// @returns ElementTag(Decimal)
// @mechanism PlayerTag.exhaustion
// @description
// Returns how fast the food level drops (exhaustion).
// Returns the player's exhaustion value. Exhaustion is increased in vanilla when a player sprints or jumps, and is used to reduce food saturation over time.
// This can reach a maximum value of 40, and decreases by 4 every tick.
// -->
tagProcessor.registerTag(ElementTag.class, "exhaustion", (attribute, object) -> {
return new ElementTag(object.getPlayerEntity().getExhaustion());
Expand Down

0 comments on commit 9f8193c

Please sign in to comment.