-
Notifications
You must be signed in to change notification settings - Fork 7
KubeJS Syntax
Electrolyte edited this page May 28, 2024
·
3 revisions
Most of the syntax is the same as the regular KubeJS Create syntax, with a few exceptions.
-
Minimum tier a machine must be to perform the recipe.
-
Accepts a number,
0-9
inclusive. (0 = ULV, 1 = LV, etc) -
Defaults to
0
if not specified.
-
Circuit number that a machine must be set as to perform the recipe.
-
Accepts any number between
0
and32
, inclusive. -
If this is omitted, any circuit number will work.
-
Adds a bonus to chance outputs depending on the tier of machine and tier of recipe.
-
Must be used in combination with .withChance().
-
Formula:
extraTierChance
* (machineTier
-recipeTier
) -
Example:
- chance: 0.5
- extraTierChance: 0.1
- machineTier: high
- recipeTier: low
- 0.1 * (3 - 1) = 0.2 will be added to
chance
for the specified chance output.
-
Accepts any number between
0.0
and1.0
, inclusive. -
If this is omitted, no extra bonus will be applied to chance outputs.