mojira.dev
MCPE-238365

Custom Bows using the "minecraft:shooter" and "minecraft:use_duration" do not hold the final "max_draw" unless "use_duration" is set to high very high values

When creating a custom bow, “use_duration” in the “minecraft:use_modifiers” component must be set to an absurdly high value in order to keep the bow on its max pulled state. This breaks both the animation from “minecraft:use_animation” and causes you to stop pulling the bow back after the reaching the specified “use_duration”

Steps to reproduce:

  1. Give yourself the first example Bow with a “use_duration” of 1 “/give @s runecraft:bow”

  2. Right click to pull the Bow and hold. The observable result will be after 1 second, you will stop charging the Bow.

  3. Give yourself the second example Bow with a “use_duration” of 30 “/give @s runecraft2:bow”

  4. Right click to pull the Bow and hold. The observable result will be initiating the Bow animation that will play over a duration of 30 seconds. After the 30 seconds, you will stop charging the Bow.

Expected Result: The custom Bow plays the draw animation at the expected speed, then holds the animation on the final frame regardless of use duration for as long as the player holds down the use button.

Actual Result: The custom Bow with “minecraft:use_animation” has it’s animation length changed to whatever “use_duration” is and the final pull will end based on what “use_duration” is set to.

Potential Solution Ideas:

  1. Add an additional property to “minecraft:use_modifiers”

"minecraft:use_modifiers": {
        //requested property "hold_final_frame": true,
        "use_duration": 1,
        "movement_modifier": 0.34
      },
  1. allow “infinite” as an accepted value for “use_duration” and add “animation_length” to “minecraft:use_animation”

"minecraft:use_modifiers": {
        "use_duration": "infinite",
        "movement_modifier": 0.34
      },
"minecraft:use_animation": {
        "animation": "crossbow",
        "animation_length": 1
      }

Attachments

Comments 1

Estrongel

(Unassigned)

Unconfirmed

Multiple

Windows 11

26.30.21 Preview

Retrieved