#Custom bows
1 messages · Page 1 of 1 (latest)
You can use the minecraft:shooter component and use the bow attachable file to get started
Yea, that is pretty much what I did.
"minecraft:shooter": {
"ammunition": [
{
"item": "minecraft:arrow",
"use_offhand": true,
"search_inventory": true,
"use_in_creative": true
}
],
"max_draw_duration": 1,
"scale_power_by_draw_duration": true,
"charge_on_draw": false
},``` I have this in the item file and I have the attacable for the bow with the same id but nothing happens. Am I missing something?
Could you be more specific on "nothing happens"
Well, the bow won't shoot.
You need the use_modifiers component as well
Yes, I have that too.
"minecraft:use_modifiers": {
"use_duration": 32
},```
But when I right click the bow just doesn't do anything
It doesn't shoot any arrows? Are you holding right click then letting go? What is your format version?
Yes, haha. I shot a bow before ;D, the format version of the item is 1.16.0
{
"format_version": "1.16.0",
"minecraft:item": {
"description": {
"identifier": "pb:crystalized_bow"
},
"components": {
"minecraft:shooter": {
"ammunition": [
{
"item": "minecraft:arrow",
"use_offhand": true,
"search_inventory": true,
"use_in_creative": true
}
],
"max_draw_duration": 1,
"scale_power_by_draw_duration": true,
"charge_on_draw": false
},
"minecraft:use_modifiers": {
"use_duration": 32
},
"minecraft:hand_equipped": true,
"minecraft:max_stack_size": 1
}
}
}``` here is the item file
And here is the attachable
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "pb:crystalized_bow",
"materials": {
"default": "entity_alphatest",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/3D_Items/crystalized_bow",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.crystalized_bow"
},
"animations": {
"hold_first_person": "animation.skeleton_head.hold_first_person",
"hold_third_person": "animation.skeleton_head.hold_third_person"
},
"scripts": {
"animate": [
{
"hold_first_person": "context.is_first_person == 1.0"
},
{
"hold_third_person": "context.is_first_person == 0.0"
}
]
},
"render_controllers": [
"controller.render.item_default"
]
}
}
}```
I'll worry about the draw animation later, for now I want to make it shoot an arrow haha
Update your item code to 1.20.80
Yep, that worked haha
Thanks Smokey a lot
Does the use_animation component still work, I’ve tried using it on my bow but it doesn’t seem to be working
It works yes
hmm
What’s wrong here?
also my mesh is being annoying as well
When I scale it by 2
The width goes up by 2 as well whilst in the model file it stays at 1
It looks as it should in blockbench too
But in game it’s too thick
Sry idk how to send text as json on disc