#Projectile not damaging & exploding

1 messages · Page 1 of 1 (latest)

final parcel
#

Im trying to create a projectile however when the mob launches the projectile it doesnt seem to explode on contact, deal damage or make the sounds when launched exploded etc, but he does launch it. How can i fix this?

    "description": {
        "identifier": "z3:psycho_projectile",
        "is_spawnable": false,
        "is_summonable": true,
        "is_experimental": false
    },
    "component_groups": {
        "blow": {
            "minecraft:explode": {
                "power": 2,
                "breaks_blocks": false,
                "allow_damage_underwater": true,
                "fuse_length": 0,
                "fuse_lit": true
            }
        }
    },
    "components": {
        "minecraft:projectile": {
            "power": 0.7,
            "shoot_target": true,
            "is_dangerous": true,
            "shoot_sound": "mob.evocation_illager.cast_spell",
            "hit_sound": "mob.ravager_roar",
            "catch_fire": true,
            "on_hit": {
                "definition_event": {
                    "event_trigger": {
                        "event": "blow"
                    },
                    "affect_projectile": true
                }
            },
            "inertia": 1,
            "anchor": 0.5
        },
        "minecraft:collision_box": {
            "width": 1,
            "height": 1
        }
    },
    "events": {
        "blow": {
            "add": {
                "component_groups": [
                    "blow"
                ]
            }
        }
    }
}```
#

Also how can i make the projectile not arch while being shot. How can i make it more like a bullet and straight?

bronze delta
#

Can you neglect the format_version?
This is the proper syntax for entities with format_version 1.16.0 etc.

"minecraft:projectile":{"anchor":1,"angle_offset":0,"gravity":0.02,"offset":[x,y,z],"on_hit":{"definition_event":{"affect_projectile":true,"eventTrigger":{"event":"on:hit","target":"self"}}},"power":4,"uncertainty_base":4}

Turn gravity to 0 to remove bullet drop.

white thicket
bronze delta
#

Thanks, I thought it would be crucial.

white thicket
#

It does look like this was coppied from a file that may have had a format version since the surrounding {} are missing from the text

final parcel
#

There is a format version I just left it out