Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-181244

Wind charge launches from feet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.10.22 Preview, 1.20.81 Hotfix, 1.21.0
    • None
    • Confirmed
    • Multiple
    • 1251774

      I have an add-on entity that can throw the wind charge. here is the relevant code

      			// wind_charge -> melee/snowball/bow/crossbow/trident
      			"phantom:wind_charge_ranged_attack": {
      				"minecraft:behavior.ranged_attack": {
      					"attack_interval_min": 3,
      					"attack_interval_max": 3,
      					"attack_radius": 15
      				},
      				"minecraft:shooter": {
      					"def": "minecraft:breeze_wind_charge_projectile"
      				},
      				"minecraft:environment_sensor": {
      					"triggers": [
      						// melee
      						{
      							"filters":{
      								"any_of":[
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:diamond_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:diamond_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:golden_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:golden_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:iron_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:iron_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:netherite_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:netherite_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:stone_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:stone_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:wooden_axe"},
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:wooden_sword"},
      
      									{"test": "has_equipment", "domain": "hand", "value": "minecraft:mace"}
      								]
      							},
      							"event": "phantom:melee_mode"
      						},
      						// snowball
      						{
      							"filters": {
      								"all_of":[{"test": "has_equipment", "domain": "hand", "value": "minecraft:snowball"}]
      							},
      							"event": "phantom:snowball_ranged_mode"
      						},
      						// bow
      						{
      							"filters": {
      								"all_of":[{"test": "has_equipment", "domain": "hand", "value": "minecraft:bow"}]
      							},
      							"event": "phantom:bow_ranged_mode"
      						},
      						// crossbow
      						{
      							"filters": {
      								"all_of":[{"test": "has_equipment", "domain": "hand", "value": "minecraft:crossbow"}]
      							},
      							"event": "phantom:crossbow_ranged_mode"
      						},
      						// trident
      						{
      							"filters": {
      								"all_of":[{"test": "has_equipment", "domain": "hand", "value": "minecraft:trident"}]
      							},
      							"event": "phantom:trident_ranged_mode"
      						}
      					]
      				}
      			},
      

      No problem. All attacks work as expected and animate appropriately - except for the wind charge.

      Every other weapon is properly launched/wielded from the hand. The wind charge launches from the feet, which means sometimes it embeds itself in the ground when attacking short mobs (I used chickens as the target).

      My assumption is this is intended, as the wind charge entity works with fall damage and ground levels, but visually, it feels off shooting from the feet

      I've managed to capture a screenshot my entity launching a wind charge from the feet and having it embed in the ground.

      This may just be a 3rd person camera animation issue? Dunno. I don't care if the wind charge launches from the feet. Maybe its being drop kicked. Cheers.

        1. windcharge.png
          windcharge.png
          240 kB
        2. bug.png
          bug.png
          46 kB
        3. blaze_BP.mcpack
          2 kB

            seeit360 Test Pattern
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: