updating build.gradle

This commit is contained in:
Mohammad-Ali Minaie
2016-12-31 22:11:41 -05:00
parent bd5c334ce9
commit ba60c20843
34 changed files with 2855 additions and 1787 deletions

View File

@@ -32,9 +32,9 @@ public class CommonUtils {
if (block == Blocks.COAL_BLOCK) return 16000;
}
if (item instanceof ItemTool && ((ItemTool)item).getToolMaterialName().equals("WOOD")) return 200;
if (item instanceof ItemSword && ((ItemSword)item).getToolMaterialName().equals("WOOD")) return 200;
if (item instanceof ItemHoe && ((ItemHoe)item).getMaterialName().equals("WOOD")) return 200;
//if (item instanceof ItemTool && ((ItemTool)item).getToolMaterialName().equals("WOOD")) return 200;
//if (item instanceof ItemSword && ((ItemSword)item).getToolMaterialName().equals("WOOD")) return 200;
//if (item instanceof ItemHoe && ((ItemHoe)item).getMaterialName().equals("WOOD")) return 200;
if(item == Items.STICK) return 100;
if(item == Items.COAL) return 1600;
if (item == Item.getItemFromBlock(Blocks.SAPLING)) return 100;

View File

@@ -9,19 +9,21 @@ import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.init.SoundEvents;
import net.minecraft.inventory.InventoryHelper;
import net.minecraft.inventory.ItemStackHelper;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.*;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
@@ -33,6 +35,8 @@ import nmd.primal.forgecraft.tiles.TileFirebox;
import javax.annotation.Nullable;
import java.util.Random;
import static net.minecraft.block.BlockHorizontal.FACING;
/**
@@ -41,7 +45,8 @@ import static net.minecraft.block.BlockHorizontal.FACING;
public class Firebox extends CustomContainerFacing implements ITileEntityProvider {
public static final PropertyBool ACTIVE = PropertyBool.create("active");
protected static final AxisAlignedBB collideBox = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 0.99D, 1.0D);
protected static final AxisAlignedBB boundBox = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D);
public Firebox(Material material) {
super(material);
@@ -58,92 +63,121 @@ public class Firebox extends CustomContainerFacing implements ITileEntityProvide
return new TileFirebox();
}
@Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos)
{
return collideBox;
}
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{
return boundBox;
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
{
if (!world.isRemote)
{
if (!world.isRemote) {
TileFirebox tile = (TileFirebox) world.getTileEntity(pos);
if (tile != null)
{
ItemStack playerStack = player.getHeldItemMainhand();
Item playerItem;
ItemStack tileStack = tile.getSlotStack(0);
if(playerStack != null){
playerItem = playerStack.getItem();
if (playerItem.equals(Items.FLINT_AND_STEEL) || playerItem.equals(Item.getItemFromBlock(Blocks.TORCH))) {
if (CommonUtils.getVanillaItemBurnTime(tileStack) > 0) {
world.setBlockState(pos, state.withProperty(ACTIVE, true), 2);
BlockPos tempPos = new BlockPos(pos.getX(), pos.getY()+1, pos.getZ());
if(world.getBlockState(tempPos).getBlock().equals(Blocks.AIR)){
world.setBlockState(tempPos, Blocks.FIRE.getDefaultState(), 2);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
if(playerItem.equals(Items.FLINT_AND_STEEL)){
player.inventory.getCurrentItem().damageItem(1, player);
}
if (tile != null) {
ItemStack pItem = player.inventory.getCurrentItem();
ItemStack tileItem = tile.getSlotStack(0);
if(pItem.isEmpty()) {
if (player.isSneaking()) {
if (!tileItem.isEmpty()) {
CommonUtils.spawnItemEntity(world, player, tile.getSlotStack(0));
tile.setSlotStack(0, ItemStack.EMPTY);
tile.markDirty();
tile.updateBlock();
return true;
}
}
if(tile.getSlotStack(0)!=ItemStack.EMPTY){
if(CommonUtils.getVanillaItemBurnTime(playerStack) > 0) {
if (tileStack.getItem() == playerItem && tileStack.getItemDamage() == playerStack.getItemDamage()) {
//tile.setInventorySlotContents(0, playerStack);
ItemStack tempStack = new ItemStack(tileStack.getItem(), tileStack.getCount() + 1, tileStack.getItemDamage());
if(tileStack.getCount() < 64) {
tile.setSlotStack(0, tempStack);
player.inventory.decrStackSize(player.inventory.currentItem, 1);
//player.setHeldItem(EnumHand.MAIN_HAND, null);
}
if((pItem.getItem() == Items.FLINT_AND_STEEL) /*|| (pItem.getItem() == PrimalItems.FIRE_BOW)*/ || pItem.getItem() == Item.getItemFromBlock(Blocks.TORCH)) {
world.setBlockState(pos, state.withProperty(ACTIVE, true), 2);
BlockPos tempPos = new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ());
if(world.getBlockState(tempPos).getBlock() == Blocks.AIR) {
world.setBlockState(tempPos, Blocks.FIRE.getDefaultState(), 2);
}
tile.markDirty();
tile.updateBlock();
return true;
}
if((!pItem.isEmpty()) && (CommonUtils.getVanillaItemBurnTime(pItem) > 0)) {
if (!tileItem.isEmpty()){
if(pItem.getItem() == tileItem.getItem()){
if(tileItem.getCount() < 64){
if(tileItem.getCount() + pItem.getCount() <= 64){
tileItem.grow(pItem.getCount());
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
tile.updateBlock();
return true;
}
if(tileItem.getCount() + pItem.getCount() > 64){
pItem.setCount(64-pItem.getCount());
tileItem.setCount(64);
tile.markDirty();
tile.updateBlock();
return true;
}
}
}
}
if(tile.getSlotStack(0)==ItemStack.EMPTY){
if(CommonUtils.getVanillaItemBurnTime(playerStack) > 0) {
if (playerItem != Items.FLINT_AND_STEEL || playerItem != Item.getItemFromBlock(Blocks.TORCH)) {
tile.setSlotStack(0, playerStack);
player.setHeldItem(EnumHand.MAIN_HAND, ItemStack.EMPTY);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
}
}
}
if(tileStack != null && playerStack == null && player.isSneaking()){
if(state.getValue(ACTIVE)==true){
world.setBlockState(pos, state.withProperty(ACTIVE, false), 2);
ItemStack returnStack = new ItemStack(tileStack.getItem(), tileStack.getCount() - 1);
player.setHeldItem(EnumHand.MAIN_HAND, returnStack);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
} else {
player.setHeldItem(EnumHand.MAIN_HAND, tileStack);
tile.setSlotStack(0, ItemStack.EMPTY);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
if(!player.isSneaking()){
if(playerStack == null) {
if (tileStack != null) {
ItemStack tempStack1 = new ItemStack(tileStack.getItem(), 1, tileStack.getItemDamage());
ItemStack resetStack = new ItemStack(tileStack.getItem(), tileStack.getCount() - 1, tileStack.getItemDamage());
CommonUtils.spawnItemEntity(world, player, tempStack1);
//world.spawnEntityInWorld(new EntityItem(world, player.posX, player.posY, player.posZ, tempStack1));
tile.setSlotStack(0,resetStack);
world.notifyBlockUpdate(pos, state, state, 2);
}
if(tileItem.isEmpty()) {
tile.setSlotStack(0, pItem);
player.inventory.setInventorySlotContents(player.inventory.currentItem, ItemStack.EMPTY);
return true;
}
}
}
}
return false;
}
@Override
public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity ent)
{
if (!world.isRemote)
{
if(ent instanceof EntityItem){
//System.out.println("collision");
EntityItem itemEnt = (EntityItem) ent;
ItemStack stack = itemEnt.getEntityItem();
//System.out.println(stack);
TileFirebox tile = (TileFirebox)world.getTileEntity(pos);
if (tile != null) {
if(!tile.getSlotStack(0).isEmpty()) {
if(tile.getSlotStack(0).getItem() == stack.getItem()) {
int entStackSize = stack.getCount();
int tileStackSize = tile.getSlotStack(0).getCount();
int tileSizeRemaining = 64 - tileStackSize;
if (tileStackSize < 64) {
if (entStackSize <= tileSizeRemaining) {
tile.incrementStackSize(tile.getSlotList(), 0, entStackSize);
//tile.setSlotStack(0, new ItemStack(stack.getItem(), tileStackSize + entStackSize, stack.getItemDamage()));
ent.setDead();
world.notifyBlockUpdate(pos, state, state, 3);
tile.updateBlock();
}
if (entStackSize > tileSizeRemaining) {
tile.getSlotStack(0).setCount(64);
stack.setCount(64 - entStackSize);
}
}
}
}
if (tile.getSlotStack(0).isEmpty()) {
//int entStackSize = stack.getCount();
tile.setSlotStack(0, itemEnt.getEntityItem());
itemEnt.setDead();
world.notifyBlockUpdate(pos, state, state, 3);
tile.updateBlock();
}
}
}
}
return true;
}
public void onBlockClicked(World world, BlockPos pos, EntityPlayer player) {
@@ -215,9 +249,16 @@ public class Firebox extends CustomContainerFacing implements ITileEntityProvide
super.breakBlock(world, pos, state);
}
@Override
public void onBlockPlacedBy(World world, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack){
/*@Override
public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) {
IBlockState state = super.onBlockPlaced(worldIn, pos, facing, hitX, hitY, hitZ, meta, placer);
return state.withProperty(FACING, placer.getHorizontalFacing()).withProperty(ACTIVE, Boolean.valueOf(false));
}*/
@Override
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
{
worldIn.setBlockState(pos, state.withProperty(FACING, placer.getHorizontalFacing()).withProperty(ACTIVE, Boolean.valueOf(false)), 2);
}
@Override
@@ -344,11 +385,39 @@ public class Firebox extends CustomContainerFacing implements ITileEntityProvide
{
return EnumBlockRenderType.MODEL;
}
}
/*
Firebox States
Off
On
@SideOnly(Side.CLIENT)
@SuppressWarnings("incomplete-switch")
public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Random rand)
{
if(state.getValue(Firebox.ACTIVE) == true)
{
double d0 = (double)pos.getX() + 0.5D;
double d1 = (double)pos.getY() + 0.65D;
double d2 = (double)pos.getZ() + 0.5D;
double d3 = 0.52D;
double d4 = rand.nextDouble() * 0.6D - 0.3D;
*/
if (rand.nextDouble() < 0.1D)
{
world.playSound((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, SoundEvents.BLOCK_FURNACE_FIRE_CRACKLE, SoundCategory.BLOCKS, 1.0F, 1.0F, false);
}
if(rand.nextInt(4) == 1){
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
}
if(rand.nextInt(4) == 2){
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2-d4, 0.0D, 0.001D, 0.0D, new int[0]);
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
}
if(rand.nextInt(4) == 3){
world.spawnParticle(EnumParticleTypes.FLAME, d0-d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
}
if(rand.nextInt(4) == 4){
world.spawnParticle(EnumParticleTypes.FLAME, d0-d4, d1, d2-d4, 0.0D, 0.001D, 0.0D, new int[0]);
world.spawnParticle(EnumParticleTypes.FLAME, d0+d4, d1, d2+d4, 0.0D, 0.001D, 0.0D, new int[0]);
}
}
}
}

