Jump to content

MosquitoFRA

Members
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MosquitoFRA's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Sorry @Cadiboo, but I told that I haven't Discord presviously. But I found how to pm you on this forum.
  2. Sorry, but I don't have Discord. @Override class collisionBox { public AxisAlignedBB addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean isActualState) { if(entityIn instanceof EntityPlayer) { class boundingBox { void getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return super.AxisAlignedBB[](0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D); } } } } } I tried to correct the code as best as I could and search again on Google, but I can't figure it out.
  3. @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean isActualState) { if(entityIn instanceof EntityPlayer) { getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D); } } } I tried this but it didn't work
  4. @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean isActualState) { if(entityIn instanceof EntityPlayer) { public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D); } } } I have this but it doesn't work
  5. Huge thanks @JimiIT92. I will try. And finally decided to look at some videos.
  6. I have to leave. Thank you for your help and patience.
  7. Could you correct it, please ... I didn't find an answer anywhere on google and i tried javadoc but didn't know where to go to find the good method.
  8. For the entity, it's entityLiving (I think it's for projectiles). And I don't know to do this null check { if(EntityLiving) super.addCollisionBoxToList(pos, entityBox, collidingBoxes, under); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, middle); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, top); }
  9. public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn) if(entity.projectiles) { super.addCollisionBoxToList(pos, entityBox, collidingBoxes, under); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, middle); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, top); } Is it like this?
  10. Sorry, I was editing. I don't know why there is @Nullable Entity entityIn?
  11. public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn) if(entity.projectiles)
  12. I replace "entityIn" by "tileEntity" or "entityProjectiles"?
  13. In fact, I'm not used to this method. I found an example: public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn) { super.addCollisionBoxToList(pos, entityBox, collidingBoxes, under); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, middle); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, top); } So what do I have to do with these information?
  14. Do you mean like this? @Override public void addCollisionBoxTo List(IBlockState state, World world, BlockPos pos, entity.projectiles)
  15. Hello everyone. Here is my issue: I don't know how to make a bloc only collidable for players. Arrows can cross it which is very annoying because I want to make a shield which stop projectiles and not players. Any help would be great.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.