#Bow Pulling Texture Not Working [Pls Help]

1 messages · Page 1 of 1 (latest)

woven robin
#

Hey guys so i was able to pull off the standby texture but i am struggling to put the pulling textures too
its not showing when i charge the bow

{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "geyser_custom:molten_bow",
      "materials": {
        "default": "entity_alphatest",
        "enchanted": "entity_alphatest_glint"
      },
      "textures": {
        "default": "textures/items/bow_standby",
        "bow_pulling_0": "textures/items/bow_pulling_0",
        "bow_pulling_1": "textures/items/bow_pulling_1",
        "bow_pulling_2": "textures/items/bow_pulling_2",
        "enchanted": "textures/misc/enchanted_item_glint"
      }
    }
  }
}

item texture

{
  "resource_pack_name": "Molten Armor and Items Textures",
  "texture_name": "atlas.items",
  "texture_data": {
    "molten_helmet": {
      "textures": "textures/items/molten_helmet"
    },
    "molten_chestplate": {
      "textures": "textures/items/molten_chestplate"
    },
    "molten_leggings": {
      "textures": "textures/items/molten_leggings"
    },
    "molten_boots": {
      "textures": "textures/items/molten_boots"
    },
    "molten_magma_animated_weapon_set_axe": {
      "textures": "textures/items/molten_axe"
    },
    "molten_magma_animated_weapon_set_bow": {
      "textures": "textures/items/bow_standby",
      "bow_pulling_0": "textures/items/bow_pulling_0",
      "bow_pulling_1": "textures/items/bow_pulling_1",
      "bow_pulling_2": "textures/items/bow_pulling_2"
    }
  }
}
#

geyser mapping

{
  "format_version": 1,
  "items": {

    "minecraft:netherite_axe": [
      {
        "name": "molten_magma_animated_weapon_set_axe",
        "custom_model_data": 2000,
        "display_name": "Molten Axe",
        "is_tool": true,
        "is_hat": false,
        "texture_size": 787
      }
    ],
    "minecraft:bow": [
      {
        "name": "molten_magma_animated_weapon_set_bow",
        "custom_model_data": 2001,
        "display_name": "Molten Bow",
        "is_tool": true,
        "texture_size": 605
      }
    ]
  }
}

#

all 605x605

woven robin
#

Bow Pulling Texture Not Working [Pls Help]

#

:c

heavy crow
#

hi

heavy crow
# woven robin :c

In Bedrock, bow pulling textures must be defined in the item behavior or attachable entity in a specific way.
Simply adding "bow_pulling_0": "textures/items/bow_pulling_0" under textures is not enough. It usually needs to be defined under overrides or animations.

shadow flicker
#

It has been done through animations and the attachables

woven robin
#

btw what should be in the animation?

#

can i use the default animation from the official resource pack??

shadow flicker
shadow flicker
#

Below is a snippet of my attachable. The main focus is the pre_animation and scripts, this helps mimic the texture change.

      "animations": {
        "wield": "animation.yt_bow.wield",
        "wield_first_person_pull": "animation.yt_bow.wield_first_person_pull"
      },
      "scripts": {
        "pre_animation": [
          "variable.charge_amount = math.clamp((q.main_hand_item_max_duration - (q.main_hand_item_use_duration - q.frame_alpha + 1.0)) / 10.0, 0.0, 1.0f);",
          "v.total_frames = 3;",
          "v.step = v.total_frames /60;",
          "v.frame = query.main_hand_item_use_duration ? math.clamp((v.frame ?? 0) + v.step, 1, v.total_frames) : 0;" 
        ],
        "animate": [
          "wield",
          {
            "wield_first_person_pull": "query.main_hand_item_use_duration > 0.0f && c.is_first_person && query.is_using_item"
          }
        ]
      }

And this is the render controller that controllers the textures

{
  "format_version": "1.10.0",
  "render_controllers": {
    "controller.render.yt_bow": {
      "arrays": {
        "textures": {
          "array.bow_texture_frames": [
            "texture.default",
            "texture.bow_pulling_0",
            "texture.bow_pulling_1",
            "texture.bow_pulling_2"
          ]
        },
        "geometries": {
          "array.bow_geo_frames": [
            "geometry.default",
            "geometry.bow_pulling_0",
            "geometry.bow_pulling_1",
            "geometry.bow_pulling_2"
          ]
        }
      },
      "geometry": "array.bow_geo_frames[math.floor(v.frame)]",
      "materials": [ { "*": "variable.is_enchanted ? material.enchanted : material.default" } ],
      "textures": [ "array.bow_texture_frames[math.floor(v.frame)]", "texture.enchanted" ]
    }
  }
}

This is for how it looks. The pre animations is needed to tell the render controller important values. Then the render controller will change the texture.

#

Tell me if I missed anything

shadow flicker
woven robin
shadow flicker
#

Your welcome

lost wasp
shadow flicker
woven robin
#

Which resulted in invalid custom mapping

#

Ofc the textures was unloaded

#

But when I pulled the bow which was alr I my hotbar the pulling texture worked