Hello, I am working on my world generation for my practice mod, i am having a lot of trouble with it though, would you mind helping me out a bit more? I would like to have a vein generate either on average every 4 or 8 chunks and i'd like the veins to be 2 - 4 long.
This may be alot to ask but once you know i would think it wouldn't be hard to repeat.
hi i just did your spikes tutorial and woot it worked :biggrin.gif: altho i just copyed the end code
:tongue.gif: now to try all the others :smile.gif:
hi i just did your spikes tutorial and woot it worked :biggrin.gif: altho i just copyed the end code
:tongue.gif: now to try all the others :smile.gif:
ok i just tryed to add the bounce to a block and i get a bunch of errors but there all pretty much the same i cant figure it out im new to moding im not sure if i even put the code in the right spot or not but heres the error
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\BlockTrampoline.java:19: class, interface, or en
um expected
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity e
ntity)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:22: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:23: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:24: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:25: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:26: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:27: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:28: class, interface, or en
um expected
if(world.getBlockMetadata(i, j, k) == 1)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:31: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:32: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:33: class, interface, or en
um expected
} else
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:37: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:38: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:39: class, interface, or en
um expected
}
^
ok i just tryed to add the bounce to a block and i get a bunch of errors but there all pretty much the same i cant figure it out im new to moding im not sure if i even put the code in the right spot or not but heres the error
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\BlockTrampoline.java:19: class, interface, or en
um expected
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity e
ntity)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:22: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:23: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:24: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:25: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:26: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:27: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:28: class, interface, or en
um expected
if(world.getBlockMetadata(i, j, k) == 1)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:31: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:32: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:33: class, interface, or en
um expected
} else
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:37: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:38: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:39: class, interface, or en
um expected
}
^
14 errors
==================
again, if you want me to help, you NEED to send me the code, if i cant see it, i dont know how to fix it.
please send code, then i will be able to help..
Rollback Post to RevisionRollBack
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
hi i just did your spikes tutorial and woot it worked :biggrin.gif: altho i just copyed the end code
:tongue.gif: now to try all the others :smile.gif:
thank you, im glad it worked :biggrin.gif:
Rollback Post to RevisionRollBack
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
Hello, I am working on my world generation for my practice mod, i am having a lot of trouble with it though, would you mind helping me out a bit more? I would like to have a vein generate either on average every 4 or 8 chunks and i'd like the veins to be 2 - 4 long.
This may be alot to ask but once you know i would think it wouldn't be hard to repeat.
sure, here is a code that you should find satisfactory :biggrin.gif:
for(int i1 = 0; i1 < 5; i1++)
{
int l1 = i + random.nextInt(16);
int k2 = random.nextInt(THE HIGHT YOU WANT IT TO SPAWN HERE);
int j3 = j + random.nextInt(16);
(new WorldGenMinable(YOUR BLOCK HERE.blockID, 6)).generate(world, random, l1, k2, j3);
}
there you go :biggrin.gif:
also, can anyone tell me how to multi quote? i dont know how to D:
Rollback Post to RevisionRollBack
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
again, if you want me to help, you NEED to send me the code, if i cant see it, i dont know how to fix it.
please send code, then i will be able to help..
ok i got rid of the error but the block does nothing doesn't stop falls or send me into air or anything just a plain old block :sad.gif: and i did the grenade tutorial and i got it to work :biggrin.gif: the things awsome but heres the block code idk if i did anything wrong or not
// 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 BlockTrampoline extends Block
{
protected BlockTrampoline(int i, int j)
{
super(i, j, Material.ground);
}
Thanks alot for the help with my world generation, to do a multiquote just click the multiquote button and it will turn green you can select multiple posts to quote then click the "add reply" button at the bottom of the thread.
ok i got rid of the error but the block does nothing doesn't stop falls or send me into air or anything just a plain old block :sad.gif: and i did the grenade tutorial and i got it to work :biggrin.gif: the things awsome but heres the block code idk if i did anything wrong or not
// 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 BlockTrampoline extends Block
{
protected BlockTrampoline(int i, int j)
{
super(i, j, Material.ground);
}
Thanks alot for the help with my world generation, to do a multiquote just click the multiquote button and it will turn green you can select multiple posts to quote then click the "add reply" button at the bottom of the thread.
sorry to be stupid but i dont get what you mean so can you some me or somthing???
did it work?????
" so can you some me or somthing??? "
huh?
what do you want me to do?
but, just change the name, its pretty simple... if you dont know how to change the name, you should probably take some java tutorials, search some up on google...
Rollback Post to RevisionRollBack
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
ahh, simple fix, you stated BlueGel And OrangeGel as a Block.
you must state it, if in your mod_CoolMod as the block name, so OrangeGel nothing else
if its in something else, you must do this: mod_CoolMod.OrangeGel.blockID
thats all :biggrin.gif:
also, sorry for the inconvenience of the unfinished codes, but i think strengthowns gave me permission to use them
am i right strengthowns??
also, with washed away with water, just add this:
hmm, not sure about this, but i dont have time to fix :/
i will be continuing my mod, and this tutorial, some time tomorrow maybe...
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
This may be alot to ask but once you know i would think it wouldn't be hard to repeat.
:tongue.gif: now to try all the others :smile.gif:
ok i just tryed to add the bounce to a block and i get a bunch of errors but there all pretty much the same i cant figure it out im new to moding im not sure if i even put the code in the right spot or not but heres the error
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\BlockTrampoline.java:19: class, interface, or en
um expected
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity e
ntity)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:22: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:23: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:24: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:25: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:26: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:27: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:28: class, interface, or en
um expected
if(world.getBlockMetadata(i, j, k) == 1)
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:31: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:32: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:33: class, interface, or en
um expected
} else
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:37: class, interface, or en
um expected
entity.motionY += 2.0;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:38: class, interface, or en
um expected
entity.fallDistance = 0.0F;
^
src\minecraft\net\minecraft\src\BlockTrampoline.java:39: class, interface, or en
um expected
}
^
14 errors
==================
this is simple to fix, just put a extra } on the end of your code, you get that because you are missing a curly bracket :tongue.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
again, if you want me to help, you NEED to send me the code, if i cant see it, i dont know how to fix it.
please send code, then i will be able to help..
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
thank you, im glad it worked :biggrin.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
sure, here is a code that you should find satisfactory :biggrin.gif:
there you go :biggrin.gif:
also, can anyone tell me how to multi quote? i dont know how to D:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
If you want me to respond to you, reply to me with the "Quote" button under my post.
and im not sure if i can make a video, i suck at making them :S
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
ok i got rid of the error but the block does nothing doesn't stop falls or send me into air or anything just a plain old block :sad.gif: and i did the grenade tutorial and i got it to work :biggrin.gif: the things awsome but heres the block code idk if i did anything wrong or not
// 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 BlockTrampoline extends Block
{
protected BlockTrampoline(int i, int j)
{
super(i, j, Material.ground);
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
entity.fallDistance = 0.0F;
if(world.getBlockMetadata(i, j, k) == 1)
{
entity.fallDistance = 0.0F;
entity.motionY += 0.0;
entity.fallDistance = 0.0F;
} else
if(entity.motionY < 0.0D)
{
entity.fallDistance = 0.0F;
entity.motionY += 2.0;
entity.fallDistance = 0.0F;
}
}
}
I've tried:
and
also
in the item code but it doesn't seem to work. How could i make it so lightning strikes on player when hye right clicks with item on hand?
You can also type the code in yourself
love the tuts keep it up :smile.gif:
and also can you figure out then generator error i have heres the error and code and keep up the tutorials WOOOOT GRENADES
[spoiler]
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\WorldGenT.java:26: cannot find symbol
symbol : variable Lavaore
location: class net.minecraft.src.mod_GenLavaore
world.setBlock(i + i1, j + l1, k + k1, mod_GenLavaore.Lavaore.blockID);
^
1 error
==================
now the code that has the error
package net.minecraft.src;
import java.util.Random;
public class WorldGenT extends WorldGenerator
{
public WorldGenT()
{
}
public boolean generate(World world, Random rand, int i, int j, int k)
{
if(world.getBlockId(i, j, k) != 0 || world.getBlockId(i, j + 1, k) != 0 || world.getBlockId(i + 1, j, k) != 0 || world.getBlockId(i + 1, j, k + 1) != 0 || world.getBlockId(i, j, k + 1) != 0 || world.getBlockId(i + 1, j + 1, k) != 0 || world.getBlockId(i + 1, j + 1, k + 1) != 0 || world.getBlockId(i, j + 1, k + 1) != 0)
{
return true;
}
for(int i1 = 0; i1 < 5; i1++)
{
for(int l1 = 0; l1 < 2; l1++)
{
for(int k1 = 0; k1 < 3; k1++)
{
if((i1 >= 1 && i1 <= 1) && (l1 >= 1 && l1 <= 1) && (k1 >= 1 && k1 <= 1))
{
continue;
}
world.setBlock(i + i1, j + l1, k + k1, mod_GenLavaore.Lavaore.blockID);
world.setBlock(i + 5, j + -1, k + 4, 17);
}
}
}
return true;
}
}
[/spolier]
P.S can anyone tell me how to spoiler since it didn't work?
1. you spelt spoiler wrong, you spelt spolier :s
2. you didn't change it, your meant to change lavastone to the block you want to generate :tongue.gif: there you go!
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
try using this instead:
hope that works for you :tongue.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
ahh, i suck at remembering, so you used my code right?
lol sorry, im pretty tired :tongue.gif:
thanks :biggrin.gif:
you need modloader and MCP you can get here http://mcp.ocean-labs.de/index.php/MCP_Releases
yay, i can multi quote now :biggrin.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
sorry to be stupid but i dont get what you mean so can you some me or somthing???
did it work?????
" so can you some me or somthing??? "
huh?
what do you want me to do?
but, just change the name, its pretty simple... if you dont know how to change the name, you should probably take some java tutorials, search some up on google...
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3