Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[ModLoader][1.8.1] Strength's Tutorials/Help (28/11/11) *Generation*


  • Please log in to reply
1768 replies to this topic

#41

KaijHatesCurse

Posted 15 July 2011 - 06:55 PM

View PostDiversi, on 15 July 2011 - 06:43 PM, said:

Should've noticed, I want to test it using Eclipse; I recall there being a place to just dump these and then it works when you compile from within Eclipse.

Edit: that does make sense yes, but unfortunately, does not apply for me.

If your just testing the code it does not matter where the image is because the code will work if its correct. Its when the code is recompiled and reobfuscated that it will matter where the image is when its place din the minecraft.jar
Posted Image

Register or log in to remove.

#42

StrongJoshua
  • Location: Minecraftia

Posted 15 July 2011 - 07:07 PM

ANother tutorial you could write is how to make items or blocks do things on right click (like a fishing pole or flint 'n steel)!
Posted Image
www.YouTube.com/StrongJoshua

#43

Diversi
    Diversi

    Stone Miner

  • Members
  • 86 posts

Posted 15 July 2011 - 07:09 PM

Call me a moron, but, knowing if the image works is part of whether the code is correct, no? And how can I know whether the code is correct if Minecraft doesn't boot when testing?

I pretty likely missed something along the way and or am doing stuff incorrectly, so please, bear with me. Thank you.
Warning: the post seen above may contain sarcasm or unneeded irony. Please read with caution when this does not appear to be part of the test.

#44

Xezio_
    Xezio_

    Zombie Killer

  • Members
  • 164 posts

Posted 15 July 2011 - 07:15 PM

Ok, this is going to sound dumb, but..... when you add the ModLoader files to the minecraft.jar inside the jars folder, do you delete the META-INF? please reply!
and i also get this error EVERYTIME I install ModLoader when I decompile and then when I try to run the StartClient.batch, it crashes.::

== ERRORS FOUND ==

2 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\src\RenderBlock
s.#'
==================

Ok thats the code! hope someone helps me!
Posted Image

#45

BeastGamer
  • Minecraft: pivotgamer84

Posted 15 July 2011 - 07:52 PM

View PostXezio_, on 15 July 2011 - 07:15 PM, said:

Ok, this is going to sound dumb, but..... when you add the ModLoader files to the minecraft.jar inside the jars folder, do you delete the META-INF? please reply!
and i also get this error EVERYTIME I install ModLoader when I decompile and then when I try to run the StartClient.batch, it crashes.::

== ERRORS FOUND ==

2 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\src\RenderBlock
s.#'
==================

Ok thats the code! hope someone helps me!

That "error" is normal, just disregard it, and you should delete the meta-inf from inside your jars/bin folder in MCP.
Posted Image

#46

xXtidusXx
  • Location: Either Minecraft or Terreria!
  • Minecraft: xXtidusFRXx

Posted 15 July 2011 - 08:33 PM

View PostDiversi, on 15 July 2011 - 06:31 PM, said:

I'm just going to steal some code:
Namehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Namehere.png");
Where, as in, what directory, would I place Namehere.png?
Ah yes, the "Image not found" error. I too fell prey to this killjoy error. Quite simple to fix. Open up the Jars file, find minecraft.jar and add your .png file in there. Also, i recommend this :
("/terrain.png", "/YourMod/Namehere.png")
Thenyou only need to add 1 file with all the .png files.
Herobrine: Only God can save you now... Me: /spawnmob God 10 Hero : OH HOLY S**T!!

#47

phtje
    phtje

    Zombie Killer

  • Members
  • 187 posts
  • Location: CraftHammer
  • Minecraft: phtje

Posted 15 July 2011 - 09:26 PM

My Leaves of my custom tree don't disseaper when i chop down the wood.
Is this true?

#48

PhantomsCore
  • Location: Black Mesa Desert
  • Minecraft: PhantomsCore
  • Xbox:PhantomsCore

Posted 15 July 2011 - 09:46 PM

Since this helped me so much I spammed your 'reserved' posts with +'s, and I checked now you have a good reputation! Thanks again!  :lol:
Posted Image

#49

Xezio_
    Xezio_

    Zombie Killer

  • Members
  • 164 posts

Posted 15 July 2011 - 09:59 PM

In MCP everytime i try to run the StartClient.bat it crashed? Even when ModLoader isn't even in the minecraft.jar.? So does anybody have any answer to this??? very annoying when I cant test my mods!
Posted Image

#50

fish2
    fish2

    Redstone Miner

  • Members
  • 569 posts
  • Minecraft: Fish2

Posted 15 July 2011 - 10:07 PM

Nice man I would like to know if you can make one for how to add a new liquid to the game using modloader and making it Have a different color and also have different properties so like if it hit lava it make the netherrack or something like that.


Thanks Fish2

check out my new wiki

http://www.the-fish-wiki.com/


#51

Diversi
    Diversi

    Stone Miner

  • Members
  • 86 posts

Posted 15 July 2011 - 10:15 PM

View PostxXtidusXx, on 15 July 2011 - 08:33 PM, said:

Ah yes, the "Image not found" error. I too fell prey to this killjoy error. Quite simple to fix. Open up the Jars file, find minecraft.jar and add your .png file in there. Also, i recommend this :
("/terrain.png", "/YourMod/Namehere.png")
Thenyou only need to add 1 file with all the .png files.
I wondered what you meant with "1 file with all the .png files", but I guess you meant "1 folder with all the .png files". I already got the answer in Risugami's IRC, but thanks anyway; now other users now about it too.
Warning: the post seen above may contain sarcasm or unneeded irony. Please read with caution when this does not appear to be part of the test.

#52

Strengthowns
  • Minecraft: strengthowns

Posted 16 July 2011 - 06:09 AM

Thanks everyone for the great comments! I'm going to do an advanced block tut and prolly sword one next!
Posted Image

#53

PhantomsCore
  • Location: Black Mesa Desert
  • Minecraft: PhantomsCore
  • Xbox:PhantomsCore

Posted 16 July 2011 - 07:59 AM

For the: return mod_Namehere.Namehere.blockID;

Can it be something like: mod_SBBlock.SBBlock.blockID;

?


Also: How do you make it drop an item (slimeball), instead of getting the block back?



And finally: Does it matter how many lines are between the coding?


      



Thanks a ton for this tut!

:D
Posted Image

#54

StrongJoshua
  • Location: Minecraftia

Posted 16 July 2011 - 11:22 AM

View PostPhantomsCore, on 16 July 2011 - 07:59 AM, said:

For the: return mod_Namehere.Namehere.blockID;

Can it be something like: mod_SBBlock.SBBlock.blockID;

?


Also: How do you make it drop an item (slimeball), instead of getting the block back?



And finally: Does it matter how many lines are between the coding?
If that's what your block is called then yes.
To drop a slime ball you need to put this in your block file:
	public int idDropped(int i, Random random)
	{
		return Item.slimeBall.itemID;
	}

And no, it does not matter how many lines are between the code.
Posted Image
www.YouTube.com/StrongJoshua

#55

MPx9
    MPx9

    Coal Miner

  • Members
  • 115 posts
  • Minecraft: MPx9

Posted 16 July 2011 - 08:52 PM

View PostStrengthowns, on 14 July 2011 - 01:41 AM, said:

Welcome!

Welcome to my tutorial thread! My aim for this is to educate people on how to make many different things with modloader. I already have one unique tutorial that no-one else has done or even attempted! If you have any questions, problems or tutorial requests then feel free to post them as it will be definately looked at! Enjoy  :D

Current tutorials are:

  • Block
  • Item
  • Tree
  • Armor


Could you make a tutorial on how to make a door?




#56

PhantomsCore
  • Location: Black Mesa Desert
  • Minecraft: PhantomsCore
  • Xbox:PhantomsCore

Posted 16 July 2011 - 09:34 PM

Also I dont know what to name: ItemNamehere and mod_namehere
Posted Image

#57

Strengthowns
  • Minecraft: strengthowns

Posted 17 July 2011 - 02:34 AM

View PostPhantomsCore, on 16 July 2011 - 07:59 AM, said:

For the: return mod_Namehere.Namehere.blockID;

Can it be something like: mod_SBBlock.SBBlock.blockID;

?


Also: How do you make it drop an item (slimeball), instead of getting the block back?



And finally: Does it matter how many lines are between the coding?


      



Thanks a ton for this tut!

:D

To return a block that isn't yours, it would be: return Block.whatever
If it's an item it should be: Item.whatever

If yo u want it to return your own block you put ".blockID" on the end.
For your own item it's ".shiftedIndex" on the end.
Posted Image

#58

Strengthowns
  • Minecraft: strengthowns

Posted 17 July 2011 - 02:37 AM

View PostMPx9, on 16 July 2011 - 08:52 PM, said:

Could you make a tutorial on how to make a door?

Sure, maybe in a while once I figure it out!
Posted Image

#59

LimblessQuasar

Posted 17 July 2011 - 02:55 AM

Hey Strength,

Since you want to do something different, perhaps you could make something on a chest/furnace? I'm kind of past minecraft modding - there's just only so much you can do that's original, ya know? - but I've got 3 or 4 people waiting on me to explain the furnace code.  :rolleyes:

#60

MPx9
    MPx9

    Coal Miner

  • Members
  • 115 posts
  • Minecraft: MPx9

Posted 17 July 2011 - 03:16 AM

View PostStrengthowns, on 17 July 2011 - 02:37 AM, said:

Sure, maybe in a while once I figure it out!

LoL stupid door ): Thanks anyways.