• 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    sorry for the double post, accidentally pressed on "quote", not "edit"
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from LEET_OWNAGE »
    *** Minecraft Coder Pack Version 2.11 ***
    MCP 2.11 running in C:\Users\Computer\Desktop\MCP
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\mod_topaz.java:86: cannot find symbol
    symbol  : class Random
    location: class net.minecraft.src.mod_topaz
    public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
                                             ^
    sources\minecraft\net\minecraft\src\mod_topaz.java:90: operator + cannot be appl
    ied to int,Random.nextInt
                int randPosX = chunkX + rand.nextInt(16);
                               ^
    sources\minecraft\net\minecraft\src\mod_topaz.java:90: incompatible types
    found   : <nulltype>
    required: int
                int randPosX = chunkX + rand.nextInt(16);
                                      ^
    sources\minecraft\net\minecraft\src\mod_topaz.java:92: operator + cannot be appl
    ied to int,Random.nextInt
                int randPosZ = chunkZ + rand.nextInt(16);
                               ^
    sources\minecraft\net\minecraft\src\mod_topaz.java:92: incompatible types
    found   : <nulltype>
    required: int
                int randPosZ = chunkZ + rand.nextInt(16);
                                      ^
    5 errors
    Compiling Minecraft Server


    (Edit:I am off for the night, I will be on tomorrow, I hope someone helps me with my error.)

    Anyone know whats wrong with this? I followed the Tut step by step but the World Gen doesn't Seem to work for me -.- It hates me, I'd Appreciate the Help from anyone :biggrin.gif:



    after the
    package net.minecraft.src;
    and before the fisrt
    public class nameofanythingblablabla

    put
    import java.util.Random;
    (in your mod_topaz.java)
    it would look like this
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_topaz


    "-.- It hates me" - it hates all new modder :biggrin.gif: :SSSS: including meh
    Posted in: Tutorials
  • 0

    posted a message on [HELP] Looking for a MCP 'Making Ores' Tutorial
    for the BlockOreDiamond, it is not necessary to make an ore by setting it's java file name to BlockOresomething, ore is just a normal generated block, all blocks can be an ore, it's just they are not generated by the world, i can call dirt an ore if i want.
    I dont really understand your question but i think you want to make a block to be generate-able and how to make a new block/ore(ore is simply a world auto generated block, like iron ore, coal ore, sand, dirt, gravel,... are generated by the game automatically, you dont need to put them there first), right? if so,

    First, know how to make a new block(there are many tutorials for making new blocks available for 1.4_01)
    Then know how to make an ore generating part

    A very simple one, explaining everything you need to know about modding
    viewtopic.php?f=1036&t=212150
    A faster modding one, if u know a little bit, or maybe none at all but you can study and understand fast
    viewtopic.php?f=1036&t=281004
    And a few more
    viewtopic.php?f=1036&t=282338
    viewtopic.php?f=1036&t=287514

    Single post for ore-generating
    viewtopic.php?f=1036&t=281004&p=3948029#p3948029
    Posted in: Tutorials
  • 0

    posted a message on [1.1.0][SMP] Dawn of the Modern World (thethirdmike's Mods)
    greate mod, i'm making a CityCraft mod, maybe it'll be compatible in someway with this mod :biggrin.gif:(but it wont be released early) and 2 mods will become a fully-mordernized-minecraft-mod, maybe including plane, sdk and some more :biggrin.gif: greate job once again
    :SSSS: :SSSS: :SSSS:
    :SSSS: :Diamond: :SSSS:
    :SSSS: :SSSS: :SSSS:
    Posted in: Minecraft Mods
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from Shoopdawhoop23 »
    Added in import java.util.Random;, recompiled fine, everything works, still doesn't drop my item.

    BlockBloodStone:
    package net.minecraft.src;
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) braces deadcode 
    
    
    	import java.util.Random;
    
    public class BlockBloodStone extends Block
    {
    
        public BlockBloodStone(int i, int j)
        {
            super(i, j, Material.rock);
        }
    
    public int idDropped(int i)
        {
    	    return mod_NetherDust.netherDust.shiftedIndex;
        }
    }


    mod_NetherDust:
    package net.minecraft.src;
    
    public class mod_NetherDust extends BaseMod
    {
        public mod_NetherDust()
    	{
    	    netherDust.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherDust/NetherDust.png");
    	    ModLoader.AddName(netherDust, "NetherDust");
    	}
    	
    	public String Version()
    	{
    	    return "1.4_01";
    	}
    	
    	public static final Item netherDust = new ItemNetherDust(2000).setItemName("netherdust");
    	
    	static
    	{
         }
    }	

    :/


        public BlockBloodStone(int i, int j)
        {
            super(i, j, Material.rock);
        }

    this part
    it should be Material.ground or Material.wood or something because if you want blocks to drop when you break them by hands, rock wont do it, try using pickaxes to mine it and you'll see it drops block, just like when you mine iron(or cobblestone not really sure :tongue.gif:)
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    ha you're totally right
    anyway do you know how to make a new kind of fuel with modloader?
    For releasing my mod, i'm in grade 9, so i dont have much time making mods :tongue.gif: gotta put more time in studying, high school is something really important to me
    I'm making a mod'll be called CityCraft, with things that you can find in a city (cemet,smoke,electricity wires, LED light,.....) if any1 like you can take this as a mod suggestion and make it :biggrin.gif: :SSSS: , then i'll make something else :iapprove:
    Posted in: Tutorials
  • 0

    posted a message on [V1.5.2]Smith_61 Mods: DNDTextures
    awesome Smith :Diamond: :Diamond: :Diamond: :Diamond: and a :iapprove: for you
    great job with all the mods, especially MC extended :biggrin.gif:, it's a modders/mod users savior
    Posted in: Minecraft Mods
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Any help? i'm only stuck at this point so :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: for any1 who can help me out

    EDIT :major, i dont get drops back only when i break AiriumOre, AiriumBlock is still fine

    EDIT AGAIN: my AiriumOre.class
    package net.minecraft.src;
    import java.util.Random;
    public class BlockAiriumOre extends Block
    {
    
        protected BlockAiriumOre(int i, int j)
        {   
            super(i, j, Material.ground);
        }
        
        public int idDropped(int i, Random random)
        {
                  return Block.dirt.blockID;
        }
        public int quantityDropped(Random random)
        {
                return 1;
        }
        
    }


    i set the quantityDropped to return 1 instead of return 3 so it worked, thanks for all the helps even if they dont work :biggrin.gif:
    i also changed the block material of Airium Ore to ground , it was rock before so there u go, i fixed my problem, if any of you have the same problem, just try to change the block material
    btw, thanks for the great tutorial Zid

    Confirmed with different materialsMaterial.rock does NOT drop any blocks when you break them(maybe just with barehand) wood, ground,... do
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    i did .setHardness(0.1F); and 0.0F but neither worked, i did so the command promt didnt give any error

    Will.Eze wrote:
    i tried both hardness 0,1F and 0,0F but none of them works
    are there any other fixes?


    well i said "hardness" , 0,1F and 0,0F just for fast typing, was going to bed then

    any other ideas? i still cant understand why i'm the only one who experience this problem
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from ziddia »
    Quote from Will.Eze »
    i tried both hardness 0,1F and 0,0F but none of them works
    are there any other fixes?


    Take a look at other classes that were made by Notch, I don't know why it won't work :/

    i still cant figure out why that happens, is there any other way to force drop a block?
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    i tried both hardness 0,1F and 0,0F but none of them works
    are there any other fixes?
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    how do i get block drops when i break them? even with bare hands? because i cant get any out of the new blocks i made
    here are my class files
    http://pastebin.com/WrCN3ngT BlockAiriumOre.class
    http://pastebin.com/q4ifCf8Q mod_Airium.class

    mod_Airium.class
    package net.minecraft.src;
    import java.util.Random;
    //Use for searching
    //Setting news ##^1
    //Registering ##^2
    //Ore generating ##^3
    
    public class mod_Airium extends BaseMod {
    
    //Separating ;;;REGISTERING - ##^2;;;
     public mod_Airium()
    {
       //Separating *-REGISTER BLOCKS-*
       ModLoader.RegisterBlock(AiriumOre);
       ModLoader.RegisterBlock(AiriumBlock);
       //Separating *-IMAGES-*
       AiriumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/WEmod/AiriumOre.png");
       AiriumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/WEmod/AiriumBlock.png");
       AiriumCompressed.iconIndex = ModLoader.addOverride("/gui/items.png", "/WEmod/AiriumCompressed.png");
       //Separating *-NAMES-*
       ModLoader.AddName(AiriumBlock, "Airium Block");
       ModLoader.AddName(AiriumOre, "Airium Ore");
       ModLoader.AddName(AiriumCompressed, "Compressed Airium");
       //Separating *-CRAFTING RECIPES-*
       ModLoader.AddRecipe(new ItemStack(AiriumCompressed, 1), new Object[] {
                "XXX", "XXX", "XXX", Character.valueOf('X'), AiriumBlock
            });
       ModLoader.AddRecipe(new ItemStack(AiriumBlock, 9), new Object[] {
                "X", Character.valueOf('X'), AiriumCompressed
            });
       ModLoader.AddRecipe(new ItemStack(AiriumOre, 3), new Object[] {
                "X", Character.valueOf('X'), Block.dirt
            });
       //Separating *-SMELTING RECIPES-*
       //ModLoader.AddSmelting(Block.block you want to be smeltable.blockID, new ItemStack(output, amount);
    };
    //Separating ;;;end of REGISTERING - ##^2;;
    
    
    
    
    
    
    
    //Separating ;;;ORE GENERATING - ##^3;;;
    public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
        {
            for(int i = 0; i < 20; i++)
            {
                int randPosX = chunkX + rand.nextInt(16);
                int randPosY = rand.nextInt(128);
                int randPosZ = chunkZ + rand.nextInt(16);
                (new WorldGenMinable(mod_Airium.AiriumOre.blockID, 32)).generate(world, rand, randPosX, randPosY, randPosZ);
            }
        }
    //Separating ;;;end of ORE GENERATING - ##^3;;;
    
    
    
    
    
    
    
    //Separating ;;;SETTING THINGS;;; - ##^1
     public static final Block AiriumOre = new BlockAiriumOre(255, 0).setLightValue(0.959F).setHardness(0.3F).setResistance(10F).setBlockName("AiriumOre");
     public static final Block AiriumBlock = new BlockAiriumBlock(254, 0).setLightValue(0.9995F).setHardness(0.3F).setResistance(8F).setBlockName("Airium Block");
     public static final Item AiriumCompressed = new ItemAiriumCompressed(7400).setItemName("AiriumCompressed");
    //Separating ;;;end of SETTING THINGS;;; - ##^1
    
    
    
    public String Version()
        {
        return "1.4_01";
        };
       
    }



    BlockAiriumOre.class
    package net.minecraft.src;
    import java.util.Random;
    public class BlockAiriumOre extends Block
    {
    
        protected BlockAiriumOre(int i, int j)
        {   super(i, j, Material.rock); };
        
        public int idDropped(int i, Random random)
        {
                  return mod_Airium.AiriumBlock.blockID;
        }
        public int quantityDropped(Random random)
        {
                return 3;
        }
    }



    EDIT:add BlockAiriumBlock.class incase any helper needs it, well, it's too basic but,... just in case
    package net.minecraft.src;
    import java.util.Random;
    public class BlockAiriumBlock extends Block
    {
    
        protected BlockAiriumBlock(int i, int j)
        {  
        super(i, j, Material.rock);
        }
    }
    Posted in: Tutorials
  • To post a comment, please .