Skip to content

ArchaeologyLoot 5.46.0 ​

final class · pocketmine\block\utils\ArchaeologyLoot · source

Loot for suspicious sand and gravel. PocketMine has no loot table engine, so this is a fixed copy of the vanilla archaeology tables (each brushing gives one item with the vanilla weights). Some entries are left out: trail ruins common loot only keeps the items PocketMine has (no hanging signs, stained glass panes or leads), and the warm ocean ruins sniffer egg is missing because PocketMine has no sniffer egg.

Methods ​

normalizeTableName() ​

php
public static function normalizeTableName(string $lootTable) : string

Returns the table key ("desert_pyramid", "trail_ruins_rare"...) of a vanilla loot table path such as "loot_tables/entities/desert_pyramid_archaeology.json" or "minecraft:archaeology/desert_pyramid".

roll() ​

php
public static function roll(string $lootTable) : ?\pocketmine\item\Item

Rolls one item from the given vanilla archaeology loot table, or returns null if the table is unknown.

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