Jump to content

[SOLVED] Trouble With Creating Block Similar To Minecraft Torch


Spacejet

Recommended Posts

I am learning JAVA(from maybe a month now) so i am totally new to all forge things. So, I wanted to ask how do you get some properties, namely the minecraft torch property of different textures when placed on side of blocks and the one in which it pops off when the block it is placed on is broken. I tried copying some code which i thought was relavent to the property of placing on side of blocks, the one using enumfacing, but my game used to crash saying that enum is never used and is not in blockstate container i am currently on my phone so can't attach the files but will do so if requiered. Please do tell me if there is something i am doing stupidly wrong. i also tried adding all the torch code ,without the block properties and stuff of course, but it did not render the model tgis time. the enumfacing worked though. Any help will be greatly appreciated

[EDIT]

I forgot to mention that i am making a custom model block named 'Lantern'. Also, I wanted it to be placeble on the downside of blocks, which cannot be done with minecraft torch

Edited by Spacejet
forgot to write something important
Link to comment
Share on other sites

Its usually customary to post your code and any errors you get, because we're not psychic.

I mean, you might be and won't need those things from people you're helping...

But we're not.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

My Apologies. Here is the code i mentioned. everything except the texture is working just fine.

Spoiler

package com.spacejet.starwars.blocks;

import java.util.Random;

import javax.annotation.Nullable;

import com.google.common.base.Predicate;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.Mirror;
import net.minecraft.util.Rotation;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class Lantern extends BlockBase{
    
    public static final PropertyDirection FACING = PropertyDirection.create("facing", new Predicate<EnumFacing>()
    {
        public boolean apply(@Nullable EnumFacing p_apply_1_)
        {
            return p_apply_1_ != EnumFacing.DOWN;
        }
    });
    
    public static final AxisAlignedBB LANTERN_BB = new AxisAlignedBB(0.3125D, 0, 0.3125D, 0.6875D, 0.555D,0.6875D);
    public static final AxisAlignedBB LANTERN_WALL_BB = new AxisAlignedBB(0.3125D, 0, 0.3125D, 0.6875D, 0.555D,0.6875D);

    public Lantern(String name, Material material) {
        super(name, material);
        setLightLevel(1.0f);
        setResistance(8.0f);
        setHardness(2.0f);
        setCreativeTab(CreativeTabs.DECORATIONS);
    }
    
    @Override
    public boolean isOpaqueCube(IBlockState state) {
        return false;
    }
    
    @Override
    public boolean isFullCube(IBlockState state) {
        return false;
    }
    
    public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
    {
        switch ((EnumFacing)state.getValue(FACING))
        {
            case EAST:
                return LANTERN_WALL_BB;
            case WEST:
                return LANTERN_WALL_BB;
            case SOUTH:
                return LANTERN_WALL_BB;
            case NORTH:
                return LANTERN_WALL_BB;
            default:
                return LANTERN_BB;
        }
    }
    
    @Nullable
    public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos)
    {
        return NULL_AABB;
    }

 

    private boolean canPlaceOn(World worldIn, BlockPos pos)
    {
        IBlockState state = worldIn.getBlockState(pos);
        return state.getBlock().canPlaceTorchOnTop(state, worldIn, pos);
    }

    
    public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
    {
        for (EnumFacing enumfacing : FACING.getAllowedValues())
        {
            if (this.canPlaceAt(worldIn, pos, enumfacing))
            {
                return true;
            }
        }

        return false;
    }

    private boolean canPlaceAt(World worldIn, BlockPos pos, EnumFacing facing)
    {
        BlockPos blockpos = pos.offset(facing.getOpposite());
        IBlockState iblockstate = worldIn.getBlockState(blockpos);
        Block block = iblockstate.getBlock();
        BlockFaceShape blockfaceshape = iblockstate.getBlockFaceShape(worldIn, blockpos, facing);

        if (facing.equals(EnumFacing.UP) && this.canPlaceOn(worldIn, blockpos))
        {
            return true;
        }
        else if (facing != EnumFacing.UP && facing != EnumFacing.DOWN)
        {
            return !isExceptBlockForAttachWithPiston(block) && blockfaceshape == BlockFaceShape.SOLID;
        }
        else
        {
            return false;
        }
    }

   
    public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
    {
        if (this.canPlaceAt(worldIn, pos, facing))
        {
            return this.getDefaultState().withProperty(FACING, facing);
        }
        else
        {
            for (EnumFacing enumfacing : EnumFacing.Plane.HORIZONTAL)
            {
                if (this.canPlaceAt(worldIn, pos, enumfacing))
                {
                    return this.getDefaultState().withProperty(FACING, enumfacing);
                }
            }

            return this.getDefaultState();
        }
    }

   
    public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
    {
        this.checkForDrop(worldIn, pos, state);
    }

   
    public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
    {
        this.onNeighborChangeInternal(worldIn, pos, state);
    }

    protected boolean onNeighborChangeInternal(World worldIn, BlockPos pos, IBlockState state)
    {
        if (!this.checkForDrop(worldIn, pos, state))
        {
            return true;
        }
        else
        {
            EnumFacing enumfacing = (EnumFacing)state.getValue(FACING);
            EnumFacing.Axis enumfacing$axis = enumfacing.getAxis();
            EnumFacing enumfacing1 = enumfacing.getOpposite();
            BlockPos blockpos = pos.offset(enumfacing1);
            boolean flag = false;

            if (enumfacing$axis.isHorizontal() && worldIn.getBlockState(blockpos).getBlockFaceShape(worldIn, blockpos, enumfacing) != BlockFaceShape.SOLID)
            {
                flag = true;
            }
            else if (enumfacing$axis.isVertical() && !this.canPlaceOn(worldIn, blockpos))
            {
                flag = true;
            }

            if (flag)
            {
                this.dropBlockAsItem(worldIn, pos, state, 0);
                worldIn.setBlockToAir(pos);
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    protected boolean checkForDrop(World worldIn, BlockPos pos, IBlockState state)
    {
        if (state.getBlock() == this && this.canPlaceAt(worldIn, pos, (EnumFacing)state.getValue(FACING)))
        {
            return true;
        }
        else
        {
            if (worldIn.getBlockState(pos).getBlock() == this)
            {
                this.dropBlockAsItem(worldIn, pos, state, 0);
                worldIn.setBlockToAir(pos);
            }

            return false;
        }
    }

    @SideOnly(Side.CLIENT)
    public void randomDisplayTick(IBlockState stateIn, World worldIn, BlockPos pos, Random rand)
    {
        EnumFacing enumfacing = (EnumFacing)stateIn.getValue(FACING);
        double d0 = (double)pos.getX() + 0.5D;
        double d1 = (double)pos.getY() + 0.7D;
        double d2 = (double)pos.getZ() + 0.5D;
        double d3 = 0.22D;
        double d4 = 0.27D;

        if (enumfacing.getAxis().isHorizontal())
        {
            EnumFacing enumfacing1 = enumfacing.getOpposite();
            worldIn.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0 + 0.27D * (double)enumfacing1.getFrontOffsetX(), d1 + 0.22D, d2 + 0.27D * (double)enumfacing1.getFrontOffsetZ(), 0.0D, 0.0D, 0.0D);
            worldIn.spawnParticle(EnumParticleTypes.FLAME, d0 + 0.27D * (double)enumfacing1.getFrontOffsetX(), d1 + 0.22D, d2 + 0.27D * (double)enumfacing1.getFrontOffsetZ(), 0.0D, 0.0D, 0.0D);
        }
        else
        {
            worldIn.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, 0.0D, 0.0D, 0.0D);
            worldIn.spawnParticle(EnumParticleTypes.FLAME, d0, d1, d2, 0.0D, 0.0D, 0.0D);
        }
    }

   
    public IBlockState getStateFromMeta(int meta)
    {
        IBlockState iblockstate = this.getDefaultState();

        switch (meta)
        {
            case 1:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.EAST);
                break;
            case 2:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.WEST);
                break;
            case 3:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.SOUTH);
                break;
            case 4:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.NORTH);
                break;
            case 5:
            default:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.UP);
        }

        return iblockstate;
    }

    @SideOnly(Side.CLIENT)
    public BlockRenderLayer getBlockLayer()
    {
        return BlockRenderLayer.CUTOUT;
    }

    
    public int getMetaFromState(IBlockState state)
    {
        int i = 0;

        switch ((EnumFacing)state.getValue(FACING))
        {
            case EAST:
                i = i | 1;
                break;
            case WEST:
                i = i | 2;
                break;
            case SOUTH:
                i = i | 3;
                break;
            case NORTH:
                i = i | 4;
                break;
            case DOWN:
            case UP:
            default:
                i = i | 5;
        }

        return i;
    }

    
    public IBlockState withRotation(IBlockState state, Rotation rot)
    {
        return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING)));
    }

   
    public IBlockState withMirror(IBlockState state, Mirror mirrorIn)
    {
        return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING)));
    }

    protected BlockStateContainer createBlockState()
    {
        return new BlockStateContainer(this, new IProperty[] {FACING});
    }

   
    public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
    {
        return BlockFaceShape.UNDEFINED;
    }
}
 

This is the blockstates json file:

Spoiler

{
    "variants": {
        "facing=up": { "model": "lantern" },
        "facing=east": { "model": "lantern_wall" },
        "facing=south": { "model": "lantern_wall", "y": 90 },
        "facing=west": { "model": "lantern_wall", "y": 180 },
        "facing=north": { "model": "lantern_wall", "y": 270 }
    }
}
 

And this is the model file for lantern:

Spoiler

{
    "credit": "Made by Spacejet",
    "textures": {
        "0": "(modid):blocks/fire",
        "1": "(modid):blocks/fire2",
        "2": "(modid):blocks/fire3",
        "3": "(modid):blocks/fire4",
        "4": "(modid):blocks/lantern",
        "5": "(modid):blocks/lantern_2",
        "6": "(modid):blocks/lantern_sides",
        "particle":"(modid):blocks/lantern_2"
    },
    "elements": [
        {
            "name": "cube",
            "from": [9.5, 1.75, 6.000000000000001],
            "to": [9.75, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6, 1.75, 6.250000000000001],
            "to": [6.25, 7.25, 6.500000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [9.75, 1.75, 6.250000000000001],
            "to": [10, 7.25, 6.500000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.25, 1.75, 6.000000000000001],
            "to": [6.5, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [9.75, 1.75, 9.5],
            "to": [10, 7.25, 9.75],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [9.5, 1.75, 9.75],
            "to": [9.75, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.25, 1.75, 10],
            "to": [6.5, 7.25, 10.25],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6, 1.75, 9.75],
            "to": [6.25, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [9.75, 1.75, 6.000000000000001],
            "to": [10, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [9.75, 1.75, 9.75],
            "to": [10, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6, 1.75, 10],
            "to": [6.25, 7.25, 10.25],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6, 1.75, 6.000000000000001],
            "to": [6.25, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "middle",
            "from": [5.5, 7.75, 5.5],
            "to": [10.5, 8.5, 10.5],
            "faces": {
                "north": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "east": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "south": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "west": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "up": {"uv": [0, 0, 5, 5], "texture": "#5"},
                "down": {"uv": [0, 0, 5, 5], "texture": "#5"}
            },
            "type": "cube"
        },
        {
            "name": "top",
            "from": [6.5, 8.5, 6.5],
            "to": [9.5, 9, 9.5],
            "faces": {
                "north": {"uv": [7, 15, 10, 15.5], "texture": "#4"},
                "east": {"uv": [13, 15, 16, 15.5], "texture": "#4"},
                "south": {"uv": [6, 15, 9, 15.5], "texture": "#4"},
                "west": {"uv": [0, 15, 3, 15.5], "texture": "#4"},
                "up": {"uv": [6, 0, 9, 3], "texture": "#4"},
                "down": {"uv": [6, 13, 9, 16], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "down",
            "from": [5, 7.25, 5],
            "to": [11, 8, 11],
            "faces": {
                "north": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "east": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "south": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "west": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "up": {"uv": [0, 0, 6, 6], "texture": "#4"},
                "down": {"uv": [0, 0, 6, 6], "texture": "#4"}
            },
            "rotation": {
                "origin": [7.5, 11.75, 9.5],
                "axis": "y",
                "angle": 0
            },
            "type": "cube"
        },
        {
            "name": "top",
            "from": [5, 1, 5],
            "to": [11, 1.75, 11],
            "faces": {
                "north": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "east": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "south": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "west": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "up": {"uv": [0, 0, 6, 6], "texture": "#4"},
                "down": {"uv": [0, 0, 6, 6], "texture": "#4"}
            },
            "rotation": {
                "origin": [8.5, 7, 14.5],
                "axis": "y",
                "angle": 0
            },
            "type": "cube"
        },
        {
            "name": "middle",
            "from": [5.5, 0.5, 5.5],
            "to": [10.5, 1, 10.5],
            "faces": {
                "north": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "east": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "south": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "west": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "up": {"uv": [0, 0, 5, 5], "texture": "#5"},
                "down": {"uv": [0, 0, 5, 5], "texture": "#5"}
            },
            "type": "cube"
        },
        {
            "name": "down",
            "from": [6.5, 0, 6.5],
            "to": [9.5, 0.5, 9.5],
            "faces": {
                "north": {"uv": [7, 15, 10, 15.5], "texture": "#4"},
                "east": {"uv": [13, 15, 16, 15.5], "texture": "#4"},
                "south": {"uv": [6, 15, 9, 15.5], "texture": "#4"},
                "west": {"uv": [0, 15, 3, 15.5], "texture": "#4"},
                "up": {"uv": [6, 0, 9, 3], "texture": "#4"},
                "down": {"uv": [6, 13, 9, 16], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "main bar",
            "from": [7.5, 1.75, 7.5],
            "to": [8.5, 7.25, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            },
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [6.75, 4, 7.5],
            "to": [7.5, 5, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "down": {"uv": [0, 0, 0.75, 1], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle north",
            "from": [7.5, 4, 6.75],
            "to": [8.5, 5, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 1, 0.75], "texture": "#3"},
                "down": {"uv": [0, 0, 1, 0.75], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 4, 8.5],
            "to": [8.5, 5, 9.25],
            "faces": {
                "north": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 1, 0.75], "texture": "#3"},
                "down": {"uv": [0, 0, 1, 0.75], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [8.5, 4, 7.5],
            "to": [9.25, 5, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "down": {"uv": [0, 0, 0.75, 1], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [8.5, 3.25, 7.5],
            "to": [9, 4, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 3.25, 8.5],
            "to": [8.5, 4, 9],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [7, 3.25, 7.5],
            "to": [7.5, 4, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 5, 8.5],
            "to": [8.5, 5.75, 9],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [7, 5, 7.5],
            "to": [7.5, 5.75, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [8.5, 5, 7.5],
            "to": [9, 5.75, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 5, 7],
            "to": [8.5, 5.75, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [8.5, 2.5, 7.5],
            "to": [8.75, 3.25, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [7.25, 2.5, 7.5],
            "to": [7.5, 3.25, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 2.5, 8.5],
            "to": [8.5, 3.25, 8.75],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 2.5, 7.25],
            "to": [8.5, 3.25, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 5.75, 7.25],
            "to": [8.5, 6.5, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [8.5, 5.75, 7.5],
            "to": [8.75, 6.5, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 5.75, 8.5],
            "to": [8.5, 6.5, 8.75],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [7.25, 5.75, 7.5],
            "to": [7.5, 6.5, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [7.5, 3.25, 7],
            "to": [8.5, 4, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        }
    ],
    "groups": [
        {
            "name": "all",
            "isOpen": true,
            "display": {"visibility": true, "autouv": true},
            "children": [
                {
                    "name": "side bars",
                    "isOpen": false,
                    "display": {"visibility": true, "autouv": true},
                    "children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
                },
                {
                    "name": "top",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [12, 13, 14]
                },
                {
                    "name": "bottom",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [15, 16, 17]
                },
                {
                    "name": "_&/3%6-7A",
                    "isOpen": false,
                    "display": {"visibility": true, "autouv": true},
                    "children": [
                        {
                            "name": "group",
                            "isOpen": true,
                            "display": {"visibility": true, "autouv": true},
                            "children": [
                                18,
                                19,
                                20,
                                21,
                                22,
                                23,
                                24,
                                25,
                                26,
                                27,
                                28,
                                29,
                                30,
                                31,
                                32,
                                33,
                                34,
                                35,
                                36,
                                37,
                                38
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "display": {
        "thirdperson_righthand": {
            "rotation": [18, 45, 0],
            "translation": [0, 3, 0],
            "scale": [0.4, 0.4, 0.4]
        },
        "thirdperson_lefthand": {
            "scale": [0.4, 0.4, 0.4],
            "rotation": [18, 45, 0],
            "translation": [0, 3, 0]
        },
        "gui": {
            "scale": [0.625, 0.625, 0.625],
            "rotation": [30, 225, 0],
            "translation": [0, 0, 0]
        }
    }
}

And this for lantern_wall

Spoiler

{
    "credit": "Made with Blockbench, a free, modern block model editor by JannisX11",
    "textures": {
        "0": "blocks/fire",
        "1": "blocks/fire2",
        "2": "blocks/fire3",
        "3": "blocks/fire4",
        "4": "blocks/lantern",
        "5": "blocks/lantern_2",
        "6": "blocks/lantern_sides",
        "7": "blocks/lantern_hang_ring",
        "particle": "blocks/lantern_2"
    },
    "elements": [
        {
            "name": "cube",
            "from": [6.25, 1.75, 6.000000000000001],
            "to": [6.5, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [2.75, 1.75, 6.250000000000001],
            "to": [3, 7.25, 6.500000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.5, 1.75, 6.250000000000001],
            "to": [6.75, 7.25, 6.500000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [3, 1.75, 6.000000000000001],
            "to": [3.25, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.5, 1.75, 9.5],
            "to": [6.75, 7.25, 9.75],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.25, 1.75, 9.75],
            "to": [6.5, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [3, 1.75, 10],
            "to": [3.25, 7.25, 10.25],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [2.75, 1.75, 9.75],
            "to": [3, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.5, 1.75, 6.000000000000001],
            "to": [6.75, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [6.5, 1.75, 9.75],
            "to": [6.75, 7.25, 10],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [2.75, 1.75, 10],
            "to": [3, 7.25, 10.25],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [2.75, 1.75, 6.000000000000001],
            "to": [3, 7.25, 6.250000000000001],
            "faces": {
                "north": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "east": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "south": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "west": {"uv": [0, 0, 0.25, 5.5], "texture": "#6"},
                "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"},
                "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#6"}
            },
            "type": "cube"
        },
        {
            "name": "middle",
            "from": [2.25, 7.75, 5.5],
            "to": [7.25, 8.5, 10.5],
            "faces": {
                "north": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "east": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "south": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "west": {"uv": [0, 0, 5, 0.75], "texture": "#5"},
                "up": {"uv": [0, 0, 5, 5], "texture": "#5"},
                "down": {"uv": [0, 0, 5, 5], "texture": "#5"}
            },
            "type": "cube"
        },
        {
            "name": "top",
            "from": [3.25, 8.5, 6.5],
            "to": [6.25, 9, 9.5],
            "faces": {
                "north": {"uv": [7, 15, 10, 15.5], "texture": "#4"},
                "east": {"uv": [13, 15, 16, 15.5], "texture": "#4"},
                "south": {"uv": [6, 15, 9, 15.5], "texture": "#4"},
                "west": {"uv": [0, 15, 3, 15.5], "texture": "#4"},
                "up": {"uv": [6, 0, 9, 3], "texture": "#4"},
                "down": {"uv": [6, 13, 9, 16], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "down",
            "from": [1.75, 7.25, 5],
            "to": [7.75, 8, 11],
            "faces": {
                "north": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "east": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "south": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "west": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "up": {"uv": [0, 0, 6, 6], "texture": "#4"},
                "down": {"uv": [0, 0, 6, 6], "texture": "#4"}
            },
            "rotation": {
                "origin": [4.25, 11.75, 9.5],
                "axis": "y",
                "angle": 0
            },
            "type": "cube"
        },
        {
            "name": "top",
            "from": [1.75, 1, 5],
            "to": [7.75, 1.75, 11],
            "faces": {
                "north": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "east": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "south": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "west": {"uv": [0, 0, 6, 0.75], "texture": "#4"},
                "up": {"uv": [0, 0, 6, 6], "texture": "#4"},
                "down": {"uv": [0, 0, 6, 6], "texture": "#4"}
            },
            "rotation": {
                "origin": [5.25, 7, 14.5],
                "axis": "y",
                "angle": 0
            },
            "type": "cube"
        },
        {
            "name": "middle",
            "from": [2.25, 0.5, 5.5],
            "to": [7.25, 1, 10.5],
            "faces": {
                "north": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "east": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "south": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "west": {"uv": [0, 0, 5, 0.5], "texture": "#5"},
                "up": {"uv": [0, 0, 5, 5], "texture": "#5"},
                "down": {"uv": [0, 0, 5, 5], "texture": "#5"}
            },
            "type": "cube"
        },
        {
            "name": "down",
            "from": [3.25, 0, 6.5],
            "to": [6.25, 0.5, 9.5],
            "faces": {
                "north": {"uv": [7, 15, 10, 15.5], "texture": "#4"},
                "east": {"uv": [13, 15, 16, 15.5], "texture": "#4"},
                "south": {"uv": [6, 15, 9, 15.5], "texture": "#4"},
                "west": {"uv": [0, 15, 3, 15.5], "texture": "#4"},
                "up": {"uv": [6, 0, 9, 3], "texture": "#4"},
                "down": {"uv": [6, 13, 9, 16], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 3.25, 7],
            "to": [5.25, 4, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "_loading": false,
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [3.5, 4, 7.5],
            "to": [4.25, 5, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "down": {"uv": [0, 0, 0.75, 1], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle north",
            "from": [4.25, 4, 6.75],
            "to": [5.25, 5, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 1, 0.75], "texture": "#3"},
                "down": {"uv": [0, 0, 1, 0.75], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 4, 8.5],
            "to": [5.25, 5, 9.25],
            "faces": {
                "north": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 1, 0.75], "texture": "#3"},
                "down": {"uv": [0, 0, 1, 0.75], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [5.25, 4, 7.5],
            "to": [6, 5, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "south": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#3"},
                "up": {"uv": [0, 0, 0.75, 1], "texture": "#3"},
                "down": {"uv": [0, 0, 0.75, 1], "texture": "#3"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [5.25, 3.25, 7.5],
            "to": [5.75, 4, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 3.25, 8.5],
            "to": [5.25, 4, 9],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [3.75, 3.25, 7.5],
            "to": [4.25, 4, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 5, 8.5],
            "to": [5.25, 5.75, 9],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle west",
            "from": [3.75, 5, 7.5],
            "to": [4.25, 5.75, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [5.25, 5, 7.5],
            "to": [5.75, 5.75, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 0.5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 0.5, 1], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 5, 7],
            "to": [5.25, 5.75, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "east": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#1"},
                "west": {"uv": [0, 0, 0.5, 0.75], "texture": "#1"},
                "up": {"uv": [0, 0, 1, 0.5], "texture": "#1"},
                "down": {"uv": [0, 0, 1, 0.5], "texture": "#1"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [5.25, 2.5, 7.5],
            "to": [5.5, 3.25, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [4, 2.5, 7.5],
            "to": [4.25, 3.25, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 2.5, 8.5],
            "to": [5.25, 3.25, 8.75],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 2.5, 7.25],
            "to": [5.25, 3.25, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 5.75, 7.25],
            "to": [5.25, 6.5, 7.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [5.25, 5.75, 7.5],
            "to": [5.5, 6.5, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle south",
            "from": [4.25, 5.75, 8.5],
            "to": [5.25, 6.5, 8.75],
            "faces": {
                "north": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "east": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "south": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "west": {"uv": [0, 0, 0.25, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 1, 0.25], "texture": "#0"},
                "down": {"uv": [0, 0, 1, 0.25], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "side middle east",
            "from": [4, 5.75, 7.5],
            "to": [4.25, 6.5, 8.5],
            "faces": {
                "north": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "east": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "south": {
                    "uv": [0, 0, 0.25, 0.75],
                    "texture": "#0"
                },
                "west": {"uv": [0, 0, 1, 0.75], "texture": "#0"},
                "up": {"uv": [0, 0, 0.25, 1], "texture": "#0"},
                "down": {"uv": [0, 0, 0.25, 1], "texture": "#0"}
            },
            "type": "cube"
        },
        {
            "name": "main bar",
            "from": [4.25, 1.75, 7.5],
            "to": [5.25, 7.25, 8.5],
            "faces": {
                "north": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 5.5], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            },
            "type": "cube"
        },
        {
            "name": "bottom",
            "from": [0, 10.5, 6.5],
            "to": [0.5, 11, 9.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "east": {"uv": [0, 0, 3, 0.5], "texture": "#4"},
                "south": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "west": {"uv": [0, 0, 3, 0.5], "texture": "#4"},
                "up": {"uv": [0, 0, 0.5, 3], "texture": "#4"},
                "down": {"uv": [0, 0, 0.5, 3], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "top",
            "from": [0, 13, 6.5],
            "to": [0.5, 13.5, 9.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "east": {"uv": [0, 0, 3, 0.5], "texture": "#4"},
                "south": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "west": {"uv": [0, 0, 3, 0.5], "texture": "#4"},
                "up": {"uv": [0, 0, 0.5, 3], "texture": "#4"},
                "down": {"uv": [0, 0, 0.5, 3], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "right",
            "from": [0, 11, 6.5],
            "to": [0.5, 13, 7],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "east": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "south": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "west": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "up": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "down": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "left",
            "from": [0, 11, 9],
            "to": [0.5, 13, 9.5],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "east": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "south": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "west": {"uv": [0, 0, 0.5, 2], "texture": "#4"},
                "up": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"},
                "down": {"uv": [0, 0, 0.5, 0.5], "texture": "#4"}
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [0, 8, 7],
            "to": [0.5, 10, 9],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "east": {"uv": [0, 0, 2, 2], "texture": "#7"},
                "south": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "west": {"uv": [0, 0, 2, 2], "texture": "#7"},
                "up": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "down": {"uv": [0, 0, 0.5, 2], "texture": "#7"}
            },
            "rotation": {
                "origin": [8, 5, 8],
                "axis": "z",
                "angle": -22.5
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [-1.2499999999999996, 5.75, 7],
            "to": [-0.7499999999999996, 7.75, 9],
            "faces": {
                "north": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "east": {"uv": [0, 0, 2, 2], "texture": "#7"},
                "south": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "west": {"uv": [0, 0, 2, 2], "texture": "#7"},
                "up": {"uv": [0, 0, 0.5, 2], "texture": "#7"},
                "down": {"uv": [0, 0, 0.5, 2], "texture": "#7"}
            },
            "rotation": {
                "origin": [6.25, 2.75, 8],
                "axis": "z",
                "angle": -45
            },
            "type": "cube"
        },
        {
            "name": "cube",
            "from": [3.75, 9, 7],
            "to": [5.75, 9.25, 9],
            "faces": {
                "north": {"uv": [0, 0, 2, 0.25], "texture": "#7"},
                "east": {"uv": [0, 0, 2, 0.25], "texture": "#7"},
                "south": {"uv": [0, 0, 2, 0.25], "texture": "#7"},
                "west": {"uv": [0, 0, 2, 0.25], "texture": "#7"},
                "up": {"uv": [0, 0, 2, 2], "texture": "#7"},
                "down": {"uv": [0, 0, 2, 2], "texture": "#7"}
            },
            "type": "cube"
        }
    ],
    "groups": [
        {
            "name": "all",
            "isOpen": true,
            "display": {"visibility": true, "autouv": true},
            "children": [
                {
                    "name": "side bars",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
                },
                {
                    "name": "top",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [12, 13, 14]
                },
                {
                    "name": "bottom",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [15, 16, 17]
                },
                {
                    "name": "_&/3%6-7A",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26,
                        27,
                        28,
                        29,
                        30,
                        31,
                        32,
                        33,
                        34,
                        35,
                        36,
                        37,
                        38
                    ]
                },
                {
                    "name": "overhang",
                    "isOpen": true,
                    "display": {"visibility": true, "autouv": true},
                    "children": [39, 40, 41, 42, 43, 44, 45]
                }
            ]
        }
    ],
    "display": {
        "thirdperson_righthand": {
            "rotation": [18, 45, 0],
            "translation": [0, 3, 0],
            "scale": [0.4, 0.4, 0.4]
        },
        "thirdperson_lefthand": {
            "scale": [0.4, 0.4, 0.4],
            "rotation": [18, 45, 0],
            "translation": [0, 3, 0]
        },
        "gui": {
            "scale": [0.625, 0.625, 0.625],
            "rotation": [30, 225, 0],
            "translation": [0, 0, 0]
        }
    }
}

even enumfacing is working fine, but the models are not

this is how they look:2018-02-20_15_34_59.thumb.png.3d24f334633f9691f2ac74dc735e49ce.png2018-02-20_15_35_15.thumb.png.b66e2ecc7c249ebb78f7af51fae324b8.png

 

The model was working fine before i tried to add the torch functionality. Then it has stayed broken, even though i reverted all my changes. Hope this was enough.

Link to comment
Share on other sites

Your blockstate doesn't have a modid for the model locations and your lantern_wall model doesn't have modids for the texture locations.

 

Also, in your normal lantern model, there's no reason to mask your modid with (modid). It only makes it harder for us to help you (e.g. spot typos).

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

These type of errors are usually do to typos. So the only way we can debug is for you to post your EXACT code. If you've edited it for modid then please re-post it.

 

Otherwise, are there errors in your console? Is it complaining about a missing model, a missing model for a variant, or a missing texture? Or does it complain about a malformed JSON?

 

Also, I noticed your model has a lot of cubes with repeated names. I'm not sure but maybe they need to be unique -- I know in the past tools like Techne would complain if you have duplicate names.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

it does not matter if you have cubes with same name, feom my ecperience. I actually have not looked at the console but i was also thinking that it must be something with the model. I thinkthe game is searching for the model in minecraft's models folder rather than mine. The items could be showing up because the parent is set to my model. I'll change the cubes and check the console and report back.

Link to comment
Share on other sites

hi. so i looked at the console and it says:

 

Caused by: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model minecraft:block/lantern with loader VanillaLoader.INSTANCE, skipping

 

so i checked my blockstates file and found that i had not put the modid. actually i had put the modid there, but then the next day i replaced all of my lantern's files from local history, so it is now working :).

 

I am trying things to make my block placeable under blocks, unlike torches. will update real soon

Link to comment
Share on other sites

and i did it! it is literally 5 seconds after i posted the last comment and i did it!

 

I replaced 

On 2/20/2018 at 4:45 PM, Spacejet said:

public static final PropertyDirection FACING = PropertyDirection.create("facing", new Predicate<EnumFacing>()
    {
        public boolean apply(@Nullable EnumFacing p_apply_1_)
        {
            return p_apply_1_ != EnumFacing.DOWN;
        }
    });

with

public static final PropertyDirection FACING = BlockDirectional.FACING;

 

and added

 

 
        else if (facing.equals(EnumFacing.DOWN))
        {
            return true;

        {

 

to 

 

On 2/20/2018 at 4:45 PM, Spacejet said:

private boolean canPlaceAt(World worldIn, BlockPos pos, EnumFacing facing)
    {
        BlockPos blockpos = pos.offset(facing.getOpposite());
        IBlockState iblockstate = worldIn.getBlockState(blockpos);
        Block block = iblockstate.getBlock();
        BlockFaceShape blockfaceshape = iblockstate.getBlockFaceShape(worldIn, blockpos, facing);

        if (facing.equals(EnumFacing.UP) && this.canPlaceOn(worldIn, blockpos))
        {
            return true;
        }
        else if (facing != EnumFacing.UP && facing != EnumFacing.DOWN)
        {
            return !isExceptBlockForAttachWithPiston(block) && blockfaceshape == BlockFaceShape.SOLID;
        }
        else
        {
            return false;
        }
    }

 

right below 

 

else if (facing != EnumFacing.UP && facing != EnumFacing.DOWN)
        {
            return !isExceptBlockForAttachWithPiston(block) && blockfaceshape == BlockFaceShape.SOLID;
        }

here is the whole code for anyone in trouble like me:P

Spoiler

package com.spacejet.starwars.blocks;

import java.util.Random;

import javax.annotation.Nullable;

import com.google.common.base.Predicate;

import net.minecraft.block.Block;
import net.minecraft.block.BlockDirectional;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.Mirror;
import net.minecraft.util.Rotation;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class Lantern extends BlockBase{
    
    public static final PropertyDirection FACING = BlockDirectional.FACING;
   
    
    public static final AxisAlignedBB LANTERN_BB = new AxisAlignedBB(0.3125D, 0, 0.3125D, 0.6875D, 0.555D,0.6875D);
    public static final AxisAlignedBB LANTERN_WALL_BB = new AxisAlignedBB(0.3125D, 0, 0.3125D, 0.6875D, 0.555D,0.6875D);
    public static final AxisAlignedBB LANTERN_CELI_BB = new AxisAlignedBB(0.3125D, 0, 0.3125D, 0.6875D, 0.555D,0.6875D);

    public Lantern(String name, Material material) {
        super(name, material);
        setLightLevel(1.0f);
        setResistance(8.0f);
        setHardness(3.0f);
        setCreativeTab(CreativeTabs.DECORATIONS);
    }
    
    @Override
    public boolean isOpaqueCube(IBlockState state) {
        return false;
    }
    
    @Override
    public boolean isFullCube(IBlockState state) {
        return false;
    }
    
    public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
    {
        switch ((EnumFacing)state.getValue(FACING))
        {
            case EAST:
                return LANTERN_WALL_BB;
            case WEST:
                return LANTERN_WALL_BB;
            case SOUTH:
                return LANTERN_WALL_BB;
            case NORTH:
                return LANTERN_WALL_BB;
            case DOWN:
                return LANTERN_CELI_BB;    
            case UP:
            default:
                return LANTERN_BB;
        }
    }
    
    @Nullable
    public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos)
    {
        return NULL_AABB;
    }

    /**
     * Used to determine ambient occlusion and culling when rebuilding chunks for render
     */
   

    private boolean canPlaceOn(World worldIn, BlockPos pos)
    {
        IBlockState state = worldIn.getBlockState(pos);
        return state.getBlock().canPlaceTorchOnTop(state, worldIn, pos);
    }

    /**
     * Checks if this block can be placed exactly at the given position.
     */
    public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
    {
        for (EnumFacing enumfacing : FACING.getAllowedValues())
        {
            if (this.canPlaceAt(worldIn, pos, enumfacing))
            {
                return true;
            }
        }

        return false;
    }

    private boolean canPlaceAt(World worldIn, BlockPos pos, EnumFacing facing)
    {
        BlockPos blockpos = pos.offset(facing.getOpposite());
        IBlockState iblockstate = worldIn.getBlockState(blockpos);
        Block block = iblockstate.getBlock();
        BlockFaceShape blockfaceshape = iblockstate.getBlockFaceShape(worldIn, blockpos, facing);

        if (facing.equals(EnumFacing.UP) && this.canPlaceOn(worldIn, blockpos))
        {
            return true;
        }
        else if (facing != EnumFacing.UP && facing != EnumFacing.DOWN)
        {
            return !isExceptBlockForAttachWithPiston(block) && blockfaceshape == BlockFaceShape.SOLID;
        }
        else if (facing.equals(EnumFacing.DOWN))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    /**
     * Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the
     * IBlockstate
     */
    public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
    {
        if (this.canPlaceAt(worldIn, pos, facing))
        {
            return this.getDefaultState().withProperty(FACING, facing);
        }
        else
        {
            for (EnumFacing enumfacing : EnumFacing.Plane.HORIZONTAL)
            {
                if (this.canPlaceAt(worldIn, pos, enumfacing))
                {
                    return this.getDefaultState().withProperty(FACING, enumfacing);
                }
            }

            return this.getDefaultState();
        }
    }

    /**
     * Called after the block is set in the Chunk data, but before the Tile Entity is set
     */
    public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
    {
        this.checkForDrop(worldIn, pos, state);
    }

    /**
     * Called when a neighboring block was changed and marks that this state should perform any checks during a neighbor
     * change. Cases may include when redstone power is updated, cactus blocks popping off due to a neighboring solid
     * block, etc.
     */
    public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
    {
        this.onNeighborChangeInternal(worldIn, pos, state);
    }

    protected boolean onNeighborChangeInternal(World worldIn, BlockPos pos, IBlockState state)
    {
        if (!this.checkForDrop(worldIn, pos, state))
        {
            return true;
        }
        else
        {
            EnumFacing enumfacing = (EnumFacing)state.getValue(FACING);
            EnumFacing.Axis enumfacing$axis = enumfacing.getAxis();
            EnumFacing enumfacing1 = enumfacing.getOpposite();
            BlockPos blockpos = pos.offset(enumfacing1);
            boolean flag = false;

            if (enumfacing$axis.isHorizontal() && worldIn.getBlockState(blockpos).getBlockFaceShape(worldIn, blockpos, enumfacing) != BlockFaceShape.SOLID)
            {
                flag = true;
            }
            else if (enumfacing$axis.isVertical() && !this.canPlaceOn(worldIn, blockpos))
            {
                flag = true;
            }

            if (flag)
            {
                this.dropBlockAsItem(worldIn, pos, state, 0);
                worldIn.setBlockToAir(pos);
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    protected boolean checkForDrop(World worldIn, BlockPos pos, IBlockState state)
    {
        if (state.getBlock() == this && this.canPlaceAt(worldIn, pos, (EnumFacing)state.getValue(FACING)))
        {
            return true;
        }
        else
        {
            if (worldIn.getBlockState(pos).getBlock() == this)
            {
                this.dropBlockAsItem(worldIn, pos, state, 0);
                worldIn.setBlockToAir(pos);
            }

            return false;
        }
    }

    @SideOnly(Side.CLIENT)
    public void randomDisplayTick(IBlockState stateIn, World worldIn, BlockPos pos, Random rand)
    {
        EnumFacing enumfacing = (EnumFacing)stateIn.getValue(FACING);
        double d0 = (double)pos.getX() + 0.5D;
        double d1 = (double)pos.getY() + 0.7D;
        double d2 = (double)pos.getZ() + 0.5D;
        double d3 = 0.22D;
        double d4 = 0.27D;

        if (enumfacing.getAxis().isHorizontal())
        {
            EnumFacing enumfacing1 = enumfacing.getOpposite();
            worldIn.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0 + 0.27D * (double)enumfacing1.getFrontOffsetX(), d1 + 0.22D, d2 + 0.27D * (double)enumfacing1.getFrontOffsetZ(), 0.0D, 0.0D, 0.0D);
            worldIn.spawnParticle(EnumParticleTypes.FLAME, d0 + 0.27D * (double)enumfacing1.getFrontOffsetX(), d1 + 0.22D, d2 + 0.27D * (double)enumfacing1.getFrontOffsetZ(), 0.0D, 0.0D, 0.0D);
        }
        else
        {
            worldIn.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, 0.0D, 0.0D, 0.0D);
            worldIn.spawnParticle(EnumParticleTypes.FLAME, d0, d1, d2, 0.0D, 0.0D, 0.0D);
        }
    }

    /**
     * Convert the given metadata into a BlockState for this Block
     */
    public IBlockState getStateFromMeta(int meta)
    {
        IBlockState iblockstate = this.getDefaultState();

        switch (meta)
        {
            case 1:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.EAST);
                break;
            case 2:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.WEST);
                break;
            case 3:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.SOUTH);
                break;
            case 4:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.NORTH);
                break;
            case 5:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.DOWN);
                break;
            case 6:    
            default:
                iblockstate = iblockstate.withProperty(FACING, EnumFacing.UP);
        }

        return iblockstate;
    }

    @SideOnly(Side.CLIENT)
    public BlockRenderLayer getBlockLayer()
    {
        return BlockRenderLayer.CUTOUT;
    }

    /**
     * Convert the BlockState into the correct metadata value
     */
    public int getMetaFromState(IBlockState state)
    {
        int i = 0;

        switch ((EnumFacing)state.getValue(FACING))
        {
            case EAST:
                i = i | 1;
                break;
            case WEST:
                i = i | 2;
                break;
            case SOUTH:
                i = i | 3;
                break;
            case NORTH:
                i = i | 4;
                break;
            case DOWN:
                i = i | 5;
                break;
            case UP:
            default:
                i = i | 6;
        }

        return i;
    }

    /**
     * Returns the blockstate with the given rotation from the passed blockstate. If inapplicable, returns the passed
     * blockstate.
     */
    public IBlockState withRotation(IBlockState state, Rotation rot)
    {
        return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING)));
    }

    /**
     * Returns the blockstate with the given mirror of the passed blockstate. If inapplicable, returns the passed
     * blockstate.
     */
    public IBlockState withMirror(IBlockState state, Mirror mirrorIn)
    {
        return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING)));
    }

    protected BlockStateContainer createBlockState()
    {
        return new BlockStateContainer(this, new IProperty[] {FACING});
    }

    /**
     * Get the geometry of the queried face at the given position and state. This is used to decide whether things like
     * buttons are allowed to be placed on the face, or how glass panes connect to the face, among other things.
     * <p>
     * Common values are {@code SOLID}, which is the default, and {@code UNDEFINED}, which represents something that
     * does not fit the other descriptions and will generally cause other things not to connect to the face.
     * 
     * @return an approximation of the form of the given face
     */
    public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
    {
        return BlockFaceShape.UNDEFINED;
    }
}
 

i have not set the correct values for axisalignedbb yet, but you wont need it anyway. the rotation was possible due to draco18s. Thanks a lot. in a different thread, he said

On 11/1/2017 at 0:31 PM, Draco18s said:

2) Dispensers don't use horizontal facing, they use omnidirectional facing: that is, they can face UP and DOWN too.

so i went to blockdispenser.java and got BlockDirectional.FACING;

 

Thanks a lot everybody. This means a lot to me!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've been trying to give a little transparency to a block and a custom model, but I'm running into the same issue with the transparency of the block Some guides say I use ItemBlockRenderTypes.setRenderLayer in a ClientEvent class but its deprecated, I already tried to set a Properties in Properties.copy(Blocks.FLOWERPOT) But the render in game still doesn't has transparency, only as an Item  
    • My friends and I are modding to survive But recently I want to use cmd to open the server instead of making the single player game public But when I used two methods to start the server, I encountered two problems first A I used forge to install the server files Created using the original server jar The server was installed successfully and the mod was also loaded successfully. But after I replaced the world file with my survival map, I found that the mod items inside disappeared but could be taken from creation again. So I tried to install the server using forge first B I have studied forge for a long time but successfully installed it. But when I put in mods it crashed But mods can be installed on the server   我和我的朋友們正在mod為了生存 但是最近我想用cmd打開伺服器而不是把單人遊戲公開 但是當我使用兩種方法啟動伺服器時,我遇到了兩個問題 首先AI使用forge安裝伺服器檔案使用原始伺服器jar 建立伺服器已成功安裝,mod 也已成功載入。但是當我用我的生存地圖替換世界文件後,我發現裡面的mod物品消失了,但可以再次從創建中取出。所以我嘗試先使用forge安裝伺服器,BI研究了forge很久但成功安裝了它。但是當我安裝 mods 時它崩潰了但是 mods 可以安裝在伺服器上 我和我的朋友正在mod生存 但最近我想使用cmd開啟伺服器而不是單人遊戲公開   但是當我使用了兩種方法開啟伺服器時遇到了兩種問題   第1個A 我使用了forge安裝伺服器文件 在使用原版伺服器jar建立    伺服器安裝成功 mod也順利加載  但是我將我的生存地圖替換世界文件後發現裡面的mod物品消失了但可以再次從創造拿取  所以我嘗試使用forge安裝伺服器   第2個B forge我研究了很久但也成功安裝了 但是當我放入 mods 之後發生了崩潰 但是mods在1A伺服器上是可以安裝的 Ps 我用谷歌翻譯 so    
    • That’s probably not it because as I stated I’ve done it before. I did it like deadass 10 - 20 times when trying to learn to make this mod pack because I kept wanting to reset my profiles and such. So it definitely works, it looks like maybe the creephosting files were the things that couldn’t be reached I tried reading the crash log
    • I don't know if this is the right place or not, but I have put together a custom modpack and I am in need of others to help me. It's a questing modpack with a lore book i'm currently writing out through Patchouli, and i am in need of somebody who will assist me in making the quests for the pack. It's a Zombie apocalypse modpack inspired by Deceasedcraft  with a tinge of magic and RPG mechanics via Mine and slash. Is there anybody willing to assist me as i'm one person building a modpack I could also use help with optimizations since that's not really my strong suite. 
    • File a report to SPYRECOVERY36 @ gmail com he can legitimately assist in proper review and recovery of all your assets that was stolen. Endeavor to submit your request for a refund to his mail . He also spy and hack any device remotely without any trace. Contact via spyrecovery36 @ gm ail com  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.