Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Comments will look like this. Create a new script in the script folder. Recommend using the Notepad++, as it has a possible integration with the ZenScript(Google it)
- //Start the script by these lines(And remember, that almost all the lines must end with ;)
- import crafttweaker.item.IItemStack as IItemStack;
- import mods.jei.JEI.removeAndHide as rh;
- //Second thing is already the best- Just by writing things like this-
- rh(<buildcraftcore:gear_wood>);
- //Just an example, any item will be- It will remove the recipe from the item, and will hide it from JEI.
- recipes.remove(<randomthings:goldencompass>);
- //This removes the recipe, but doesn't remove the item
- recipes.addShaped("RT Golden Compass",
- <randomthings:goldencompass>,
- [[<minecraft:gold_ingot>, null, <minecraft:gold_ingot>],
- [null, <minecraft:compass>, null],
- [<minecraft:gold_ingot>, null, <minecraft:gold_ingot>]]);
- //This is the most important thing- recipes.addShaped("TheNameForItemGoesHereButYouCanUseAnyName", <ItemNameHere>,
- [[null, null, null],
- [null, null, null],
- [null, null, null]]);
- //Null is "No item here", and this is basically the crafting grid. You can perfectly make it like this-
- [[null, null, null], [null, null, null], [null, null, null]]);
- //But this is not really understandable, so yeah.
- //And last, i want to give you the "How to delete a lot of recipes without making the same line too many times"
- val stuffToRemove = [
- //All your item go here, like
- <thermalfoundation:material:22>,
- <thermalfoundation:material:23>,
- <thermalfoundation:material:24>,
- <thermalfoundation:material:25>
- //The last line doesn't have the comma
- ] as IItemStack[];
- for items in stuffToRemove {
- recipes.remove(items);
- //Or you know, rh(items); if you need to delete all of them.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement