Skip to content

Commit

Permalink
Ported some entity set and data procedure blocks to NF 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Feb 25, 2024
1 parent 191253a commit bfa0893
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(${input$score});
if (_so == null)
_so = _sc.addObjective(${input$score}, ObjectiveCriteria.DUMMY, Component.literal(${input$score}), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore(${opt.toInt(input$value)});
_so = _sc.addObjective(${input$score}, ObjectiveCriteria.DUMMY, Component.literal(${input$score}), ObjectiveCriteria.RenderType.INTEGER, true, null);
_sc.getOrCreatePlayerScore(ScoreHolder.forNameOnly(_ent.getScoreboardName()), _so).set(${opt.toInt(input$value)});
}

0 comments on commit bfa0893

Please sign in to comment.