Search in sources :

Example 1 with RitualStone

use of WayofTime.alchemicalWizardry.common.block.RitualStone in project BloodMagic by WayofTime.

the class ModBlocks method init.

public static void init() {
    blockAltar = new BlockAltar();
    bloodRune = new BloodRune();
    speedRune = new SpeedRune();
    efficiencyRune = new EfficiencyRune();
    runeOfSacrifice = new RuneOfSacrifice();
    runeOfSelfSacrifice = new RuneOfSelfSacrifice();
    blockTeleposer = new BlockTeleposer();
    spectralBlock = new SpectralBlock();
    ritualStone = new RitualStone();
    blockMasterStone = new BlockMasterStone();
    imperfectRitualStone = new ImperfectRitualStone();
    bloodSocket = new BlockSocket();
    armourForge = new ArmourForge();
    emptySocket = new EmptySocket();
    largeBloodStoneBrick = new LargeBloodStoneBrick();
    bloodStoneBrick = new BloodStoneBrick();
    blockWritingTable = new BlockWritingTable();
    blockHomHeart = new BlockHomHeart();
    blockPedestal = new BlockPedestal();
    blockPlinth = new BlockPlinth();
    blockConduit = new BlockConduit();
    blockBloodLight = new BlockBloodLightSource();
    blockSpellEffect = new BlockSpellEffect();
    blockSpellParadigm = new BlockSpellParadigm();
    blockSpellModifier = new BlockSpellModifier();
    blockSpellEnhancement = new BlockSpellEnhancement();
    blockSpectralContainer = new BlockSpectralContainer();
    blockDemonPortal = new BlockDemonPortal();
    blockBuildingSchematicSaver = new BlockSchematicSaver();
    blockReagentConduit = new BlockReagentConduit();
    blockAlchemicCalcinator = new BlockAlchemicCalcinator();
    blockCrystalBelljar = new BlockBelljar();
    blockDemonChest = new BlockDemonChest();
    blockCrystal = new BlockCrystal();
    blockMimic = new MimicBlock();
    blockLifeEssence = new LifeEssenceBlock();
    blockEnchantmentGlyph = new BlockEnchantmentGlyph();
    blockStabilityGlyph = new BlockStabilityGlyph();
    blockCrucible = new BlockCrucible();
}
Also used : BlockSchematicSaver(WayofTime.alchemicalWizardry.common.block.BlockSchematicSaver) BlockBelljar(WayofTime.alchemicalWizardry.common.block.BlockBelljar) BlockSpectralContainer(WayofTime.alchemicalWizardry.common.block.BlockSpectralContainer) ImperfectRitualStone(WayofTime.alchemicalWizardry.common.block.ImperfectRitualStone) RuneOfSacrifice(WayofTime.alchemicalWizardry.common.block.RuneOfSacrifice) BlockDemonPortal(WayofTime.alchemicalWizardry.common.block.BlockDemonPortal) SpeedRune(WayofTime.alchemicalWizardry.common.block.SpeedRune) RuneOfSelfSacrifice(WayofTime.alchemicalWizardry.common.block.RuneOfSelfSacrifice) LargeBloodStoneBrick(WayofTime.alchemicalWizardry.common.block.LargeBloodStoneBrick) BlockConduit(WayofTime.alchemicalWizardry.common.block.BlockConduit) BlockAlchemicCalcinator(WayofTime.alchemicalWizardry.common.block.BlockAlchemicCalcinator) BlockPedestal(WayofTime.alchemicalWizardry.common.block.BlockPedestal) SpectralBlock(WayofTime.alchemicalWizardry.common.block.SpectralBlock) BlockCrystal(WayofTime.alchemicalWizardry.common.block.BlockCrystal) BlockSpellEffect(WayofTime.alchemicalWizardry.common.block.BlockSpellEffect) BlockReagentConduit(WayofTime.alchemicalWizardry.common.block.BlockReagentConduit) BlockSocket(WayofTime.alchemicalWizardry.common.block.BlockSocket) BlockBloodLightSource(WayofTime.alchemicalWizardry.common.block.BlockBloodLightSource) BlockHomHeart(WayofTime.alchemicalWizardry.common.block.BlockHomHeart) EmptySocket(WayofTime.alchemicalWizardry.common.block.EmptySocket) BlockDemonChest(WayofTime.alchemicalWizardry.common.demonVillage.tileEntity.BlockDemonChest) BlockSpellParadigm(WayofTime.alchemicalWizardry.common.block.BlockSpellParadigm) BlockSpellEnhancement(WayofTime.alchemicalWizardry.common.block.BlockSpellEnhancement) BlockTeleposer(WayofTime.alchemicalWizardry.common.block.BlockTeleposer) LifeEssenceBlock(WayofTime.alchemicalWizardry.common.block.LifeEssenceBlock) BlockEnchantmentGlyph(WayofTime.alchemicalWizardry.common.block.BlockEnchantmentGlyph) ArmourForge(WayofTime.alchemicalWizardry.common.block.ArmourForge) BlockWritingTable(WayofTime.alchemicalWizardry.common.block.BlockWritingTable) EfficiencyRune(WayofTime.alchemicalWizardry.common.block.EfficiencyRune) BlockStabilityGlyph(WayofTime.alchemicalWizardry.common.block.BlockStabilityGlyph) BlockPlinth(WayofTime.alchemicalWizardry.common.block.BlockPlinth) BloodStoneBrick(WayofTime.alchemicalWizardry.common.block.BloodStoneBrick) LargeBloodStoneBrick(WayofTime.alchemicalWizardry.common.block.LargeBloodStoneBrick) BlockSpellModifier(WayofTime.alchemicalWizardry.common.block.BlockSpellModifier) BlockCrucible(WayofTime.alchemicalWizardry.common.block.BlockCrucible) MimicBlock(WayofTime.alchemicalWizardry.common.block.MimicBlock) BlockAltar(WayofTime.alchemicalWizardry.common.block.BlockAltar) BloodRune(WayofTime.alchemicalWizardry.common.block.BloodRune) BlockMasterStone(WayofTime.alchemicalWizardry.common.block.BlockMasterStone) RitualStone(WayofTime.alchemicalWizardry.common.block.RitualStone) ImperfectRitualStone(WayofTime.alchemicalWizardry.common.block.ImperfectRitualStone)