View File

@@ -9,8 +9,12 @@ import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.RenderItem;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderEntityItem;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.renderer.tileentity.RenderItemFrame;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.init.Items;
@@ -22,59 +26,21 @@ import net.minecraft.world.World;
import nmd.primal.forgecraft.blocks.Firebox;
import nmd.primal.forgecraft.tiles.TileFirebox;
import org.lwjgl.opengl.GL11;
import scala.collection.parallel.ParIterableLike;
/**
* Created by kitsu on 12/4/2016.
*/
public class TileFireboxRender extends TileEntitySpecialRenderer<TileFirebox>
{
private final RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
private int rotation;
private float translateX, translateZ;
private double textX, textZ;
private EntityItem entItem = null;
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
//private EntityItem entItem = null;
@Override
public void renderTileEntityAt(TileFirebox tile, double x, double y, double z, float partialTicks, int destroyStage) {
public void renderTileEntityAt(TileFirebox tile, double x, double y, double z, float partialTicks, int destroyStage)
{
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y + 0.875D, z + 0.5D);
GL11.glScalef(0.25F, 0.25F, 0.25F);
World world = tile.getWorld();
IBlockState state = world.getBlockState(tile.getPos());
switch(state.getValue(BlockHorizontal.FACING))
{
case NORTH:
rotation = 0;
//Left and Right
translateX = 1.5f;
//Back and Forth
translateZ = 1.05f;
break;
case EAST:
rotation = 3;
translateZ = 1.0f;
translateX = 1.4f;
break;
case SOUTH:
rotation = 2;
//Left and Right
translateX = 1.5f;
//Back and Forth
translateZ = 0.9f;
break;
case WEST:
rotation = 1;
//Back and Forth
translateX = 1.5f;
//Left and Right
translateZ = 1.0f;
break;
}
GL11.glTranslatef(-1.5F, -0.0F, -1.0F);
GL11.glTranslated(x + 0.5D, y + 0.825D, z + 0.5D);
Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
float prevLGTX = OpenGlHelper.lastBrightnessX;
@@ -83,39 +49,26 @@ public class TileFireboxRender extends TileEntitySpecialRenderer<TileFirebox>
int bright = tile.getWorld().getCombinedLight(pos.up(), 0);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, bright % 65536, bright / 65536);
ItemStack stack = tile.getSlotStack(0);
if (stack != null) {
boolean is_block = stack.getItem() instanceof ItemBlock;
float height = -0.75f;
ItemStack stack1 = tile.getSlotStack(0);
float scale = is_block ? 0.9F : 1.6F;
int stackSize = stack.getCount();
boolean is_block = stack1.getItem() instanceof ItemBlock;
float scale = is_block ? 0.1725F : 0.5F;
double xTrans = is_block ? -1.6D : -0.45D;
double yTrans = is_block ? -1.26D : -0.25D;
GL11.glPushMatrix();
GL11.glTranslatef(translateX, height, translateZ);
GL11.glScalef(scale, scale, scale);
GL11.glRotatef(90.0F * rotation, 0.0F, 1.0F, 0.0F);
Integer temp = tile.getSlotStack(0).getCount();
renderItem.renderItem(stack, renderItem.getItemModelMesher().getItemModel(stack));
GL11.glRotatef(180F, 1.0F, 0.0F, 0.0F);
//float scale = is_block ? 0.9F : 1.6F;
if(is_block){
GL11.glScalef(0.08F,0.08F, 0.08f);
textZ = -23.0D;
} else {
GL11.glScalef(0.05F,0.05F, 0.05f);
textZ = -22.0D;
if (!stack1.isEmpty()) {
int stackRotation = stack1.getCount();
for(int i = 0; i < Math.ceil(stackRotation/8) + 1; i++){
GL11.glPushMatrix();
GL11.glScalef(scale, scale, scale);
GL11.glRotated(45.0F * i, 0.0F, 1.0F, 0.0F);
GL11.glTranslated(xTrans, yTrans, 0.0D);
renderItem.renderItem(stack1, renderItem.getItemModelMesher().getItemModel(stack1));
GL11.glPopMatrix();
}
GL11.glTranslatef(0.0F, 2.0f, 0.0F);
GL11.glTranslated(0.0F, 0.0D, textZ);
getFontRenderer().drawString(temp.toString(), 0, 0, 4210752);
GL11.glPopMatrix();
}
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, prevLGTX, prevLGTY);
GL11.glPopMatrix();
}
}
}

