Jump to content

johnrad

Members
  • Posts

    1
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

johnrad's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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(){ inistializeBlock(); registerItem(); } 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?
×
×
  • Create New...

Important Information

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