Looter of Loot Context (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10

Syntax

[the] (looter|looting player) [of %lootcontexts%]

Description

Returns the looter of a loot context. Note that setting the looter will read the looter's tool enchantments (e.g. looting) when generating loot.

Examples

set {_killer} to looter of {_context}
set {_context} to a loot context at player:
	set loot luck value to 10
	set looter to player
	set looted entity to last spawned pig

View source