Skip to content

Expand smashing weapons#102

Merged
ErrorCraft merged 2 commits into
0.7.0-preview.2+1.21.11from
smashing-weapon-extensions
Jul 24, 2026
Merged

Expand smashing weapons#102
ErrorCraft merged 2 commits into
0.7.0-preview.2+1.21.11from
smashing-weapon-extensions

Conversation

@ErrorCraft

Copy link
Copy Markdown
Owner

Adds fields to the minecraft:smashing melee weapon component and adds a minecraft:smashing_weapon data component alongside it.
Fields for both the melee weapon component and data component:

  • hit_sounds: A map with sounds. The sounds to play when hitting entities with a smashing attack.
    • in_air: A sound event. The sound to play when airborne.
    • on_ground_small_fall_distance: A sound event. The sound to play when dealing a regular smashing attack.
    • on_ground_large_fall_distance: A sound event. The sound to play when dealing a heavy smashing attack.
  • smash_attack_fall_distance: A positive double. The minimum distance required to fall to deal a smashing attack.
  • heavy_smash_attack_fall_distance: A positive double. The minimum distance required to fall to deal a heavy smashing attack.
  • knockback_power: A positive double. The maximum knockback power to deal to nearby entities when dealing a smashing attack.

Example:

{
  "heavy_smash_attack_fall_distance": 5.0,
  "hit_sounds": {
    "in_air": "minecraft:item.mace.smash_air",
    "on_ground_large_fall_distance": "minecraft:item.mace.smash_ground_heavy",
    "on_ground_small_fall_distance": "minecraft:item.mace.smash_ground"
  },
  "knockback_power": 0.699999988079071,
  "smash_attack_fall_distance": 1.5
}

@ErrorCraft
ErrorCraft merged commit 2a84ae9 into 0.7.0-preview.2+1.21.11 Jul 24, 2026
2 checks passed
@ErrorCraft
ErrorCraft deleted the smashing-weapon-extensions branch July 24, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant