With a pillager or piglin that spawned with a crossbow, if you remove their weapon with a command, the crossbow will be visually removed. when attacking, instead doing melee damage, they will still shoot arrows, and will shoot at a faster time than usual. Entities with weapons spawned naturally also have no durability on their weapons and do not break, unlike Java edition.
Steps to reproduce:
Choose a hostile mob that spawns naturally with a crossbow.
on the entity, run this command:
/replacitem entity @e[type={entity)] slot.weapon.mainhand 0 air
Notice how the entity has had their crossbow removed.
Enter survival, and make the entity attack you.
What happens:
The entity will still shoot arrows, even without a crossbow.
Expected outcome:
The entity should not shoot arrows without a crossbow, and instead to melee or no damage at all.
If you want to try other things other than air, replace the air at the end of the command with another item.
Linked issues
Attachments
Comments 1

Thank you for your report!
We're tracking this issue in MCPE-57893 and MCPE-70614, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main tickets it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki