mob gets boost after a while exhaustion

Started by Krinedenas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mob gets boost after a while exhaustion

mob gets a boost from killing other mobs after a while exhaustion
I have an idea that after killing a player a mob gets 120 seconds of boost, 90 seconds for an aggressive mob (for the player), 60 seconds for a neutral mob and 30 seconds for a peaceful mob
Gain gives:
1) Changes his skin (to make it clear that he is strengthened at the moment)
2) Increases damage to 10 (was 7)
3) Increases armor to 3 (was 1)
4) Increases speed to 0.95 (was 1)
5) Restores his health by 1 heart every 15 seconds.
6) Increases health to 30 (was 28)
After a while, namely 300 seconds, it goes into a form of exhaustion
Exhaustion gives:
1) Changes his skin (to make it clear that he is depleted at the moment)
2) Loses damage to 5 (was 7)
3) Loses armor to 0 (was 1)
4) Loses speed to 1.25 (was 1)
5) Loses its health 1 heart every 30 seconds Exhaustion
6) Loses health up to 24 (was 28)
I have an idea, but I can't do it :/

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That seems possible, but i…
Mon, 12/18/2023 - 10:19

That seems possible, but i need you to clarify a few things:

  1. When the entity gets boosted does the health and maximum health instantly go to 30, or just the maximum health?
  2. When the entity gets Exhausted does the maximum health go to 24, along with the regular health if it was greater than 24, or are you just saying that it can't lose anymore health from exhaustion after it's below 24 health?

I also need to know few more things:

  1. are you fine with the entity losing a bit of NBT data? I can preserve some of it but it would be rather chalenging to save all of it, basicaly im asking if you want to preserve names, armor, items from the creature's inventory,Potion effects...
  2. Can you create a entity and add a procedure to it?
  3. are you familiarised with nerdy's GeckoLib Plugin it may be possible to do this without losing any NBT data
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Once an entity gets boosted…
Sat, 12/23/2023 - 15:05
  1. Once an entity gets boosted it has a maximum of 30 health (and regeneration is enabled until refilled)
    2) As soon as he is exhausted, his maximum health drops to 24, both with boosted and normal, and if, for example, an entity had 23 and exhaustion occurred, then he also remains at 23, just the maximum health drops to 24

    1) I think maximum names and effects of potions no more
    2) No, I have a made texture. I ran it in mcreator but without it and everything worked, but I would like it to be a unique mob
    3) I'm not sure about this. I only use Geckolib to animate a mob in blockbench and mcreator