#what am i doing wrong

174 messages · Page 1 of 1 (latest)

keen sedgeBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

teal sapphire
#

here are the files

#

the texture

#

and the game version is 1.20.1

dusk fog
#

Define "not working"

dusk fog
teal sapphire
#

@dusk fog it doesn’t give me the item

dusk fog
teal sapphire
#

oh mabye

#

it worked seems like im just stupid lol

#

have a good day

#

@dusk fog i have a new peroblem my texture is not loading

dusk fog
#

!faq java-1.19.3-textures

keen sedgeBOT
# dusk fog !faq java-1.19.3-textures
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>
dusk fog
#

TL;DR move your texture to textures/item and put item/ at the start of the texture reference inside your model

teal sapphire
#

@dusk fog so like this

dusk fog
#

no?

#

the red arrows show exactly where you put it

#

and why does it say "texture" now instead of "woodensword"?

teal sapphire
#

this?

dusk fog
#

no

teal sapphire
#

wait

dusk fog
#

if you export the texture from Blockbench directly to textures/item and then export the model it will automatically adjust the path btw.
(if you use the downloaded version of Blockbench)

teal sapphire
#

this?

dusk fog
#

still no

teal sapphire
#

sapce

#

now

dusk fog
#

nope

#

look exactly at what I wrote

teal sapphire
#

this

dusk fog
#

...

#

read exactly what I said to add

teal sapphire
#

i did

dusk fog
#

you didn't

#

what I said: item/
what you did: /item

teal sapphire
#

@dusk fog like this

dusk fog
#

well, it would be either item/woodenstick or item/texture, not both

#

cause you only have 1 texture (afaik)

teal sapphire
#

now?

dusk fog
#

...

#

you got to be trolling at this point

teal sapphire
#

no im not i swear im just dumb and dont understand what your telling me to do you said change on of them so i did

dusk fog
#

I said you should have one of two things, and you chose the non-existent option 3 somehow

#

I tell you to use A or B and you choose C

#

that's why I'm saying you got to be trolling

teal sapphire
#

oh

#

so you want me to change it back

#

?

dusk fog
#

if your texture is (in) textures/item/woodenstick.png then you just write "item/woodenstick"

teal sapphire
#

oh

#

so like this

cerulean cape
#

Are you serious?

teal sapphire
#

dude i am so stupid im sorry

cerulean cape
#

Come back to this when you've gotten some sleep, we won't help you like this

#

Because this is just reading basic instructions at this point

teal sapphire
#

i just woke up 💀

cerulean cape
#

Well do something and come back. Either way, this is a pretty big waste of time

teal sapphire
#

what did i do wrong in the code anyways?

#

i put texture/item/texture like he said

obsidian island
#

at no point did he tell you to put that

teal sapphire
#

ok then ill change it back

obsidian island
#

no, change it to what he told you to put

dusk fog
teal sapphire
#

textures/item/woodenstick.png

#

so this

dusk fog
#

look at the red underlined text

teal sapphire
dusk fog
#

yes

teal sapphire
#

lol

#

im so dumb

#

it still didnt work

dusk fog
#

where in your pack is the texture exactly? (file path)

teal sapphire
#

assets\minecraft\texture\item

cerulean cape
#

And it's called woodenstick.png?

teal sapphire
#

no

#

its called texture.png

dusk fog
#

rename it to woodenstick

teal sapphire
#

ok

#

i did

dusk fog
teal sapphire
#

yeah

cerulean cape
#

Which one..

dusk fog
#

that was an "A or B" question, not a yes/no question

teal sapphire
#

its called texture

dusk fog
#

needs to be called textures

teal sapphire
#

k

#

should i try and see if it works now

cerulean cape
#

After renaming the folder and the texture name, yes

teal sapphire
#

ok

#

it didnt work i jsut reloaded it

small talon
teal sapphire
#

the model is a prototype

obsidian island
#

screenshot the model json file

#

screenshot the texture in the folder

teal sapphire
obsidian island
#

screenshot inside the file

dusk fog
# teal sapphire

just making sure: you remembered to save the changes, right?
(if the file name has a circle next to it it has unsaved changes)

obsidian island
#

and screenshot the WHOLE folder view

teal sapphire
#

and thats the whole thing

obsidian island
#

and of the texture too

teal sapphire
dusk fog
#

k, that looks correct
can you send your woodenstick.json in here?

teal sapphire
dusk fog
#

hmm, don't see a reason why that wouldn't load the texture 🤔

#

can you send your png too just in case something is wrong with it?

obsidian island
#

check the output log

teal sapphire
#

its called woodenstick.png

dusk fog
#

don't see anything wrong with the texture either

#

as Ewan said, try seeing if the output log throws errors/warnings

#

!faq output-log

keen sedgeBOT
# dusk fog !faq output-log
FAQ
Java: Output Log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it.
(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).

teal sapphire
#

ok let me try

#

it worked

#

w

#

w

#

w

#

thank you

dusk fog
#

what worked?

dusk fog
#

did restarting fix it?

teal sapphire
#

the texture worked

obsidian island
#

im guessing they didnt reload the pack? so when they restarted it reloaded

dusk fog
#

but you reloaded the pack earlier, why would it work now 🤔 ?

teal sapphire
teal sapphire
#

maybe it was the restart

dusk fog
#

I blame Iris (or other mods) then xP

teal sapphire
#

ok lol

#

thank you for helping me even if i was being stupid

obsidian island
#

thank you for not getting angry when you were struggling and not understanding

teal sapphire
#

i have one more queston if i make a block model what would this be

obsidian island
#

nothing

teal sapphire
#

and wouldent it be handhelp and placeable

obsidian island
#

you wouldnt have that line

teal sapphire
#

what would it be

obsidian island
teal sapphire
#

so delete it

#

look im trying to make a cannon and when its in my hand it works but when i place it it doesnt work

dusk fog
#

block and item models are separate

#

models/block is for block models, models/item for item models

teal sapphire
#

oh so i couldnt make it like i did the sword

dusk fog
#

If you want it as placed block you just put it in models/block instead of models/item
But you can't do that whole CustomModelData thing, that only works for items

teal sapphire
#

ok

#

so what would i do insted of the custommodeldata

obsidian island
#

nothing. it isnt possible to make new blocks in vanilla. you can only edit existing ones

teal sapphire
#

yeah im editing the dispenser

#

just like i edited the sword

dusk fog
#

if you wanna replace the dispenser with the cannon you just name it dispenser and put it in models/block

teal sapphire
#

and i do this right

dusk fog
#

only if your cannon.png is in textures/block

obsidian island
#

!faq java culling

keen sedgeBOT
# obsidian island !faq java culling
FAQ
Java: Culling

Minecraft hides (culls) the faces between solid blocks to improve performance. To avoid this, remodel a non-solid block. For example: Glass, Pressure Plates, Flowers.
Alternatively, display the model by putting it into the head slot of an invisible Armor Stand or inside an invisible Item Frame, or by using the new Item Display entity.

obsidian island
#

i expect this will be an issue

teal sapphire
#

so what would i do to replace a block

teal sapphire
dusk fog
#

remove dispenser.json
then rename your cannon.json to dispenser.json

teal sapphire
#

ok

#

thanks that was so easy it instintly worked

#

how do i get rid of the bottom

cerulean cape
#

The void block you mean?