#Google said it was a datapack but idk

1 messages · Page 1 of 1 (latest)

fathom dust
#

So, I wanted to make a texture pack so that when I apply a set data number to an armor, it would apply a texture. Does anyone know how to do that? I do not know anything about data packs at all, not even the first folder.

quasi riverBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

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

quasi riverBOT
# quasi river <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

slow rose
#

Is there a particular reason you want to use a number?

fathom dust
#

Because I want to make it so you can not get the thing from crafting for example normal diamond armor

slow rose
#

Not relevant, you can do that without using a number

fathom dust
#

really? Cuz what I did for non textured item was add data with the /give command

slow rose
#

That's not necessary anymore

#

There's two parts to this: the data pack side and the resource pack side, and each side also has two parts: handling the item texture in the inventory, and handling the actual armor when worn

#

On the data pack side, you just make a give command or loot table (latter will be easier) to give an item that has at least an item_model component and an equippable component. Both will reference files you'll make on the resource pack side

#

In the resource pack, you'll make several files, mostly JSONs. For the item:

  • A JSON file at assets/<namespace>/items, which is what the item model component will reference, and itself references the next file
  • A JSON file at assets/<namespace>/models/item, which contains information about the item model (which is necessary even if it's just a 2D sprite) and will reference the next file
  • A PNG file at assets/<namespace>/textures/item, which will be the texture to use

For the armor:

  • A JSON file at assets/<namespace>/equipment, which will be referenced by the equippable component, and references the textures to use for the various armor types
  • Folders at assets/<namespace>/models/entity/equipment named humanoid and humanoid_leggings, each containing the PNG texture files to use for the respective armor types (in this case, Helmet+Chestplate+Boots, and Leggings
fathom dust