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.

Featured Replies

Posted

What I'm suggesting is a quick and painless change, which is changing

Block.getCollisionBoundingBoxFromPool(World w, int x, int y, int z)

to

Block.getCollisionBoundingBoxFromPool(World w, int x, int y, int z, Entity e)

where the Entity is the one whose collision is being tested at the moment. It should be ignored by minecraft / forge code, but it's useful when you need to override some block collisions in specific ways.

 

While you can use 'addCollidingBlockToList()' to override collision behavior, as long as your AABB is not null, non-living entities such as EntityItem and EntityArrow will still collide with the block, even if you have overriden 'addCollidingBlockToList()' to allow those entities to go through the block.

On the other hand, if your returned AABB is null, addCollidingBlockToList doesn't seem to get called at all, so you can't just sneak your real AABB into the list anyways.

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

that's actually really useful. that would be really useful for making walls that only certain people can go through/people with certain items or armor can go through.

  • Author

That's sort of what my mod does :)

I have a shield block that allows entities through based on metadata, and it works wonders with living entities... non-living entities, on the other hand, always get stuck.

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.