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.

Seimouun

Members
  • Joined

  • Last visited

  1. Seimouun joined the community
  2. Greetings everyone! I want all of my particles to follow the player viewport and not be created in world space. I'm kinda new to Minecraft modding so i don't know if this would be a hard task to achieve. All i have for now is a simple method that spawns particles in a helix infront of the player in world space. Vector3d lookVector = player.getLookVec().normalize(); final double pitch = (player.getPitch(1) + 90.0F) * 0.017453292F; final double yaw = -player.getYaw(1) * 0.017453292F; double x = radius * Math.cos(tickCount / 3D); double z = radius * Math.sin(tickCount / 3D); Vector3d vec = new Vector3d(x, 0, z); vec = Util.rotateAroundAxisX(vec, pitch); vec = Util.rotateAroundAxisY(vec, yaw); player.world.addParticle(ParticleTypes.FLAME, player.getPosX() + vec.getX() + lookVector.getX(), player.getPosY() + vec.getY() + lookVector.getY() + player.getEyeHeight(), player.getPosZ() + vec.getZ() + lookVector.getZ(), 0, 0, 0);

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.