• 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    Quote from Helios_the_first

    My application (I may be a little late, but multiple artists can't hurt, right? :P )
    Name: Rob
    Skype name: I can pm this to you, but I don't want to post it on public forums.
    Position: Texture Artist
    Previous experience: Fledocraft, Youtube Channels, My texture packs.
    How would I rate myself in the scheme of your position: I am a decent artist (I enjoy doing GUIs too, they're in a league of their own)
    Why I want to join: I enjoy making art, I have LOADS of free time, and I really love and support the project!
    How scared am I of working on this mod: Realisticly, this mod is a massive undertaking. This mod will take a while to work on, and given the size, I am naturally a little hesitant to want to do it... I believe this project has potential, though!
    My preparation plans: Making lots and lots and lots of drafts and sketches
    About me: I love making art, I am a pretty friendly person (though I can be sarcastic and weird) and if an opportunity arises that I like the look of, I generally take it. I am Aussie. I hate maths. I am a stickler for grammar and spelling, as well as acting and story construction. Commonly teased IRL because I'm a nerd.

    Examples of other art I have done (youtube): 1, 2, 3, 4, 5
    Examples of other art I have done (website/mod): Fledocraft, heliosthefirst
    Examples of other art I have done (miscellaneous): My banner/icon

    I also do a modelling in Techne (I'm pretty good). Example: http://www.heliosthe...vu/p/packs.html
    Well good for you, I am sarcastic and weird, and you have a wonderful application! You are accepted, and no, multiple artists couldn't hurt. ;) And just add me on skype right away, it's thedr3141.
    P.S. No you really aren't that late, it's just this thread isn't popular, and we've barely started development, we've just been chatting about what to add and how.
    Posted in: Mods Discussion
  • 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    So now I am up to a team of 2 + me, so that takes care of sounds, coding, texturing, and basic modeling, but I need someone to to make a few player animation model obj things, by that I mean multiple obj's you can pm me for details, other than that, we should be good to go! :)
    Posted in: Mods Discussion
  • 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    Considering making two versions, edited poll.
    Posted in: Mods Discussion
  • 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    Mod being renamed too:
    Gears of Steam
    :D We thought "The Steampunk Mod" didn't sound good enough, but all the other mod names were taken, so then he [Autumn] blurted "gears of steam" it has stuck. Deal with it. :P
    Posted in: Mods Discussion
  • 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    Blender modelers and hd texturers are still needed! ;)
    Posted in: Mods Discussion
  • 0

    posted a message on The Steampunk Mod 1.7.2 /application thread/
    Quote from AureanAutumn

    Name: Just call me J. Or Aur. Whatever floats ya boat.
    Skype name: arrow.chrysera
    Position: Mainly coder (coz I can't do art for ­), but I can stretch into sound design a little bit
    Previous experience: I've tried my hand at making a Minecraft mod once, never finished it because artwork. I can say I'm quite proficient in Java (computer science student, guaranteed one whole year spent on it) and I've studied the MinecraftForge API to a certain extent. TL;DR: I can do it.
    How you rate yourself in the scheme of your position: Probably good, I've made a few small games and stuff with the language I'll be using so yeah.
    Why you want to join: I love steampunk, it just feels so... coordinated. And beautiful. And also I have a few ideas I can share. Maybe more than a few.
    How scared you are of working on this mod: I'm not. I've always challenged myself.
    Your preparation plans: Research on more steampunk concepts, brush up on my gear physics, and dive right into coding.
    About you:
    The Good Things:
    I can do whatever I set my mind to. I can handle time constraints, and they actually bring out my resourcefulness and creativity. If there will be no time limit, I would probably be rushing myself anyway. I'm a pretty creative guy and I appreciate all ideas, am open to criticism, and can voice out my opinions well.
    The Bad Things: I have a hard time with waiting, because I tend to easily forget ideas if I don't write them down or code them, etc. I'm an impatient *******, yeah, and I have trouble working with people who can't keep up with me, so I prefer having a standalone assignment solely to myself.
    You are almost, but not quite EXACTLY like me... THANK YOU THANK YOU THANK YOU I THOUGH THIS THREAD WAS DEAD Oaky, now that I am out of caps lock, I can tell you I'll finish up the package/file structure this week now that I have motivation to finish that! :)
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from SolarCactus

    hey, i saw line 79 and dont know how to solve it. If you could help that would be nice.





    if (par3World.canPlaceEntityOnSide(this.field_150935_a, par4, par5, par6, false, par7, (Entity)null, par1ItemStack))
    I think you need to specify an entity maybe?
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Dahugebigbang

    Shut up, im not going to stahp till it works
    Then you should START learning java.
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Dahugebigbang

    I changed it to ..setBlockTextureName("MoreStuff:crops"), but it still doesnt work, Do i need to do it in the main mod class or in the block class file?
    I'm gonna cry now...
    Posted in: Mods Discussion
  • 1

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Dahugebigbang

    So what exactly do I do there? Because I dont know how to put in the name do I delete the underscoures? Do I leave them In? I just dont know xD
    When the game searches for a textures, it searches with a given string, this.getTextureName fetches the texturename you gave the block in the main mod file, then it adds "_stage_" to it, because of this: "+" it's purpose should be self explanatory as I think you know basic arithmetic. Then it adds the integer "i" which was generated by the loop that counted the ticks and raises the int to change the texture, computers count from 0, so in which the maximum set by the loop is 8, then it would count from 0 - 7, it is basic Java and I suggest you at least spend a day learning the basics. If I seem mean, I'm being nice, most people wuld've just yelled at you without teaching you anything, as long as I give you information, it is your job to learn. Have fun.
    this.getTextureName() + "_stage_" + i
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Rovkir_Hexus

    I'm using a Youtube tutorial by TheGrovesyProject101. Should I post the rest of my code?
    The problem is in the blocks class, but I can't find it, maybe Fire8Blade could find it.
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Rovkir_Hexus

    I've been getting a NullException a lot in my Blocks... thing (I don't know what to call it), but all my blocks are registered and initialized.

    Blocks.java:

    package com.MoreOres.Blocks;

    import com.MoreOres.lib.Strings;
    import cpw.mods.fml.common.registry.GameRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    import cpw.mods.fml.common.registry.LanguageRegistry;

    public class MoreOresBlocks {

    public static void mainRegistry() {
    initializeBlock();
    registerBlock();
    }

    public static Block festoxOre;
    public static Block blackrockOre;
    public static Block couliteOre;
    public static Block igneousOre;
    public static Block enderOre;
    public static Block eyetinOre;

    public static Block festoxBlock;
    public static Block blackrockBlock;
    public static Block couliteBlock;
    public static Block moltenRockBlock;
    public static Block enderBlock;
    public static Block eyetinBlock;

    public static void initializeBlock() {
    festoxOre = new FestoxOreBlock(Material.rock)
    .setBlockName("Festox Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":FestoxOre");

    blackrockOre = new BlackrockOreBlock(Material.rock)
    .setBlockName("Blackrock Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":BlackrockOre");

    couliteOre = new CouliteOreBlock(Material.rock)
    .setBlockName("Coulite Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":CouliteOre");

    igneousOre = new MoltenRockOreBlock(Material.rock)
    .setBlockName("Molten Rock Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":MoltenRockOre");

    enderOre = new EnderOreBlock(Material.rock).setBlockName("Ender Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":EnderOre");

    eyetinOre = new EyetinOreBlock(Material.rock)
    .setBlockName("Eyetin Ore")
    .setCreativeTab(CreativeTabs.tabBlock)
    .setBlockTextureName(Strings.MODID + ":EyetinOre");

    }

    public static void registerBlock() {
    GameRegistry.registerBlock(festoxOre, festoxOre.getUnlocalizedName());
    GameRegistry.registerBlock(blackrockOre,
    blackrockOre.getUnlocalizedName());
    GameRegistry.registerBlock(couliteOre, couliteOre.getUnlocalizedName());
    GameRegistry.registerBlock(igneousOre, igneousOre.getUnlocalizedName());
    GameRegistry.registerBlock(enderOre, enderOre.getUnlocalizedName());
    GameRegistry.registerBlock(eyetinOre, eyetinOre.getUnlocalizedName());

    }

    }

    OreWorldGen:



    package com.MoreOres.Blocks;

    import java.util.Random;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.init.Blocks;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import cpw.mods.fml.common.IWorldGenerator;

    public class MoreOresWorldGen 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(random, chunkX * 16, chunkZ * 16, world);
    break;

    case 0:
    generateSurface(random, chunkX * 16, chunkZ * 16, world);
    break;

    case 1:
    generateEnd(random, chunkX * 16, chunkZ * 16, world);
    break;
    }
    }

    private void addOre(Block festoxOreBlock, Block blockSpawn, Random random,
    World world, int posX, int posZ, int minY, int maxY,
    int minVeinSize, int maxVeinSize, int spawnChance) {
    for (int i = 0; i < spawnChance; i++) {
    int defaultChunkSize = 6;
    int xPos = posX + random.nextInt(defaultChunkSize);
    int yPos = minY + random.nextInt(maxY - minY);
    int zPos = posZ + random.nextInt(defaultChunkSize);

    new WorldGenMinable(festoxOreBlock,
    (minVeinSize + random.nextInt(maxVeinSize - minVeinSize)),
    blockSpawn).generate(world, random, xPos, yPos, zPos);
    }

    }
    private void generateNether(Random random, int chunkX, int chunkZ,
    World world) {
    addOre(MoreOresBlocks.couliteOre, Blocks.netherrack, random, world,
    chunkX, chunkZ, 20, 60, 10, 20, 20);
    addOre(MoreOresBlocks.igneousOre, Blocks.netherrack, random, world,
    chunkX, chunkZ, 20, 60, 10, 20, 20);

    }

    private void generateSurface(Random random, int chunkX, int chunkZ,
    World world) {
    addOre(MoreOresBlocks.festoxOre, Blocks.stone, random, world, chunkX,
    chunkZ, 20, 60, 10, 20, 20);
    addOre(MoreOresBlocks.blackrockOre, Blocks.bedrock, random, world,
    chunkX, chunkZ, 20, 60, 10, 20, 20);

    }

    private void generateEnd(Random random, int chunkX, int chunkZ, World world) {
    addOre(MoreOresBlocks.enderOre, Blocks.end_stone, random, world,
    chunkX, chunkZ, 20, 60, 10, 20, 20);
    addOre(MoreOresBlocks.eyetinOre, Blocks.end_stone, random, world,
    chunkX, chunkZ, 20, 60, 10, 20, 20);

    }

    }

    Crash log:



    ---- Minecraft Crash Report ----
    // Why did you do that?

    Time: 5/29/14 9:34 AM
    Description: Initializing game

    java.lang.NullPointerException: Initializing game
    at com.MoreOres.Blocks.MoreOresBlocks.initializeBlock(MoreOresBlocks.java:34)
    at com.MoreOres.Blocks.MoreOresBlocks.mainRegistry(MoreOresBlocks.java:13)
    at com.MoreOres.main.MainRegistry.PreLoad(MainRegistry.java:31)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:500)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:202)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:520)
    at net.minecraft.client.Minecraft.run(Minecraft.java:890)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Stacktrace:
    at com.MoreOres.Blocks.MoreOresBlocks.initializeBlock(MoreOresBlocks.java:34)
    at com.MoreOres.Blocks.MoreOresBlocks.mainRegistry(MoreOresBlocks.java:13)
    at com.MoreOres.main.MainRegistry.PreLoad(MainRegistry.java:31)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:500)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:202)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:520)

    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:890)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    -- System Details --
    Details:
    Minecraft Version: 1.7.2
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.7.0_55, Oracle Corporation
    Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 882213112 bytes (841 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 8 mods loaded, 8 mods active
    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized
    CompressedTools{0.1 Alpha} [Compressed Tools] (bin) Unloaded->Constructed->Pre-initialized
    examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized
    tm{0.01 Alpha} [Hexical Project] (bin) Unloaded->Constructed->Pre-initialized
    MoreOres{0.01 Alpha} [More Ores] (bin) Unloaded->Constructed->Errored
    TrollStuff{1.0} [Troll Stuff] (bin) Unloaded->Constructed->Pre-initialized
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: Intel® HD Graphics GL version 3.1.0 - Build 9.17.10.3517, Intel
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
    Anisotropic Filtering: Off (1)

    It's probably like another problem I had with a really simple solution XD
    First off, I love your setup, it is so pretty. Haha. Second, I think that the mainregistry method, with both the register method and the other method, are just unneccessary. But other than extraneous methods, I cant seem to find any other issue. :/
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from MillersMods

    Hello!
    My most important questions in order to be able develop my mod:

    1. How can I override the item bar controlls (Mouse Scrollwheel and the number keys) input? (Imagine that I have a 2nd bar for spells).

    2. How can add a new property to an EntityPlayer object? (I have a custom class called MyModHooks containing lot of stuff and I would like to add one instance of these to each player when their EntityPlayer object comes alive).

    3. Could you please suggest me a smooth tutorial about how to make a mod configuration GUI panel? (I need checkboxes and labels basicly...)

    Regards,
    James
    You could try to adapt this: http://www.minecraftforum.net/topic/1949352-172164-custom-inventories-in-items-and-players/
    and my friend Light (keeperofmee) found out a simple way to override vanilla classes.
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Dahugebigbang

    Excuse me Mr. Firethe8blade, but I would like you to tell me what to name my stages of plant growth in my textures file? where do I specify that? here is the class code:

    package com.dahugebigbang.MoreStuff.blocks;
    import java.util.ArrayList;
    import java.util.Random;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockBush;
    import net.minecraft.block.IGrowable;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IIconRegister;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.init.Blocks;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.IIcon;
    import net.minecraft.util.MathHelper;
    import net.minecraft.world.World;
    import net.minecraftforge.common.util.ForgeDirection;
    public class BlockPlant extends BlockBush implements IGrowable {
    
    @SideOnly(Side.CLIENT)
    private IIcon[] field_149867_a;
    private static final String __OBFID = "CL_00000222";
    public BlockPlant(int i, Material Grass)
    {
         this.setTickRandomly(true);
         float f = 0.5F;
         this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
         this.setCreativeTab(CreativeTabs.tabFood);
         this.setHardness(0.0F);
         this.setBlockName("Plant");
         this.setStepSound(soundTypeGrass);
         this.disableStats();
    }
    /**
         * is the block grass, dirt or farmland
         */
    protected boolean canPlaceBlockOn(Block p_149854_1_)
    {
         return p_149854_1_ == Blocks.farmland;
    }
    /**
         * Ticks the block if it's been scheduled
         */
    public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_)
    {
         super.updateTick(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_, p_149674_5_);
         if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) >= 9)
         {
             int l = p_149674_1_.getBlockMetadata(p_149674_2_, p_149674_3_, p_149674_4_);
             if (l < 7)
             {
                 float f = this.func_149864_n(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_);
                 if (p_149674_5_.nextInt((int)(25.0F / f) + 1) == 0)
                 {
                     ++l;
                     p_149674_1_.setBlockMetadataWithNotify(p_149674_2_, p_149674_3_, p_149674_4_, l, 2);
                 }
             }
         }
    }
    public void func_149863_m(World p_149863_1_, int p_149863_2_, int p_149863_3_, int p_149863_4_)
    {
         int l = p_149863_1_.getBlockMetadata(p_149863_2_, p_149863_3_, p_149863_4_) + MathHelper.getRandomIntegerInRange(p_149863_1_.rand, 2, 5);
         if (l > 7)
         {
             l = 7;
         }
         p_149863_1_.setBlockMetadataWithNotify(p_149863_2_, p_149863_3_, p_149863_4_, l, 2);
    }
    private float func_149864_n(World p_149864_1_, int p_149864_2_, int p_149864_3_, int p_149864_4_)
    {
         float f = 1.0F;
         Block block = p_149864_1_.getBlock(p_149864_2_, p_149864_3_, p_149864_4_ - 1);
         Block block1 = p_149864_1_.getBlock(p_149864_2_, p_149864_3_, p_149864_4_ + 1);
         Block block2 = p_149864_1_.getBlock(p_149864_2_ - 1, p_149864_3_, p_149864_4_);
         Block block3 = p_149864_1_.getBlock(p_149864_2_ + 1, p_149864_3_, p_149864_4_);
         Block block4 = p_149864_1_.getBlock(p_149864_2_ - 1, p_149864_3_, p_149864_4_ - 1);
         Block block5 = p_149864_1_.getBlock(p_149864_2_ + 1, p_149864_3_, p_149864_4_ - 1);
         Block block6 = p_149864_1_.getBlock(p_149864_2_ + 1, p_149864_3_, p_149864_4_ + 1);
         Block block7 = p_149864_1_.getBlock(p_149864_2_ - 1, p_149864_3_, p_149864_4_ + 1);
         boolean flag = block2 == this || block3 == this;
         boolean flag1 = block == this || block1 == this;
         boolean flag2 = block4 == this || block5 == this || block6 == this || block7 == this;
         for (int l = p_149864_2_ - 1; l <= p_149864_2_ + 1; ++l)
         {
             for (int i1 = p_149864_4_ - 1; i1 <= p_149864_4_ + 1; ++i1)
             {
                 float f1 = 0.0F;
                 if (p_149864_1_.getBlock(l, p_149864_3_ - 1, i1).canSustainPlant(p_149864_1_, l, p_149864_3_ - 1, i1, ForgeDirection.UP, this))
                 {
                     f1 = 1.0F;
                     if (p_149864_1_.getBlock(l, p_149864_3_ - 1, i1).isFertile(p_149864_1_, l, p_149864_3_ - 1, i1))
                     {
                         f1 = 3.0F;
                     }
                 }
                 if (l != p_149864_2_ || i1 != p_149864_4_)
                 {
                     f1 /= 4.0F;
                 }
                 f += f1;
             }
         }
         if (flag2 || flag &amp;&amp; flag1)
         {
             f /= 2.0F;
         }
         return f;
    }
    /**
         * Gets the block's texture. Args: side, meta
         */
    @SideOnly(Side.CLIENT)
    public IIcon getIcon(int p_149691_1_, int p_149691_2_)
    {
         if (p_149691_2_ < 0 || p_149691_2_ > 7)
         {
             p_149691_2_ = 7;
         }
         return this.field_149867_a[p_149691_2_];
    }
    /**
         * The type of render function that is called for this block
         */
    public int getRenderType()
    {
         return 6;
    }
    protected Item func_149866_i()
    {
         return Items.wheat_seeds;
    }
    protected Item func_149865_P()
    {
         return Items.wheat;
    }
    /**
         * Drops the block items with a specified chance of dropping the specified items
         */
    public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
    {
         super.dropBlockAsItemWithChance(p_149690_1_, p_149690_2_, p_149690_3_, p_149690_4_, p_149690_5_, p_149690_6_, 0);
    }
    public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
    {
         return p_149650_1_ == 7 ? this.func_149865_P() : this.func_149866_i();
    }
    /**
         * Returns the quantity of items to drop on block destruction.
         */
    public int quantityDropped(Random p_149745_1_)
    {
         return 1;
    }
    public boolean func_149851_a(World p_149851_1_, int p_149851_2_, int p_149851_3_, int p_149851_4_, boolean p_149851_5_)
    {
         return p_149851_1_.getBlockMetadata(p_149851_2_, p_149851_3_, p_149851_4_) != 7;
    }
    public boolean func_149852_a(World p_149852_1_, Random p_149852_2_, int p_149852_3_, int p_149852_4_, int p_149852_5_)
    {
         return true;
    }
    /**
         * Gets an item for the block being called on. Args: world, x, y, z
         */
    @SideOnly(Side.CLIENT)
    public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)
    {
         return this.func_149866_i();
    }
    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
         this.field_149867_a = new IIcon[8];
         for (int i = 0; i < this.field_149867_a.length; ++i)
         {
             this.field_149867_a[i] = p_149651_1_.registerIcon(this.getTextureName() + "_stage_" + i);
         }
    }
    public void func_149853_b(World p_149853_1_, Random p_149853_2_, int p_149853_3_, int p_149853_4_, int p_149853_5_)
    {
         this.func_149863_m(p_149853_1_, p_149853_3_, p_149853_4_, p_149853_5_);
    }
    @Override
    public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
    {
         ArrayList<ItemStack> ret = super.getDrops(world, x, y, z, metadata, fortune);
         if (metadata >= 7)
         {
             for (int i = 0; i < 3 + fortune; ++i)
             {
                 if (world.rand.nextInt(15) <= metadata)
                 {
                     ret.add(new ItemStack(this.func_149866_i(), 1, 0));
                 }
             }
         }
         return ret;
    }
    }

    And where it seems to me to specify the item dropped, it doesn't register my items for use, just my blocks
    My gosh, did you just copy/paste all of that?This tells you:
    this.getTextureName() + "_stage_" + i
    i is the int of growth, so it is probably 0-7, because there are 8 ints.
    Posted in: Mods Discussion
  • 0

    posted a message on Modding FAQ! [1.7.2] [forge]
    Quote from Mechanaut

    My mod won't load textures for my items. I am in Forge 1.7.2. This is the code for my mod sword:
    package com.mechanaut.testmod.tools;

    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.ItemSword;

    public class HolographicSword extends ItemSword{

    public HolographicSword(int i, ToolMaterial Hologram) {
    super(Hologram);
    this.setCreativeTab(CreativeTabs.tabTools);
    this.setUnlocalizedName("HolographicSword");
    this.setTextureName("testmod:holographic_sword");
    }

    }
    Is the your texture in "assets/testmod/textures/items"? Recheck everything to make sure there are no typos, and testmod is your modid, yes?
    Posted in: Mods Discussion
  • To post a comment, please .