mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Add an alternative way to craft bolts with config (default off) #1295
This commit is contained in:
1 parent
1a18389825
commit
195dfc76f8
3 files changed
+8
-1
No files matched your search
@@ -109,7 +109,7 @@ public class DualMaterialToolPart extends DynamicToolPart {
|
||||
if(renderpass > 0)
|
||||
{
|
||||
int matId = getMaterialID2(stack);
|
||||
if(matId > icons2.length)
|
||||
if(matId > icons2.length || matId < 0)
|
||||
return super.getColorFromItemStack(stack, renderpass);
|
||||
|
||||
if(icons[matId] == null)
|
||||
|
||||
@@ -64,6 +64,7 @@ public class PHConstruct
|
||||
miningLevelIncrease = config.get("Difficulty Changes", "Modifiers increase Mining Level", true).getBoolean(true);
|
||||
denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false);
|
||||
craftEndstone = config.get("Difficulty Changes", "Allow creation of endstone", true).getBoolean(true);
|
||||
alternativeBoltRecipe = config.get("Difficulty Changes", "Add alternitave recipe for bolt parts: arrowhead + toolrod in a crafting grid", false).getBoolean(false);
|
||||
|
||||
naturalSlimeSpawn = config.get("Mobs", "Blue Slime spawn chance", 1, "Set to 0 to disable").getInt(1);
|
||||
|
||||
@@ -315,6 +316,7 @@ public class PHConstruct
|
||||
public static boolean labotimizeVanillaTools;
|
||||
public static boolean miningLevelIncrease;
|
||||
public static boolean denyMattock;
|
||||
public static boolean alternativeBoltRecipe;
|
||||
|
||||
// Smeltery Output Modification
|
||||
public static double ingotsPerOre;
|
||||
|
||||
@@ -15,11 +15,13 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.*;
|
||||
@@ -348,6 +350,9 @@ public class TinkerWeaponry {
|
||||
|
||||
private void registerBoltCasting()
|
||||
{
|
||||
if(PHConstruct.alternativeBoltRecipe)
|
||||
GameRegistry.addRecipe(new AlternateBoltRecipe());
|
||||
|
||||
LiquidCasting tb = TConstructRegistry.getTableCasting();
|
||||
|
||||
// any fluid that is a toolpart material can be used
|
||||
|
||||
Reference in new issue
Block a user