diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-05-28 10:40:23 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-05-28 10:40:23 +1000 |
commit | 1af2a5de46be8f2a032260f00cce5a399722b837 (patch) | |
tree | 8ccdbd5e60fdd0e35b04f3beacbf38eb0083dbcf /src | |
parent | 2a49926316d55b10aa8423a2da1cae04fa363b7a (diff) | |
download | GT5-Unofficial-1af2a5de46be8f2a032260f00cce5a399722b837.tar.gz GT5-Unofficial-1af2a5de46be8f2a032260f00cce5a399722b837.tar.bz2 GT5-Unofficial-1af2a5de46be8f2a032260f00cce5a399722b837.zip |
+ Added a Recipe for the GT++ Fish Trap.
- Moved Fish Trap logging from INFO to WARNING.
Diffstat (limited to 'src')
-rw-r--r-- | src/Java/gtPlusPlus/core/recipe/RECIPES_General.java | 9 | ||||
-rw-r--r-- | src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java | 18 |
2 files changed, 18 insertions, 9 deletions
diff --git a/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java b/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java index 77f3f266b0..b5f4bbc50f 100644 --- a/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java +++ b/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java @@ -89,6 +89,15 @@ public class RECIPES_General { "stickWood", "dustBone", "stickWood", ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest)); + //Iron bars + ItemStack ironBars = ItemUtils.getItemStack("minecraft:iron_bars", 1); + //Fish Trap + RecipeUtils.recipeBuilder( + ironBars, ironBars, ironBars, + ironBars, "frameGtWroughtIron", ironBars, + ironBars, ironBars, ironBars, + ItemUtils.getSimpleStack(ModBlocks.blockFishTrap)); + } } diff --git a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java index 66aed3731e..f6dc0e7368 100644 --- a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java +++ b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java @@ -70,12 +70,12 @@ public class TileEntityFishTrap extends TileEntity{ return true; } else if ((waterCount >= 2) && (trapCount > 4)){ - Utils.LOG_INFO("Too many fish traps surrounding this one."); - Utils.LOG_INFO("Not adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); + Utils.LOG_WARNING("Too many fish traps surrounding this one."); + Utils.LOG_WARNING("Not adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); } } } - //Utils.LOG_INFO("Error finding water"); + //Utils.LOG_WARNING("Error finding water"); return false; } @@ -153,7 +153,7 @@ public class TileEntityFishTrap extends TileEntity{ public void updateEntity(){ if (!this.worldObj.isRemote){ this.tickCount++; - //Utils.LOG_INFO("Ticking "+this.tickCount); + //Utils.LOG_WARNING("Ticking "+this.tickCount); //Check if the Tile is within water once per second. if ((this.tickCount%20)==0){ this.isInWater = this.isSurroundedByWater(); @@ -170,13 +170,13 @@ public class TileEntityFishTrap extends TileEntity{ if ((this.tickCount%this.baseTickRate)==0){ if (this.isInWater){ //Add loot - //Utils.LOG_INFO("Adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); + //Utils.LOG_WARNING("Adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); this.tryAddLoot(); this.markDirty(); } else { - Utils.LOG_INFO("This Trap does not have enough water around it."); - Utils.LOG_INFO("Not adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); + Utils.LOG_WARNING("This Trap does not have enough water around it."); + Utils.LOG_WARNING("Not adding Loot to the fishtrap at x["+this.locationX+"] y["+this.locationY+"] z["+this.locationZ+"] (Ticking for loot every "+this.baseTickRate+" ticks)"); this.markDirty(); } this.tickCount = 0; @@ -221,7 +221,7 @@ public class TileEntityFishTrap extends TileEntity{ @Override public void writeToNBT(final NBTTagCompound nbt){ super.writeToNBT(nbt); - //Utils.LOG_INFO("Trying to write NBT data to TE."); + //Utils.LOG_WARNING("Trying to write NBT data to TE."); final NBTTagCompound chestData = new NBTTagCompound(); this.inventoryContents.writeToNBT(chestData); nbt.setTag("ContentsChest", chestData); @@ -230,7 +230,7 @@ public class TileEntityFishTrap extends TileEntity{ @Override public void readFromNBT(final NBTTagCompound nbt){ super.readFromNBT(nbt); - //Utils.LOG_INFO("Trying to read NBT data from TE."); + //Utils.LOG_WARNING("Trying to read NBT data from TE."); this.inventoryContents.readFromNBT(nbt.getCompoundTag("ContentsChest")); } |