#Wanted shield texture not loading

98 messages · Page 1 of 1 (latest)

untold pollen
#

I tried making a custom shield texture pack but when I put it all together and loaded the texture pack, this shows up.

rancid trench
#

!faq output-log

strange acornBOT
# rancid trench !faq output-log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it: https://i.imgur.com/WbQZa6k.png
(PS: Optifine likes to hide vanilla errors/warnings for some weird reason, so always load the game up without it if you don't need it for your pack to work!)
If you don't understand the errors/warnings feel free to show and ask about them (in a help channel).

untold pollen
#

after enabling it can I load the pack in lunar client rather than from the minecraft launcher?

#

Where do I see what the error is?

rancid trench
#

No

#

You have to use the Minecraft launcher for that

untold pollen
#

I found the output system while using the minecraft launcher

#

should I screenshot what showed up in red and show it?

rancid trench
#

open your shield_blocking.json in a text editor and show the first few lines of text

untold pollen
rancid trench
#

yeah, those texture paths aren't valid

untold pollen
#

How can I correct it?

rancid trench
#

!faq java-textures-folder

strange acornBOT
# rancid trench !faq java-textures-folder

https://cdn.discordapp.com/attachments/549198394925514753/698458610958860298/2Q.png
Jokes aside, textures need to be anywhere inside the "YourPack/assets/minecraft/textures" inside your pack. If you are in 1.19.3 or newer they need to be in textures/item or textures/block.
If you are using the downloaded version of Blockbench make sure you also load the textures from the correct location into Blockbench (or save textures from BB directly there), or the relative texture path inside the model will break.
If you are using the web version you need to rightclick every texture and specify the folder path (after "textures") and name of every texture manually instead.

If you are using wanna use custom subfolders in 1.19.3 or newer use !faq java-1.19.3-textures

rancid trench
#

also, I'm not sure if Blockbench plays nice with cloud storage like OneDrive

untold pollen
#

do all the shield.jsons count as textures or do i just need to reroute the nobasepattern png

#

?

untold pollen
#

do I also move the shield json to textures?

rancid trench
#

textures and models are very different and very separated things

untold pollen
#

so I would leave the shield jsons

#

So I moved the png to textures and left the jsons in the models

#

then I loaded up blockbench and repeated the same path

rancid trench
#

and repeated the same path
show me what you mean by that

untold pollen
#

after i put the revised textures and loaded it up but it still shows the weird purple and black tiles

#

shieldmandalatest(my texture pack) --> assets-->minecraft-->textures-->shieldtexture-->shield_base_nopattern.png

rancid trench
#

yeah, but how did you "repeated the same path"

#

did you manually write a path somewhere or what did you do exactly?

untold pollen
#

since I have my shield texture (png) in the assetts--> minecraft etc I went to blockbench and went throught the same folders of assetts--> minecraft etc and found the same png and applied it to my models again

#

after applying it I exported te models to assets--> minecraft--> models --> item --> ____

rancid trench
#

k, can you open your model in a text editor again and show what the texture path looks like now?

untold pollen
#

I'm a bit confused do you want me to open the code for the shield jsons, also how would the texture path be different?

#

uh im just going to show u the screenshots of the shield jsons

rancid trench
#

K, so shield_normal will never be used. Neither will shield (1)
And if you are in 1.19.3 or newer you need to keep this in mind:

#

!faq java-1.19.3-textures

strange acornBOT
# rancid trench !faq java-1.19.3-textures

General Information:
The game creates a "texture atlas" (combination of all textures into one file) for block/item models.
For performance reasons as of Java 1.19.3 the game by default only loads textures from within textures/item and textures/block (and any folders within those two folders) into that atlas instead of reading through every model for the relevant textures.

_________________________

Making the game load from custom directories
If you want the game to add textures from other directories (that are still somewhere within the "textures" folder) to that atlas you will need to create a blocks.json file in YourPack/assets/minecraft/atlases:

Example blocks.json

{
    "sources": [
        {
            "type": "directory",
            "source": "custom",
            "prefix": "custom/"
        }
    ]
}```
This example would make the game add _all_ textures that are within `textures/custom` to the atlas. This **even** applies to images that are not used by your models, so keep your pack clean for better performance and smaller size!.

**_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_**

**Additional/more specific information**:
If you have several custom directories you can add several json objects in the "sources" list/array.
blocks.json's of different packs combine btw, so you don't need to worry that one pack will stop another pack from loading their textures.

Here is also an example pack from a Minecraft dev (boq) with some more specific examples (like only using the face part of the default pig texture instead of loading all entity textures or the whole pig texture): <https://cdn.discordapp.com/attachments/593812273164976166/1042452631743901756/sprites.zip>

The official blog post with the changes (you will have to scroll down quite a bit for the relevant information): <https://www.minecraft.net/en-us/article/minecraft-snapshot-22w46a>
untold pollen
#

The texture pack will be used in 1.20 so I don't need to know all that right?

#

what changes do I need to make so that the normal and shield (1) will be used

#

btw if you remember a while back I had consulted you before to make the same pack in an earlier version

#

and you were nice enough to give me those files and the blocking one was the only one that worked at that time as well

rancid trench
rancid trench
untold pollen
#

o

#

so I alreday have all the other textures aside from the shield one removed and I renamed the shield (1) to shield

#

to have the atlas actually look at my models

#

would I just replace "custom" with model?

untold pollen
#

?

rancid trench
untold pollen
#

would I replace both of the customs with "shieldtexture"?

rancid trench
#

yes

untold pollen
#

ok ill give it a try!

#

wait how do I create the blocks.json file

#

do i name it blocks.json

#

I added the example and changed the custom to shieldtexture but I am unsure of what to name the file

rancid trench
#

(assuming you are talking about the .json file in the altases folder)

untold pollen
#

yes i am

#

in my texture pack i deleted the atlases folder because I thought it wasnt necessary and would hinder performance but in the 1.20 folder which contains all the code for 1.20 there is already a blocks.json, should I create an atlas folder in my texture pack with just the blocks.json?

rancid trench
#

yes

#

"atlases" folder, not "atlas" folder

untold pollen
#

So the texture works when I am blocking but not when I am just holding it, but I'm fine with that

#

and If i want to adjust the position I simply need to make the changes I want then export it again and replace the previous one right?

#

I resized the shield and it doesnt work again 😦

#

the problem is that the resource pack simply doesnt show up

rancid trench
rancid trench
untold pollen
#

Yes

rancid trench
#

The only thing that would make a pack stop showing up is if the pack.mcmeta isn't there anymore

untold pollen
#

the pack.mcmeta is still in there

rancid trench
#

well, then there is no reason for it to no longer show up

untold pollen
rancid trench
#

check your output log after you opened the resource packs screen and see if any errors/warnings pop up

untold pollen
#

OK

#

(i renamed the pack)

rancid trench
# untold pollen

you swapped the pack_format and description line if I had to guess
at least based on where you put your comma

#

in .json (And basically everywhere else) you only have commas between different entries of a list/array/object, never after the last entry

untold pollen
#

So should I swap the packformat and description and then remove the comma after 15?

rancid trench
#

no, the order of those two doesn't matter
where the comma is does

untold pollen
#

how do I fix it?

rancid trench
#

only have commas between different entries of a list/array/object, never after the last entry

#

like, if you list a bunch of things in a sentence, you only put a comma between the parts of that list, not after the last one, right?
apples, bananas, pears
like that
(and the same principle goes for .json and other formats like that)

untold pollen
#

oh it works!

#

thank you for all the help!

#

can I keep this open because im going to edit a little more

rancid trench
#

yeah, just remember to close it with !close if you think there will be no more follow up quesitons

untold pollen
#

It works thank you so much!

#

I am so sorry that this took so long

#

!close