| Name | player fishes entity while state |
| Event Lines | player fishes (<entity>) (while <state>)
player fishes (<item>) (while <state>) |
| Triggers | when a player uses a fishing rod. |
| Generated Examples | after player fishes:
after player fishes oak_pressure_plate while state: on player fishes while state: |
| Has Player | If the fisher or the caught entity is a player (in most cases, the fisher can be assumed to be a real player). - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | If the fisher or the caught entity is an NPC. |
| Switches | with:<item> to only process the event if the fishing rod is a specified item. |
| Contexts | <context.hook> returns an EntityTag of the hook.
<context.state> returns an ElementTag of the fishing state. Valid states: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerFishEvent.State.html
<context.entity> returns an EntityTag of the entity that got caught.
<context.item> returns an ItemTag of the item gotten, if any.
<context.xp> returns the amount of experience that will drop.
|
| Determine | "CAUGHT:<ItemTag>" to change the item that was caught (only if an item was already being caught).
"XP:<ElementTag(Number)>" to change how much experience will drop. |
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Player |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerFishesScriptEvent.java#L21 |