Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Sponge.getPluginManager().isLoaded("auratokens")) {
- if (!GereAuraTokensConfig.getNode("auraList", randomPickedTexture).isVirtual()){
- int auraChance = GereAuraTokensConfig.getNode("spawnWithAuraChance").getInt();
- if (auraChance > 0){
- Random randomChanceAura = new Random();
- int chanceAura = randomChanceAura.nextInt(100);
- if (chanceAura + 1 >= auraChance){
- String auraEffect = GereAuraTokensConfig.getNode("auraList", randomPickedTexture, "Effect").getString();
- if (auraEffect == null) return;
- String rawAuraType = GereAuraTokensConfig.getNode("auraList", randomPickedTexture, "Type").getString();
- if (rawAuraType == null) return;
- String formattedAuraType = rawAuraType.toLowerCase();
- String auraType;
- switch (formattedAuraType){
- case "circle":
- auraType = "Circle";
- break;
- case "cylinder":
- auraType = "Cylinder";
- break;
- case "helix":
- auraType = "Helix";
- break;
- case "atomic":
- auraType = "Atomic";
- break;
- case "shell":
- auraType = "Shell";
- break;
- case "rising":
- auraType = "Rising";
- break;
- case "sphere":
- auraType = "Sphere";
- break;
- case "spiral":
- auraType = "Spiral";
- break;
- default:
- auraType = "Random";
- }
- entityPixelmon.getPokemonData().getPersistentData().setByte("HasAura", (byte) 1);
- entityPixelmon.getPokemonData().getPersistentData().setString("AuraEffect", auraEffect.toUpperCase());
- entityPixelmon.getPokemonData().getPersistentData().setString("AuraType", auraType);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement