Started by
ItIsKlanty
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make an addon for a couple of mods that adds music during a bossfight, but I don't understand exactly how to do it. Logically, I understand that it is necessary to check the type of entity, and if this entity is the boss, then start playing music, but there is no "boss" entity in the types.
If it's not difficult for you, can you please attach a screenshot of the procedure?
Edited by ItIsKlanty on Wed, 01/31/2024 - 00:01
I can't attach screenshots, but you probably have to check whether it's an ender dragon, wither and so on, and if any of them is true, play the music.
Ok, but what about modded entities?
Either on spawn give them some custom nbt tag and then check the tag for example "isBoss?" or check, if the attacked entity is any of your custom bosses