KubeJS Minestuck
Minestuck Integration
This mod enables the interaction between Minestuck and KubeJS, providing extensive customization capabilities for game mechanics. With it, you can create and modify special recipes using the recipe types from Minestuck, as well as define custom grist types for developing more elaborate alchemy systems.
Combination Recipes
Creation takes place through the Totem Lathe (logical operator AND) or Punch Designix (logical operator OR). The process is based on obtaining an item from one or two other components.
Command format: event.recipes.minestuck.combination( first_item, second_item, mode, result ), where the mode can be either and or or.
Grist Costs
You can assign a grist cost to any existing item. The basic syntax is: event.recipes.minestuck.grist_cost( item, {"type1": amount1, "type2": amount2, ... }).
Additional useful functions:
wildcard_grist_cost(item, amount)— makes an item require a specific amount of any grist typeunavailable_grist_cost(item)— prevents the item from being alchemized if it has a higher priority- Add a priority parameter to any grist cost recipes (higher values are selected)
- A free item is created by specifying an empty object
{}
Custom Grist
Custom grist types are defined through the startup registry minestuck:grist. The basic structure: event.create( name ).rarity( x ).value( y ).
Available additional methods:
.notUnderlingType()— exclusion from the underling type.candy( item )— specifying an item as a candy