How to use PR-Items in Crafting Recipes [Java]
dgsdgsdgsdg opened this issue ยท 12 comments
Hey, I want to know how to use Project-Red items in Crafting Recipes... Would be nice if you answer me, thank you :))
Hmm.. I suppose I can add an API hook for this. Currently, you can only do it with ores and such that are registered in the ore dictionary...
Could you add it? Would be really nice.., Im writing a PR-Addon at the moment and i need items like the Red Alloy Ingot and I wont implement new ones in my mod :))
Yea, i figured out how to use it, but its not a real solution because I've to use some items that aren't implemented in the ore dictionary, I think using an API hook is an advantage and I would be really happy if you create one :).
PS: I tested the new Project Red Fabrication and its really brilliant :)) Nice work, thats all i've to say :) Keep good working, have a nice day ! :)
Hey... I found a method to use craftting types:
public class pr_items {
public static Item pritem = new mrtjp.projectred.core.ItemPart();
}
But am I able to do it a different way that the items arent registred twice?
DO NOT use other mod's items like that. You can either get the items by name using the method in the Item class. Or just wait until I add it to the API.
@FinalZZ new ItemStack(GameRegistry.findItem("ProjectRed|Core", "projectred.core.part"), size, (short) 10)
The actual instance of Item
is shared by many items in PR. The damage value needs to be 10. (Note: I haven't actually tested this, but looking at the Forge and Project Red source, this should be it.)