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

4 minutes ago, nov4e said:

it has to follow the entity.

Then I am afraid you will need a custom particle implementation. Default particles don't follow anything but their motion values.

 

4 minutes ago, nov4e said:

The number of the particles generated.

Use a for loop.

  • Author
Just now, V0idWa1k3r said:

Then I am afraid you will need a custom particle implementation. Default particles don't follow anything but their motion values.

I think not because on some vanilla servers theres a plugin that do that. Maybe I can try to spawn the particles in the same position of the damaged entity.

5 minutes ago, nov4e said:

I think not because on some vanilla servers theres a plugin that do that.

Plugins can't do that since the server doesn't have any particle data whatsoever, only the client does. You are likely confused. The particle won't follow anything but it's motion. You can though continuously spawn particles at the entity's position thus making the entity a "particle emmitter".

  • Author
2 minutes ago, V0idWa1k3r said:

Plugins can't do that since the server doesn't have any particle data whatsoever, only the client does. You are likely confused. The particle won't follow anything but it's motion. You can though continuously spawn particles at the entity's position thus making the entity a "particle emmitter".

check this plugin.  I want to make something similiar to this.

This is exactly wht I am talking about

7 minutes ago, V0idWa1k3r said:

The particle won't follow anything but it's motion. You can though continuously spawn particles at the entity's position thus making the entity a "particle emmitter".

 

  • Author
1 minute ago, V0idWa1k3r said:

This is exactly wht I am talking about

ok. How I can do that? I would even be enough to spawn only particles in the damaged entity position.

You will need to detect when the entity is damaged of course, set some kind of a timer somewhere(in your capability), and while that timer is valid spawn your particles at the entity's position. 

  • Author
3 minutes ago, V0idWa1k3r said:

spawn your particles

strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID);

I can't spawn them. I have to change the 0?

4 hours ago, nov4e said:

I can't spawn them.

Make sure you are on the client. Spawning particles on a server has no effect - the method is a noop for WorldServer.

  • Author
16 hours ago, V0idWa1k3r said:

Make sure you are on the client. Spawning particles on a server has no effect - the method is a noop for WorldServer.

Yes, Im in the client proxy.

8 minutes ago, nov4e said:

Yes, Im in the client proxy.

The proxies separate physical sides, you need to separate logical sides. You need to show more of your code.

  • Author

I have to put the methods in a eventhandler marking it with Side.CLIENT only?

1 minute ago, nov4e said:

I have to put the methods in a eventhandler marking it with Side.CLIENT only?

Thats also for distinguishing between physical sides

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author
1 minute ago, Cadiboo said:

Thats also for distinguishing between physical sides

ok i make a new event handler only client only and it should work?

1 minute ago, nov4e said:

ok i make a new event handler only client only and it should work?

No.

6 minutes ago, V0idWa1k3r said:

you need to separate logical sides

Hint: world.isRemote   

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

As a side note events are not guaranteed to run on both logical sides. If the event only fires on a logical server then world.isRemote will always return false and your code will never execute. In this case you would either need an event that does fire on the logical client or you will need to use packets.

  • Author
        if(strWorld.isRemote) {
			strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID);
		}

 

  • Author
On 12/6/2018 at 2:15 PM, V0idWa1k3r said:

In this case you would either need an event that does fire on the logical client or you will need to use packets.

how i can do that?

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.