Making a boss

Started by Warden154 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a boss

So I’ve been working on a mod for a little bit and right now I’m working on a boss for it, the problem I’m having is that I want to have the boss to be able to drink a potion every now and then and will play the custom animation I made of it drinking the potion, is there anyway I could do this? 

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't take my word fully on…
Sun, 11/17/2024 - 19:53

Don't take my word fully on this im slightly new, but i believe what you're looking for is the GeckoLib extension for MCreator. Create your animations in BlockBench also using the GeckoLib plugin there, export them out of BlockBench using the instructions on the GeckoLib Plugin page, And set up a "Animated Entity" in MCreator, and in the Triggers Section create a Procedure for either "When Entity is hurt" or "On Entity Tick Update". 

you'll have to figure out how to make the Attack Delayed or Sometimes happen and Sometimes not happen; on your own, But if you go into the GeckoLib category in your new Procedure, you will see: -- if Entity element "No Entry Selected" is the "Event/target entity" then play the animation "animation" -- This action will let you define the Character you want to check for (Make sure it's your Character your trying to animate) and then in the "Animation" Box you have to type your animation name exactly how it is spelled in BlockBench when you double click the animation. For example; For a Lava Golem entity i made, one of it's animations Format looks like this > "animation.lava_golem.walk". also don't forget to add the correct version of GeckoLib to your MC mods folder. Hope this helps, good luck! 

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry not attack, in your…
Sun, 11/17/2024 - 19:55

Sorry not attack, in your case it would be healing/using an item.