mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
-More Infos
This commit is contained in:
parent
3bada06e79
commit
63dbb5a047
2 changed files with 36 additions and 2 deletions
31
InterModCommsInfo.md
Normal file
31
InterModCommsInfo.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
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.
|
|
@ -1,7 +1,9 @@
|
||||||
It's a Minecraft Mod!
|
##It's a Minecraft Mod!
|
||||||
|
|
||||||
For more information, visit the main Minecraft Forum Thread at http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2374910-actually-additions-a-bunch-of-awesome-gadgets
|
For more information, visit the main Minecraft Forum Thread at http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2374910-actually-additions-a-bunch-of-awesome-gadgets
|
||||||
|
|
||||||
|
###If you want to see Information on how you can use my Mod and its InterModComms Feature in your own Mod, see the InterModCommsInfo.md File!
|
||||||
|
|
||||||
|
|
||||||
LICENSE:
|
LICENSE:
|
||||||
========
|
========
|
||||||
|
@ -31,3 +33,4 @@ What that means? The License can be customized by me:
|
||||||
### NOTES
|
### NOTES
|
||||||
- The above License only applies for Code I wrote myself, any APIs used (such as the CoFH API, the InventoryTweaks API and the MineFactoryReloaded API) have their own License that is being respected.
|
- The above License only applies for Code I wrote myself, any APIs used (such as the CoFH API, the InventoryTweaks API and the MineFactoryReloaded API) have their own License that is being respected.
|
||||||
- Almost all of the Assets used in this Mod are made by Glenthor and are owned by me. You are not allowed to copy them for any other Project without my Permission.
|
- Almost all of the Assets used in this Mod are made by Glenthor and are owned by me. You are not allowed to copy them for any other Project without my Permission.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue