#Custom Bow won't load

1 messages · Page 1 of 1 (latest)

native void
#

For referencing purposes here's all of the files I think would be useful

  "format_version": "1.21.0",
  "animations": {
    "animation.bow.wield": {
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [
            "c.is_first_person ? -5.5 : 0.5",
            "c.is_first_person ? -3.0 : -2.5",
            "c.is_first_person ? -3.0 : 1.0"
          ],
          "rotation": [
            "c.is_first_person ? 38.0 : 0.0",
            "c.is_first_person ? -120.0 : 0.0",
            "c.is_first_person ? -63.0 : 0.0"
          ]
        }
      }
    },
    "animation.bow.wield_first_person_pull": {
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [
            -1.5,
            " 2.5 + ( variable.charge_amount  >= 1.0 ? math.sin( (q.life_time) * 1000.0 * 1.3) * 0.1 - math.sin(q.life_time * 45.0) * 0.5 : 0.0)",
            -4.8
          ],
          "rotation": [
            -53.0,
            8.0,
            35.0
          ]
        }
      }
    }
  }
}```
#
    "format_version": "1.21.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "hq:gold_bow",
            "materials": {
                "default": "entity_alphatest",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "gold_bow_standby": "textures/items/gold_bow_standby",
                "gold_bow_pulling_0": "textures/items/gold_bow_pulling_0",
                "gold_bow_pulling_1": "textures/items/gold_bow_pulling_1",
                "gold_bow_pulling_2": "textures/items/gold_bow_pulling_2"
            },
            "geometry": {
                "default": "geometry.gold_bow_standby",
                "pulling_0": "geometry.gold_bow_pulling_0",
                "pulling_1": "geometry.gold_bow_pulling_1",
                "pulling_2": "geometry.gold_bow_pulling_2"
            },
            "animations": {
                "wield": "animation.bow.wield",
                "wield_first_person_pull": "animation.bow.wield_first_person_pull"
            },
            "scripts": {
                "pre_animation": [
                    "variable.charge_amount = math.clamp((query.main_hand_item_max_duration - (query.main_hand_item_use_duration - query.frame_alpha + 1.0)) / 10.0, 0.0, 1.0f);"
                ],
                "animate": [
                    "wield",
                    {
                        "wield_first_person_pull": "query.main_hand_item_use_duration > 0.0f && c.is_first_person"
                    }
                ]
            },
            "render_controllers": [
                "controller.render.gold_bow"
            ]
        }
    }
}```