Jump to content

Recommended Posts

Posted

So, all I'm looking to do is for the player to be able to specify a block or blocks and those blocks will not spawn hostile mobs on them.

 

Been looking through the code and forums but really I don't know where to start.  Is this possible?  Can I modify the existing minecraft class or is there another way?

 

Thanks!

Posted

You might be able to use an EntityJoinWorldEvent and cancel it if the entity is above your block. You can't modify existing classes (other than using ASM), and you shouldn't need to.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

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.