Removed Flesh Block from NEI and recipes

Removed Flesh Block from NEI and recipes
This commit is contained in:
JAWolfe04 2016-01-25 05:49:58 -06:00
parent 5c137164b3
commit e4b7abe4a7
13 changed files with 85 additions and 4 deletions

View File

@ -59,7 +59,20 @@ allprojects
}
}
dependencies {
repositories
{
maven {
// the repo from which to get NEI and stuff
name 'CB Repo'
url "http://chickenbones.net/maven/"
}
}
dependencies
{
compile "codechicken:CodeChickenCore:1.7.10-1.0.4.35:dev"
compile "codechicken:CodeChickenLib:1.7.10-1.1.3.127:dev"
compile "codechicken:NotEnoughItems:1.7.10-1.0.4.95:dev"
}
//Creates a compiled de-obfuscated jar

View File

@ -1,6 +1,6 @@
minecraft_version=1.7.10
forge_version=10.13.4.1558-1.7.10
tfc_version=0.79.27
mod_version=1.00
mod_version=1.01
mod_id=TerraFirmaPunkTweaks
group_name=com.onewolfe.tfptweaks

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,27 @@
package com.onewolfe.tfptweaks;
import codechicken.nei.api.API;
import codechicken.nei.api.IConfigureNEI;
import net.minecraft.item.ItemStack;
import steamcraft.common.init.InitBlocks;
public class NEIConfig implements IConfigureNEI
{
@Override
public String getName() {
return References.ModName;
}
@Override
public String getVersion() {
return References.ModVersion;
}
@Override
public void loadConfig()
{
API.hideItem(new ItemStack(InitBlocks.blockFlesh, 1));
}
}

View File

@ -0,0 +1,32 @@
package com.onewolfe.tfptweaks;
import java.util.List;
import cpw.mods.fml.common.Loader;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe;
import steamcraft.common.init.InitBlocks;
public class RecipeTweaks
{
@SuppressWarnings("unchecked")
public static void SC2RecipeTweaks()
{
if(Loader.isModLoaded("steamcraft2"))
{
List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList();
for (int i = 0; i < recipes.size(); i++)
{
if (recipes.get(i) != null)
{
ItemStack recipeResult = recipes.get(i).getRecipeOutput();
if (recipeResult != null && recipeResult.getItem() == Item.getItemFromBlock(InitBlocks.blockFlesh))
recipes.remove(i--);
}
}
}
}
}

View File

@ -8,6 +8,8 @@ public class References
public static final String MODID_TFC = "terrafirmacraft";
public static final String MODNAME_TFC = "TerraFirmaCraft";
public static final String MODID_SC2 = "steamcraft2";
public static final String ModVersion = "@MOD_VERSION@";
public static final String ModDependencies = "required-after:" + MODID_TFC;
public static final String ModDependencies = "required-after:" + MODID_TFC + MODID_SC2;
}

View File

@ -3,6 +3,7 @@ package com.onewolfe.tfptweaks;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.common.MinecraftForge;
@Mod(modid = References.ModID, name = References.ModName, version = References.ModVersion, dependencies = References.ModDependencies)
@ -18,4 +19,10 @@ public class TerraFirmaPunkTweaks
{
MinecraftForge.EVENT_BUS.register(new PlayerHandler());
}
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
RecipeTweaks.SC2RecipeTweaks();
}
}

View File

@ -14,7 +14,7 @@
"screenshots": [],
"parent": "",
"requiredMods": [],
"dependencies": ["terrafirmacraft"],
"dependencies": ["terrafirmacraft", "steamcraft2"],
"dependants": [ ],
"useDependencyInformation": "true"
}]