#How do you make area of effect projectile not hurt the operator

1 messages · Page 1 of 1 (latest)

spring halo
#

before I had gotten around this issue by increasing the spawning offset, but the offset is causing problems so I need to get rid of it, but if I do, then the AOE attack will hurt the person using it.

#

Heres the file:

{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "bridge:thrown_avatar.flameazuleflameshot",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false,
"runtime_identifier": "minecraft:snowball"
},
"components": {
"minecraft:collision_box": {
"width": 0.25,
"height": 0.25
},
"minecraft:projectile": {
"on_hit": {
"impact_damage": {
"damage": 15,
"knockback": true,
"power_multiplier": 99
},
"remove_on_hit": {},
"particle_on_hit": {
"particle_type": "snowballpoof",
"num_particles": 0,
"on_entity_hit": true,
"on_other_hit": true
}
},
"anchor": 1,
"power": 5,
"gravity": 0.02,
"angle_offset": 0,
"offset": [
0,
-0.1,
3
]
},
"minecraft:physics": {},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:area_attack": {
"cause": "fire_tick",
"damage_per_tick": 10,
"damage_range": 1.8
},
"minecraft:despawn": {
"despawn_from_distance": {
"min_distance": 70,
"max_distance": 70
}
}
}
}
}

spring halo
#

@shy crystal u know how to do this?

shy crystal
#

There probably is a way, but I use an offset for my projectiles as well

spring halo
#

that's unfortunate

spring halo
#

@shy crystal do you know how to make a temporary block? like you place it then a few seconds later it disappears?

trail pier
#

Hello better late than never but

#

"components": {
"minecraft:cannot_be_attacked": {},
"minecraft:area_attack": {
"damage_per_tick": 10,
"damage_range": 2,
"cause": "entity_attack",
"entity_filter": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "player"
}
},
"minecraft:projectile": {
"on_hit": {
"impact_damage": {
"damage": 50,
"knockback": true,
"catch_fire": false,
"semi_random_diff_damage": false,
"filter": [
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "ridable"
}
]
}
},
"multiple_targets": true,
"power": 10.0,
"gravity": 0,
"inertia": 1.2,
"liquid_inertia": 1,
"anchor": 2,
"offset": [
0,
0.5,
0
],
"uncertainty_base": 0.0,
"reflect_on_hurt": true
},

#

the key is using for the area attack "entity_filter": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "player"
}

#

and "filter": [
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "ridable"
}
for the projectile