mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
32 lines
2.3 KiB
Markdown
32 lines
2.3 KiB
Markdown
|
Adding Custom Recipes (For Modders only!):
|
||
|
=====
|
||
|
|
||
|
Actually Additions adds an InterModCommunications Feature that allows you to add custom Crafting Recipes using Items from your Mods.
|
||
|
|
||
|
To use these Features, just send an InterModComms Message in your preInit or init like this:
|
||
|
FMLInterModComms.sendMessage("ActuallyAdditions", [X], [Y]);
|
||
|
The two Brackets will have to get replaced with one of the parts of Information below.
|
||
|
|
||
|
##### Crusher Recipes
|
||
|
- Create an NBTTagCompound
|
||
|
- To the Compound, add an NBTTagCompound with the name "input" that contains the Input ItemStack saved to NBT (To do this, just use ItemStack.saveToNBT)
|
||
|
- To the Compound, add an NBTTagCompound with the name "outputOne" that contains the first Output saved to NBT
|
||
|
- To the Compound, add an NBTTagCompound with the name "outputTwo" that contains the second Output saved to NBT
|
||
|
- To the Compound, add an int with the name "secondChance" that contains the Chance for the second Output to appear
|
||
|
- Send the Message with "registerCrusherRecipe" as the [X] Argument, the Compound as the [Y] Argument.
|
||
|
|
||
|
##### Coffee Machine Recipes
|
||
|
- Create an NBTTagCompound
|
||
|
- To the Compound, add an NBTTagCompound with the name "input" that contains the Input ItemStack saved to NBT (To do this, just use ItemStack.saveToNBT)
|
||
|
- To the Compound, add an int with the name "id" that contains the ID of the Effect the Coffee should have (Look up the Effects in Minecraft's Potion Class!)
|
||
|
- To the Compound, add an int with the name "duration" that contains the Duration the Effect should have
|
||
|
- To the Compound, add an int with the name "amplifier" that contains the Amplifier the Effect should have (Remember: 0 = Level 1!)
|
||
|
- To the Compound, add an int with the name "maxAmp" that contains the maximal Amplifier the Effect can have
|
||
|
- Send the Message with "registerCoffeeMachineRecipe" as the [X] Argument, the Compound as the [Y] Argument.
|
||
|
|
||
|
##### Ball of Hair Recipes
|
||
|
- Create an NBTTagCompound
|
||
|
- To the Compound, add an NBTTagCompound with the name "output" that contains the Input ItemStack saved to NBT (To do this, just use ItemStack.saveToNBT)
|
||
|
- To the Compound, add an int with the name "chance" that contains the Chance of the Item appearing
|
||
|
- Send the Message with "registerBallOfHairRecipe" as the [X] Argument, the Compound as the [Y] Argument.
|