How to make custom mob drops In minecraft Bedrock

Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts

Found the internet!

Posted by

Minecraft Bedrock Edition Command-er

2 years ago

Archived

How to make custom mob drops In minecraft Bedrock

This thread is archived

New comments cannot be posted and votes cannot be cast

How to make custom mob drops In minecraft Bedrock

level 1

you can make an addon or edit the vanilla behaviour pack. idk how to do it with commands though. I think it is possible to give them the items but not guaranteed for it to drop when they die.

level 2

Op · 2 yr. ago

Minecraft Bedrock Edition Command-er

Ok, thanks i Will try ti give them the item because i want to make It only with command blocks and because i dont know how to make an addon

level 1

I could help you with an addon if you want, I'm not the best at it but I can help

level 1

· 2 yr. ago

Command Engineer

Glad to help!

You can /replaceitem to increase chances that they drop it, you can execute at the items they drop and use a structure block to load the items there, or you can get an add on.

level 2

Op · 2 yr. ago

Minecraft Bedrock Edition Command-er

I used /replaceitem, but the drop Is too rare

About Community

How to make custom mob drops In minecraft Bedrock

A place for all things about commands, command blocks and data-packs in vanilla Minecraft; to share, to question, to discuss, and more! Please read the pinned post before posting.



You can modify the mob's DeathLootTable NBT to reference a custom loot table. Inside that loot table, you can then use the minecraft:set_attributes, minecraft:set_name and minecraft:set_lore item modifiers to apply attribute modifiers and change the name and lore of the skull item.

Here's an example: let's say that you have a loot table named boss_mob.json inside your data/example/loot_tables/entities folder (you would refer to the loot table as example:entities/boss_mob), and that your mob (in this case, an illusioner) has the example.boss_mob tag (either added by the /tag command or the Tags NBT)

Here's how the setup would look like:

(the command to modify the DeathLootTable NBT of all the entities that have the example.boss_mob tag)

execute as @e[tag = example.boss_mob] run data modify entity @s DeathLootTable set value "example:entities/boss_mob"

(the contents of the data/example/loot_tables/entities/boss_mob.json loot table)

{
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:item",
                    "name": "minecraft:skeleton_skull",
                    "functions": [
                        {
                            "function": "minecraft:set_attributes",
                            "modifiers": [
                                {
                                    "attribute": "minecraft:generic.max_health",
                                    "name": "",
                                    "amount": 8,
                                    "operation": "addition",
                                    "slot": "head"
                                },
                                {
                                    "attribute": "minecraft:generic.attack_damage",
                                    "name": "",
                                    "amount": 3.1,
                                    "operation": "addition",
                                    "slot": "head"
                                }
                            ]
                        },
                        {
                            "function": "minecraft:set_name",
                            "name": {
                                "text": "Skull of the Chosen",
                                "italic": false
                            }
                        },
                        {
                            "function": "minecraft:set_lore",
                            "lore": [
                                {
                                    "text": "Potassium",
                                    "color": "gray",
                                    "italic": false
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

How do you change mob loot in Minecraft?

The loot tables of mobs and containers can be altered with /execute store and /data merge . The player could also grant a loot table to an entity or drop it in the world with /loot .