Published Nov 16th, 2011, 11/16/11 12:56 am
- 1,910 views, 0 today
- 2
- 3
- 3
30
Ok first, what you want to do is download mcp so go here: http://www.mediafire.com/?g09as6o73ls77c6
Put all the files in a new Folder, and if you see the jars folder, open that and go to minecraft and
force update. (options, Force update) Then when its done go to run and type in %appdata% or go to
c:/users/urname/appdata/.minecraft. COPY BIN, now paste it in the jars folder in your mcp folder.
now go back to where all the exe's are like decompile,recompile,rebofuscate,start client, and press decompile,
wait a while and if you get a error that says 2 out of 2 hunks error, blahblahblahblah
ITS ALRIGHT!! Its a normal error, ok now go to src folder where decompile,recompile,rebofuscate,start client are
and open it and go to minecraft,src,minecraft then there should be a WHOLE bunch of java files, create a new text
document and call it mod_Block.java, open it with editrocket or eclipse,
Eclipse download:
http://www.eclipse.org/downloads/
Or editrocket download:
http://www.editrocket.com/download.html
Once it is done open the mod_Block.java and it should be blank, copy this into it:
When your done with that, make a new file where all ur java files are and call it
BlockBlock.java and open it with eclipse/editrocket
Paste this into it:
Ok when your done with that, go use your image editing software and make a file 16 by 16 (pixels)
and then call it block.png Draw in it what you want your block to look like.
go to your mcp folder and go to jars,bin, and open your minecraft.jar with winrar or 7zip and
drag the block.png in there, go back to your mcp folder and use recompile, you should get no errors
and when its done press start client, then put 1 dirt in your inv crafting table or crafting table
and there you go! you have a named block, with your texture!!
Thank you for taking the time to learn, a job doing this can get you over 160,000$ a year! How
cool is that!!??!?!
Put all the files in a new Folder, and if you see the jars folder, open that and go to minecraft and
force update. (options, Force update) Then when its done go to run and type in %appdata% or go to
c:/users/urname/appdata/.minecraft. COPY BIN, now paste it in the jars folder in your mcp folder.
now go back to where all the exe's are like decompile,recompile,rebofuscate,start client, and press decompile,
wait a while and if you get a error that says 2 out of 2 hunks error, blahblahblahblah
ITS ALRIGHT!! Its a normal error, ok now go to src folder where decompile,recompile,rebofuscate,start client are
and open it and go to minecraft,src,minecraft then there should be a WHOLE bunch of java files, create a new text
document and call it mod_Block.java, open it with editrocket or eclipse,
Eclipse download:
http://www.eclipse.org/downloads/
Or editrocket download:
http://www.editrocket.com/download.html
Once it is done open the mod_Block.java and it should be blank, copy this into it:
[color=rgb(0,0,136)]package[/color] net[color=rgb(102,102,0)].[/color]minecraft[color=rgb(102,102,0)].[/color]src[color=rgb(102,102,0)];[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(0,0,136)]class[/color] mod_Block [color=rgb(0,0,136)]extends[/color] [color=rgb(102,0,102)]BaseMod[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(0,0,136)]static[/color] [color=rgb(102,0,102)]Block[/color] [color=rgb(102,0,102)]Block[/color] [color=rgb(102,102,0)]=[/color] [color=rgb(0,0,136)]new[/color] [color=rgb(102,0,102)]BlockBlock[/color][color=rgb(102,102,0)]([/color][color=rgb(0,102,102)]190[/color][color=rgb(102,102,0)],[/color] [color=rgb(0,102,102)]0[/color][color=rgb(102,102,0)]).[/color]setHardness[color=rgb(102,102,0)]([/color][color=rgb(0,102,102)]1.0F[/color][color=rgb(102,102,0)]).[/color]setResistance[color=rgb(102,102,0)]([/color][color=rgb(0,102,102)]5.0F[/color][color=rgb(102,102,0)]).[/color]setLightValue[color=rgb(102,102,0)]([/color][color=rgb(0,102,102)]0F[/color][color=rgb(102,102,0)]).[/color]setBlockName[color=rgb(102,102,0)]([/color][color=rgb(0,136,0)]"block"[/color][color=rgb(102,102,0)]);[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(102,0,102)]String[/color] [color=rgb(102,0,102)]Version[/color][color=rgb(102,102,0)]()[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]return[/color] [color=rgb(0,136,0)]"1.8.1"[/color][color=rgb(102,102,0)];[/color]
[color=rgb(102,102,0)]}[/color]
[color=rgb(0,0,136)]public[/color] mod_Block[color=rgb(102,102,0)]()[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(102,0,102)]ModLoader[/color][color=rgb(102,102,0)].[/color][color=rgb(102,0,102)]RegisterBlock[/color][color=rgb(102,102,0)]([/color][color=rgb(102,102,0)]);[/color]
[color=rgb(102,102,0)].[/color]blockIndexInTexture [color=rgb(102,102,0)]=[/color] [color=rgb(102,0,102)]ModLoader[/color][color=rgb(102,102,0)].[/color]addOverride[color=rgb(102,102,0)]([/color][color=rgb(0,136,0)]"/terrain.png"[/color][color=rgb(102,102,0)],[/color] [color=rgb(0,136,0)]"/block.png"[/color][color=rgb(102,102,0)]);[/color]
[color=rgb(102,0,102)]ModLoader[/color][color=rgb(102,102,0)].[/color][color=rgb(102,0,102)]AddName[/color][color=rgb(102,102,0)]([/color][color=rgb(102,0,102)]Block[/color][color=rgb(102,102,0)],[/color] [color=rgb(0,136,0)]"Change me in mod_Block"[/color][color=rgb(102,102,0)]);[/color]
[color=rgb(102,0,102)]ModLoader[/color][color=rgb(102,102,0)].[/color][color=rgb(102,0,102)]AddRecipe[/color][color=rgb(102,102,0)]([/color][color=rgb(0,0,136)]new[/color] [color=rgb(102,0,102)]ItemStack[/color][color=rgb(102,102,0)]([/color][color=rgb(102,0,102)]Block[/color][color=rgb(102,102,0)],[/color] [color=rgb(0,102,102)]1[/color][color=rgb(102,102,0)]),[/color] [color=rgb(0,0,136)]new[/color] [color=rgb(102,0,102)]Object[/color][color=rgb(102,102,0)][][/color] [color=rgb(102,102,0)]{[/color]
[color=rgb(0,136,0)]"#"[/color][color=rgb(102,102,0)],[/color] [color=rgb(102,0,102)]Character[/color][color=rgb(102,102,0)].[/color]valueOf[color=rgb(102,102,0)]([/color][color=rgb(0,136,0)]'#'[/color][color=rgb(102,102,0)]),[/color]
[color=rgb(102,102,0)]});[/color]
[color=rgb(102,102,0)]}[/color]
[color=rgb(102,102,0)]}[/color]
When your done with that, make a new file where all ur java files are and call it
BlockBlock.java and open it with eclipse/editrocket
Paste this into it:
[color=rgb(0,0,136)]package[/color] net[color=rgb(102,102,0)].[/color]minecraft[color=rgb(102,102,0)].[/color]src[color=rgb(102,102,0)];[/color]
[color=rgb(0,0,136)]import[/color] java[color=rgb(102,102,0)].[/color]util[color=rgb(102,102,0)].[/color][color=rgb(102,0,102)]Random[/color][color=rgb(102,102,0)];[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(0,0,136)]class[/color] [color=rgb(102,0,102)]BlockBlock[/color] [color=rgb(0,0,136)]extends[/color] [color=rgb(102,0,102)]Block[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(102,0,102)]BlockBlock[/color][color=rgb(102,102,0)]([/color][color=rgb(0,0,136)]int[/color] i[color=rgb(102,102,0)],[/color] [color=rgb(0,0,136)]int[/color] j[color=rgb(102,102,0)])[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]super[/color][color=rgb(102,102,0)]([/color]i[color=rgb(102,102,0)],[/color] j[color=rgb(102,102,0)],[/color] [color=rgb(102,0,102)]Material[/color][color=rgb(102,102,0)].[/color]ground[color=rgb(102,102,0)]);[/color]
[color=rgb(102,102,0)]}[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(0,0,136)]int[/color] idDropped[color=rgb(102,102,0)]([/color][color=rgb(0,0,136)]int[/color] i[color=rgb(102,102,0)],[/color] [color=rgb(102,0,102)]Random[/color] random[color=rgb(102,102,0)])[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]return[/color] mod_Block[color=rgb(102,102,0)].[/color][color=rgb(102,0,102)]Block[/color][color=rgb(102,102,0)].[/color]blockID[color=rgb(102,102,0)];[/color]
[color=rgb(102,102,0)]}[/color]
[color=rgb(0,0,136)]public[/color] [color=rgb(0,0,136)]int[/color] quantityDropped[color=rgb(102,102,0)]([/color][color=rgb(102,0,102)]Random[/color] random[color=rgb(102,102,0)])[/color]
[color=rgb(102,102,0)]{[/color]
[color=rgb(0,0,136)]return[/color] [color=rgb(0,102,102)]1[/color][color=rgb(102,102,0)];[/color]
[color=rgb(102,102,0)]}[/color]
[color=rgb(102,102,0)]}[/color]
Ok when your done with that, go use your image editing software and make a file 16 by 16 (pixels)
and then call it block.png Draw in it what you want your block to look like.
go to your mcp folder and go to jars,bin, and open your minecraft.jar with winrar or 7zip and
drag the block.png in there, go back to your mcp folder and use recompile, you should get no errors
and when its done press start client, then put 1 dirt in your inv crafting table or crafting table
and there you go! you have a named block, with your texture!!
Thank you for taking the time to learn, a job doing this can get you over 160,000$ a year! How
cool is that!!??!?!
Tags |
337451
6
Create an account or sign in to comment.