#Custom Items

1 messages · Page 1 of 1 (latest)

fresh cosmos
#

I've created a custom diamond. I'm using as a currency type item. I've setup components for custom names, the lore, custom models, enchantments glint, and a custom data. I'm trying to add it to the loot table for zombies. Everything works well, I'm just struggling to figure out to stop the newly created item from being able to craft all of the diamond recipes.

Could someone possibly help me out?

sage jettyBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

🙇 If nobody has answered you by <t:1725842502:t>, feel free to use the Summon Helpers button to ping our helper team.

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

noble vault
#

That's unfortunately not something you're able to prevent

#

Typically what one would do is just use an item that doesn't have any uses. Poisonous Potato with the food component removed is a popular choice

naive bay
#

(or music discs with the jukebox playable component removed)

fresh cosmos
#

Hmmm. That's probably why during research I found someone that chooses to use clocks.

#

Well that's a shame. I tried so hard to figure it out. xD

#

I do have another question as well.

#

I noticed, if I was to give myself the item through a command, and get the item through the loot table. It doesn't stack. Why is that?

fresh cosmos
pure delta
#

Even the tiniest difference will cause them not to stack

fresh cosmos
#

Ahh okay, that's what I was thinking was the issue as well.

pure delta
#

What I recommend you do, is simply make a give “function” that references a loot table, so you can copy and paste the components to ensure they all stack with each other.

#

ie, a function named “give_currency” that references a loot table that drops the custom item.

fresh cosmos
#

should I create a loot_table folder inside my namespace and store the item lootable there?

pure delta
#

That’s what I would do, yes.

fresh cosmos
#

I'm having trouble setting up the give command T_T

fresh cosmos
naive bay
#

might not be tho

fresh cosmos
pure delta
#

Just take out that entry, and make a loot table to at drops only that item.

#

Then, make a function that does a “/loot give” to only that loot table.

fresh cosmos
#

Yeah, I did that. I added my loot table to the zombie drop table.

fresh cosmos