• 0

    posted a message on Problem with Item Textures

    Hey guys. Currently I'm having a problem with my mod displaying my item's texture.


    Right now I have 2 mods in my workspace - Mod1 and Mod2 for convenience. Mod1 is running fine - textures working for both items and blocks.

    Mod 2 isn't.. or well it is running but the texture for my item Baguette is displayed as purple+black. In the console, it says that the file cannot be found (baguette.png), when the file is clearly there. I tried this will all three textures I've made and none work. Here's my code:


    baguette = new Baguette().setUnlocalizedName("Baguette").setTextureName("projectbread:baguette").setCreativeTab(CreativeTabs.tabFood);

    I see nothing wrong here, and I've tried changing it to "baguette", "baguette.png", and what I have now. None have worked. I have no clue what to do now, so that's why I'm posting here. All help appreciated, thanks!

    Posted in: Modification Development
  • 0

    posted a message on Problem with my ore generation.
    Quote from Choonster»

    When asking for help with a crash, post the crash report.


    Your code is very difficult to read thanks to the terrible code formatting on this forum. Upload it to Gist or Pastebin and link it here instead. Make sure you select the appropriate syntax highlighting. On Gist, this is done by giving each file the appropriate extension (.java for Java code). On Pastebin, this is done from the dropdown under the textbox.



    Quote from amazing_zombie»

    in your main mod file try replacing the part where you register your worldgen to something like


    GameRegistry.registerWorldGenerator(new OreGen(), 0);


    Thanks for replying guys. I actually figured it out, and I'm pretty sure what fixed it was amazing_zombie's reply. Choonster, whenever I encounter a problem in the future, I will be sure to do this!
    Posted in: Modification Development
  • 0

    posted a message on Ultimod - A mod that aims to add all the things!
    Ultimod is a mod I am working on that aims at adding many new features to your Minecraft world!


    Hello! Before I start explaining the features of Ultimod, I would like to say that this is my second.. er second and a half-nd mod, my half of a mod being one I created in early april, centered around adding random pickaxes, and my first released mod, which was made in, was Mo' Glowstone- a mod centered around- you guessed it! More glowstone! Anyways, those were both pretty terrible. Now I aim to create a well-rounded mod, that people will both actively use by itself, and in companion with other mods. Right now, the mod is pretty early in development, being just started yesterday, so that means not much has been implemented. I do have much, MUCH more planned. I should probably get a list going.

    • BuildBlocks - The colourful blocks displayed in the picture. [50% - Adding more colours.]
    • Inverted tools, blocks, and armour - Current end-game items, displayed in the item frames [5.315% - Much more work required.]
    • Marble & Basalt - More variation in underground stones! [90% - Adding brick equivalents]
    • Decorations - All kinds of wonderful decoration blocks!
    • Many many more ores - [1% - Requires actual implementation..]
    • Much more I will list soon.

    So, there you have it. That doesn't look large, but I promise I will adding much more [I stopped partly because I'm tired and partly because these will be updated very soon anyways.], and I hope YOU will too! I will be taking all the suggestions- no matter how silly, how strange, how anything! Seriously, I want this mod to be not only my mod but your's too.


    I'm not sure if WIP mods require a download, but there you have it. Ultimod. Hope you enjoy[ed]!

    Posted in: WIP Mods
  • 0

    posted a message on Problem with my ore generation.
    [p]Hey guys! I have recently started developing a mod in 1.7.10. I'm trying to get my new ore to generate, but I am running into a crash whenever I create, or play a world.[/p]

    [p]MiscMod.java (main class)[/p]

    package com.itskadenhere.miscmod;

    [p]import com.itskadenhere.miscmod.item.InvertedIngot;
    import com.itskadenhere.miscmod.item.InvertedOre;
    import com.itskadenhere.miscmod.item.InvertedPickaxe;
    import com.itskadenhere.miscmod.gen.OreGen;[/p] [p]import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.registry.GameRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.common.util.EnumHelper;[/p] [p]@Mod(modid = "miscmod", name = "Misc. Mod", version = "1.0")
    public class MiscMod {
    public static Item invertedIngot;
    public static Item invertedPickaxe;
    public static Item invertedAxe;
    public static Item invertedShovel;
    public static Item invertedSword;
    public static Item invertedHoe;
    public static Block invertedOre;

    public static final Item.ToolMaterial invertedToolMaterial = EnumHelper.addToolMaterial("invertedToolMaterial", 4, 3500, 30.0F, 5.0F, 30);

    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {

    //Create Items
    invertedIngot = new InvertedIngot().setUnlocalizedName("InvertedIngot").setTextureName("miscmod:invertedIngot");
    invertedPickaxe = new InvertedPickaxe(invertedToolMaterial).setUnlocalizedName("InvertedPickaxe").setTextureName("miscmod:invertedPickaxe");

    //Create Blocks
    invertedOre = new InvertedOre(Material.rock).setBlockName("InvertedOre").setBlockTextureName("miscmod:invertedOre");

    //Create Generation
    OreGen oregen = new OreGen();

    //Register Items
    GameRegistry.registerItem(invertedPickaxe, invertedPickaxe.getUnlocalizedName().substring(5));
    GameRegistry.registerItem(invertedIngot, invertedIngot.getUnlocalizedName().substring(5));

    //Register Blocks
    GameRegistry.registerBlock(invertedOre, invertedOre.getUnlocalizedName().substring(5));

    //Register Generation
    GameRegistry.registerWorldGenerator(oregen, 0);
    }


    @EventHandler
    public void init(FMLInitializationEvent event) {

    GameRegistry.addRecipe(new ItemStack(MiscMod.invertedPickaxe), "III", " S ", " S ", 'I', MiscMod.invertedIngot, 'S', Items.stick);[/p] [p] }

    @EventHandler
    public void postinit(FMLPostInitializationEvent event) {
    //
    }

    }[/p]



    [p]This is my OreGen class.[/p]
    package com.itskadenhere.miscmod.gen;
     
    import java.util.Random;
    import com.itskadenhere.miscmod.MiscMod;
    import cpw.mods.fml.common.IWorldGenerator;
    import net.minecraft.block.Block;
    import net.minecraft.init.Blocks;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    public class OreGen implements IWorldGenerator {
    @Override
     public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator,
     IChunkProvider chunkProvider) {
     switch (world.provider.dimensionId)
    {
     case -1:
     generateNether(world, random, chunkX, chunkZ);
     break;
     case 0:
     generateOverworld(world, random, chunkX, chunkZ);
     break;
     case 1:
     generateEnd(world, random, chunkX, chunkZ);
     break;
     }
    }
    public void generateNether(World world, Random rand, int x, int z) {
     generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.netherrack);
     }
    public void generateEnd(World world, Random rand, int x, int z) {
     generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.end_stone);
     }
    public void generateOverworld(World world, Random rand, int x, int z) {
     generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.stone);
     }
    public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ,
     int minVienSize, int maxVienSize, int chance, int minY, int maxY, Block generateIn) {
     int vienSize = minVienSize + random.nextInt(maxVienSize - minVienSize);
     int heightRange = maxY - minY;
     WorldGenMinable gen = new WorldGenMinable(block, vienSize, generateIn);
     for(int i = 0; i < chance; i++){
     int xRand = chunkX * 16 + random.nextInt(16);
     int yRand = random.nextInt(heightRange) + minY;
     int zRand = chunkZ * 16 + random.nextInt(16);
     gen.generate(world, random, xRand, yRand, zRand);
     }
     }
    }
    



    [p]This is the block I'm trying to get to generate.[/p]
    package com.itskadenhere.miscmod.block;
    
    [p]import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;[/p]
    [p]public class InvertedOre extends Block {[/p]
    [p]public InvertedOre(Material material) {
     super(material);
     // TODO Auto-generated constructor stub
     }[/p]
    [p]}
    
    [/p]


    [p]There is probably a big chance this is easily solvable, so I'm sorry if I'm wasting your time, but I really would appreciate all the help. Thanks![/p]
    Posted in: Modification Development
  • 0

    posted a message on Some help?

    Is it just optifine, or can you download nothing at all.

    Posted in: Mods Discussion
  • 0

    posted a message on Looking for a Mod Developer for a Server.

    Leaving this here because I may apply, :P

    Posted in: Mods Discussion
  • 0

    posted a message on Problem with my custom ore generation.

    Hey guys! I have recently started developing a mod in 1.7.10. I'm trying to get my new ore to generate, but I am running into a crash whenever I create, or play a world.


    MiscMod.java (main class)


    package com.itskadenhere.miscmod;
    
    import com.itskadenhere.miscmod.item.InvertedIngot;
    import com.itskadenhere.miscmod.item.InvertedOre;
    import com.itskadenhere.miscmod.item.InvertedPickaxe;
    import com.itskadenhere.miscmod.gen.OreGen;
    
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.registry.GameRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.common.util.EnumHelper;
    
    @Mod(modid = "miscmod", name = "Misc. Mod", version = "1.0")
    public class MiscMod {
    	public static Item invertedIngot;
    	public static Item invertedPickaxe;
    	public static Item invertedAxe;
    	public static Item invertedShovel;
    	public static Item invertedSword;
    	public static Item invertedHoe;
    	public static Block invertedOre;
    	
    	public static final Item.ToolMaterial invertedToolMaterial = EnumHelper.addToolMaterial("invertedToolMaterial", 4, 3500, 30.0F, 5.0F, 30);
    	
    	@EventHandler
    	public void preInit(FMLPreInitializationEvent event) {
    		
    		//Create Items
    		invertedIngot = new InvertedIngot().setUnlocalizedName("InvertedIngot").setTextureName("miscmod:invertedIngot");
    		invertedPickaxe = new InvertedPickaxe(invertedToolMaterial).setUnlocalizedName("InvertedPickaxe").setTextureName("miscmod:invertedPickaxe");
    		
    		//Create Blocks
    		invertedOre = new InvertedOre(Material.rock).setBlockName("InvertedOre").setBlockTextureName("miscmod:invertedOre");
    		
    		//Create Generation
    		OreGen oregen = new OreGen();
    		
    		//Register Items
    		GameRegistry.registerItem(invertedPickaxe, invertedPickaxe.getUnlocalizedName().substring(5));
    		GameRegistry.registerItem(invertedIngot, invertedIngot.getUnlocalizedName().substring(5));
    		
    		//Register Blocks
    		GameRegistry.registerBlock(invertedOre, invertedOre.getUnlocalizedName().substring(5));
    		
    		//Register Generation
    		GameRegistry.registerWorldGenerator(oregen, 0);
    	}
    	
    	
    	@EventHandler
    	public void init(FMLInitializationEvent event) {
    		
    		GameRegistry.addRecipe(new ItemStack(MiscMod.invertedPickaxe), "III", " S ", " S ", 'I', MiscMod.invertedIngot, 'S', Items.stick);
    
    		
    	}
    	
    	@EventHandler
    	public void postinit(FMLPostInitializationEvent event) {
    		//
    	}
    	
    }
    



    This is my OreGen class.


    package com.itskadenhere.miscmod.gen;
    
    import java.util.Random;
    
    import com.itskadenhere.miscmod.MiscMod;
    
    import cpw.mods.fml.common.IWorldGenerator;
    import net.minecraft.block.Block;
    import net.minecraft.init.Blocks;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    
    public class OreGen implements IWorldGenerator {
    
    	@Override
    	public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator,
    			IChunkProvider chunkProvider) {
    		switch (world.provider.dimensionId)
    
    		{
    		case -1:
    			generateNether(world, random, chunkX, chunkZ);
    			break;
    		case 0:
    			generateOverworld(world, random, chunkX, chunkZ);
    			break;
    		case 1:
    			generateEnd(world, random, chunkX, chunkZ);
    			break;
    		}
    
    	}
    
    	public void generateNether(World world, Random rand, int x, int z) {
    		generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.netherrack);
    	}
    
    	public void generateEnd(World world, Random rand, int x, int z) {
    		generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.end_stone);
    	}
    
    	public void generateOverworld(World world, Random rand, int x, int z) {
    		generateOre(MiscMod.invertedOre, world, rand, x, z, 6, 6, 5, 0, 100, Blocks.stone);
    	}
    
    	public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ,
    			int minVienSize, int maxVienSize, int chance, int minY, int maxY, Block generateIn) {
    		int vienSize = minVienSize + random.nextInt(maxVienSize - minVienSize);
    		int heightRange = maxY - minY;
    		WorldGenMinable gen = new WorldGenMinable(block, vienSize, generateIn);
    		for(int i = 0; i < chance; i++){
    	        int xRand = chunkX * 16 + random.nextInt(16);
    	        int yRand = random.nextInt(heightRange) + minY;
    	        int zRand = chunkZ * 16 + random.nextInt(16);
    	        gen.generate(world, random, xRand, yRand, zRand);
    	}
    	}
    }
    



    This is the block I'm trying to get to generate.


    package com.itskadenhere.miscmod.block;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    
    public class InvertedOre extends Block {
    
    	public InvertedOre(Material material) {
    		super(material);
    		// TODO Auto-generated constructor stub
    	}
    
    }
    



    There is probably a big chance this is easily solvable, so I'm sorry if I'm wasting your time, but I really would appreciate all the help. Thanks!

    Posted in: Modification Development
  • 0

    posted a message on Some help?

    have you tried downloading using edge? this way we can know if it's your pc or just chrome.

    Posted in: Mods Discussion
  • 0

    posted a message on My mob farm dont work D:

    Thanks for all the advice, guys! This will help alot in the future, but I think i've decided to go for a pigman farm above the nether, and I have made those before (albeit a long time ago :P)

    Posted in: Survival Mode
  • 0

    posted a message on My mob farm dont work D:

    So, this is probably a really big noob mistake and I'm missing something obvious, but if i am, sorry xD

    So this is a picture: minecraft spawn room

    Sorry if its a bit dark lol

    Posted in: Survival Mode
  • 0

    posted a message on [1.7.10] "Shutting Down Internal Server" when loading or starting a new world

    thank you so much have my babies

    Posted in: Java Edition Support
  • To post a comment, please .