//Coded By Dragonethan
package net.minecraft.src;
import java.util.Random;
public class BlockSuperBlock extends Block
{
protected BlockSuperBlock(int i, int j, Material material) {
super (i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return SuperBlock.superblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Here you go. Also, I'm running minecraft 1.8.1. Also, I'm just thankful that you don't get annoyed with my need for help.
Rollback Post to RevisionRollBack
Religion is like a penis. I don't care how big it is, don't whip it out in public, and for god's sake don't start shoving it down my throat
//Coded By Dragonethan
package net.minecraft.src;
import java.util.Random;
public class BlockSuperBlock extends Block
{
protected BlockSuperBlock(int i, int j, Material material) {
super (i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return SuperBlock.superblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Here you go. Also, I'm running minecraft 1.8.1. Also, I'm just thankful that you don't get annoyed with my need for help.
Your problem is here
return SuperBlock.superblock.blockID;
Change
SuperBlock.superblock.blockID
to
mod_SuperBlock.superblock.blockID;
Don't worry about it :smile.gif:
I normally don't like people posting errors, but I'm making exceptions now because the Eclipse tutorial isn't working for some people. Once the Eclipse tutorial is working correctly, then I'll be cracking down on errors so I won't be doing obvious ones that Eclipse could figure out. This one is an exception for example because that error message was weird. :tongue.gif:
//Coded By Dragonethan
package net.minecraft.src;
import java.util.Random;
public class BlockSuperBlock extends Block
{
protected BlockSuperBlock(int i, int j, Material material) {
super (i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_SuperBlock.superblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
This is my current superblock.java..... and this is the error report! YAY! MORE STUFF I DID WRONG!
WHAT AM I DOING WRONG! ARRGH! (anger not directed at you)
Rollback Post to RevisionRollBack
Religion is like a penis. I don't care how big it is, don't whip it out in public, and for god's sake don't start shoving it down my throat
//Coded By Dragonethan
package net.minecraft.src;
import java.util.Random;
public class BlockSuperBlock extends Block
{
protected BlockSuperBlock(int i, int j, Material material) {
super (i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_SuperBlock.superblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
This is my current superblock.java..... and this is the error report! YAY! MORE STUFF I DID WRONG!
WHAT AM I DOING WRONG! ARRGH! (anger not directed at you)
Are these two files in the right spot? They should be in your MCP folder, then src, then minecraft, net, mincraft, then finally src. I've never had an error like that so I have no clue what's going wrong D:
Are these two files in the right spot? They should be in your MCP folder, then src, then minecraft, net, mincraft, then finally src. I've never had an error like that so I have no clue what's going wrong D:
Ya they're in src minecraft net minecraft src and i get the same report. u know what? Could you take a look at my MCP folder? I can put it on Mediafire
EDIT: I may have figured it out... I'll tell you if I have
EDIT: I figured it out.... that was not fun..... what can you tell me about this error?
class, interface or enum expected. It's supposedly in line 2 of the mod_SuperBlock
Rollback Post to RevisionRollBack
Religion is like a penis. I don't care how big it is, don't whip it out in public, and for god's sake don't start shoving it down my throat
I'm waiting with baited breath for your next tutorial Muserae! Will it be how to generate ore? Or how to make a new type of stair/slab/fence? Or how to add a smelting recipe? Or even how to add a new type of crafting table/furnace thing. So suspenseful!
This tutorial will show you how to make blocks look different, like half-steps.
You want to go to this in your BlockWhatever.java:
protected BlockWhatever(int i, int j, Material material) {
super(i, j, Material.rock);
}
and add
setBlockBounds(0F, 0F, 0F, 1F, 1F, 1F);
You can change each of the numbers to whatever you want. (0F, 0F, 0F, 1F, 1F, 1F) is a default block. Here are pictures with int changes, you have to do trail and error to get what you want.
0F, 0F, 0F, 1F, 1F, 1F
0.5F, 0F, 0F, 1F, 1F, 1F
0F, 0.5F, 0F, 1F, 1F, 1F
0F, 0F, 0.5F, 1F, 1F, 1F
0F, 0F, 0F, 0.5F, 1F, 1F
0F, 0F, 0F, 1F, 0.5F, 1F
0F, 0F, 0F, 1F, 1F, 0.5F
Again, you can change any number you want to manipulate it.
This tutorial will be turning .java's into .class so it can be downloaded and installed for people to use.
First, go into your MCP folder. Double click recompile.bat and make sure there aren't any errors. Once it's finished, close that and double click on reobfuscate.bat and wait for that to finish. Once that's finished, close it and then open the "reobf" folder. Here you will find any modified .class, added .class, and your textures folder. Select them all, right click, and select "Send to -> Compressed (zipped) Folder". Rename that to whatever you want, upload that to your favorite uploading site (I like mediafire the best) and that's it! People can now download your mod and add it to their minecraft.
public static final Block landmine = new BlockLandmine(174, 0, ####).setBlockName("Land Mine");
What goes where i put the "####"
Since it's a block with a different shape, it's a material. If you need some examples, look in Block.java and I think it'll give you some materials. I think if you put 'null' it will work, but it's been a long time so I'm abit rusty :tongue.gif:
Im pretty sure. Instead of .batch it uses .bash - And I cant even execute .bat files, but .sh. And they have the same Name and Content - so I think its right (And a Friend said me its .sh... Semi-Prof Linux User ;D).
And of course, I extractet it. but its still in the extractet Folder, which is in a new Folder. Confusing? Like this:
If you extract mcp50.rar, you get the folder mcp50.
My Folder Structure is like this:
/Desktop/MCP/mcp50/stuff ("translated" into Windows structure :biggrin.gif:) like runtime and so on. Is it correct?
Argh. Im so inpacient. I want start modding NOW. :tongue.gif:
PS: I checked it. In the Folder runtime, in the folder mcp50, there IS the decompile.py file.
Idk if it's Linux or you did something different, but when I extracted it did all the files contained in the mcp50, not a new folder called mcp50.
http://www.youtube.com/playlist?list=PL1AA45F7F3C7C425B
Post the mod_SuperBlock file. Make sure you surround the code with
Here you go.
Sorry, but can I also see BlockSuperBlock
I also noticed it says 1.6 in your error. You're not using Minecraft 1.6 are you?
Here you go. Also, I'm running minecraft 1.8.1. Also, I'm just thankful that you don't get annoyed with my need for help.
Your problem is here
Change to
Don't worry about it :smile.gif:
I normally don't like people posting errors, but I'm making exceptions now because the Eclipse tutorial isn't working for some people. Once the Eclipse tutorial is working correctly, then I'll be cracking down on errors so I won't be doing obvious ones that Eclipse could figure out. This one is an exception for example because that error message was weird. :tongue.gif:
This is my current superblock.java..... and this is the error report! YAY! MORE STUFF I DID WRONG!
WHAT AM I DOING WRONG! ARRGH! (anger not directed at you)
Are these two files in the right spot? They should be in your MCP folder, then src, then minecraft, net, mincraft, then finally src. I've never had an error like that so I have no clue what's going wrong D:
Ya they're in src minecraft net minecraft src and i get the same report. u know what? Could you take a look at my MCP folder? I can put it on Mediafire
EDIT: I may have figured it out... I'll tell you if I have
EDIT: I figured it out.... that was not fun..... what can you tell me about this error?
class, interface or enum expected. It's supposedly in line 2 of the mod_SuperBlock
This is very easy. Open your BlockWhatever.java and add the following code:
And at the very top with
You'll want to add:
so it's...
And that's all you do for making Half Steps. It doesn't work with placing two halfsteps on it, but that's not a huge deal.
You need to add
and
for each item and block.
This tutorial will show you how to make blocks look different, like half-steps.
You want to go to this in your BlockWhatever.java:
and add
You can change each of the numbers to whatever you want. (0F, 0F, 0F, 1F, 1F, 1F) is a default block. Here are pictures with int changes, you have to do trail and error to get what you want.
0F, 0F, 0F, 1F, 1F, 1F
0.5F, 0F, 0F, 1F, 1F, 1F
0F, 0.5F, 0F, 1F, 1F, 1F
0F, 0F, 0.5F, 1F, 1F, 1F
0F, 0F, 0F, 0.5F, 1F, 1F
0F, 0F, 0F, 1F, 0.5F, 1F
0F, 0F, 0F, 1F, 1F, 0.5F
Again, you can change any number you want to manipulate it.
This tutorial will be turning .java's into .class so it can be downloaded and installed for people to use.
First, go into your MCP folder. Double click recompile.bat and make sure there aren't any errors. Once it's finished, close that and double click on reobfuscate.bat and wait for that to finish. Once that's finished, close it and then open the "reobf" folder. Here you will find any modified .class, added .class, and your textures folder. Select them all, right click, and select "Send to -> Compressed (zipped) Folder". Rename that to whatever you want, upload that to your favorite uploading site (I like mediafire the best) and that's it! People can now download your mod and add it to their minecraft.
Since it's a block with a different shape, it's a material. If you need some examples, look in Block.java and I think it'll give you some materials. I think if you put 'null' it will work, but it's been a long time so I'm abit rusty :tongue.gif:
-Muserae
I don't know much about linux, are you sure it uses .sh?
Judging by the "no such file", did you put all the MCP files from the .rar into a new folder?
-Muserae
Idk if it's Linux or you did something different, but when I extracted it did all the files contained in the mcp50, not a new folder called mcp50.
-Muserae