Loot of Loot Table (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.10
Syntax
[the] loot of %loottables% [(with|using) [[loot] context] %-lootcontext%]Description
Returns the items of a loot table using a loot context. Not specifying a loot context will use a loot context with a location at the world's origin.
Examples
set {_items::*} to loot of the loot table "minecraft:chests/simple_dungeon" with loot context {_context}
# this will set {_items::*} to the items that would be dropped from the simple dungeon loot table with the given loot context
give player loot of entity's loot table with loot context {_context}
# this will give the player the items that the entity would drop with the given loot context