Started by
MamaLuigi
on
Topic category: Help with Minecraft modding (Java Edition)
For example, if I have a mob in my mod that is a Mouse, and I want it to be attacked by the vanilla Cats and Ocelots already in minecraft, then how would I do this?
I have seen some methods that use code snippets, but those don't seem to work.
If anyone could give me a working solution, or a working version of the code snippet, then that would be great!
Edited by MamaLuigi on Tue, 09/26/2023 - 15:50
I'm not entirely sure, but if the entity has hostile behaviors towards something, you should be able to use the 'Set Attack Target of (event/target entity)' function. It's a recent addition in the latest version of MCreator, and I've only ever used it with modded entities and hostile/neutral vanilla entities, (like iron golems), but I assume it should also work for your purposes.