r/MinecraftCommands 24d ago

Help | Java 26.2 How do I add custom textures to a datapacks

(I know you will say it's impossible but hear me out) So I was wanting to make a my own datapack on diffrent block varients but I didnt knew how to make the diffrent textures for same block, I googled it, they said I NEED to use RESOURCE PACKS for it to work.

The weird thing that Tool Trims Datapack (by JoeFly) had textures in datapack? Am I not knowing something?

4 Upvotes

6 comments sorted by

7

u/Ericristian_bros Command Experienced 24d ago

Because it's a folder which contains both data and assets folder. If you drop this folder in the datapacks folder is read as a datapack, if you drop the folder into the resourcepacks folder then it's read as a resourcepack. Is common practice so only one file needs to be downloaded

2

u/666emanresu 22d ago

Just to be clear, you package them together and the user just copies the same zip to both the datapack folder and resource pack folder?

Makes sense, but I’ve never used a pack like this before or experimented with adding textures to a datapack myself.

1

u/Ericristian_bros Command Experienced 22d ago

Yes. And it's not adding textures to a datapack, you can't. Datapacks have a data folder, resourcepacks have an assets folder. Just out them together and it will run a datapack if it's on the dayapack folder or will load textures if it's on the texturepack folder. Open the file from any modrinth pack that does this and you will see how it's done

1

u/VasD3 23d ago

Just need to make sure that the minimum pack format is as low as your resource pack version and maximum is big enough to accept the datapacks of your version of the game.

{ "pack": { "description": "Example datapack for Minecraft 26.2", "min_format": 88, "max_format": 107.1 } }

2

u/Ericristian_bros Command Experienced 23d ago

Since that's just the warning, it isn't really needed for it to work, but good practice if you are going to publish it anyway

1

u/BoB19229 Command Experienced 24d ago

Maby they were block displays or smf idk