Has Loot Table (Condition) — Skript
Addon: Skript · Category: Condition · Since: 2.10
Syntax
%blocks/entities% (has|have) [a] loot[ ]tableDescription
Checks whether an entity or block has a loot table. The loot tables of chests will be deleted when the chest is opened or broken.
Examples
set event-block to chest
if event-block has a loot table:
# this will never happen, because it doesn't have a loot table.
set loot table of event-block to "minecraft:chests/simple_dungeon"
if event-block has a loot table:
# this will happen, because it now has a loot table.