Added obj for WIP Demon Crucible (name pending). Fixed Floating Incense Altar syndrome.
This commit is contained in:
parent
af193c3e5b
commit
3e94aeae77
8 changed files with 1044 additions and 2 deletions
|
@ -233,7 +233,8 @@ public class Constants
|
|||
SPECTRAL("BlockSpectral"),
|
||||
TELEPOSER("BlockTeleposer"),
|
||||
INCENSE_ALTAR("BlockIncenseAltar"),
|
||||
PATH("BlockPath");
|
||||
PATH("BlockPath"),
|
||||
DEMON_CRUCIBLE("BlockDemonCrucible");
|
||||
|
||||
@Getter
|
||||
private final String regName;
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
package WayofTime.bloodmagic.block;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.tile.TileIncenseAltar;
|
||||
|
||||
public class BlockDemonCrucible extends BlockContainer
|
||||
{
|
||||
public BlockDemonCrucible()
|
||||
{
|
||||
super(Material.rock);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".demonCrucible");
|
||||
setRegistryName(Constants.BloodMagicBlock.DEMON_CRUCIBLE.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setHardness(2.0F);
|
||||
setResistance(5.0F);
|
||||
setHarvestLevel("pickaxe", 0);
|
||||
|
||||
// setBlockBounds(0.3F, 0F, 0.3F, 0.72F, 1F, 0.72F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isVisuallyOpaque()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType()
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta)
|
||||
{
|
||||
return new TileIncenseAltar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock(World world, BlockPos blockPos, IBlockState blockState)
|
||||
{
|
||||
TileIncenseAltar TileIncenseAltar = (TileIncenseAltar) world.getTileEntity(blockPos);
|
||||
if (TileIncenseAltar != null)
|
||||
TileIncenseAltar.dropItems();
|
||||
|
||||
super.breakBlock(world, blockPos, blockState);
|
||||
}
|
||||
}
|
|
@ -14,6 +14,7 @@ import WayofTime.bloodmagic.block.BlockBloodLight;
|
|||
import WayofTime.bloodmagic.block.BlockBloodRune;
|
||||
import WayofTime.bloodmagic.block.BlockBloodStoneBrick;
|
||||
import WayofTime.bloodmagic.block.BlockCrystal;
|
||||
import WayofTime.bloodmagic.block.BlockDemonCrucible;
|
||||
import WayofTime.bloodmagic.block.BlockIncenseAltar;
|
||||
import WayofTime.bloodmagic.block.BlockInputRoutingNode;
|
||||
import WayofTime.bloodmagic.block.BlockItemRoutingNode;
|
||||
|
@ -66,6 +67,7 @@ public class ModBlocks
|
|||
public static Block phantomBlock;
|
||||
public static Block soulForge;
|
||||
public static Block incenseAltar;
|
||||
public static Block demonCrucible;
|
||||
|
||||
public static Block lifeEssence;
|
||||
|
||||
|
@ -102,6 +104,7 @@ public class ModBlocks
|
|||
itemRoutingNode = registerBlock(new BlockItemRoutingNode());
|
||||
incenseAltar = registerBlock(new BlockIncenseAltar());
|
||||
pathBlock = registerBlock(new BlockPath(), ItemBlockPath.class);
|
||||
demonCrucible = registerBlock(new BlockDemonCrucible());
|
||||
|
||||
// testSpellBlock = registerBlock(new BlockTestSpellBlock());
|
||||
|
||||
|
@ -167,6 +170,7 @@ public class ModBlocks
|
|||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(masterRoutingNode));
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(itemRoutingNode));
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(incenseAltar));
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(demonCrucible));
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(pathBlock), 0);
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(pathBlock), 1);
|
||||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(pathBlock), 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue