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

Hi so i made a working projectile like a snowball and when it lands on the ground i want to to spawn another custom entity i have made but for some reason the entity doesn't spawn.

I know that the entity i want to spawn is in the game because i can use its mob egg and it spawns in.

 

entity projectile code:

 

http://pastebin.com/iUDEtYxr

 

entity i want to spawn code:

 

http://pastebin.com/zM7TzuP7

 

In my brain this should work and I cant see why it isn't but I'm but its something simple i just overlooked that i cant see.

BioWarfare Mod: http://goo.gl/BYWQty

Before you spawn the entity, use setLocationAndAngles to set its position.

Check out my mod, Realms of Chaos, here.

 

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

1. Why do you have the grenade effect in a separate class? There is no reason to do this, just spawn the particle effects in the onImpact method of EntityGrenade.

2. Like Eternaldoom said, you need to set the position of the grenade effect entity (this doesn't matter if you've just removed EntityGrenadeEffect altogether)

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

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.