Started by
Bob the Coder
on
Topic category: Advanced modding
Hello, I have been trying to get custom entities to partake in raids. I have managed to get them spawning in the correct place, but they don't go towards the village center. Nor do they receive any of the buffs that raiders get, like speed. I went searching in pillager data and I found the tag "CanJoinRaid". I looked it up on google and appaently it allows the mob to join an active raid. If I could give this tag to my mob, I think it would instantly join it to the raid. I just don't know how to give entities NBT metadata tags. I wouldn't mind editing Mcreator files, if it was necessary. Any ideas or solutions?
There is a Plugin for it:
https://mcreator.net/plugin/93380/plugin-damage-source-plugin-forge-1192
How do I do this on 2026.2?
Hey! You can use this—not exactly like THIS, but here's the idea ^^

This way, you spawn the entity at XYZ and at the same time get a reference to that exact entity, which you can then use to change its NBT tags.
I got the block set in entity procedures -> action
and the spawnentity...reference is in world procedures -> data
I used 2026.2.335188, but I think it should work on other versions too.
Hope that helps:D!