Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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!

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/

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.