#Area damage without knockback?

1 messages · Page 1 of 1 (latest)

night iris
#

I'm looking for something like area_attack to deal damage to anything nearby, but I don't want to cause any knockback.
Is there any better way that using an animation controller with the damage command on an interval?

jaunty fulcrum
#

"minecraft:behavior.knockback_roar"

night iris
#

thanks!

jaunty fulcrum
#

the only problem is that this component comes with particles, it only modifies the "roar" particles changing from 40 to 0. this component is only used by the ravager

worldly plinth
fallen vortex
#

wait i think i misread

#

using this tutorial it just removes the particle altogether?

worldly plinth
#

Yes, you could use my attached particle file to remove them in general. Unfortunately this also counts for ravager in this case.

jaunty fulcrum
#

If you want the ravager to keep the particles you have to make new particles and execute them with command in the ravager file

night iris
# jaunty fulcrum you can't delete a particle file, but you can reduce the particle generation to ...

how do you prevent the knockback? I'm using "minecraft:behavior.knockback_roar": { "priority": 1, "duration": 1, "attack_time": 0.25, "knockback_damage": 6, "knockback_strength": 0, "knockback_range": 0, "knockback_filters": { "test": "is_family", "subject": "other", "operator": "==", "value": "peas" }, "cooldown_time": 0.25 }, and even though the filter is impossible and the range is 0, entities are still getting knocked back

jaunty fulcrum
#

"minecraft:behavior.knockback_roar": {
"priority": 1,
"duration": 0.25,
"attack_time": 1,
"knockback_damage": 6,
"knockback_horizontal_strength": 0,
"knockback_vertical_strength": 0,
"knockback_height_cap": 0,
"knockback_range": 3,
"cooldown_time": 0.1
}

night iris
#

it doesn't do anything until I add "knockback_strength": 0, which seems like it just activates the default ravager kb roar

#

I have it on damage:1 for example except it still does 6

#

I tried it in the basic components and in a component group. Is there something with a triggering event that I need to do?

jaunty fulcrum
#

should work fine in version 1.19

night iris
#

I changed a few things around and got it working, but the final working version is exactly the same as the copied version with different values

#
      "priority": 1,
      "duration": 0.25,
      "attack_time": 1,
      "knockback_damage": 6,
      "knockback_horizontal_strength": 0,
      "knockback_vertical_strength": 0,
      "knockback_height_cap": 0,
      "knockback_range": 3,
      "cooldown_time": 0.1
                }``` doesn't work, but  ```"minecraft:behavior.knockback_roar": {
        "priority": 1,
        "duration": 0.05,
        "attack_time": 0.05,
        "knockback_damage": 1,
        "knockback_horizontal_strength": 0,
        "knockback_vertical_strength": 0,
        "knockback_height_cap": 0,
        "knockback_range": 1,
        "cooldown_time": 0.05
    }``` does. edit for formatting
jaunty fulcrum
#

oh yes i was wrong in these values
"duration": 0.05,
"attack_time": 0.05,
duration must be greater than or equal to attack time

night iris
#

that makes sense