Entity Meta - Item (Expression) — skPackets
Addon: skPackets · Category: Expression · Since: 1.0.0
Syntax
[the] [(fake|packet)] [entity] meta [field] item of %entitymeta%Description
The item property. Value type: ItemType. Applies to item and supported subclasses. Supports set. When editing metadata copied from a packet, set packet meta back to the edited object.
Examples
command /preview-item:
trigger:
set {_mob} to a new fake dropped item entity:
location: location of player
viewers: player
set {_meta} to fake entity meta data of {_mob}
set meta item of {_meta} to diamond
wait 5 seconds
kill fake entity {_mob}