#best way to make bows, shields, crossbows

19 messages · Page 1 of 1 (latest)

cloud edge
#

Need help with the additional animations any advice would be appreciated

static kernel
cloud edge
#

I just wanna know how to get my design to work properly in game.

static kernel
#

I can't help you before you answer the question, cause the methods are different

cloud edge
#

I am using it on a server so I think it's the vanilla way since Optifine is modded I believe

static kernel
#

!faq bow-model

sour gardenBOT
# static kernel !faq bow-model

This is an example of an overrides section of the bow.json to add more bows for the vanilla Java Edition.
If you don't know how/where to add this to your bow.json file, copy the one from the default pack (check !faq default-pack if you don't know how to get the files) and replace the overrides section in there with this:

"overrides": [
        { "predicate": {"pulling": 1 }, "model": "item/bow_pulling_0" },
        { "predicate": {"pulling": 1, "pull": 0.65 }, "model": "item/bow_pulling_1" },
        { "predicate": {"pulling": 1, "pull": 0.9 }, "model": "item/bow_pulling_2" },

        { "predicate": { "custom_model_data": 1 }, "model": "custom/fire_bow" },
        { "predicate": { "custom_model_data": 1, "pulling": 1 }, "model": "custom/fire_bow_pulling0" },
        { "predicate": { "custom_model_data": 1, "pulling": 1, "pull": 0.65 }, "model": "custom/fire_bow_pulling1" },
        { "predicate": { "custom_model_data": 1, "pulling": 1, "pull": 0.9 }, "model": "custom/fire_bow_pulling2" }
]```
**Explanation of the predicates:**
_pulling_ = bow gets pulled (either 0 or 1)
_pull_ = how much is the bow pulled in % (numbers from 0 to 1)

You can also have more/less pull models if you want it to look smoother btw.
Keep in mind that the order of predicates matters. It will always use the model of the last predicate in the list whose conditions are all met!
cloud edge
#

does the pull have to be exactly .65? or can it just be a design prefrence?

static kernel
#

if you aren't familiar with editing json I'd suggest copying the default bow.json from the default pack into your own pack, then loading it into Blockbench and editing the predicates in Blockbench (Tools > Edit Predicate Overrides or something along those lines)

static kernel
#

0.65 just means 65% pulled (and is what the default bow uses)

cloud edge
#

so doesn't matter much just its the "image" of what it should look like.

static kernel
#

the model

cloud edge
#

For the json file I've never edited predicates but I assume that I can Look up the same info and input the json file name of the other designs correct?

#

because I made multiple models for the bow already and saved the different json files

#

Just cram the correct names in there correct?

static kernel
#

you will reference them all in bow.json (similar to how the fire_bow model example in the bot message)

cloud edge
#

mmk

#

thank you