#help pls

204 messages · Page 1 of 1 (latest)

lyric anvil
#

how do i give my self the sword?

woeful totemBOT
#
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.

lyric anvil
#

im on 1.21.11

bronze arrow
lyric anvil
#

so i made the sword and how do i get the command for it??? because i might be getting the wrong sword its black and pink

lyric anvil
#

{
"credit": "Made with Blockbench",
"parent": "minecraft:item/handheld",
"textures": {
"0": "minecraft:item/FrostSwordTexture",
"particle": "minecraft:item/FrostSwordTexture"

#

{
"parent": "minecraft:item/handheld",
"texture_size": [32, 32],
"textures": {
"0": "minecraft:item/FrostSwordTexture",
"particle": "minecraft:item/FrostSwordTexture"

bronze arrow
bronze arrow
#

(No spaces either, just fyi)

lyric anvil
#

how do i get the command tho

bronze arrow
#

Or frost_sword_texture

#

Whatever you wanna name it basically (as long as it has no capital letters or spaces)

lyric anvil
#

alright

#

the tutorial's that i have watched is sometimes for bedrock

bronze arrow
# lyric anvil how do i get the command tho

Well, currently that's just a model file.
Unless you named it like an existing item to replace an existing item (e.g diamond_sword.json) you will need a second file (assuming you are in 1.21.2 or newer)

lyric anvil
#

1.21.11

#

do i need a dapatack?

#

for the command

bronze arrow
#

No

lyric anvil
#

and the folder is netherite_sword

bronze arrow
# lyric anvil and the folder is netherite_sword

If you want it to replace all netherite swords (without a command) it needs to be models/item/netherite_sword.json

If you want it only accessible via a command, then rename the model file to something more unique (e.g. frost_sword.json).

Then in
assets/minecraft/items/ (not to be confused with models/item!) create another new file called frost_sword.json (completely separate file from your model!) and put this inside:

{
    "model": {
        "type": "model",
        "model": "minecraft:item/frost_sword"
    }
}```
-# (adjust the model reference according to your model's position and name in your pack, this example assumes it would be in models/item)
lyric anvil
#

i dont wanna replace all netherite sword with that

#

and i dont have a folder called items only textures and models inside of minecraft

bronze arrow
#

Then create that folder

lyric anvil
#

what do i do to make it not apply to every neth sword?

bronze arrow
#

I already answered that in that message

lyric anvil
#

oh

#

can you give the command?

bronze arrow
#

And after you have added that extra file you can later use
/give @s netherite_sword[item_model=frost_sword] to give it the the model you specified in minecraft/items/frost_sword.json

lyric anvil
#

alr wait

#

why is it glitched i meant

#

the png

#

oh wait

lyric anvil
#

do you guys have a template for this?

bronze arrow
#

can you tell me where your 2 .json files are in your pack and what they are named?

lyric anvil
#

my template might be wrong

#

assets/minecraft/textures.items.models/item

#

textures/item/png

#

models/item/json

#

models/item/frostsword/1.json

bronze arrow
#

k, I see the problem(s)

#

the .png is fine, one of your .json is the problem:
What I sent earlier needs to be in
assets/minecraft/items/frostsword.json
not inside models/item

and if you named your model file "1" you need to adjust the model path inside the code I sent earlier to
"minecraft:item/frostsword/1

lyric anvil
#

theres 2 frostsword

#

one in items

#

and one in models

#

do i delete that?

bronze arrow
#

k, that's fine

#

no

lyric anvil
#

i watched a tutorial and they said make a netherite_sword and netherite_sword folder

bronze arrow
#

yeah, you don't need to do that

#

you can do that, but it's not a requirement

lyric anvil
#

oh

bronze arrow
#

So just to make sure, you currently have the following folders and files with those exact names?
assets/minecraft/items/frostsword.json (with the text inside that I sent earlier)
assets/minecraft/models/item/frostsword.json (your actual model file)

lyric anvil
#

lemme restart everything

#

and i also need the exact path am i right?

bronze arrow
#

your folder and files need to be called exactly what i just wrote if you mean that

#

-# (had a typo in there)

lyric anvil
#

do i still need to set the path something like this
minecraft/models/item/frost_sword

#

?

bronze arrow
#

the content of your minecraft file should be this:

{
    "model": {
        "type": "minecraft:model",
        "model": "minecraft:item/frost_sword"
    }
}```
This is a working example
lyric anvil
#

oh

bronze arrow
#

since that model path tells the game to load the model at assets/minecraft/models/item/frost_sword.json

lyric anvil
#

i removed the /frost_sword.json ngl

#

{
"parent": "minecraft:item/handheld",
"texture_size": [32, 32],
"textures": {
"0": "minecraft:item/frost_sword_texture",
"particle": "minecraft:item/frost_sword_texture"
}
}

is this good enough?

#

also is there like a template?

bronze arrow
lyric anvil
bronze arrow
#

k, can you zip and send the current pack you are trying to use?

lyric anvil
#

im scrolling on youtube rn

bronze arrow
#

that has all the errors I mentioned before

lyric anvil
#

so can you see the problem?

bronze arrow
#

and none of the solutions I mentioned

lyric anvil
#

damn

bronze arrow
#

are you sure you sent the correct one?

lyric anvil
#

yes

#

i thought the only problem was the the frost_sword.json and i deleted it

bronze arrow
#

then why is the texture still all capital letters and there is still a netherite_sword folder and no .json files called frost_sword?

bronze arrow
lyric anvil
#

i actually changed it earlier

#

wait

bronze arrow
#

also, it should be "assets" without a capital letter too

lyric anvil
#

i think it did not saved

#

i changed it this time

#

hopefully its saved

#

not that one wait

#

this is updated hopefully

bronze arrow
#

k, that looks more up to date, yeah

bronze arrow
lyric anvil
#

i copied that

#

{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/frost_sword"
}
}

i copied this and pasted it in there

bronze arrow
#

well, seems like you didn't save that one then before zipping

lyric anvil
#

i think the issue is when its compressed zipped alr you can't change it?

#

im changing it in a compressed zip

bronze arrow
#

next up, in your models/item/frost_sword.json.json, remove one of the .json from the name, and remove this whole "parent" line in it:

bronze arrow
#

only zip when you need to send it to someone (or upload it somewhere)

#

a pack can work just fine as a normal folder

bronze arrow
#

also, get rid of the frost_sword folder and the 1.json inside of it (not a mistake, but you don't need them)

lyric anvil
bronze arrow
#

as long as the folder is positioned in your resourcepacks folder like this ".minecraft/resourcepacks/MyFrostSword/assets/...

#

also, fix this to lowercase as well

lyric anvil
#

uhm

#

wait

#

i dont have teh json.json

bronze arrow
#

are you on Windows?

lyric anvil
#

yes

#

your looking at the MyFrostSword.zip

lyric anvil
bronze arrow
#

then enable file exentions in the View settings of the file explorer

lyric anvil
#

that's been on

#

we're just looking at a different folders

bronze arrow
#

I see .json.json here

#

which would mean it's a .json file and has .json as part of its file name

lyric anvil
#

no no no im looking at Frostsword3.0

bronze arrow
#

yeah, that one

#

I just overwrote the old one

lyric anvil
#

oh

bronze arrow
#

hence why it's still called MyFrostSword.zip

lyric anvil
#

i removed the extra frost_sword folder

#

so whats next

#

its not pink and and black now i see the model but its fully black 💀

#

the color is fully black

bronze arrow
#

k, that just means the texture path in the model isn't correct, but everything else is correct

lyric anvil
bronze arrow
#

hmm, don't see a reason why it wouldn't find the texture 🤔

#

does the output log throw any errors?

#

!faq output-log

woeful totemBOT
# bronze arrow !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).

lyric anvil
#

im not using real minecraft

#

diff launcher

#

but lemme try and find it

#

[17:11:59] [Render thread/ERROR]: Couldn't load file/MyFrostSword3.0.zip pack metadata: Pack declares support for version newer than 64, but is missing mandatory fields min_format and max_format

#

what does this mean

lyric anvil
bronze arrow
#

any other errors/warnings?

lyric anvil
#

no

#

wait lemme reload my launcher

#

i found it

#

[17:27:37] [Worker-Main-46/WARN]: Missing textures in model minecraft:item/frost_sword:
minecraft:block_or_item:minecraft:minecraft/textures/item/frost_sword_texture

bronze arrow
#

F3+T should be fine to reload the output

lyric anvil
#

is that the right one

bronze arrow
#

yeah

#

are there any relevant messages (not just warnings/errors) before/after that message as well?

lyric anvil
#

wait

#

i think its just this [17:28:41] [Render thread/ERROR]: Couldn't load file/MyFrostSword3.0.zip pack metadata: Pack declares support for version newer than 64, but is missing mandatory fields min_format and max_format

#

and the missing one

#

[17:28:41] [Render thread/INFO]: Reloading ResourceManager: vanilla, file/MyFrostSword3.0 (1), server/0000000A/5fd887c9-8bb8-3e50-8ef5-bbde73eb3b91
[17:28:41] [Worker-Main-45/INFO]: Found unifont_all_no_pua-17.0.01.hex, loading
[17:28:41] [Worker-Main-44/INFO]: Found unifont_pua-17.0.01.hex, loading
[17:28:41] [Worker-Main-45/INFO]: Found unifont_jp_patch-17.0.01.hex, loading

bronze arrow
#

loads fine for me

lyric anvil
#

wth

#

can you send the zip?

#

oh

#

i know now

#

nevermind

#

i still dont know how you fixed it

lyric anvil
bronze arrow
#

I didn't touch anything related to the texture

#

I only fixed the things I also told you to fix (removing capital letters, the .json.json etc.)

lyric anvil
#

yea its not loading it

bronze arrow
#

as in not even with my .zip?

lyric anvil
#

yea

lyric anvil
bronze arrow
#

Tried it in 1.21.11, but should work in any version that's 1.21.2 or newer

lyric anvil
#

is there a mod requirement for ts?

#

i think its the texture

bronze arrow
lyric anvil
#

lemme recheck my logs

bronze arrow
#

try in singleplayer as well (so no server pack can screw anything over)

lyric anvil
#

alr

#

minecraft:item/frost_sword_texture

#

is ts right?

#

@bronze arrow

bronze arrow
#

yes

#

as I said, the zip I sent works just fine for me ingame

lyric anvil
#

wtf

#

it works in singleplayer

#

but not in the serve

bronze arrow
#

then the server pack is overwriting something

lyric anvil
bronze arrow
#

I mean the server's resource pack is

lyric anvil
#

there's none

bronze arrow
#

[17:28:41] [Render thread/INFO]: Reloading ResourceManager: vanilla, file/MyFrostSword3.0 (1), server/0000000A/5fd887c9-8bb8-3e50-8ef5-bbde73eb3b91

#

"vanilla" is the default one
"MyFrostSword3.0 (1)" is yours
and "server/0000000A/5fd887c9-8bb8-3e50-8ef5-bbde73eb3b91" refers to a server resource pack

lyric anvil
#

oh

#

it worked

#

now im closing this