PaperMC / PaperMC/Paper

Players are able to Riptide without calling PlayerRiptideEvent [Reopened from #11676]

Open
#12,779 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage version: 1.21.7
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Player riptides and swaps to another item, animation still appears and PlayerRiptideEvent is called.

Observed/Actual behavior

Player riptides and swaps to another item, no animation appears, and PlayerRiptideEvent is not called, however their character is as if they did Riptide.

Specifically, pressing the offhand key as the player riptides circumvents whatever 'fix' someone added for this.

Steps/models to reproduce
  1. Get trident with riptide
  2. Go in water, hold down right click
  3. Release, and press key to transfer to offhand (default is F)
Plugin and Datapack List

N/A

Paper version

This server is running Paper version 1.21.7-9-main@5661fbb (2025-06-30T19:43:31Z) (Implementing API version 1.21.7-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-106-ab1b312 (MC: 1.21.4)

Other

https://github.com/PaperMC/Paper/issues/11676

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the offhand-key sequence described here on Paper 1.21.7, then compare the behavior and prior fix discussed in issue #11676. Trace the trident Riptide handling and PlayerRiptideEvent dispatch; done means the animation remains visible and the event is called when the player swaps items during Riptide.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.