View File

@@ -2,6 +2,8 @@ package nmd.primal.forgecraft.tiles;
import net.minecraft.block.state.IBlockState;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityLockable;
import net.minecraft.util.math.BlockPos;
@@ -54,5 +56,22 @@ public abstract class BaseTile extends TileEntity {
return nbt;
}
// ***************************************************************************** //
// Packets
// ***************************************************************************** //
@Override
public NBTTagCompound getUpdateTag()
{
return writeToNBT(new NBTTagCompound());
}
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
return new SPacketUpdateTileEntity(this.pos, 0, this.writeNBT(new NBTTagCompound()));
}
@Override
public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity packet) {
this.readNBT(packet.getNbtCompound());
}
}

View File

@@ -6,6 +6,8 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.NonNullList;
import java.util.List;
/**
* Created by mminaie on 12/25/16.
*/
@@ -47,6 +49,19 @@ public abstract class TileBaseSlot extends BaseTile {
return ItemStackHelper.getAndSplit(this.getSlotList(), index, count);
}
public ItemStack incrementStackSize(List<ItemStack> stacks, int index, int count) {
Integer tempCount = ((ItemStack)stacks.get(index)).getCount();
ItemStack tempStack = ((ItemStack)stacks.get(index));
if(tempCount + count > 64) {
tempStack.setCount(64);
}
if(tempCount + count <= 64) {
tempStack.setCount(tempCount + count);
}
return tempStack;
}
// ***************************************************************************** //
// set
//
@@ -62,16 +77,6 @@ public abstract class TileBaseSlot extends BaseTile {
this.slotList.clear();
}
/**
public boolean replaceStack(int index, ItemStack stack)
{
if (stack != null && stack.getCount() <= this.getSlotLimit()) {
this.setSlotStack(index, stack);
return true;
}
return false;
} **/
// ***************************************************************************** //
// NBT

View File

@@ -20,6 +20,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.ILockableContainer;
import net.minecraft.world.World;
@@ -38,8 +39,9 @@ import static nmd.primal.forgecraft.CommonUtils.getVanillaItemBurnTime;
*/
public class TileFirebox extends TileBaseSlot implements ITickable {
private ItemStack[] inventory = new ItemStack [0];
private String customName;
private NonNullList<ItemStack> slotList = NonNullList.<ItemStack>withSize(1, ItemStack.EMPTY);
//private ItemStack[] inventory = new ItemStack [0];
//private String customName;
private int iteration = 0;
@Override
@@ -58,26 +60,29 @@ public class TileFirebox extends TileBaseSlot implements ITickable {
world.setBlockState(this.getPos(), state.withProperty(Firebox.ACTIVE, false), 2);
this.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
} else {
if(this.getSlotStack(0) != ItemStack.EMPTY) {
if (world.rand.nextInt((int) Math.floor(getVanillaItemBurnTime(this.getSlotStack(0)) / 20)) == 0) {
this.decrStackSize(0, 1);
this.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
if(world.getBlockState(abovePos).getBlock() instanceof BlockFurnace){
//System.out.println("Trying to set Block Furnace State active");
IBlockState iblockstate = world.getBlockState(abovePos);
TileEntityFurnace tileFurnace = (TileEntityFurnace) world.getTileEntity(abovePos);
}
if(this.getSlotStack(0) != ItemStack.EMPTY) {
Integer decrInt = (int) Math.floor(getVanillaItemBurnTime(this.getSlotStack(0)) / 20);
if(decrInt == 0) {
decrInt = 1;
}
if (world.rand.nextInt(decrInt) == 0) {
this.decrStackSize(0, 1);
this.markDirty();
this.updateBlock();
}
if(world.getBlockState(abovePos).getBlock() instanceof BlockFurnace){
//System.out.println("Trying to set Block Furnace State active");
IBlockState iblockstate = world.getBlockState(abovePos);
TileEntityFurnace tileFurnace = (TileEntityFurnace) world.getTileEntity(abovePos);
if(world.getBlockState(abovePos).getBlock() == Blocks.LIT_FURNACE){
tileFurnace.setField(0,1000);
}
if(world.getBlockState(abovePos).getBlock() == Blocks.FURNACE){
BlockFurnace.setState(true, world, abovePos);
//world.setBlockState(abovePos, Blocks.LIT_FURNACE.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3);
tileFurnace.setField(0,1000);
}
if(world.getBlockState(abovePos).getBlock() == Blocks.LIT_FURNACE){
tileFurnace.setField(0,1000);
}
if(world.getBlockState(abovePos).getBlock() == Blocks.FURNACE){
BlockFurnace.setState(true, world, abovePos);
//world.setBlockState(abovePos, Blocks.LIT_FURNACE.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3);
tileFurnace.setField(0,1000);
}
}
}

View File

@@ -1,238 +1,99 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"texture": "forgecraft:blocks/checker_test",
"texture2": "forgecraft:blocks/firebox_racks",
"firebox_leg": "forgecraft:blocks/firebox_legs",
"texture4": "forgecraft:blocks/brick"
"particle": "forgecraft:blocks/brick",
"texture": "forgecraft:blocks/brick"
},
"elements": [
{
"__comment": "Back",
"from": [ 0, 8, 0 ],
"to": [ 16, 16, 2 ],
"faces": {
"down": { "uv": [ 0, 14.5, 16, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 16, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 16, 8 ], "texture": "#texture4" },
"west": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"east": { "uv": [ 14, 0, 16, 8 ], "texture": "#texture4" }
}
},
{
"__comment": "Bot",
"from": [ 0, 5, 0 ],
"__comment": "Cube1",
"from": [ 0, 0, 0 ],
"to": [ 16, 8, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture4" },
"north": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"south": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"west": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"east": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" }
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"north": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"west": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" }
}
},
{
"__comment": "AirSideLeft",
"from": [ 0, 8, 2 ],
"to": [ 2, 16, 16 ],
"__comment": "Cube2",
"from": [ 0, 8, 14 ],
"to": [ 4, 12, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 2, 15 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"west": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" }
"down": { "uv": [ 0, 0, 4, 2 ], "texture": "#texture" },
"up": { "uv": [ 0, 14, 4, 16 ], "texture": "#texture" },
"north": { "uv": [ 12, 4, 16, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 4, 4, 8 ], "texture": "#texture" },
"west": { "uv": [ 14, 4, 16, 8 ], "texture": "#texture" },
"east": { "uv": [ 0, 4, 2, 8 ], "texture": "#texture" }
}
},
{
"__comment": "AirSideRight",
"from": [ 14, 8, 2 ],
"__comment": "Cube2",
"from": [ 12, 8, 14 ],
"to": [ 16, 12, 16 ],
"faces": {
"down": { "uv": [ 0, 15, 4, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 4, 1 ], "texture": "#texture" },
"north": { "uv": [ 12, 4, 16, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 4, 4, 8 ], "texture": "#texture" },
"west": { "uv": [ 0, 4, 1, 8 ], "texture": "#texture" },
"east": { "uv": [ 15, 4, 16, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Cube4",
"from": [ 0, 8, 0 ],
"to": [ 2, 16, 14 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 14 ], "texture": "#texture" },
"up": { "uv": [ 0, 2, 2, 16 ], "texture": "#texture" },
"north": { "uv": [ 14, 0, 16, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture" },
"west": { "uv": [ 2, 0, 16, 8 ], "texture": "#texture" },
"east": { "uv": [ 2, 0, 16, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Cube4",
"from": [ 14, 8, 0 ],
"to": [ 16, 16, 14 ],
"faces": {
"down": { "uv": [ 0, 14, 2, 15 ], "texture": "#texture" },
"up": { "uv": [ 0, 2, 2, 16 ], "texture": "#texture"},
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 4, 2, 8 ], "texture": "#texture" },
"west": { "uv": [ 2, 0, 16, 7 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Cube6",
"from": [ 0, 12, 14 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 2, 15 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"west": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" }
"down": { "uv": [ 0, 14, 16, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture", "rotation": 90 },
"north": { "uv": [ 0, 3, 16, 7 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 4 ], "texture": "#texture" },
"west": { "uv": [ 0, 0, 2, 4 ], "texture": "#texture" },
"east": { "uv": [ 14, 0, 16, 4 ], "texture": "#texture" }
}
},
{
"__comment": "Front0",
"from": [ 2, 8, 14 ],
"to": [ 4, 16, 16 ],
"__comment": "Cube7",
"from": [ 2, 8, 0 ],
"to": [ 14, 16, 2 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 2 ], "texture": "#texture4" },
"up": { "uv": [ 0, 14, 2, 12 ], "texture": "#texture4" },
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"south": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"east": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" }
}
},
{
"__comment": "Front1",
"from": [ 12, 8, 14 ],
"to": [ 14, 16, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 2 ], "texture": "#texture4" },
"up": { "uv": [ 0, 14, 2, 12 ], "texture": "#texture4" },
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"south": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"east": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" }
}
},
{
"__comment": "Front2",
"from": [ 4, 13, 14 ],
"to": [ 12, 16, 16 ],
"faces": {
"down": { "uv": [ 4, 5, 12, 7 ], "texture": "#texture4" },
"up": { "uv": [ 4, 5, 12, 7 ], "texture": "#texture4" },
"north": { "uv": [ 4, 4, 12, 7 ], "texture": "#texture4" },
"south": { "uv": [ 4, 4, 12, 7 ], "texture": "#texture4" },
"west": { "uv": [ 15, 0, 16, 4 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 1, 4 ], "texture": "#texture4" }
}
},
{
"__comment": "Holder0",
"from": [ 6.5, 15, 2 ],
"to": [ 7.3, 15.8, 14 ],
"rotation": { "origin": [ 6.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Leg0",
"from": [ 12, 0, 0 ],
"to": [ 16, 5, 4 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg1",
"from": [ 0, 0, 12 ],
"to": [ 4, 5, 16 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg2",
"from": [ 0, 0, 0 ],
"to": [ 4, 5, 4 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg3",
"from": [ 12, 0, 12 ],
"to": [ 16, 5, 16 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Holder1",
"from": [ 10.5, 15, 2 ],
"to": [ 11.3, 15.8, 14 ],
"rotation": { "origin": [ 10.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder2",
"from": [ 12.5, 15, 2 ],
"to": [ 13.3, 15.8, 14 ],
"rotation": { "origin": [ 12.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder3",
"from": [ 2.5, 15, 2 ],
"to": [ 3.3, 15.8, 14 ],
"rotation": { "origin": [ 2.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder4",
"from": [ 4.5, 15, 2 ],
"to": [ 5.3, 15.8, 14 ],
"rotation": { "origin": [ 4.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder5",
"from": [ 8.5, 15, 2 ],
"to": [ 9.3, 15.8, 14 ],
"rotation": { "origin": [ 8.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
"down": { "uv": [ 2, 0, 14, 0 ], "texture": "#texture" },
"up": { "uv": [ 0, 12, 14, 14.5 ], "texture": "#texture" },
"north": { "uv": [ 2, 0, 14, 8 ], "texture": "#texture" },
"south": { "uv": [ 2, 0, 14, 8 ], "texture": "#texture" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 0, 8 ], "texture": "#texture" }
}
}
]

View File

@@ -1,239 +1,99 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"parent": "forgecraft:block/firebox",
"textures": {
"texture": "forgecraft:blocks/checker_test",
"texture2": "forgecraft:blocks/firebox_racks",
"firebox_leg": "forgecraft:blocks/firebox_legs",
"texture4": "forgecraft:blocks/brick",
"texture4_lit": "forgecraft:blocks/brick_lit"
"texture": "forgecraft:blocks/brick",
"texture1": "forgecraft:blocks/brick_lit"
},
"elements": [
{
"__comment": "Back",
"from": [ 0, 8, 0 ],
"to": [ 16, 16, 2 ],
"faces": {
"down": { "uv": [ 0, 14.5, 16, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 16, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 16, 8 ], "texture": "#texture4_lit" },
"west": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"east": { "uv": [ 14, 0, 16, 8 ], "texture": "#texture4" }
}
},
{
"__comment": "Bot",
"from": [ 0, 5, 0 ],
"__comment": "Cube1",
"from": [ 0, 0, 0 ],
"to": [ 16, 8, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture4_lit" },
"north": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"south": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"west": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" },
"east": { "uv": [ 0, 8, 16, 11 ], "texture": "#texture4" }
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture1" },
"north": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"west": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 8, 16, 16 ], "texture": "#texture" }
}
},
{
"__comment": "AirSideLeft",
"from": [ 0, 8, 2 ],
"to": [ 2, 16, 16 ],
"__comment": "Cube2",
"from": [ 0, 8, 14 ],
"to": [ 4, 12, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 2, 15 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"west": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4_lit" }
"down": { "uv": [ 0, 0, 4, 2 ], "texture": "#texture" },
"up": { "uv": [ 0, 14, 4, 16 ], "texture": "#texture" },
"north": { "uv": [ 12, 4, 16, 8 ], "texture": "#texture1" },
"south": { "uv": [ 0, 4, 4, 8 ], "texture": "#texture" },
"west": { "uv": [ 14, 4, 16, 8 ], "texture": "#texture" },
"east": { "uv": [ 0, 4, 2, 8 ], "texture": "#texture" }
}
},
{
"__comment": "AirSideRight",
"from": [ 14, 8, 2 ],
"__comment": "Cube2",
"from": [ 12, 8, 14 ],
"to": [ 16, 12, 16 ],
"faces": {
"down": { "uv": [ 0, 15, 4, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 4, 1 ], "texture": "#texture" },
"north": { "uv": [ 0, 4, 4, 8 ], "texture": "#texture1" },
"south": { "uv": [ 0, 4, 4, 8 ], "texture": "#texture" },
"west": { "uv": [ 0, 4, 1, 8 ], "texture": "#texture" },
"east": { "uv": [ 15, 4, 16, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Cube4",
"from": [ 0, 8, 0 ],
"to": [ 2, 16, 14 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 14 ], "texture": "#texture" },
"up": { "uv": [ 0, 2, 2, 16 ], "texture": "#texture" },
"north": { "uv": [ 14, 0, 16, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture" },
"west": { "uv": [ 2, 0, 16, 8 ], "texture": "#texture" },
"east": { "uv": [ 1, 4, 15, 12 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube4",
"from": [ 14, 8, 0 ],
"to": [ 16, 16, 14 ],
"faces": {
"down": { "uv": [ 0, 14, 2, 15 ], "texture": "#texture" },
"up": { "uv": [ 1, 1, 15, 3 ], "texture": "#texture", "rotation": 90 },
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture" },
"south": { "uv": [ 0, 4, 2, 8 ], "texture": "#texture" },
"west": { "uv": [ 1, 4, 15, 11 ], "texture": "#texture1" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Cube6",
"from": [ 0, 12, 14 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture4" },
"up": { "uv": [ 0, 0, 2, 15 ], "texture": "#texture4" },
"north": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"south": { "uv": [ 0, 0, 2, 8 ], "texture": "#texture4" },
"west": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4_lit" },
"east": { "uv": [ 0, 0, 14, 8 ], "texture": "#texture4" }
"down": { "uv": [ 0, 14, 16, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 2, 16 ], "texture": "#texture", "rotation": 90 },
"north": { "uv": [ 0, 2, 16, 6 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 4 ], "texture": "#texture" },
"west": { "uv": [ 0, 0, 2, 4 ], "texture": "#texture" },
"east": { "uv": [ 14, 0, 16, 4 ], "texture": "#texture" }
}
},
{
"__comment": "Front0",
"from": [ 2, 8, 14 ],
"to": [ 4, 16, 16 ],
"__comment": "Cube7",
"from": [ 2, 8, 0 ],
"to": [ 14, 16, 2 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 2 ], "texture": "#texture4" },
"up": { "uv": [ 0, 14, 2, 12 ], "texture": "#texture4" },
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"south": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"east": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4_lit" }
}
},
{
"__comment": "Front1",
"from": [ 12, 8, 14 ],
"to": [ 14, 16, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 2, 2 ], "texture": "#texture4" },
"up": { "uv": [ 0, 14, 2, 12 ], "texture": "#texture4" },
"north": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"south": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4_lit" },
"east": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture4" }
}
},
{
"__comment": "Front2",
"from": [ 4, 13, 14 ],
"to": [ 12, 16, 16 ],
"faces": {
"down": { "uv": [ 4, 5, 12, 7 ], "texture": "#texture4_lit" },
"up": { "uv": [ 4, 5, 12, 7 ], "texture": "#texture4" },
"north": { "uv": [ 4, 4, 12, 7 ], "texture": "#texture4" },
"south": { "uv": [ 4, 4, 12, 7 ], "texture": "#texture4" },
"west": { "uv": [ 15, 0, 16, 4 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 1, 4 ], "texture": "#texture4" }
}
},
{
"__comment": "Holder0",
"from": [ 6.5, 15, 2 ],
"to": [ 7.3, 15.8, 14 ],
"rotation": { "origin": [ 6.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Leg0",
"from": [ 12, 0, 0 ],
"to": [ 16, 5, 4 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg1",
"from": [ 0, 0, 12 ],
"to": [ 4, 5, 16 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg2",
"from": [ 0, 0, 0 ],
"to": [ 4, 5, 4 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Leg3",
"from": [ 12, 0, 12 ],
"to": [ 16, 5, 16 ],
"faces": {
"down": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"up": { "uv": [ 0, 12, 4, 16 ], "texture": "#firebox_leg" },
"north": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"south": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"west": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" },
"east": { "uv": [ 0, 10.5, 4, 15.5 ], "texture": "#firebox_leg" }
}
},
{
"__comment": "Holder1",
"from": [ 10.5, 15, 2 ],
"to": [ 11.3, 15.8, 14 ],
"rotation": { "origin": [ 10.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder2",
"from": [ 12.5, 15, 2 ],
"to": [ 13.3, 15.8, 14 ],
"rotation": { "origin": [ 12.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder3",
"from": [ 2.5, 15, 2 ],
"to": [ 3.3, 15.8, 14 ],
"rotation": { "origin": [ 2.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder4",
"from": [ 4.5, 15, 2 ],
"to": [ 5.3, 15.8, 14 ],
"rotation": { "origin": [ 4.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
}
},
{
"__comment": "Holder5",
"from": [ 8.5, 15, 2 ],
"to": [ 9.3, 15.8, 14 ],
"rotation": { "origin": [ 8.5, 15, 2 ], "axis": "z", "angle": -45 },
"faces": {
"down": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"up": { "uv": [ 0, 0, 1, 12 ], "texture": "#texture2", "tintindex": 0 },
"north": { "uv": [ 0, 0, 1, 1 ], "texture": "#texture2", "tintindex": 0 },
"south": { "uv": [ 0, 16, 1, 15 ], "texture": "#texture2", "tintindex": 0 },
"west": { "uv": [ 0, 16, 12, 15 ], "texture": "#texture2", "tintindex": 0 },
"east": { "uv": [ 16, 16, 4, 15 ], "texture": "#texture2", "tintindex": 0 }
"down": { "uv": [ 2, 0, 14, 0 ], "texture": "#texture" },
"up": { "uv": [ 0, 12, 14, 14.5 ], "texture": "#texture" },
"north": { "uv": [ 2, 0, 14, 8 ], "texture": "#texture" },
"south": { "uv": [ 2, 4, 14, 12 ], "texture": "#texture1" },
"west": { "uv": [ 13, 0, 15, 8 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 0, 8 ], "texture": "#texture" }
}
}
]

View File

@@ -1,3 +1,44 @@
{
"parent": "forgecraft:/block/firebox"
"forge_marker":1,
"textures": {
"particle": "forgecraft:blocks/brick",
"texture": "forgecraft:blocks/brick"
},
"parent": "forgecraft:block/firebox",
"display": {
"thirdperson_": {
"rotation": [
0,
0,
0
],
"translation": [
0,
0,
0
],
"scale": [
0.1,
0.1,
0.1
]
},
"firstperson": {
"rotation": [
0,
0,
0
],
"translation": [
0,
0,
0
],
"scale": [
0.1,
0.1,
0.1
]
}
}
}