How do you spawn particles on an item?

Started by Tryak on

Topic category: Help with modding (Java Edition)

Last seen on 09:08, 28. Jun 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you spawn particles on an item?

I'm trying to make a musket and I want a smoke particle to appear on the tip of the musket after you shoot it. So far I can only spawn a particle on the player, can anyone help?

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its quite complicated to…
Tue, 03/02/2021 - 06:51

its quite complicated to explain the math, but you'll need to do some math to transform the entity's body and arm rotations plus the weapon's offsets to world coordinates, and then spawn the particles there.

also, the above only gets you the coordinates in 3rd person view. you'll also need a whole other set of calculations to get the 1st person view coordinates.

Last seen on 14:49, 16. Mar 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you the real ahzmb? if…
Mon, 07/24/2023 - 00:59

are you the real ahzmb? if you are it is a honor to meet you!