Created
January 11, 2021 22:28
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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