mirror of
https://github.com/dje4321/TerrafirmaPunk-Tweaks.git
synced 2024-11-16 14:09:39 +00:00
Removed Flesh Block from NEI and recipes
Removed Flesh Block from NEI and recipes
This commit is contained in:
parent
5c137164b3
commit
e4b7abe4a7
15
build.gradle
15
build.gradle
@ -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
|
||||
|
@ -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.
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-1.01.jar
Normal file
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-1.01.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-deobf-1.01.jar
Normal file
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-deobf-1.01.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-src-1.01.jar
Normal file
BIN
builds/[1.7.10]TerraFirmaPunkTweaks-src-1.01.jar
Normal file
Binary file not shown.
27
src/main/java/com/onewolfe/tfptweaks/NEIConfig.java
Normal file
27
src/main/java/com/onewolfe/tfptweaks/NEIConfig.java
Normal 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));
|
||||
}
|
||||
|
||||
}
|
32
src/main/java/com/onewolfe/tfptweaks/RecipeTweaks.java
Normal file
32
src/main/java/com/onewolfe/tfptweaks/RecipeTweaks.java
Normal 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--);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -7,7 +7,9 @@ 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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
"screenshots": [],
|
||||
"parent": "",
|
||||
"requiredMods": [],
|
||||
"dependencies": ["terrafirmacraft"],
|
||||
"dependencies": ["terrafirmacraft", "steamcraft2"],
|
||||
"dependants": [ ],
|
||||
"useDependencyInformation": "true"
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user