Jump to content

Making a glass block


Recommended Posts

I am trying to get a glass block with a dirt texture, but I can't figure out what it is wanting in place of the "null"


It's asking for a string, and I am at a loss.


package com.johnrad.Block;

import com.johnrad.lib.RefStrings;

import net.minecraft.block.Block;
import net.minecraft.block.BlockBreakable;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import cpw.mods.fml.common.registry.GameRegistry;

public class ModBlocks {
public static void mainRegistry(){

public static Block ComStone;
public static BlockBreakable DirtGlass;

public static void inisializeBlockBreakable(){
	DirtGlass = new BlockBreakable(null, Material.glass, false);
public static void inistializeBlock(){
	ComStone = new ComStone(Material.ground).setBlockName("ComStone").setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":ComStone");

public static void registerItem(){
	GameRegistry.registerBlock(ComStone, ComStone.getUnlocalizedName());


Any help please?

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.

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.

  • Create New...

Important Information

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