Added: 7 months ago
From: RandomAnimator101
Views: 6,649
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (273)

Sign In or Sign Up now to post a comment!
  • maybe because I have 1.1 ?

  • it says: mod_smaragd cannot be resolved to a variable :S help! And thanks for the tutorial, it's realy helpful! :)

  • thanks dude this tutiorial is really helpful

  • I have followed every step of this tut, but when i run thew cilent, it crashes:

    java.lang.ExceptionInInitializ­erError at sun.reflect.NativeConstructorA­ccessorImpl.newInstance0(Nativ­e Method)

  • PLZ

  • I dont Work make new vids

  • Comment removed

  • It says that "addOverride" in ".setIconIndex(ModLoader.addOv­erride(Bla bla, bla bla)

    is wrong.

    "The Method addOverride(string) is undefined for the type ModLoader

  • Guys, these tutorials i outdated. Much is still the same though. Btw, you are awesome for doing these!

  • Not 1 of these comments say " thanks dude this tutiorial is really helpful". Thumbs up if you think he rocks

  • IF YOU GET ERRORS, THIS MAY BE WHY:

    public String Version();

    SHOULD NOW BE:

    public String getVersion();

  • @Username1One getVersion() works for me when i make another line with:

    public void load() {}

  • can u plzz make a modding tut for 1.0.1??

  • @EpikC0wz yeah. I will soon. actually, Ill make them for 1.2, since thats not too far away.

  • i can't find the Block.oreRedstone.blockID in the ChunkProviderGenerate.java

    Help!!!

  • What ever I do it can't find the images.... it worked for a while but then I added the armor code and it failed again... where do I put the files... they are in the MCP folder and in the Jar and in the temp folder and in the eclipse folder but it still can't find it

  • @Stumpy0073 make sure everything is spelled right. like amybe you added an extra E or something somwhere.

    BTW, for armour, you need to put it in the Armor folder of the Jar. and it must be named the same thing as your armour.

  • @RandomAnimator101 It's not the armor I'm having trouble with though... I added the code for the Armor but it now can't find any of the images

  • @Stumpy0073 hmmm. So you put them in the MCP/jars/bin/minecraft.jar right? make sure they are in the correct path and stuff....

    ummm. I don't know what to tel you. I would have to look at the code and stuff myself.

  • @Stumpy0073 ANY of the images? or just the armor images?

  • @RandomAnimator101 It cant find ANY of them :(

  • My item isnt kryptonite. It is called Erbium... I got as far as making ItemErbium"Tool" at around 1:06:00, and I got the Pick, Spade, and Axe done, but whenever I do the Sword or Hoe, it gives me an error that says "The constructor ItemErbiumHoe(int, EnumEribiumMaterial) is undefined."

    Here is what my code looks like

    ErbiumHoe = (new ItemErbiumHoe(9009, EnumErbiumMaterial.ERBIUM)).se­tIconIndex(ModLoader.addOverri­de("/gui/items.png", "/mods/ErbiumHoe.png")).setIte­mName("Erbium Hoe");

    Please help

  • @Mintok97 OK, I know I am replying to my own comment and I hope this doesn't count as spam. I found out what was wrong. I forgot to change some of the EnumToolMaterial into EnumErbiuimMaterial in the sword and hoe files. Thanks for the awesome tut and I can't wait for more.

  • @Mintok97 lol yeah :P

  • @Mintok97 You have to change the ItemErbiumHoe(int i, EnumToolMaterial)

    to ItemErbiumHoe(int i, EnmuYourSpecialEnum).

    otherwise it errors out.

  • i want to make a sort of flaming sword, but how can I if I hit someone, hit him AND light him on fire?

  • dude problem:

    package net.minecraft.src;

    public class mod_Recipe extends BaseMod

    { public String Version() { return "New Stufflol"; }

    }

    public class mod_Recipe extends BaseMod asks it to be public abstract class mod_Recipe extends BaseMod instead.....

  • @EpikC0wz ummm if you are modding the most current version of minecraft with the 1.0.0 modloader(same version) you need to instead of the Version() you need to do the getVersion()

  • @EpikC0wz the Version has been changed to getVerion() as of 1.1

    Also, everything that goes into the mod_Recipe() {registers and recipes and stuff goes here}...

    yeah, all that has been moved to load();

    so its...

    ublic void load() {registers and recipes and all that.}

  • @RandomAnimator101 i didnt really understand what u meant by that

  • What do I do if I got two ores I add in the world generation. For me it is just generation one ore

  • @MultiGMAG i have no idea. Generation took a major change with 1.1

  • @MultiGMAG I have only made 1 ore in my 1.0.0 mod and I just used the same tekst as randomanimator's video and it worked fine...

  • If any1 has teamviewer or something could you please help me with making it for 1.0.0 please? I had made it fully working for 1.7.3 but it wont work for 1.0.0 and its broken for 1.7.3 :(

  • @MeGaHaCkErZzZ check the BlockIds. With the new update to 1.0.1, a few blocks have been added, and thus more ids have been used. Check blocks.java for the largest BlockID and make yours bigger than that.

  • Can you post the code to generate ore in Minecraft 1.0.0? :)

  • @TheThiorix I have no idea how. I have stopped modding until the mod-system comes out.

  • @RandomAnimator101 ow :( Okay, thanks anyway! :) These tutorials are awesome!

  • This is what I have:

    package net.minecraft.src;

    public class mod_toxic extends BaseMod

    { public String Version() { return "Toxic Armor and Tools 1.0.0"; }

    }

    and the part where it say public class mod_toxic it says "mod_toxic must implement the inherited abstract method BaseMod.getVersion and BaseMod.load

    Please Help!

  • @MeGaHaCkErZzZ Do you have Steam? If you do add me "mrgamer107" Or just give my your team viewer info, i had this same prob.

  • @lTheOnlyLanixl I think I fixed it m8 do you just have 'add unimplemented methods'? a.k.a load and getVersion

  • @MeGaHaCkErZzZ you could make is abstract, as thats what MC does now, or you could add that override stuff. It really doesn't matter.

  • @MeGaHaCkErZzZ heh, yeah just got what you were saying, yea, thats how you do it :P

  • Comment removed

  • How can I make it so that my ores will only mine with an stone pick or greater / iron pick or greater?

  • @RandomAnimator101 If you could reply and tell us what the code is now/where it is located for the ChunkProviderGenerate file that you copy pasted from. We need it for 1.0.0.

  • Why isn't this video hq?

  • @RandomAnimator101

    1.0.0 doesnt have the same ChunkProviderGenerate files :(

  • you make armor a different way in 1.0.0 so now my armor doesn't work anymore :(

  • Does the items show on TMI?

  • Are you going to make this compatible with 1.0.0 because item id 97 =Stone Brick?

  • Could Someone help me please, when i put the reobfuscated files and the mod map (with the textures) in my minecraft it gives an minecraft crash, and it closes so fast that i cant see what the error is about. Please help me

  • I have one question. When I test the mod on a regular Minecraft client, the armor on the player when it is worn has a rendering glitch. The armor looks like a retarded snow armor. Any answer?

  • how can i make the ore only be mined by diamond?

  • @TaylorTechable If you give youtube your username to youtube from the uplode page and it will send you a code. you put the code in the box on youtube after you put in your phone number then you can uplode longer.

  • Great help thanks, really helpful, but when modders make big mods like aether and industrial craft etc. do they make the mod with or without modloader?

  • @ijuden123 you can find that out on the forums, and check if the mod requiers modloader!

  • @TaylorTechable it cant be over 2 gigs youtube lies

  • You got my sub dude, Thankyou. This was the best tut EVER so you have my sub :)

  • Comment removed

  • you can put a link to it so I can try them :D

  • Comment removed

  • Oh my lord... Ill watch this when I have enough time :P

  • When I try to set the item ID to over 9000, the game gives me all kinds of errors... any idea why?

  • How do you make your ore so that when broken you will only obtain it if you mined it with an iron pickaxe?

  • @NastyShoesGaming He tells you in the very first block mod videos (part two & three of HTMAMM). I think you just leave the drop thing blank, but I don't remember. But he definately mentions it in those videos

  • could you come onto skype i need help............... please.

  • I made an i the ore and items like you said and i tried playing it and i get this error

    Minecraft: Minecraft Beta 1.8.1

    OS: Windows 7 (x86) version 6.1

    Java: 1.7.0, Oracle Corporation

    VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation

    LWJGL: 2.4.2

    OpenGL: GeForce 9300M GS/PCI/SSE2 version 3.1.0, NVIDIA Corporation

    java.lang.ExceptionInInitializ­erError at sun.reflect.NativeConstructorA­ccessorImpl.newInstance0(Nativ­e M

    Caused by: java.lang.ArrayIndexOutOfBound­sException: 900

    n mor

  • hey where is the WorldGenMineable thing its not in chunkprovidergenerate anymore.........

  • where is the armor 1 and 2 from ? i have 4 ... 1 of each piece can someone answer me asap :( please

  • @lolimnotstupid Look at the leather armor set in your minecraft folder... notice that each image is two pieces of armor. That's why you only have two.

  • Comment removed

  • hide the dirt crafting!

  • I need help[again]! The picture i make doesnt show! It just shows sandstone!

  • @Haloproper1000 make sure you got the correct spelling for everything and are not using the same override twice. if you have 2 blocks using the same PNG with different overrides, you will have a problem.

  • Comment removed

  • Comment removed

  •  15:30

  • I'm getting some problems with adding achievements, I use OnItemPickup but it says "void is an invalid type for the variable OnItemPickup". Also the code .addStat says "The method addStat(StatBase, int) in the type Entity Player is not applicable for the arguments (Item, int)" Any ideas?

  • @MattexFilms2006 hmmm. This is for 1.8 right?? hmmmm. I don't know. I haven;t tried this with 1.8 yet.

  • @RandomAnimator101 it works for 1.8.1

  • @RandomAnimator101 It works for 1.8.1

  • Hey thanks for this! It's really helped me a lot.

    Slight problem... when I go to recompile, I get an error that says "source is an invalid option or argument." Any idea what I did wrong?

    Also, is there a way to make a semi-transparent block? I want to know if I can make stained glass.

    Thanks!

  • @rhettbutler13 ummmm. nope. Not as far as I know.

  • I did your tutorial and got this.

    java.lang.ExceptionInInitializ­erError at sun.reflect.NativeConstructorA­ccessorImpl.newInstance0(Nativ­e Method) at sun.reflect.NativeConstructorA­ccessorImpl.newInstance(Unknow­n Source) at sun.reflect.DelegatingConstruc­torAccessorImpl.newInstance(Un­known Source) at java.lang.reflect.Constructor.­newInstance(Unknown Source) at java.lang.Class.newInstance0(U­nknown Source)

    etc, any idea?

  • @MattexFilms2006 probably the BlockID's 1.8.1 added a few blocks. so you will have to change the BlockID's so they are above 109.

  • @RandomAnimator101 Got it now, works fine. Do you think you could do a tutorial on how to make a new type of container. Like a furnace, and make it do a certain thing, like only accept a specific item/block?

  • @MattexFilms2006 yeah, Thats actually what the next tutorials build into.

  • Hey mate i got stuck once before and then you told me how to fix it and it helped a load! But i am sought of stuck again well i was just wondering if the ore generator code chunk still works for 1.8 because i was trying to find it and i found a ravine and still couldnt find it but i don't know :S

  • @MinecraftFirestar Im, I am not sure. Haven't gotten a chance to play arround with that. It could be perhaps that ModLoader takes care of that for ou, so I think you might code it the same in your mod_ file.

  • What if i want my block to be generated at ground level and not underground? Your ore has the number 16 at the world generation thingy but what number is ground level?

  • @leosidenslife That gets a little complicated. you need to get the "height value." You get it like this.

    posX = random.nextInt(16)

    posZ = random.nextInt(16)

    posX = world.getHegithValue(posX, posZ);

    that getHeightValue() thing gets you the ground level at the coordinate.

  • @RandomAnimator101 I cant get it working but thanks anyway.

  • plz help, i got everything going well but now the block is to easy to break (you can break it with a wooden pickaxe). i have tried changing to hardness and the resistance but all it does is change the time it takes to mine. plz help

  • @TubbyT98 hmmmm. Did you make sure that the Material is Material.stone and the it extends BlockStone

  • Thank you so much dude, thanks to you I was able to convince my teacher to let me do this for school, how bloody awesome is that :D

  • @TubbyT98 sweet :D. I was able to convince her to let me do it in class... but not as class work. But at least I can play MC in school without getting in trouble. XD

  • nvm i fixed it

  • for the public void GenerateSurface(World world, Random random it says Random cannot be resolved as a type?

    Helppp

  • @ellpimpo you nede to add this to the top of your file.

    import java.util.Random;

    Random doesn't exist natively, you have to *import* it.

  • whenever i type shifted index it wont work, saying it doesnt exist, any idea how to fix it?

  • @360PraNKsTer make sure you got no errors anywhere else. An error further up on your file could cause a problem where you are.

  • I need help. :(

    theres this problem it says The constructor BlockDirtstone(int, int) is undefined

    please help me! BTW its on 15:30

  • @Haloproper1000 you have to create the constructor in BlockDirtstone.java you know the part that says >> public BlockDirtstone(int i) { other stuf... }

    well, that is the constructor. it has to have spots for the 2 int's you are putting in. Otherwise it will give you that error.

  • Comment removed

  • Comment removed

  • Please help! Something went wrong and the textures didnt go in teh right place! For example: My ore replaced the dirt texture and idk what happened!

  • @leosidenslife make sure you spelled everything right.

  • @RandomAnimator101 yeah i had a spelling error, thanks. But can you please make a tutorial on how to make a mob? I want to make a "Dirt gnome" for my mod :D

  • @leosidenslife its coming

  • RandomAnimator,

    For some reason, when i equip the armor, i become just a bunch of white cubes, instead of the actual armor pieces, did i miss a step?

  • @TooManyQuestions15 yep. You have to make the armor textures. Not the normal Item ones, there is a different texture that you have to make. pay close attention here... 02:23 make sure you have the armor pictures in the right place and stuff.

  • @TooManyQuestions15 go to where you put AddArmor,

    make sure the name you gave the string was something like,for example, emerald-Armor (where emerald is your element),

    Then go into your minecraft jar and make sure that your custom armor skins have the EXACT same name with the _1 and _2 added on..

    Hope this helps,

    -Adam

  • Hey I'm getting problems with things that i haven't even messed with could i please send you the crash report so i can fix this :(

  • hey RandomAnimator101 you've probably been asked this already, but, the chunks for the generation of Coal,Diamond and such are no longer in ChunkProviderGenerate.java would you be able to point me in the right direction of these chunks so i can continue with my mod thanks in advance,

    -Adam

  • @OutSn1ped ummm, Unfortunately, I have not had a chance to explore 1.8.1 fully yet. But either way, I am pretty sure that ModLoader would interpret the generating the same either way. I know they changed the generation... I have to look into that...

  • @RandomAnimator101  its alright, i found out where they moved it..

    The chunks are now located in BiomeDecorator! thanks anyway

  • @OutSn1ped Thank you. Just saved me some time trying to track it down :D THANKS

  • can u do a tut on how to add a gun or somthing that shoots somthing

  • @Shupsta3 Yeah, we are gonna do that once we are done with Blocks. They are very close to being done. Only another 2 videos. The we will start to get into making Items have special behaviors like shooting stuff and interacting with specific Blocks.

  • Comment removed

  • @RandomAnimator101 awesome cant wait

  • hi i got a problem when i run the eclipse test it lets me on to my world and i can craft the ore but when i place or try to break said ore it crashes and says nullpointerexception any suggestions?

    

  • @TandCgames hmmmm. PM me the entire Error report.

  • The ore generation code is NOT working. I even made 500 tries with 50 blocks each: public void GenerateSurface(World world, Random random, int chunkX, int chunkZ) { int pozY; int pozX; int pozZ; int tries = 500; for(int i = 0; i < tries; i++) { pozX = chunkX + random.nextInt(16); pozY = random.nextInt(120); pozZ = chunkZ + random.nextInt(16); (new WorldGenMinable(Block.oreDiamo­nd.blockID, 50)).generate(world, random, pozZ, pozY, pozZ); } }

    help

  • @ToXicGam3Rx hmmmmm. I don't know what to tell you. were you unable to find diamond at all or something??

  • @RandomAnimator101 yup. no diamond at all ( and btw i need it to be in nether :( )

  • @ToXicGam3Rx Did you make sure that you regenerated the chunk? you can't use an existing save file, you will have to make a new world every test because it has to regenerate it.

  • @RandomAnimator101 yep. i was making new world every try.

  • And does this still work in 1.8?

  • @yoshistr007 ummm, it should. I don't know yet because MCP for 1.8 isn't out yet.

  • @RandomAnimator101 Its OUT :D \o/

  • @RandomAnimator101 Its out ! now !

  • How long have you been doing this?

  • @yoshistr007 since the summer began, about 4 months now.

  • @RandomAnimator101 do you get paid for doing this? or is it just a hobby?

  • // i fixed it //

  • @HjMarius great :D

  • when i tried to craft the armor i got diamond instead of obsidian armor // why //

  • @SettlerGaming at net.minecraft.src.CraftingMana­ger.addRecipe(CraftingManager.­java:261)

    ^^ main line to look at. It seems that you got a problem with your recipes.

  • u should use too manyitems

  • @LaxKilla56 I prefer to mod without having another mod to decompile with first.

  • Ah Nvm! Got it, thanks so much for this mate, helped me soo much! Subbed. Now, can you please make a tutorial on some more advanced things, like npcs etc, that'd be a great help :)

  • @TheReVoLuTiiOnZz just qondering, you got everything fixed right??

    about more tuts, yeah, that is coming this weekend...

  • @RandomAnimator101 Yes everything is working now =) and great, cant wait :D

  • help me :(!! I recompiled and reobfuscated it, no errors what so ever, but when i go to install it to my mc.jar, it crashes my game, ive got modloader, ive got all the pictures, everything.. :/

  • My problem is I did everything you sad till the Tools part and when I test the tools here what happens:

    When I try to craft Boots it gives me kryptonite Sword

    When I try to craft other Tools (pickaxe, axe, shovel, hoe, sword) it gives me sword again..

    What is the problem I couldnt find it please answer as possible you can!

  • @berkelik I found it !! :D In the static tools part I didnt change the id of them so there was 9005 on all of them so thats why it keeps giving me sword :) !

  • @berkelik Cuz you found it yourself, it makes it sooooo much more unlikely to happen again :P

  • @RandomAnimator101 Yea :p But I dont know How am i gonna remember all these stuff if I wanna do it again thats the problem :/

  • @berkelik trust me, all you gotta do is double check Item.java and stuff any time you need to.

  • Comment removed

  • when i make my armor and i gave it to my friends when they put it on they get white armor with the letters GT on their heads

  • @Undeadflayme LoL thats funny. Ok, so what you need to do is make sure that you named the armor correctly and stuff. Also make sure that you created the Armor textures correctly. I do not mean the item sprites, I mean the actual rendering stuff. They are found in armor folder of the minecraft jar.

  • @RandomAnimator101 Oh whoops i forgot to put the armor folder in my minecraft.jar :P

  • @Undeadflayme :P well there you go.

  • Eclipse says it's fine, it's when I have it installed and try to run minecraft.

  • @rockonwood007 hmm. So when you test it in eclipse, it runs perfectly. but when you re-obfuscate it and put it in a mine craft jar, it errors out, is that it??

  • I keep getting this error that says string index out of range:8. Any idea what's wrong?

  • @rockonwood007 Where is it hapening? Eclipse should give a line-Number or something.

  • in my tool enum i made it effective against my block, but it doesn't mine any faster depending on which tool i use (ex: wooden pick mines as fast as my pick)

  • @pie2these If you look in ItemPickaxe.java, it has a list of Blocks that it is effective against. Currently, the only thing you can do is modify that to fix that problem.

  • hey when i break my block i only get the ore back any sugestions

  • @bottz2 You wanna change the IdDropped. Take a look at BlockLeaves and notice that it drops saplings rather than the block itself. Do that for your Item.

  • @RandomAnimator101 instead i just made it smelt to get the ruby

  • @bottz2 lol, well I geuss that works.

  • @RandomAnimator101 On topic of this comment, how would you make it so a block so that, 90% of the time it would drop one thing, and 10% it would drop another? I need to modify the redstone ore to do this.

  • @DMWGames put this in you idDropped thingy.

    if (random.nextInt(10) <= 9)

    { return 90%-Item-here;

    }

    else return 10%-item-Here;

    if the "random" part gives you an error, add this line:

    Random random = new Random();

    and this to the top of the page:

    import java.util.Random;

    basically, that codes generates a random number from 0-10. and then the IF statement checks if it is less-than-or-equal-to 9. And if it is, drop 90% item, if its not drop the 10% item.