i want to get a plugin about a fishing rod which when i cast it i can switch with players and entities im looking at so i trade positions with the windcharge or player when i cast the rod and only make it my point of view so nothing behind me can be affected
KodariSep 19 at 7:35 am 1
RodSwap
RodSwap is a Minecraft plugin that adds a unique fishing rod ability. When a player casts the rod, it targets the entity or player they are looking at within a limited forward cone. Upon successful hit, the caster and the target instantly swap positions. The swap is strictly line-of-sight based, so entities behind the caster are never affected. The plugin provides configurable range, cooldown, and permission settings, along with visual particle effects and sound feedback on successful swaps. It supports both players and all living entities as valid targets, with optional whitelist/blacklist configuration for entity types.
Create a Paper plugin project with Java 21 and plugin metadata.
Handle fishing-rod casts by ray-tracing only forward from the player’s eyes.
Swap the player and the first visible entity hit, including players and wind charges, while respecting blocks and excluding the fishing hook.
Created PositionSwapRod:
Casting a fishing rod ray-traces only from the player’s eye direction.
The first visible entity within 64 blocks is targeted.
Blocks stop the ray, so entities behind walls or other entities are unaffected.
Players and entities, including wind charges, swap positions with the caster.
The fishing hook itself is ignored.
how do i obtain the rod
KodariSep 19 at 7:36 am 1
Craft a normal vanilla fishing rod:
3 Sticks
2 String
The plugin currently makes every fishing rod work as the position-swap rod—there is no special item or command required. Hold it, cast while looking directly at a player or entity, and you will swap positions if the target is within range and visible.
Kodari can make mistakes. Review important code before using.