Example 2 with RitualStone

use of WayofTime.alchemicalWizardry.common.block.RitualStone in project BloodMagic by WayofTime.

the class ItemRitualDismantler method breakRitualStoneAtMasterStone.

public boolean breakRitualStoneAtMasterStone(ItemStack stack, EntityPlayer player, World world, int x, int y, int z) {
    TileEntity tileEntity = world.getTileEntity(x, y, z);
    if (tileEntity instanceof TEMasterStone) {
        TEMasterStone masterStone = (TEMasterStone) tileEntity;
        int direction = masterStone.getDirection();
        String ritualName = Rituals.checkValidRitual(world, x, y, z);
        List<RitualComponent> ritualList = Rituals.getRitualList(ritualName);
        if (ritualList == null) {
            return false;
        }
        for (RitualComponent rc : ritualList) {
            if (!world.isAirBlock(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction)) && world.getBlock(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction)) instanceof RitualStone) {
                if (EnergyItems.syphonBatteries(stack, player, getEnergyUsed()) || player.capabilities.isCreativeMode) {
                    world.setBlockToAir(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction));
                    EntityItem entityItem = new EntityItem(world, player.posX, player.posY, player.posZ, new ItemStack(ModBlocks.ritualStone));
                    if (world.isRemote) {
                        world.playAuxSFX(2005, x, y + 1, z, 0);
                    } else {
                        world.spawnEntityInWorld(entityItem);
                    }
                }
            }
        }
        return true;
    }
    return false;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent) TEMasterStone(WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone) ItemStack(net.minecraft.item.ItemStack) RitualStone(WayofTime.alchemicalWizardry.common.block.RitualStone) EntityItem(net.minecraft.entity.item.EntityItem)

Aggregations

RitualStone (WayofTime.alchemicalWizardry.common.block.RitualStone)2 RitualComponent (WayofTime.alchemicalWizardry.api.rituals.RitualComponent)1 ArmourForge (WayofTime.alchemicalWizardry.common.block.ArmourForge)1 BlockAlchemicCalcinator (WayofTime.alchemicalWizardry.common.block.BlockAlchemicCalcinator)1 BlockAltar (WayofTime.alchemicalWizardry.common.block.BlockAltar)1 BlockBelljar (WayofTime.alchemicalWizardry.common.block.BlockBelljar)1 BlockBloodLightSource (WayofTime.alchemicalWizardry.common.block.BlockBloodLightSource)1 BlockConduit (WayofTime.alchemicalWizardry.common.block.BlockConduit)1 BlockCrucible (WayofTime.alchemicalWizardry.common.block.BlockCrucible)1 BlockCrystal (WayofTime.alchemicalWizardry.common.block.BlockCrystal)1 BlockDemonPortal (WayofTime.alchemicalWizardry.common.block.BlockDemonPortal)1 BlockEnchantmentGlyph (WayofTime.alchemicalWizardry.common.block.BlockEnchantmentGlyph)1 BlockHomHeart (WayofTime.alchemicalWizardry.common.block.BlockHomHeart)1 BlockMasterStone (WayofTime.alchemicalWizardry.common.block.BlockMasterStone)1 BlockPedestal (WayofTime.alchemicalWizardry.common.block.BlockPedestal)1 BlockPlinth (WayofTime.alchemicalWizardry.common.block.BlockPlinth)1 BlockReagentConduit (WayofTime.alchemicalWizardry.common.block.BlockReagentConduit)1 BlockSchematicSaver (WayofTime.alchemicalWizardry.common.block.BlockSchematicSaver)1 BlockSocket (WayofTime.alchemicalWizardry.common.block.BlockSocket)1 BlockSpectralContainer (WayofTime.alchemicalWizardry.common.block.BlockSpectralContainer)1