Create Loot Context (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.10
Syntax
[a] loot context %direction% %location%Description
Create a loot context.
Examples
set {_player} to player
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
give player loot items of loot table "minecraft:entities/iron_golem" with loot context {_context}