Include a field for nbt data when using "/execute summon", similar to the /summon command. "{}" for no additional nbt data.
Example:
/execute summon item {Item:{id:"minecraft:diamond", count:1}} run function foo:bar
Summons an item entity and runs a function as that item. In this case, the item entity would not immediately despawn.
Please sign in to leave a comment.
0 Comments