• 0

    posted a message on Texture Error; No texture in inventory

    When I run minecraft, (in eclipse of course) I have a problem. To put it simply, The item is not textured, even though:

    a. The json files for the items and blocks look alright.

    b. I have used this same code, this has never happened

    Here is the code I used:

    hellite_infused_obsidian.json(Item)
    -------------------------------------------
    {
    	"parent": "underlands:block/hellite_infused_obsidian"
    }
    --------------------------------------------
    hellite_block.json(Item)
    --------------------------------------------
    {
    	"parent": "underlands:block/hellite_block"
    }
    --------------------------------------------
    hellite_infused_obsidian.json(Block)
    -------------------------------------------
    {
    	"parent": "block/cube_all",
    	"textures":{
    		"all": "underlands:blocks/hellite_infused_obsidian"
    	}
    }
    ------------------------------------------
    hellite_block.json(Block)
    -----------------------------------------
    {
    	"parent": "block/cube_all",
    	"textures":{
    		"all": "underlands:blocks/hellite_infused_obsidian"
    	}
    }
    --------------------------------
    TuxBlocks.java
    --------------------------------
    package tuxbuilder.underlands.init;
    
    import net.minecraft.block.Block;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraft.util.ResourceLocation;
    import net.minecraftforge.client.model.ModelLoader;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import tuxbuilder.underlands.block.BlockHellite;
    import tuxbuilder.underlands.block.BlockHelliteInfusedObsidian;
    import tuxbuilder.underlands.lib.Libs;
    import tuxbuilder.underlands.lib.Reference;
    
    public class TuxBlocks 
    {
    	public static Block hellite_block;
    	public static Block hellite_infused_obsidian;
    
    	public static void init() 
    	{
    		hellite_block = new BlockHellite("hellite_block", "hellite_block");
    		hellite_infused_obsidian = new BlockHelliteInfusedObsidian("hellite_infused_obsidian", "hellite_infused_obsidian");
    	}
    	
    	public static void register()
    	{
    		registerBlock(hellite_block);
    		registerBlock(hellite_infused_obsidian);
    	}
    	
    	public static void registerRenders()
    	{
    		registerRender(hellite_block);
    		registerRender(hellite_infused_obsidian);
    	}
    	
    	public static void registerBlock(Block block)
    	{
    		GameRegistry.register(block);
    		GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName()));
    		Libs.getlogger().info("Registered Block: " + block.getUnlocalizedName().substring(5));
    	}
    	
    	public static void registerRender(Block block)
    	{
    		ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(new ResourceLocation(Reference.MODID, block.getUnlocalizedName().substring(5)), "inventory"));
    		Libs.getlogger().info("Registered render for " + block.getUnlocalizedName());
    	}
    }
    
    

     And here is a screenshot:

     

    Posted in: General Discussion
  • 0

    posted a message on Mod error: Block name shows up on block?

    I use 1.11.2, and I make mods, I do the same coding every time, but this has never happened before. The block has no defined texture but it has letters on it. Here is a screenshot I took of it: 

    So, as you can see, the blocks have big letters that say, "underlands:hellite_block#normal" I don't know how to fix this. Is it because the block is un-textured? Or is it the coding? Code for blocks: 

    package tuxbuilder.underlands.init;
    
    import net.minecraft.block.Block;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraft.util.ResourceLocation;
    import net.minecraftforge.client.model.ModelLoader;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import tuxbuilder.underlands.blocks.BlockHellite;
    import tuxbuilder.underlands.lib.Libs;
    import tuxbuilder.underlands.lib.Refrence;
    
    public class TuxBlocks 
    {
    	public static Block hellite_block;
    
    	
    	public static void init() 
    	{
    		hellite_block = new BlockHellite("hellite_block", "hellite_block");
    	}
    	public static void register()
    	{
    		registerBlock(hellite_block);
    	}
    	
    	public static void registerRenders()
    	{
    		registerRender(hellite_block);
    	}
    	
    	public static void registerBlock(Block block)
    	{
    		GameRegistry.register(block);
    		GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName()));
    		Libs.getlogger().info("Registered Block: " + block.getUnlocalizedName().substring(5));
    	}
    	
    	public static void registerRender(Block block)
    	{
    		ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(new ResourceLocation(Refrence.MODID, block.getUnlocalizedName().substring(5)), "inventory"));
    		Libs.getlogger().info("Registered render for " + block.getUnlocalizedName());
    	}
    }

     Code for items: 

    package tuxbuilder.underlands.init;
    
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraft.util.ResourceLocation;
    import net.minecraftforge.client.model.ModelLoader;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import tuxbuilder.underlands.items.ItemHelliteIngot;
    import tuxbuilder.underlands.lib.Libs;
    import tuxbuilder.underlands.lib.Refrence;
    
    public class TuxItems
    {
    	public static Item hellite_ingot;
    	
    	public static void init() 
    	{
    		hellite_ingot = new ItemHelliteIngot("hellite_ingot", "hellite_ingot");
    	}
    	
    	public static void register() 
    	{
    		registerItem(hellite_ingot);
    	}
    	public static void registerRenders()
    	{
    		registerRender(hellite_ingot);
    	}
    	
    	public static void registerRender(Item item) {
    		ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(new ResourceLocation(Refrence.MODID, item.getUnlocalizedName().substring(5)), "inventory"));
    		Libs.getlogger().info(Refrence.rendering + item.getUnlocalizedName().substring(5));
    	}
    	public static void registerItem(Item item) {
    		GameRegistry.register(item);
    		Libs.getlogger().info(Refrence.rendered + item.getUnlocalizedName().substring(5));
    	}
    	
    }
    
    
    

     Yes, the items have the same issue. It shows the block id, with "#normal"

    So, tell me...

     

    How the heck do I fix this?

     

     

    Posted in: General Discussion
  • 0.9625

    posted a message on A mod went missing...

    Dearest DatrixTHLK, I did some research on this very mod and found no information. Maybe if you have a URL, that would be great, but I found nothing. So, when you need answers, There's always the wayback machine, And when I looked through page after page of mods, alas I found nothing. I started my journey at the beginning of 2017, and search through page after page of a category I thought it might go under, Dimensions. So I kept searching through day after day of mods, And I stopped on the date you said. And what I found was... Nothing. It's almost as if the mod never existed in the first place. I don't know what to tell you, but that mod never existed. But I did find something with a similar name. Here is the link: Link, Anyway, That's all I found. I don't honestly think the mod you're mentioning exists. I'm sorry to hear you can't find your mod, but maybe The link'll Help. Best Regards,

    --Tux

    Posted in: General Discussion
  • To post a comment, please or register a new account.