mojira.dev
MCPE-181244

Wind charge launches from feet

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.

Linked issues

Attachments

Comments 9

[media][media][media]

To facilitate the process for others, please attach the add-on used to reproduce this.

I'll send it to Golden Helmet (Mod) via private. If I expose the unreleased addon to the public domain, I lose my copyright. I assure you, this is a legitimate issue and its perplexing (but not game breaking).

I'll send it to Golden Helmet (Mod) via private. If I expose the unreleased addon to the public domain, I lose my copyright. I assure you, this is a legitimate issue and its perplexing (but not game breaking).

Can confirm, affects 1.21.10.22. I've attached a behavior pack that changes the blaze's fireball charges to wind charges. According to GoldenHelmet, the cause for this is that the wind charge doesn't have an offset or anchor parameter.

Steps to reproduce:

  1. Load the attached behavior pack in a world with 1.21+ update features enabled.

  2. Spawn a blaze.

  3. Set your gamemode to survival and get shot by it.

Observed results:
All 3 wind charges shot by the blaze will be shot from the lower half/feet of the blaze.

Expected results:
The blaze and any other custom entity that exhibits the ability to shoot wind charges using the "shooter" component should be able to launch them from the upper part/head of their body, just like the vanilla breeze does.

Both the breeze_wind_charge_projectile and the wind_charge_projectile are missing the “anchor” and “offset” parameters in their “minecraft:projectile” components.

The vanilla breeze shoots wind charges from the correct place because it sets its own “anchor” and “offset” within “minecraft:behavior.fire_at_target".

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

I am unable to reproduce this issue with a Blaze. Could you please provide a video showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

1.21 released without repair to the wind charge projectile errors. Maybe the hotfix ? Golden Helmet nailed the issue with the projectile. That is the issue.

1.21 released without repair to the wind charge projectile errors. Maybe the hotfix ? Golden Helmet nailed the issue with the projectile. That is the issue.

Test Pattern

(Unassigned)

1251774

Confirmed

Multiple

Windows 10

1.21.10.22 Preview, 1.20.81 Hotfix, 1.21.0, 1.21.70

Retrieved