Skip to content

FishingLoot 5.46.0 ​

final class · pocketmine\entity\projectile\FishingLoot · source

The vanilla fishing loot table (gameplay/fishing): fish (weight 85, quality -1), junk (10, quality -2) and treasure (5, quality +2, only in open water). Each level of Luck of the Sea adds the quality to the weight, so it trades fish and junk for treasure. Treasure bows, rods and books are enchanted like a level 30 enchanting table.

Simplification: bamboo (jungle only junk) is not in the table, and treasure enchantments (Mending, Frost Walker...) are not rolled on books.

Constants ​

CATEGORY_FISH ​

php
public const CATEGORY_FISH = "fish"

CATEGORY_JUNK ​

php
public const CATEGORY_JUNK = "junk"

CATEGORY_TREASURE ​

php
public const CATEGORY_TREASURE = "treasure"

Methods ​

categoryWeights() ​

php
public static function categoryWeights(int $luck, bool $openWater) : array

Weights of the three categories for the given luck.

fish() ​

php
public static function fish() : \pocketmine\item\Item

junk() ​

php
public static function junk() : \pocketmine\item\Item

roll() ​

php
public static function roll(int $luck, bool $openWater) : \pocketmine\item\Item

treasure() ​

php
public static function treasure() : \pocketmine\item\Item

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.