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.

WateR

Members
  • Joined

  • Last visited

Everything posted by WateR

  1. Yes and I did just that. Got it working we're all good here.
  2. Fixed the problem... The server kept running spawnParticle on the server side. I made a packet that would send the data to the client.
  3. I tried that but it still doesn't change anything...
  4. https://github.com/Toby2449/Water-s-Elements/blob/master/src/main/java/com/water/elementmod/items/weapons/FireSword.java
  5. I've tried using @SideOnly(Side.CLIENT) and world.isRemote on FireParticleEffect but they both don't change anything.
  6. @Override public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { target.setFire(getFireDuration(true, false)); stack.damageItem(1, attacker); FireParticleEffect(target); return true; } It's inside an ItemSword class
  7. Not sure why these particles are not spawning. public boolean FireParticleEffect(EntityLivingBase target) { World world = target.getEntityWorld(); for(int countparticles = 0; countparticles <= 7 * this.level / 2; ++countparticles) { Random rand = new Random(); world.spawnParticle(EnumParticleTypes.FLAME, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D); } for(int countparticles = 0; countparticles <= 20 * this.level / 2; ++countparticles) { Random rand = new Random(); world.spawnParticle(EnumParticleTypes.LAVA, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D); } return true; } Any ideas?

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.