Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BlockRendererDispatcher brd = this.mc.getBlockRendererDispatcher();
- BlockCarvable block = (BlockCarvable) Block.REGISTRY.getObject(new ResourceLocation("chisel", "marble"));
- IBlockState state = block.getDefaultState().withProperty(block.getMetaProp(), 4);
- Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
- Tessellator.getInstance().getBuffer().begin(GL11.GL_QUADS, DefaultVertexFormats.ITEM);
- brd.renderBlock(state, new BlockPos(0, 0, 0), new FakeBlockAccess(state), Tessellator.getInstance().getBuffer());
- Tessellator.getInstance().draw();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement