OnapleRPG / Brawlator

Sponge Minecraft plugin to generate custom spawners
Apache License 2.0
0 stars 0 forks source link

[REQUEST] Effects support for mobs #9

Open SirFancyBacon opened 4 years ago

SirFancyBacon commented 4 years ago

This would allow for Mobs to spawn with effects on them, the ability to inflict effects on attack (with configurable percentage), and apply an effect to the player within a certain radius.

This would be similar to how Diablo/Binding of Isaak functions with their "Champions" Also how the mod "Infernal Mobs" functions.

SirFancyBacon commented 4 years ago

Basic minecraft effects found here: https://minecraft.gamepedia.com/Status_effect Command and how to use it are found here: https://minecraft.gamepedia.com/Commands/effect

I'm thinking you could use an optional that if it has values would pass them to the same functions that issue the command; but in Java.

SirFancyBacon commented 4 years ago

https://docs.spongepowered.org/stable/en/plugin/effects.html?highlight=effects

import org.spongepowered.api.effect.potion.PotionEffect;
import org.spongepowered.api.effect.potion.PotionEffectTypes;

PotionEffect potion = PotionEffect.builder()
        .potionType(PotionEffectTypes.HASTE)
        .duration(10)
        .amplifier(5)
        .build();

Seems to be a good starting point; If EffectSmith already supports this then Effect Smith support simply needs to be added to Brawlator.