garbagemule / MobArena

MobArena plugin for Minecraft
GNU General Public License v3.0
195 stars 150 forks source link

Give pets custom potion effects #650

Open LexPolka opened 3 years ago

LexPolka commented 3 years ago

Feature request

Short description

Similiar to bosses and classes, pets should be able to be given potion effects such as strength or speed to improve combat capability.

Implementation details

Basically, you can give effects to pets. Pets are fun to have in Mobarena, they act as a companion, but they don't exactly bring many benefits to the table. So I was thinking maybe give pets more damage output (strength) or more frequent attacks (fast_digging or speed).

Additional info

Doggo with speed and strength.

Nesseley commented 3 years ago

Additionally wanted:

garbagemule commented 3 years ago

Thanks for the feature request.

I miss some details about how this would be achieved. Like, what would the config-file look like for a setup like this?

LexPolka commented 3 years ago

maybe similiar to how classes and bosses, maybe like petclasses: pet1: monster: wolf effects: increase_damage:1, speed:100

Nesseley commented 3 years ago

Oh I like that! Maybe add an option to make the pets invincible or not too?

pets:
  wolf:
    item: bone
    invincible: true
    effects:
      all: health
      knight: speed
LexPolka commented 3 years ago

now that is very poggers

Ghmmy commented 3 years ago

might be interesting to support mythicmobs as well, just like we can do with the monsters in the waves, using the extension. I'm not sure if this is something that should be redirected to Sait or if it would be possible to make it instantly supportable in the syntax. Either way, it's a fun addition to the arena.

garbagemule commented 3 years ago

Okay, definitely some exciting ideas in here already. There are a couple of points I'd like to make:

It would make sense to me if pets were defined independently of the items that they spawn from and the classes they are used in. Both are class definition concepts, not pet defintion concepts. This does mean duplication if you want Archers and Rangers to have different kinds of the same pet, but I think that's a very small price to pay for the ease of implementation and maintainability. And if we maintain the "item to pet" approach, it does mean a smaller item pool to select from because "bone" only corresponds to one kind of pet.

As for MythicMobs, I honestly have no idea how well they'd work as pets and if MobArena can even direct them the way they do other pets. The extension can't provide support without major changes in MobArena, because the MACreature class that Sait currently uses to inject MythicMobs definitions isn't used for pets, it's only used for mobs. I don't want to rewrite pets to use that class. That would be a horrible exercise in shoehorning and would probably come with a host of other issues.