Minecraft wiki entry for Pillager, associated text: If a player summons a pillager without a crossbow by spawn event command, it still shoots arrows to attack targets, like other arrow-shooting ranged mobs. This is due to the fact that in the pillager.json and ranged piglin.json files, the component_groups have both minecraft:behavior.ranged_attack and minecraft:behavior.charge_held_item, so if a pillager does not have a crossbow, the "charge_held_item" behavior cannot trigger and it will continuously shoot arrows due to the "ranged_attack" behavior.