mirror of
https://github.com/GTNewHorizons/BloodArsenal.git
synced 2026-11-25 14:34:41 +00:00
Added Things
This commit is contained in:
1 parent
781cf7a9b8
commit
047c72ac44
10 files changed
+236
-85
No files matched your search
@@ -44,6 +44,7 @@ public class BloodArsenal
|
||||
public static Potion vampiricAura;
|
||||
public static Potion bleeding;
|
||||
public static Potion swimming;
|
||||
public static Potion soulBurn;
|
||||
|
||||
public static Item.ToolMaterial infusedWood = EnumHelper.addToolMaterial("InfusedWood", 1, 0, 5.0F, 1.0F, 0);
|
||||
public static Item.ToolMaterial infusedIron = EnumHelper.addToolMaterial("InfusedIron", 3, 0, 11.0F, 4.0F, 0);
|
||||
@@ -135,6 +136,7 @@ public class BloodArsenal
|
||||
vampiricAura = new PotionBloodArsenal(BloodArsenalConfig.vampiricAuraID, false, 0).setIconIndex(0, 0).setPotionName("Vampiric Aura");
|
||||
bleeding = new PotionBloodArsenal(BloodArsenalConfig.bleedingID, true, 0).setIconIndex(1, 0).setPotionName("Bleeding");
|
||||
swimming = new PotionBloodArsenal(BloodArsenalConfig.swimmingID, false, 0).setIconIndex(2, 0).setPotionName("Swimming");
|
||||
soulBurn = new PotionBloodArsenal(BloodArsenalConfig.soulBurnID, true, 0).setIconIndex(3, 0).setPotionName("Soul Burn");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
|
||||
@@ -22,11 +22,14 @@ public class BloodArsenalConfig
|
||||
public static int vampiricAuraID;
|
||||
public static int bleedingID;
|
||||
public static int swimmingID;
|
||||
public static int soulBurnID;
|
||||
|
||||
// Ritual Blacklist
|
||||
public static boolean ritualDisabledMidas;
|
||||
public static boolean ritualDisabledWither;
|
||||
public static boolean ritualDisabledEnchantment;
|
||||
public static boolean ritualDisabledMobOppression;
|
||||
public static boolean ritualDisabledFisherman;
|
||||
|
||||
// Block Settings
|
||||
public static String[] blocksToBeDisabled;
|
||||
@@ -83,10 +86,13 @@ public class BloodArsenalConfig
|
||||
vampiricAuraID = config.get(potionId, "Vampiric Aura", 50).getInt(vampiricAuraID);
|
||||
bleedingID = config.get(potionId, "Bleeding", 51).getInt(bleedingID);
|
||||
swimmingID = config.get(potionId, "Swimming", 52).getInt(swimmingID);
|
||||
soulBurnID = config.get(potionId, "Soul Burn", 53).getInt(soulBurnID);
|
||||
|
||||
ritualDisabledWither = config.get(ritualBlacklist, "Ritual of Withering", false).getBoolean(ritualDisabledWither);
|
||||
ritualDisabledMidas = config.get(ritualBlacklist, "Midas Touch", false).getBoolean(ritualDisabledMidas);
|
||||
ritualDisabledEnchantment = config.get(ritualBlacklist, "The Enchantress's Spell", false).getBoolean(ritualDisabledEnchantment);
|
||||
ritualDisabledMobOppression = config.get(ritualBlacklist, "Ritual of Mob Oppression", false).getBoolean(ritualDisabledMobOppression);
|
||||
ritualDisabledFisherman = config.get(ritualBlacklist, "Fisherman's Hymn", false).getBoolean(ritualDisabledFisherman);
|
||||
|
||||
blocksToBeDisabled = config.getStringList("Disable blocks here", blockSettings, new String[]{""}, "Type in the unlocalized name of the block you want disabled here (separate them using ENTER)");
|
||||
itemsToBeDisabled = config.getStringList("Disable items here", itemSettings, new String[]{""}, "Type in the unlocalized name of the item you want disabled (separate them using ENTER)");
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.arc.bloodarsenal.common;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.LifeEssenceNetwork;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import baubles.common.container.InventoryBaubles;
|
||||
import baubles.common.lib.PlayerHandler;
|
||||
import baubles.common.network.PacketHandler;
|
||||
@@ -25,7 +27,8 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.entity.living.LivingAttackEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingEvent;
|
||||
@@ -96,11 +99,6 @@ public class BloodArsenalEventHooks
|
||||
}
|
||||
}
|
||||
|
||||
public void こんにちは(EntityPlayer player)
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("こんにちは!"));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onLivingDeath(LivingDeathEvent event)
|
||||
{
|
||||
@@ -133,6 +131,33 @@ public class BloodArsenalEventHooks
|
||||
}
|
||||
}
|
||||
|
||||
if (entityLiving.isPotionActive(BloodArsenal.soulBurn))
|
||||
{
|
||||
int amplifier = entityLiving.getActivePotionEffect(BloodArsenal.soulBurn).getAmplifier();
|
||||
entityLiving.setFire(2);
|
||||
|
||||
if (entityLiving instanceof EntityPlayer)
|
||||
{
|
||||
if (entityLiving.worldObj.getWorldTime() % (10 / (amplifier + 1)) == 0)
|
||||
{
|
||||
String owner = entityLiving.getCommandSenderName();
|
||||
World worldSave = MinecraftServer.getServer().worldServers[0];
|
||||
LifeEssenceNetwork data = (LifeEssenceNetwork) worldSave.loadItemData(LifeEssenceNetwork.class, owner);
|
||||
|
||||
if (data == null)
|
||||
{
|
||||
data = new LifeEssenceNetwork(owner);
|
||||
worldSave.setItemData(owner, data);
|
||||
}
|
||||
|
||||
int lpToMinus = 1000 * (2 ^ (amplifier + 1));
|
||||
|
||||
SoulNetworkHandler.syphonAndDamageFromNetwork(owner, (EntityPlayer) entityLiving, lpToMinus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (entityLiving instanceof EntityPlayer)
|
||||
{
|
||||
if (entityLiving.isPotionActive(BloodArsenal.swimming))
|
||||
|
||||
@@ -262,7 +262,7 @@ public class RitualEffectEnchant extends RitualEffect
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> enchantRitual = new ArrayList();
|
||||
ArrayList<RitualComponent> enchantRitual = new ArrayList<RitualComponent>();
|
||||
enchantRitual.add(new RitualComponent(2, 0, 0, RitualComponent.EARTH));
|
||||
enchantRitual.add(new RitualComponent(3, 0, 0, RitualComponent.DUSK));
|
||||
enchantRitual.add(new RitualComponent(3, 0, -1, RitualComponent.EARTH));
|
||||
|
||||
@@ -6,24 +6,23 @@ import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.LifeEssenceNetwork;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.FishingHooks;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class RitualEffectFishing extends RitualEffect
|
||||
{
|
||||
private static final int terraeDrain = 20;
|
||||
private static final int orbisTerraeDrain = 20;
|
||||
|
||||
protected static double rand;
|
||||
protected float next = Float.NaN;
|
||||
|
||||
@Override
|
||||
public void performEffect(IMasterRitualStone ritualStone)
|
||||
{
|
||||
@@ -40,6 +39,10 @@ public class RitualEffectFishing extends RitualEffect
|
||||
int currentEssence = data.currentEssence;
|
||||
World world = ritualStone.getWorld();
|
||||
|
||||
final int terraeDrain = 20;
|
||||
final int orbisTerraeDrain = 20;
|
||||
final int potentiaDrain = 20;
|
||||
|
||||
if (world.getWorldTime() % 10 != 5)
|
||||
{
|
||||
return;
|
||||
@@ -86,27 +89,34 @@ public class RitualEffectFishing extends RitualEffect
|
||||
}
|
||||
else
|
||||
{
|
||||
boolean hasTerrae = canDrainReagent(ritualStone, ReagentRegistry.terraeReagent, terraeDrain, false);
|
||||
boolean hasOrbisTerrae = canDrainReagent(ritualStone, ReagentRegistry.orbisTerraeReagent, orbisTerraeDrain, false);
|
||||
boolean hasTerrae = canDrainReagent(ritualStone, ReagentRegistry.terraeReagent, terraeDrain, true);
|
||||
boolean hasOrbisTerrae = canDrainReagent(ritualStone, ReagentRegistry.orbisTerraeReagent, orbisTerraeDrain, true);
|
||||
boolean hasPotentia = canDrainReagent(ritualStone, ReagentRegistry.potentiaReagent, potentiaDrain, true);
|
||||
|
||||
int speed = getSpeedForReagents(hasTerrae, hasOrbisTerrae);
|
||||
if (world.getWorldTime() % speed != 0)
|
||||
int i = hasTerrae ? -5 : -1;
|
||||
int j = i;
|
||||
|
||||
for (; hasTerrae ? i <= 5 : i <= 1; i++)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int flag = 0;
|
||||
|
||||
for (int i = -1; i <= 1; i++)
|
||||
{
|
||||
for (int j = -1; j <= 1; j++)
|
||||
for (; j <= 1; j++)
|
||||
{
|
||||
Block block = world.getBlock(x + i, y - 1, z + j);
|
||||
rand = Math.random();
|
||||
for (int k = 1; k <= 5; k++)
|
||||
{
|
||||
Block block = world.getBlock(x + i, y - k, z + j);
|
||||
Random rand = new Random();
|
||||
float chance = hasOrbisTerrae ? 0.8F : rand.nextInt(2);
|
||||
|
||||
if (block.isAssociatedBlock(Blocks.water) || block.isAssociatedBlock(Blocks.flowing_water))
|
||||
{
|
||||
// doDrop(FishingHooks.getRandomFishable(rand, next, ))
|
||||
if (rand.nextInt(9) >= (hasPotentia ? 6 : 8))
|
||||
{
|
||||
ItemStack fishStack = FishingHooks.getRandomFishable(rand, chance, hasOrbisTerrae ? rand.nextInt(90) : -1, hasPotentia ? 2 : -1);
|
||||
if (fishStack != null)
|
||||
{
|
||||
SpellHelper.insertStackIntoInventory(fishStack, tileEntity, ForgeDirection.DOWN);
|
||||
SoulNetworkHandler.syphonFromNetwork(owner, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -117,51 +127,33 @@ public class RitualEffectFishing extends RitualEffect
|
||||
@Override
|
||||
public int getCostPerRefresh()
|
||||
{
|
||||
return 50;
|
||||
return 1000;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> fishingRitual = new ArrayList();
|
||||
fishingRitual.add(new RitualComponent(1, 0, 0, 1));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, 0, 1));
|
||||
fishingRitual.add(new RitualComponent(0, 0, 1, 1));
|
||||
fishingRitual.add(new RitualComponent(1, 0, -1, 1));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, 1, 3));
|
||||
fishingRitual.add(new RitualComponent(1, 0, 1, 3));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, -1, 3));
|
||||
fishingRitual.add(new RitualComponent(1, 0, -1, 3));
|
||||
fishingRitual.add(new RitualComponent(1, 1, 0, 4));
|
||||
fishingRitual.add(new RitualComponent(-1, 1, 0, 4));
|
||||
fishingRitual.add(new RitualComponent(0, 1, 1, 4));
|
||||
fishingRitual.add(new RitualComponent(0, 1, -1, 4));
|
||||
ArrayList<RitualComponent> fishingRitual = new ArrayList<RitualComponent>();
|
||||
fishingRitual.add(new RitualComponent(1, 0, 0, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(0, 0, 1, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(0, 0, -1, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.EARTH));
|
||||
fishingRitual.add(new RitualComponent(1, 0, 1, RitualComponent.EARTH));
|
||||
fishingRitual.add(new RitualComponent(-1, 0, -1, RitualComponent.EARTH));
|
||||
fishingRitual.add(new RitualComponent(1, 0, -1, RitualComponent.EARTH));
|
||||
fishingRitual.add(new RitualComponent(1, 1, 0, RitualComponent.AIR));
|
||||
fishingRitual.add(new RitualComponent(-1, 1, 0, RitualComponent.AIR));
|
||||
fishingRitual.add(new RitualComponent(0, 1, 1, RitualComponent.AIR));
|
||||
fishingRitual.add(new RitualComponent(0, 1, -1, RitualComponent.AIR));
|
||||
fishingRitual.add(new RitualComponent(2, 0, 2, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(2, 0, -2, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(-2, 0, 2, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(-2, 0, -2, RitualComponent.WATER));
|
||||
fishingRitual.add(new RitualComponent(2, 0, 0, RitualComponent.BLANK));
|
||||
fishingRitual.add(new RitualComponent(-2, 0, 0, RitualComponent.BLANK));
|
||||
fishingRitual.add(new RitualComponent(0, 0, 2, RitualComponent.BLANK));
|
||||
fishingRitual.add(new RitualComponent(0, 0, -2, RitualComponent.BLANK));
|
||||
return fishingRitual;
|
||||
}
|
||||
|
||||
public int getSpeedForReagents(boolean hasTerrae, boolean hasOrbisTerrae)
|
||||
{
|
||||
if (hasOrbisTerrae)
|
||||
{
|
||||
if (hasTerrae)
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hasTerrae)
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ public class RitualEffectMidas extends RitualEffect
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> midasRitual = new ArrayList();
|
||||
ArrayList<RitualComponent> midasRitual = new ArrayList<RitualComponent>();
|
||||
midasRitual.add(new RitualComponent(1, 0, 0, RitualComponent.EARTH));
|
||||
midasRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.EARTH));
|
||||
midasRitual.add(new RitualComponent(0, 0, 1, RitualComponent.EARTH));
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.arc.bloodarsenal.common.rituals;
|
||||
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
import net.minecraft.entity.monster.EntityEnderman;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class RitualEffectMobDisable extends RitualEffect
|
||||
{
|
||||
@Override
|
||||
public void performEffect(IMasterRitualStone ritualStone)
|
||||
{
|
||||
String owner = ritualStone.getOwner();
|
||||
|
||||
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
|
||||
World world = ritualStone.getWorld();
|
||||
int x = ritualStone.getXCoord();
|
||||
int y = ritualStone.getYCoord();
|
||||
int z = ritualStone.getZCoord();
|
||||
|
||||
final int potentiaDrain = 10;
|
||||
final int offensaDrain = 20;
|
||||
|
||||
boolean hasPotentia = this.canDrainReagent(ritualStone, ReagentRegistry.potentiaReagent, potentiaDrain, false);
|
||||
boolean hasOffensa = this.canDrainReagent(ritualStone, ReagentRegistry.offensaReagent, offensaDrain, false);
|
||||
|
||||
int d0 = 10;
|
||||
int vertRange = hasPotentia ? 20 : 10;
|
||||
AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox((double) x, (double) y, (double) z, (double) (x + 1), (double) (y + 1), (double) (z + 1)).expand(d0, vertRange, d0);
|
||||
List<EntityLivingBase> list = world.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);
|
||||
|
||||
if (currentEssence < this.getCostPerRefresh() * list.size())
|
||||
{
|
||||
SoulNetworkHandler.causeNauseaToPlayer(owner);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (EntityLivingBase livingEntity : list)
|
||||
{
|
||||
if (!livingEntity.isEntityAlive() || livingEntity instanceof EntityPlayer || AlchemicalWizardry.wellBlacklist.contains(livingEntity.getClass()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Collection<PotionEffect> potionEffects = livingEntity.getActivePotionEffects();
|
||||
if (potionEffects.isEmpty())
|
||||
{
|
||||
if (hasOffensa) livingEntity.addPotionEffect(new PotionEffect(Potion.weakness.id, 5, 1));
|
||||
livingEntity.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 5, 9));
|
||||
livingEntity.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 5, 4));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hasOffensa)
|
||||
{
|
||||
if (!potionEffects.contains(new PotionEffect(Potion.weakness.id, 5, 1))) livingEntity.addPotionEffect(new PotionEffect(Potion.weakness.id, 5, 1));
|
||||
}
|
||||
|
||||
if (!potionEffects.contains(new PotionEffect(Potion.moveSlowdown.id, 5, 9))) livingEntity.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 5, 9));
|
||||
if (!potionEffects.contains(new PotionEffect(Potion.digSlowdown.id, 5, 4))) livingEntity.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 5, 4));
|
||||
}
|
||||
|
||||
if (livingEntity instanceof EntityEnderman)
|
||||
{
|
||||
if (!potionEffects.contains(new PotionEffect(AlchemicalWizardry.customPotionPlanarBindingID, 5, 0))) livingEntity.addPotionEffect(new PotionEffect(AlchemicalWizardry.customPotionPlanarBindingID, 5, 0));
|
||||
}
|
||||
else if (livingEntity instanceof EntityCreeper)
|
||||
{
|
||||
if (((EntityCreeper) livingEntity).getCreeperState() > -1)
|
||||
{
|
||||
((EntityCreeper) livingEntity).setCreeperState(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCostPerRefresh()
|
||||
{
|
||||
return 2000;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> mobDisableRitual = new ArrayList<RitualComponent>();
|
||||
mobDisableRitual.add(new RitualComponent(1, 0, 0, RitualComponent.EARTH));
|
||||
mobDisableRitual.add(new RitualComponent(0, 0, 1, RitualComponent.EARTH));
|
||||
mobDisableRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.EARTH));
|
||||
mobDisableRitual.add(new RitualComponent(0, 0, -1, RitualComponent.EARTH));
|
||||
mobDisableRitual.add(new RitualComponent(1, 0, 1, RitualComponent.DUSK));
|
||||
mobDisableRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.DUSK));
|
||||
mobDisableRitual.add(new RitualComponent(-1, 0, -1, RitualComponent.DUSK));
|
||||
mobDisableRitual.add(new RitualComponent(1, 0, -1, RitualComponent.DUSK));
|
||||
mobDisableRitual.add(new RitualComponent(2, 0, 0, RitualComponent.WATER));
|
||||
mobDisableRitual.add(new RitualComponent(0, 0, 2, RitualComponent.WATER));
|
||||
mobDisableRitual.add(new RitualComponent(-2, 0, 0, RitualComponent.WATER));
|
||||
mobDisableRitual.add(new RitualComponent(0, 0, -2, RitualComponent.WATER));
|
||||
mobDisableRitual.add(new RitualComponent(2, 0, 1, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(2, 0, -1, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(1, 0, 2, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(-1, 0, 2, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(-2, 0, 1, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(-2, 0, -1, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(1, 0, -2, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(-1, 0, -2, RitualComponent.BLANK));
|
||||
mobDisableRitual.add(new RitualComponent(3, 0, 3, RitualComponent.AIR));
|
||||
mobDisableRitual.add(new RitualComponent(3, 0, -3, RitualComponent.AIR));
|
||||
mobDisableRitual.add(new RitualComponent(-3, 0, 3, RitualComponent.AIR));
|
||||
mobDisableRitual.add(new RitualComponent(-3, 0, -3, RitualComponent.AIR));
|
||||
return mobDisableRitual;
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ public class RitualEffectWithering extends RitualEffect
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> witherRitual = new ArrayList();
|
||||
ArrayList<RitualComponent> witherRitual = new ArrayList<RitualComponent>();
|
||||
witherRitual.add(new RitualComponent(1, 0, -1, RitualComponent.DUSK));
|
||||
witherRitual.add(new RitualComponent(-1, 0, -1, RitualComponent.DUSK));
|
||||
witherRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.DUSK));
|
||||
|
||||
@@ -14,26 +14,24 @@ public class RitualRegistry
|
||||
Rituals.registerRitual("ARC001Wither", 1, 75000, new RitualEffectWithering(), "Ritual of Withering", new AlchemyCircleRenderer(new ResourceLocation(resource), 0, 0, 0, 255, 0, 0.501, 0.501, 0, 1.5, false));
|
||||
Rituals.registerRitual("ARC002Midas", 1, 5000, new RitualEffectMidas(), "Midas Touch", new AlchemyCircleRenderer(new ResourceLocation(resource), 0, 0, 0, 255, 0, 0.501, 0.501, 0, 2.5, false));
|
||||
Rituals.registerRitual("ARC003Enchant", 2, 50000, new RitualEffectEnchant(), "The Enchantress's Spell", new AlchemyCircleRenderer(new ResourceLocation(resource), 0, 0, 0, 255, 0, 0.501, 0.501, 0, 1.5, false));
|
||||
Rituals.registerRitual("ARC004MobDisable", 2, 25000, new RitualEffectMobDisable(), "Ritual of Mob Oppression");
|
||||
Rituals.registerRitual("ARC005Fisherman", 1, 10000, new RitualEffectFishing(), "Fisherman's Hymn");
|
||||
|
||||
blacklistRituals();
|
||||
}
|
||||
|
||||
public static void blacklistRituals()
|
||||
{
|
||||
if (BloodArsenalConfig.ritualDisabledWither)
|
||||
{
|
||||
Rituals.ritualMap.remove("ARC001Wither");
|
||||
Rituals.keyList.remove("ARC001Wither");
|
||||
}
|
||||
if (BloodArsenalConfig.ritualDisabledMidas)
|
||||
{
|
||||
Rituals.ritualMap.remove("ARC002Midas");
|
||||
Rituals.keyList.remove("ARC002Midas");
|
||||
}
|
||||
if (BloodArsenalConfig.ritualDisabledEnchantment)
|
||||
{
|
||||
Rituals.ritualMap.remove("ARC003Enchant");
|
||||
Rituals.keyList.remove("ARC003Enchant");
|
||||
}
|
||||
if (BloodArsenalConfig.ritualDisabledWither) r("ARC001Wither");
|
||||
if (BloodArsenalConfig.ritualDisabledMidas) r("ARC002Midas");
|
||||
if (BloodArsenalConfig.ritualDisabledEnchantment) r("ARC003Enchant");
|
||||
if (BloodArsenalConfig.ritualDisabledMobOppression) r("ARC004MobDisable");
|
||||
if (BloodArsenalConfig.ritualDisabledFisherman) r("ARC005Fisherman");
|
||||
}
|
||||
|
||||
private static void r(String ritualID)
|
||||
{
|
||||
Rituals.ritualMap.remove(ritualID);
|
||||
Rituals.keyList.remove(ritualID);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user