Posted April 2, 201411 yr 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! http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
April 2, 201411 yr Not sure if this is a really dumb or really smart way to do it, but... Why not create an invisible block that changes position to move along with the entity? Then it could emit light like a block and also be walked on like a block. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
April 2, 201411 yr Author 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 http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
April 2, 201411 yr 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 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.