We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334d68e commit bc14e99Copy full SHA for bc14e99
reference-code/src/main/kotlin/internal/BrigadierPlusCommandAPI.kt
@@ -45,8 +45,8 @@ fun brigadierPlusCommandAPI() {
45
// #endregion addPredicateExampleStep5
46
47
// #region addPredicateExampleStep6
48
- // Add <numerator> <denominator> as a child of randomchance
49
- randomChance.addChild(numerator.then(denominator).build())
+ // Add (randomchance <numerator> <denominator>) as a child of (execute -> if)
+ Brigadier.getRootNode().getChild("execute").getChild("if").addChild(randomChance);
50
// #endregion addPredicateExampleStep6
51
// #endregion addPredicateExample
52
-}
+}
0 commit comments