Recipes are now added to the recipe book when a tree tap is used.
This commit is contained in:
parent
5536a6cd94
commit
aa615f86bd
23 changed files with 124 additions and 36 deletions
|
@ -33,6 +33,7 @@ import net.minecraft.block.state.BlockStateContainer;
|
|||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
@ -45,6 +46,7 @@ import prospector.shootingstar.ShootingStar;
|
|||
import prospector.shootingstar.model.ModelCompound;
|
||||
import reborncore.common.powerSystem.PoweredItem;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
import techreborn.events.TRRecipeHandler;
|
||||
import techreborn.init.ModSounds;
|
||||
import techreborn.items.ItemParts;
|
||||
import techreborn.items.tools.ItemElectricTreetap;
|
||||
|
@ -182,6 +184,9 @@ public class BlockRubberLog extends Block {
|
|||
item.motionZ = rand.nextGaussian() * factor;
|
||||
worldIn.spawnEntity(item);
|
||||
}
|
||||
if(playerIn instanceof EntityPlayerMP){
|
||||
TRRecipeHandler.unlockTRRecipes((EntityPlayerMP) playerIn);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue