The Meaning of Life, the Universe, and Everything.
Join Date:
5/28/2014
Posts:
285
Location:
USA
Minecraft:
TheUnderTaker11
Member Details
Yea title and picture's I'm going to attach kind of explain themselves.
I've been trying to figure out how glass blocks make the blocks next to them not be invisible but nothing I've tried copying over is working out, so I'm coming here for some help
Block class
import com.theundertaker11.kitchensink.KitchenSink;
import com.theundertaker11.kitchensink.Refernce;
import com.theundertaker11.kitchensink.ksblocks.StorageBlockBase;
import net.minecraft.block.Block;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class TrashChest extends StorageBlockBase{
public static final int GUI_ID = 1;
public TrashChest(String name) {
super(name);
setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
}
@Override
public TileEntity createTileEntity(World world, IBlockState state)
{
return new KSTileEntityTrashChest();
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side,
float hitX, float hitY, float hitZ) {
// Only execute on the server
if (world.isRemote) {
return true;
}
TileEntity te = world.getTileEntity(pos);
if (!(te instanceof KSTileEntityTrashChest)) {
return false;
}
player.openGui(KitchenSink.instance, GUI_ID, world, pos.getX(), pos.getY(), pos.getZ());
return true;
}
@Override
public boolean isVisuallyOpaque()
{
return false;
}
}
I just need to know why it is making blocks next to my model render like in the picture attached.(Basically makes it like an x-ray.)
ATTACHMENTS
Glitch
Rollback Post to RevisionRollBack
Want a mod with the best magnets available? The download Better Magnets!
And if you like Avaritia then you will love More Avaritia! Adds recipes for creative items from a huge list of mods, and even adds more custom items that fit the Avaritia theme!
The Meaning of Life, the Universe, and Everything.
Join Date:
5/28/2014
Posts:
285
Location:
USA
Minecraft:
TheUnderTaker11
Member Details
I was being stupid, since isOpaqueCube() is depreceated I thought the visual one I had would work, but it turns out I needed to have isOpaqueCube() for it to work.
Rollback Post to RevisionRollBack
Want a mod with the best magnets available? The download Better Magnets!
And if you like Avaritia then you will love More Avaritia! Adds recipes for creative items from a huge list of mods, and even adds more custom items that fit the Avaritia theme!
Yea title and picture's I'm going to attach kind of explain themselves.
I've been trying to figure out how glass blocks make the blocks next to them not be invisible but nothing I've tried copying over is working out, so I'm coming here for some help
Block class
And my BlockState json
Finally my Model json
I just need to know why it is making blocks next to my model render like in the picture attached.(Basically makes it like an x-ray.)
Want a mod with the best magnets available? The download Better Magnets!
And if you like Avaritia then you will love More Avaritia! Adds recipes for creative items from a huge list of mods, and even adds more custom items that fit the Avaritia theme!
I was being stupid, since isOpaqueCube() is depreceated I thought the visual one I had would work, but it turns out I needed to have isOpaqueCube() for it to work.
Want a mod with the best magnets available? The download Better Magnets!
And if you like Avaritia then you will love More Avaritia! Adds recipes for creative items from a huge list of mods, and even adds more custom items that fit the Avaritia theme!