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.

Grim1ight

Members
  • Joined

  • Last visited

Everything posted by Grim1ight

  1. Can't understand why it is not working... HitEntity working fine, i also tryed to use spawnParticles in onItemRightClick, it's work, but when hit entity it isn't working! public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase) { par2EntityLivingBase.addPotionEffect(new PotionEffect(Potion.poison.id, 60, 2)); par2EntityLivingBase.worldObj.spawnParticle("lava", par2EntityLivingBase.posX, par2EntityLivingBase.posY, par2EntityLivingBase.posZ, 1.0D, 1.0D, 1.0D); par1ItemStack.damageItem(1, par2EntityLivingBase); return true; } Mob became poisoned, but particles arent working. Here all fine: public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { par3EntityPlayer.worldObj.spawnParticle("lava", par3EntityPlayer.posX, par3EntityPlayer.posY, par3EntityPlayer.posZ, 1.0D, 1.0D, 1.0D); par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack)); return par1ItemStack; }
  2. public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase) { par2EntityLivingBase.worldObj.spawnParticle("lava", par2EntityLivingBase.posX, par2EntityLivingBase.posY + 0.5f, par2EntityLivingBase.posZ, 0f, 0f, 0f); par1ItemStack.damageItem(1, par2EntityLivingBase); return true; } Isn't work And someone know block destroy particle name? For example, redstone block?
  3. I need that when you hit entity it will spawn particles near it, but spawnParticles in hitEntity event isnt working because need World. Please help.

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.