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, quick question. EntityLargeFireball creates an explosion on impact like normal with worldObj.newExplosion(), however it sets the entity for the cause of the explosion to null, rather than EntityLargeFireball for some reason. I was just wondering if there is any way around this, because I would like to be able to get the cause of explosions.

Thanks!

Hey guys, quick question. EntityLargeFireball creates an explosion on impact like normal with worldObj.newExplosion(), however it sets the entity for the cause of the explosion to null, rather than EntityLargeFireball for some reason. I was just wondering if there is any way around this, because I would like to be able to get the cause of explosions.

Thanks!

 

Explosion is explosion, not fireball. If you really need it to track as the fireball then write it in yourself.

  • Author

Sorry, I worded it kind of strangely. Let me try to correct myself and clarify. I'm talking about the fireball that is fired by the ghast. As far as I can tell, the game separates the blaze/fire charge and ghast fireball into EntitySmallFireball and EntityLargeFireball, respectively. I'm trying to detect the explosion made by the large fireball in the ExplosionEvent. However, this it is not possible to distinguish, in the ExplosionEvent, if the explosion was caused by an EntityLargeFireball. This is because when the fireball creates the explosion, it sets the cause of the newly created explosion to null.

  • Author

This is where it is being done in the EntityLargeFireball class:

this.worldObj.newExplosion((Entity)null, this.posX, this.posY, this.posZ, (float)this.field_92057_e, true, this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing"));

As you can see, the entity(first param of newExplosion()) is being set to null.

Sorry, I worded it kind of strangely. Let me try to correct myself and clarify. I'm talking about the fireball that is fired by the ghast. As far as I can tell, the game separates the blaze/fire charge and ghast fireball into EntitySmallFireball and EntityLargeFireball, respectively. I'm trying to detect the explosion made by the large fireball in the ExplosionEvent. However, this it is not possible to distinguish, in the ExplosionEvent, if the explosion was caused by an EntityLargeFireball. This is because when the fireball creates the explosion, it sets the cause of the newly created explosion to null.

 

 

Explosion is explosion, not fireball. If you really need it to track as the fireball then write it in yourself.

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.