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

g days 

i need to show a particle at this exact vector 
but the particle donts spaws or its not visible 
soo i made this in a custom item to try figure out was wrong 

 

	// ########## ########## ########## ##########
	@Override
	public InteractionResultHolder<ItemStack> use(Level warudo, Player pe, InteractionHand hand) {
		

		Vec3 vh = util.calcularVectores(pe, 2 , 0.0F );//
		
		if ( vh != null) //warudo.isClientSide && 
		{
			util.showthis( String.format(" %1$s, %2$s, %3$s",  vh.x, vh.y, vh.z ) , pe);
			warudo.addAlwaysVisibleParticle(ParticleTypes.FLAME, vh.x, vh.y, vh.z , 0.0D, 0.0D, 0.0D);
			warudo.addParticle(ParticleTypes.SMOKE, vh.x, vh.y, vh.z , 0.0D, 0.0D, 0.0D);
			
			pe.playSound(SoundEvents.FIRE_EXTINGUISH, 1.0F, 1.0F);
		}		
		

		return InteractionResultHolder.pass(pe.getItemInHand(hand));
	}

util.calcularVectores(pe, 2 , 0.0F ); just calculate the position 2 meters in from of player 

if i hold rigth click from time to time i see the flame particle but never see the smoke 
the sound allways works 

soo ineed help whith this how i spawn a particle or its now an entity ?



 

 

 

Try this:

            warudo.addAlwaysVisibleParticle(ParticleTypes.FLAME, vh.x, vh.y, vh.z + 0.5f , 0.0D, 0.0D, 0.0D);
            warudo.addParticle(ParticleTypes.SMOKE, vh.x + 0.5f, vh.y, vh.z , 0.0D, 0.0D, 0.0D);

Then see if you can figure it out why my code works (and yours does as well). 🙂 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

  • Author

i fond the issue and dont like it 
in mi words i allways turn down render distance the bobbing effect the particles the shadows and pop up the light level is like a tradition to get the best experience from mi video card 

soo particles was not rendering coze i set particles to minimun, turn it to max and now it works  
is weird i could assure than before versions always pops particles from mods wherever the config says 






 

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.