When I realized I was the 3rd or 5th person to join these forums.
Very exciting moment for me for some reason. Not my most memorable but one of my favorites.
Hey guys. I was wondering if anyone was willing to help me with this mod I've been working on. What the mod is is basically 4 new blocks and 3 new items (At least, that's what I'm starting with.). The 4 new blocks are:
? Block: The default block you see in almost every Mario game. When hit, it'll give you a random item ranging from a leaf block to a diamond block. Can give ANY THING.
Brick block: A block made out of bricks. It'll look cleaner then the normal bricks so they look different. When hit it'll break and drop 2-5 bricks.
Coin block: Can look like a ? Block or a Brick block. The ? Block version only gives one coin while the Brick Block version gives 10.
Hard block: What the Coin block and the ? Block change into after being hit. Gives nothing if hit.
Items:
Jump shoe: Crafted by doing- = Nothing = Leather = Redstone
Useless by itself.
Jump shoes: The actual shoes. Crafted by putting two jump shoes in the crafting grid. When equipped, you don't take fall damage, can jump higher, and kill enemies by jumping on them.
Coin: A item given by Coin blocks. No use except to be smelted into gold ingots.
The blocks need to generate on the world using preset patterns once the level is created. I've done some work but it's not very big and it doesn't work well. All I have done is made the base of the ? Block. It currently has no name and does nothing. If anyone is willing to help me with I'd be vary appreciative. If you would like to see the coding I've done so far then just ask.
Alright. Does anyone know why my blocks name isn't popping up when I hover over it? I set it up and everything. I went into MCP>temp>bin>minecraft>lang
I was having a similar problem where when I put a new terrain file in MCP>temp>bin>minecraft that it didn't get put into the game. Anyone know why?
Ok so ive been through your tutorial and i made the block! yay
So after going through this i set out to make a block which i called the BlockCakeBB which is a block made out of 4 cakes.
I cant get it to work though. these are my codes.
They are my files in my MCP.
Also the texture and name isnt coming up, i cant seem to get the right second variable for the texture. this is my texture pack.
Obviously without the red arrow but i put that in to show you the texture i made for the block. Which number is it on?
Change
CakeBB = (new BlockCakeBB(100, 137)).setHardness(0.2F).setStepSound(soundClothFootstep).setBlockName("CakeBlock");
to
CakeBB = (new BlockCakeBB(100, 54)).setHardness(0.2F).setStepSound(soundClothFootstep).setBlockName("CakeBlock");
You set the texture number wrong. For the name problem I don't know.
I've been messing around with my mods turning them on and off and realized that this one and the Portal mod are conflicting causing a black screen. Anyone know if there's a way to fix it? Great mod though, can't wait for T-Rex's.
I forgot to update. I'll see if that works.
That did show me whats causing the errors. I just don't know how to fix it. Here's what it says for all 5 errors.
src\minecraft\net\minecraft\src\Block.java:866: cannot find symbol
symbol : variable i
location: class net.minecraft.src.Block
if(blocklist[i] != null && Item.itemlist[i] == null)
^
Does anyone have an idea? I've been looking into it all day and I still don't know what I did wrong.
You might want to remove the code from site as well. To your code, well, it looks correct (don't know what light opacity would be for a solid block) maybe it decompiled incorrectly. Use all the update batch files until your mcp is fully up to date and decompile again. Hope that fixes it!
I forgot to update. I'll see if that works.
That did show me whats causing the errors. I just don't know how to fix it. Here's what it says for all 5 errors.
src\minecraft\net\minecraft\src\Block.java:866: cannot find symbol
symbol : variable i
location: class net.minecraft.src.Block
if(blocklist[i] != null && Item.itemlist[i] == null)
^
Um... I would advise you to take those off immediately because what you're doing is illegal. What you can do is copy the parts you added and only what you added and leave the other out. You can also paste directly into the forum using [code ] [/code ] (without the spaces).
*EDIT - BlockSuperBlock you can leave up since it's your own code.
I'm an idiot. Could you edit them out of your post?
Anyway here.
[code]addRecipe(new ItemStack(Block.SuperBlock, 16), new Object[] {
"x", Character.valueOf('x'), Block.dirt
});[/code]
I put that in Crafting Manager
[code]// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class BlockSuperBlock extends Block
{
protected BlockSuperBlock(int i, int j)
{
super(i, j, Material.ground);
}
}[/code]
That's from BlockSuperBlock.
[code]SuperBlock = (new BlockSuperBlock(100, 54)).setHardness(0.5F).setLightValue(1.0F).setLightOpacity(3).setStepSound(soundGravelFootstep).setBlockName("SuperBlock");[/code]
And that's from Block.
0
Very exciting moment for me for some reason. Not my most memorable but one of my favorites.
0
Ah. The one day I don't look for one. Figures. Thanks though.
0
? Block: The default block you see in almost every Mario game. When hit, it'll give you a random item ranging from a leaf block to a diamond block. Can give ANY THING.
Brick block: A block made out of bricks. It'll look cleaner then the normal bricks so they look different. When hit it'll break and drop 2-5 bricks.
Coin block: Can look like a ? Block or a Brick block. The ? Block version only gives one coin while the Brick Block version gives 10.
Hard block: What the Coin block and the ? Block change into after being hit. Gives nothing if hit.
Items:
Jump shoe: Crafted by doing-
Useless by itself.
Jump shoes: The actual shoes. Crafted by putting two jump shoes in the crafting grid. When equipped, you don't take fall damage, can jump higher, and kill enemies by jumping on them.
Coin: A item given by Coin blocks. No use except to be smelted into gold ingots.
The blocks need to generate on the world using preset patterns once the level is created. I've done some work but it's not very big and it doesn't work well. All I have done is made the base of the ? Block. It currently has no name and does nothing. If anyone is willing to help me with I'd be vary appreciative. If you would like to see the coding I've done so far then just ask.
0
I was having a similar problem where when I put a new terrain file in MCP>temp>bin>minecraft that it didn't get put into the game. Anyone know why?
0
Well how is it broken? Is it invisible, purple, or a different one?
0
Change
to
You set the texture number wrong. For the name problem I don't know.
0
0
I just did that. Still isn't working.
0
0
I can't belive I missed such a simple part. Thanks for all the help dude! :laugh.gif:
0
Does anyone have an idea? I've been looking into it all day and I still don't know what I did wrong.
0
I forgot to update. I'll see if that works.
That did show me whats causing the errors. I just don't know how to fix it. Here's what it says for all 5 errors.
0
I'm an idiot. Could you edit them out of your post?
Anyway here.
[code]addRecipe(new ItemStack(Block.SuperBlock, 16), new Object[] { "x", Character.valueOf('x'), Block.dirt });[/code]
I put that in Crafting Manager
[code]// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode package net.minecraft.src; // Referenced classes of package net.minecraft.src: // Block, Material public class BlockSuperBlock extends Block { protected BlockSuperBlock(int i, int j) { super(i, j, Material.ground); } }[/code]
That's from BlockSuperBlock.
[code]SuperBlock = (new BlockSuperBlock(100, 54)).setHardness(0.5F).setLightValue(1.0F).setLightOpacity(3).setStepSound(soundGravelFootstep).setBlockName("SuperBlock");[/code]
And that's from Block.
0
Sure.
0
Yeah. It says it has 5 errors.