Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MosquitoFRA

Members
  • Joined

  • Last visited

Everything posted by MosquitoFRA

  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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.