Use the lagless explosion mod, it should help, also, youtube it, you just broke a record.
Yay beat a record =P although those records are probably legit TNT, not modded/edited in... 240K is stable(ish), I generated around 8.3 million TNT before (128x128x256) but MC crashes due to a stack overflow. Probably has something to do with rendering so many blocks... now to try lagless explosion mod... =P
Use the lagless explosion mod, it should help, also, youtube it, you just broke a record.
Yay beat a record =P although those records are probably legit TNT, not modded/edited in... 240K is stable(ish), I generated around 8.3 million TNT before (128x128x256) but MC crashes due to a stack overflow. Probably has something to do with rendering so many blocks... now to try lagless explosion mod... =P
Installed the mod and it helps a little bit... but MC still crashes... I reduced the quantity down to 150K and it still crashes..
I will use a different computer tomorrow which has a better CPU and RAM and see if it can do it... if it can... YOUTUBE! lol
I would love for you to post the code, what ever you post i can break down an add my own stuff to it!!! thanks
Alright, it will come with no further explanations than what I have provided.
public void onBlockAdded(World world, int i, int j, int k)
{
if (!flag || (flag && world.getBlockId((int)x,(int)y,(int)z) != blockID))
{
x = i;
y = j;
z = k;
flag = true;
return;
}
int ilim = (int)(x < i ? i - x : x - i);
int jlim = (int)(y < j ? j - y : y - j);
int klim = (int)(z < k ? k - z : z - k);
for (int i1 = 0; i1 <= ilim; i1++)
{
for (int j1 = 0; j1 <= jlim; j1++)
{
for (int k1 = 0; k1 <= klim; k1++)
{
world.setBlockWithNotify(x < i ? i - i1 : i + i1, y < j ? j - j1 : j + j1, z < k ? k - k1 : k + k1, 1);
}
}
}
flag = false;
}
Ever seen 240,000TNT?
Now I need to optimise the TNT code so that I can detonate it without MC crashing... lol
I can't thank you enough, this is awesome!!! now all i have to do is change it to an item.
I would love for you to post the code, what ever you post i can break down an add my own stuff to it!!! thanks
Alright, it will come with no further explanations than what I have provided.
public void onBlockAdded(World world, int i, int j, int k)
{
if (!flag || (flag && world.getBlockId((int)x,(int)y,(int)z) != blockID))
{
x = i;
y = j;
z = k;
flag = true;
return;
}
int ilim = (int)(x < i ? i - x : x - i);
int jlim = (int)(y < j ? j - y : y - j);
int klim = (int)(z < k ? k - z : z - k);
for (int i1 = 0; i1 <= ilim; i1++)
{
for (int j1 = 0; j1 <= jlim; j1++)
{
for (int k1 = 0; k1 <= klim; k1++)
{
world.setBlockWithNotify(x < i ? i - i1 : i + i1, y < j ? j - j1 : j + j1, z < k ? k - k1 : k + k1, 1);
}
}
}
flag = false;
}
Ever seen 240,000TNT?
Now I need to optimise the TNT code so that I can detonate it without MC crashing... lol
I can't thank you enough, this is awesome!!! now all i have to do is change it to an item.
Well... a block is also an item, except that blocks have more functions that items.
Example for Windows users of what you have to add to the variable (entries are seperated by ; )
C:\Program Files\Java\jdk1.6.0_22\bin;C:\Program Files\Java\jre6\bin
Okay so... Ive read: that link but thats for something diffrent aperently all i know i need to do is: Goto control panel > system > advanced > enviroment variebles > and stuck here...
I just want to change the recipe for a hoe and make it to Iron Iron Iron
Stick
Stick
The iron I hope could be replaced with wood,stone,gold,or diamond
If this is too hard then sorry cuz im a noob who is still in grade school
Rollback Post to RevisionRollBack
One time I had a dream that... well... I ate ice cream... the end.
I just want to change the recipe for a hoe and make it to Iron Iron Iron
Stick
Stick
The iron I hope could be replaced with wood,stone,gold,or diamond
If this is too hard then sorry cuz im a noob who is still in grade school
Dont worry i'm in grade school to, this is easy. wihtout me looking at the code you would find the recipe, most likey in crafting manager.java, locate the recipe and change it to
addrecipe(new ItemStack(Item.hoe, 1), new Object[] {
"###", " X ", " X ", Character.valueOf('#'), Item.ingotIron, Character.vauleOf('X'), Item.stick
});
the only problem with that is it interferes with the pickaxe recipe
Well,since apparently nobody notices a thread,I'll just ask here.
How can you modify your block texture to a custom one?I think you just edit the line in block.java to have a different slot then the normal textures,then modify that slot,but where in the decompiled files can I find the terrain.png?And how do you count down the blocks,left to right,top to bottom or somehow else?
Well,since apparently nobody notices a thread,I'll just ask here.
How can you modify your block texture to a custom one?I think you just edit the line in block.java to have a different slot then the normal textures,then modify that slot,but where in the decompiled files can I find the terrain.png?And how do you count down the blocks,left to right,top to bottom or somehow else?
yes you can and its quite easy. locate your terrian.png and edit a square to the desired texture.
Example:
see the random black simly face that is my example texture and that is located at position 116 ,that is very important.
then create a new java file i called it BlockExample.java at but this code in it
package net.minecraft.src;
public class BlockExample extends Block
{
public BlockExample(int i, int j)
{
super(i, j, Material.wood);
}
}
this is just giveing two varibles to Block example so we can add it to the game the first varible i is what the item id will be and the second, j will be the texture
then open up block.java and add this line of code
public static final Block Example;
this adds the Block Varible Example to Block.java
then we add the import line of code that renders it in the game in Block.java
Example = (new BlockExample(94, 116)).setHardness(.6F).setResistance(10.0F).setStepSound(soundClothFootstep);
the first number in the parentheses of BlockExample is the item id which needs to be different from every icon, the second number, 116, is the location of the new texture in terrian.png
then if you want to add a recipe to create the block go to CraftingManager.java an add this line of code
Okay,thanks.Except I already knew how to make a block,but whatever.One question I have is how do you count down the blocks?I tried counting it from the top left corner to the top right corner,then go one layer down.But that doesn't seem to put your smiley at 116.Am I missing something?And which terrain.png do I have to modify?The one in my minecraft.jar or the one in my MCP folder?
public void func_16191_a(BlockFurnace blockfurnace, String s, int i, int j, int k)
{
blockfurnace.func_16901_a(s, i - blockfurnace.func_16898_a(s) / 2, j, k);
}
public void func_16190_b(BlockFurnace blockfurnace, String s, int i, int j, int k)
{
blockfurnace.func_16901_a(s, i, j, k);
}
public void func_16191_a(BlockFurnace blockfurnace, String s, int i, int j, int k)
{
blockfurnace.func_16901_a(s, i - blockfurnace.func_16898_a(s) / 2, j, k);
}
public void func_16190_b(BlockFurnace blockfurnace, String s, int i, int j, int k)
{
blockfurnace.func_16901_a(s, i, j, k);
}
Okay,thanks.Except I already knew how to make a block,but whatever.One question I have is how do you count down the blocks?I tried counting it from the top left corner to the top right corner,then go one layer down.But that doesn't seem to put your smiley at 116.Am I missing something?And which terrain.png do I have to modify?The one in my minecraft.jar or the one in my MCP folder?
i did not test the code on type it in the forum to tell you how it is done. i might have miss counted so try different numbers like 117 or 115. also i believe you change the terrian.png in the mcp folder, but if it doesn't work change the one in the minecraft.jar file. if this still doesn't work post your code and image and ill test it and see what's wrong.
also for those requesting video tutorials if I get bored I'll make one.
Why upgrade it?Just to play it?Or is that a way to convert a mod into Beta?
well if you dont you cant play online on beta servers and you dont get new updates for the game. for me i have alpha decompiled and running in eclipse and i have beta installed so i can play online
Yay beat a record =P although those records are probably legit TNT, not modded/edited in... 240K is stable(ish), I generated around 8.3 million TNT before (128x128x256) but MC crashes due to a stack overflow. Probably has something to do with rendering so many blocks... now to try lagless explosion mod... =P
Installed the mod and it helps a little bit... but MC still crashes... I reduced the quantity down to 150K and it still crashes..
I will use a different computer tomorrow which has a better CPU and RAM and see if it can do it... if it can... YOUTUBE! lol
I can't thank you enough, this is awesome!!! now all i have to do is change it to an item.
Well... a block is also an item, except that blocks have more functions that items.
Description where to find the variable:
http://www.java.com/en/download/help/path.xml
Example for Windows users of what you have to add to the variable (entries are seperated by ; )
C:\Program Files\Java\jdk1.6.0_22\bin;C:\Program Files\Java\jre6\bin
Okay so... Ive read: that link but thats for something diffrent aperently all i know i need to do is: Goto control panel > system > advanced > enviroment variebles > and stuck here...
Stick
Stick
The iron I hope could be replaced with wood,stone,gold,or diamond
If this is too hard then sorry cuz im a noob who is still in grade school
Dont worry i'm in grade school to, this is easy. wihtout me looking at the code you would find the recipe, most likey in crafting manager.java, locate the recipe and change it to
the only problem with that is it interferes with the pickaxe recipe
How can you modify your block texture to a custom one?I think you just edit the line in block.java to have a different slot then the normal textures,then modify that slot,but where in the decompiled files can I find the terrain.png?And how do you count down the blocks,left to right,top to bottom or somehow else?
yes you can and its quite easy. locate your terrian.png and edit a square to the desired texture.
Example:
see the random black simly face that is my example texture and that is located at position 116 ,that is very important.
then create a new java file i called it BlockExample.java at but this code in it
this is just giveing two varibles to Block example so we can add it to the game the first varible i is what the item id will be and the second, j will be the texture
then open up block.java and add this line of code
this adds the Block Varible Example to Block.java
then we add the import line of code that renders it in the game in Block.java
the first number in the parentheses of BlockExample is the item id which needs to be different from every icon, the second number, 116, is the location of the new texture in terrian.png
then if you want to add a recipe to create the block go to CraftingManager.java an add this line of code
now if you test this there should now be a block with you custom texture on all for sides.
There are no variable declarations for other blocks.
are you sure if thats block.java and if it is did you decompile the beta version of minecraft with mcp cause if you did it wont work
i did not test the code on type it in the forum to tell you how it is done. i might have miss counted so try different numbers like 117 or 115. also i believe you change the terrian.png in the mcp folder, but if it doesn't work change the one in the minecraft.jar file. if this still doesn't work post your code and image and ill test it and see what's wrong.
also for those requesting video tutorials if I get bored I'll make one.
to get non-beta you need to downgrade your minecraft then decompile it and then upgrade it back to beta. to downgrade it use Cyborg's Tools
Why upgrade it?Just to play it?Or is that a way to convert a mod into Beta?
well if you dont you cant play online on beta servers and you dont get new updates for the game. for me i have alpha decompiled and running in eclipse and i have beta installed so i can play online
How to fix those :ohmy.gif:
Where the ^ is nothing wrong?
I will consider it. It isn't very hard to do in all honesty.