Wiki

Clone wiki

Loot Overhaul / New Loot Types - Loot Entity

New Loot Types - Loot Entity

Structure:

Tag Type Description
EntityTag String The tag for the entity to spawn. Put the entity's id in this tag as if this were a spawn egg.

Description:

This item will turn into an entity as soon as it enters the world.

Example Usage: Dropping a silverfish

 {
    "type": "item",
    "name": "lootoverhaul:loot_entity",
    "weight": 1,
    "functions": [
        {
            "function": "set_nbt",
            "tag": "{EntityTag:{id:\"minecraft:silverfish\"}}"
        }
    ]
 }

Example Usage: Dropping a chest minecart with dungeon loot

 {
    "type": "item",
    "name": "lootoverhaul:loot_entity",
    "weight": 1,
    "functions": [
        {
            "function": "set_nbt",
            "tag": "{EntityTag:{id:\"minecraft:chest_minecart\", LootTable:\"minecraft:chests/simple_dungeon\"}}"
        }
    ]
 }
No Previous Back Next - Loot Block

Updated