#Custom bows

1 messages · Page 1 of 1 (latest)

hardy ermine
#

Is there any easy way to make custom bows? With the possibility to use the vanilla animations

cyan zinc
hardy ermine
# cyan zinc You can use the `minecraft:shooter` component and use the `bow` attachable file ...

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?
cyan zinc
hardy ermine
#

Well, the bow won't shoot.

cyan zinc
#

You need the use_modifiers component as well

hardy ermine
#

But when I right click the bow just doesn't do anything

cyan zinc
hardy ermine
#

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

cyan zinc
#

Update your item code to 1.20.80

hardy ermine
#

Thanks Smokey a lot

jaunty horizon
jaunty horizon
#

hmm

#

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

jaunty horizon