Skip to content

Instantly share code, notes, and snippets.

@TDarkShadow
Created January 11, 2021 22:28
Show Gist options
  • Save TDarkShadow/7963c66ae4e6797e90523cd7af06bd68 to your computer and use it in GitHub Desktop.
Save TDarkShadow/7963c66ae4e6797e90523cd7af06bd68 to your computer and use it in GitHub Desktop.
A small KubeJS script so you can craft Quark's Cave Crystals with Create's Compacting Press. Requires KubeJS Create.
// priority: 99
// Made by TDarkShadow
events.listen('recipes', event => {
let colours = [
'red',
'orange',
'yellow',
'green',
'blue',
'indigo',
'violet',
'white',
'black'
];
colours.forEach((colour) => {
let colourDye = '';
switch(colour) {
case 'indigo':
colourDye = 'purple';
break;
case 'violet':
colourDye = 'magenta';
break;
default:
colourDye = colour
}
event.recipes.create.compacting('quark:' + colour + '_crystal', [
'#forge:dyes/' + colourDye + '',
'#forge:salt',
{fluid: 'minecraft:water', amount: 100}
])
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment