#A CMD not working in a block loot table

1 messages · Page 1 of 1 (latest)

hasty sigilBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

urban wyvern
#
{
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:item",
                    "name": "minecraft:angler_pottery_sherd",
                    "functions": [
                        {
                            "function": "minecraft:set_name",
                            "name": "Plant fiber"
                        },
                        {
                            "function": "minecraft:set_nbt",
                            "tag": "{custom_model_data:10}"
                        }
                    ],
                    "conditions": [
                        {
                            "condition": "minecraft:random_chance",
                            "chance": 0.15
                        }
                    ]
                }
            ]
        }
    ]
}
#

btw im using a cmd tha is for another item I made (I just want to do the same item but with a different way to get it)

rigid crown
#

It could be that you don’t have proper syntax

urban wyvern
#

I made it with that page

#

it doesnt show any syntax error 😕

vernal bay
#

What is the version

sacred spruce
#

custom_model_data is just in the model file and in the newest snapshots, in 1.20.4 and back, the nbt is called CustomModelData

urban wyvern
#

oh

#

ty ill try that :)

hasty sigilBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.

hasty sigilBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.