#Resource pack doesn't work

46 messages · Page 1 of 1 (latest)

compact prawn
#

at the start it was the weird black purple bug block and now its just the normal bow again I don't know if i did something in the bow.json file wrong but I tried many thing

acoustic mauveBOT
#
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.

compact prawn
sleek rose
compact prawn
sleek rose
sleek rose
#

k, then your problem is that you didn't load the textures from a resource pack, but from some random location on your PC

sleek rose
#

or, I guess you did load it from a pack, but the location wasn't a valid one

#

If you are using default textures you do not need them in your own pack.
Just load them from a copy of the default pack and then only export the model into your pack.
(You can also link that copy in File > Preferences > Settings -> Default Path so that Blockbench loads textures from there if you open the .json model again)

#

The reason as to why it's not working atm is cause you told your model to look for the textures directly in the "textures" folder, but a resource pack can only, by default, look within textures/item and textures/block for textures unless specifically specified otherwise.

compact prawn
sleek rose
#

if yes, show the first few lines of text of your .json file

compact prawn
# sleek rose as in you loaded them from the correct location to your model, then re-exported ...

yes i did reexport it

{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "block/oak_log",
"1": "block/pink_concrete",
"particle": "block/oak_log"
},
"elements": [
{

thats from the blockbench .json file

{
"parent": "item/generated",
"textures": {
"layer0": "item/bow"
},
"overrides": [
{"predicate": {"custom_model_data":1}, "models": "custom/Yobo"}
]
}

and thats everything from the bow .json file

sleek rose
#

you can't have capital letters in the file names

#

so rename Yobo.json to yobo.json and adjust the reference in the overrides too

#

also, custom_model_data no longer works like that as of 1.21.2 (or one of the 1.21.X versions)

sleek rose
#

k, should your yobo bow have pulling phase models or should it stay the same model througout the whole thing?

#

either way, you make a folder called "items" in the "minecraft" folder (right next to "models" and "textures" etc.), then create a .json file with this inside:

yobo.json

{
  "model": {
    "type": "minecraft:condition",
    "on_false": {
      "type": "minecraft:model",
      "model": "minecraft:item/yobo"
    },
    "on_true": {
      "type": "minecraft:range_dispatch",
      "entries": [
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/yobo_pulling_1"
          },
          "threshold": 0.65
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/yobo_pulling_2"
          },
          "threshold": 0.9
        }
      ],
      "fallback": {
        "type": "minecraft:model",
        "model": "minecraft:item/yobo_pulling_0"
      },
      "property": "minecraft:use_duration",
      "scale": 0.05
    },
    "property": "minecraft:using_item"
  }
}```

if you don't want to have different models for the pulling states you instead use
```json
{
  "model": {
    "type": "minecraft:model",
    "model": "minecraft:item/yobo"
  }
}
#

you then delete the bow.json you currently have in models/item

#

and then ingame you use /give @s bow[minecraft:item_model='minecraft:yobo']

compact prawn
#

its the black purple bug block now

sleek rose
#

you have your yobo.json model in models/item, correct 🤔 ?

#

(you should have 2 yobo.json files in your pack, the one in the items folder as explained up there, and your actual model in models/item)

compact prawn
#

yeah i have it

#

ah nv

#

i have the other one in custom

sleek rose
#

ah, adjust the model path in the item definition file then (the one in the items folder)

#

from item/ to custom/

compact prawn
#

it works!!!!

compact prawn
compact prawn
sleek rose
#

that doesn't sound like it should work then 🤔
unless you mean to say you moved your model to models/item instead

compact prawn
#

and is there a way that the bow always looks like this and not only when you use the command

sleek rose
#

well, if you want to completely replace the bow you just rename your yobo.json to bow.json in models/item (and don't need the file in the items folder anymore)

compact prawn
#

yes thanks!!!!!

compact prawn
sleek rose
#

if you add bow_pulling_0.json models etc. then yes

compact prawn