Jump to content

[1.10.2] onNeighborChange behaving differently than I expect


Recommended Posts

Posted

I made a new block and I want to detect when a change is made next to it. However, the onNeighborChange() is not being triggered when blocks are added or removed next or on the block, nor is it triggering on fire being added. It does trigger when a chest is placed next to it, however. Any ideas on either how to get onNeighborChange() to trigger properly or if there is a different function I want to be using?  Thanks.

Posted

Thanks! Where can I find the Javadocs? That would help a bunch, I think.

 

Also, I neighborChanged is listed as deprecated, which to me implies that there is supposed to be some other way to accomplish what I am trying to do. I'll go ahead with using it, but I just wonder why.  Thanks.

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.