you can make a procedure with the global trigger of entity spawned in if the entity is a pillager summon (custom mob) with this, when a pillager spawns in a raid, it will spawn in with the custom mob if you don't want the pillager there, you can use the despawn event/target entity block
Step 1. Go to the AI and goals tab in your entity element and select the entity base of a random mob and save the element.
Step 2. Lock your entity element and then open the (YourMob)Entity.java next find the code extends (The Mob entity base you used) then change it to a vindicator because vindicators have no special abilities and if you select this your mob will only use the attacks you set it to do.
Step 3. press CTRL + W to reload the code. Next press CTRL + S and it will save the code.
Step 4. exit the code panel and open the game.
Step 5. now your mob can join raids. (Does not spawn in raids though but to do that replace a random Illager in the raid with you r mob or just spawn it on top of the mob)
If you go to the top and find the tag button, you can add a tag into your workspace called "minecraft:raiders", and under that, add your mob.
Sadly didn't work got any other ideas?
My next tutorial is custom raids.
example
Minecraft Custom Raids - YouTube
Use command block for raids.
Chew
you can make a procedure with the global trigger of entity spawned in
if the entity is a pillager
summon (custom mob)
with this, when a pillager spawns in a raid, it will spawn in with the custom mob
if you don't want the pillager there, you can use the despawn event/target entity block
denial719 that's not how you do it. All your doing is spawning an custom mob that's not part of the raid.
I found out how to do this!
Step 1. Go to the AI and goals tab in your entity element and select the entity base of a random mob and save the element.
Step 2. Lock your entity element and then open the (YourMob)Entity.java next find the code extends (The Mob entity base you used) then change it to a vindicator because vindicators have no special abilities and if you select this your mob will only use the attacks you set it to do.
Step 3. press CTRL + W to reload the code. Next press CTRL + S and it will save the code.
Step 4. exit the code panel and open the game.
Step 5. now your mob can join raids. (Does not spawn in raids though but to do that replace a random Illager in the raid with you r mob or just spawn it on top of the mob)