On Fishing (Event) — Skript

Addon: Skript · Category: Event · Since: 2.10, 2.11 (state change)

Syntax

[on] [fishing] (line|rod) cast

Description

Called when a player triggers a fishing event. An entity hooked event is triggered when an entity gets caught by a fishing rod. A fish escape event is called when the player fails to click on time, and the fish escapes. A fish approaching event is when the bobber is waiting to be hooked, and a fish is approaching. A fishing state change event is triggered whenever the fishing state changes.

Event Values

  • event-entity
  • event-fishingstate
  • event-player
  • event-projectile
  • event-world

Examples

on fishing line cast:
	send "You caught a fish!" to player
on entity caught:
	push event-entity vector from entity to player
on fishing state change:
	if event-fishing state is fish caught:
		broadcast "A fish has been caught!"

View source