Jump to content

[1.8] Creating a block, thats its owner can walk through


Failender

Recommended Posts

Hey everyone,

I am triing to make a block that its owner can walk through. I found out that my solution might be overwriting isPassable in the class, but it seems like this isnt getting called every time someone tries to walk through.

So right now I am out of ideas and could use some input

Link to comment
Share on other sites

I usually do this sort of thing using the block's addCollisionBoxesToList() method. The addCollisionBoxesToList() method is generated dynamically, is public, and can be overridden to provide and collision box you want!  Since this is called by path-finding, you can have different collision boxes depending on the entity type or other entity-related variables.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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