How to add NBT data to an entity on spawn

Started by RegrettedWharf4 on Wed, 02/22/2023 - 22:32

Topic category: Advanced modding

Last seen on 03:09, 20. Mar 2023
Joined Feb 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add NBT data to an entity on spawn
Wed, 02/22/2023 - 22:32

 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?