Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
- {
- playerIn.attackEntityFrom(new CogsDamageSource(), 10);
- return true;
- }
- @Override
- public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
- {
- entityIn.attackEntityFrom(new CogsDamageSource(), 10);
- }
Advertisement
Add Comment
Please, Sign In to add comment