I'm looking to make a small plugin that modifies the water friction, similar to the dolphin's grace effect but without the speed boost, for players holding or ideally using a riptide trident. I feel they currently are more usable for launching yourself out of water than boosting underwater, which makes the grind to get one just not worth it. I've made a datapack hat give's players holding one dolphin's grace, but the speed boost, especially with depth strider boots, is game-breakingly fast, and also makes it easier to just swim with the speed boost, rather than using the trident.
I'm quite familiar with Java programming, but not with the API, so I'd like to ask how I can detect a player holding or using a trident using the API, and how I modify the underwater friction for that player only. Once I've got the correct class names, I should be ready to get on my way programming.
Thanks in advance.
I'm quite familiar with Java programming, but not with the API, so I'd like to ask how I can detect a player holding or using a trident using the API, and how I modify the underwater friction for that player only. Once I've got the correct class names, I should be ready to get on my way programming.
Thanks in advance.