Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Effects support for mobs #9

Open
SirFancyBacon opened this issue Aug 19, 2020 · 2 comments
Open

[REQUEST] Effects support for mobs #9

SirFancyBacon opened this issue Aug 19, 2020 · 2 comments

Comments

@SirFancyBacon
Copy link

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
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant