Jump to content

Recommended Posts

Posted

Hey Guys!

Just a few questions concerning entities.

First: Can you make an entity emitting light, just like a block? Or can you add light sources to the world?

Second: Can you add a collision box to an entity that a player or other entities can walk over it? If not, would it be possible to do so by teleporting the entities which are inside the base entity on top of it?

 

Thanks in advance for every piece of information!

Posted

This could be a possibility, but then you have to tell me how to hide this block completely (no boundingbox, no break particles and so on) and how to make it replaceable if you right-click

 

Well I don't "have to tell you" anything  ;D

 

Anyway, those are all aspects of blocks that are moddable.  Not sure how much experience you have with that (I'm pretty new myself).  I expect some of those things you just don't want to show, so probably related to rendering, although maybe there are also some methods/variables that can be used to control them.  Righ-clicking is related to the onBlockActivated() method I think, so you'd want to override that.

 

Honestly, the only way to progress as a Minecraft modder is to use Eclipse to follow the vanilla source code to see how Minecraft already does things, then figure out a way to intercept and modify that behavior.  So find out where the break particles are controlled and then change that for your block, find out where the block interaction on right-click happens and then change that for your block, etc.

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

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.