"...Another question, I have a block, how do I make it spawn only in swamp biomes as the top layer of water(not all water in the biome but like 75%)?"
Please read the Other World Generation tutorial. You will find there specific biome block generation. Making them spawn on top of water is like lilypad and lilypad extends BlockFlower and uses WorldGenFlowers. WorldGenFlowers handles how blocks spawn on the top layer of the world.
Make a new WorldGenMinable, copy it's code, and look for the part where it says Block.stone.blockID and replace that to Block.dirt.blockID. Then in your ore generation, instead of WorldGenMinable, put the name of your new WorldGenMinable.
Just take a look on ItemTNT.class and you'll know pretty quickly on what methods you can use to make an explosion and edit other things.
Edit: i mean BlockTNT not ItemTNT.
actually, the method to call for a explosion is in EntityTNTPrimed but it is, of course, still good for someone to look in BlockTNT to see how to spawn the entity.
actually, the method to call for a explosion is in EntityTNTPrimed but it is, of course, still good for someone to look in BlockTNT to see how to spawn the entity.
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 12/05/12 11:32 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2291, Intel
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ac3dd059 ----------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 12/05/12 11:32 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics Family version 3.0.0 - Build 8.15.10.2291, Intel
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ac3dd059 ----------
You have to post your code and tell us what your trying to do.
Alright, I really hate to do this, but I am completely stumped... Admittedly I am quite new to modding and programming, I have still tried to figure most things out for myself. This however continues to confuse and elude me.
EDIT: If this should be in a different forum please please let me know, I apologize! I presumed to put it here because of the fact that I was 'following' the OP tutorials for Biome Generation.
What I am trying to do:
Create a custom biome, with custom plants (and eventually custom creatures).
What I have accomplished thus far:
Custom block, custom recipe, custom cactus-like block. Able to actually make the custom block generate its own biome.
What I am unable to accomplish:
For whatever reason I am unable to get plants, or anything for that matter, to show up during world generation.
I have tried looking at the different classes that would SEEM to indicate parts of what I am trying to do, such as the WorldGen*** classes, and the other BiomeGen*** classes, but, grah! I feel incredibly stupid.
I have been thinking that I need to make my own WorldGen*** class or custom biome decorator, but not quite certain. In the OP it makes it seem as if the standard biome decorators should kind of 'just work' but none of them do, on my custom block that is.
Please let me know what kind of idiot I am. This 'mod' isn't really for others, it is more to teach myself programming.
Thank you kindly in advance!!
EDIT_2: I also realize that my classes don't indicate any sort of custom decorators, but my quandary for now is really just getting ANYTHING to generate...
Anyhow, here is my code thus far, not quite sure how much you guys need to see or not.
mod_Biome*** Class
package net.minecraft.src;
public class mod_BiomeBlueSand extends BaseMod
{
public static final BiomeGenBase blueSandBiome = (new BiomeGenBlueSandBiome(25)).setColor(0x6dd0ff).setBiomeName("Blue Sand Biome");
public void load()
{
ModLoader.addBiome(blueSandBiome);
}
public String getVersion()
{
return "1.2.5";
}
}
Thanks, I'll go with that but if anyone can do it without editing base files then please tell me how.
I still need help with this tho: "...Another question, I have a block, how do I make it spawn only in swamp biomes as the top layer of water(not all water in the biome but like 75%)?"
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
TechGuy said he will only help with those using his code. Apparently, that code is not from the tutorial. ut, you mod_ class should be lowercase, not Mod_ but mod_ and if that still don't work, then follow the tutorial here instead.
Quick question, how do you do a crafting recipe if you want it to use a tool with any durability, not just full? (ie, I'm making a repair mod, but I can only repair full durability tools XD)
What were the subsequent errors? The reason it may only be giving you one error with the d is because it is probably simply not compiling past that line.
I've got to go out for the rest of the day, but I really hope someone else can jump in here with some more advice. But I would definitely check out the linked page above, seems like it may pertain to your issue.
Hey, i just checked my PATH variable and i do java 1.7.0_03 or whatever. I tried it again just the PATH variable in "Getting Started" and it still doesn't work. Am i doing something wrong here? (Obviously i am or it would be working) Is it because i have MCP in a zip folder so it cant reach my path? I originally didn't have a PATH variable until a while back when i tried to set it up for the first time (didn't work) so i gave up. The tutorial i followed told me to make a PATH if i didn't already have one. That could be it though. Sorry for huge wall of text XD
Hey, i just checked my PATH variable and i do java 1.7.0_03 or whatever. I tried it again just the PATH variable in "Getting Started" and it still doesn't work. Am i doing something wrong here? (Obviously i am or it would be working) Is it because i have MCP in a zip folder so it cant reach my path? I originally didn't have a PATH variable until a while back when i tried to set it up for the first time (didn't work) so i gave up. The tutorial i followed told me to make a PATH if i didn't already have one. That could be it though. Sorry for huge wall of text XD
The page above didn't help much
I still get the error. Anyone else? It's urgent with that :S
Post all of your code.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Quick question, how do you do a crafting recipe if you want it to use a tool with any durability, not just full? (ie, I'm making a repair mod, but I can only repair full durability tools XD)
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Please read the Other World Generation tutorial. You will find there specific biome block generation. Making them spawn on top of water is like lilypad and lilypad extends BlockFlower and uses WorldGenFlowers. WorldGenFlowers handles how blocks spawn on the top layer of the world.
That would make sense, Thank you.
actually, the method to call for a explosion is in EntityTNTPrimed but it is, of course, still good for someone to look in BlockTNT to see how to spawn the entity.
Glad to help you.
Oh, yeah, forgot about that.
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 12/05/12 11:32 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2291, Intel
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ac3dd059 ----------
You have to post your code and tell us what your trying to do.
EDIT: If this should be in a different forum please please let me know, I apologize! I presumed to put it here because of the fact that I was 'following' the OP tutorials for Biome Generation.
What I am trying to do:
Create a custom biome, with custom plants (and eventually custom creatures).
What I have accomplished thus far:
Custom block, custom recipe, custom cactus-like block. Able to actually make the custom block generate its own biome.
What I am unable to accomplish:
For whatever reason I am unable to get plants, or anything for that matter, to show up during world generation.
I have tried looking at the different classes that would SEEM to indicate parts of what I am trying to do, such as the WorldGen*** classes, and the other BiomeGen*** classes, but, grah! I feel incredibly stupid.
I have been thinking that I need to make my own WorldGen*** class or custom biome decorator, but not quite certain. In the OP it makes it seem as if the standard biome decorators should kind of 'just work' but none of them do, on my custom block that is.
Please let me know what kind of idiot I am. This 'mod' isn't really for others, it is more to teach myself programming.
Thank you kindly in advance!!
EDIT_2: I also realize that my classes don't indicate any sort of custom decorators, but my quandary for now is really just getting ANYTHING to generate...
Anyhow, here is my code thus far, not quite sure how much you guys need to see or not.
mod_Biome*** Class
BiomeGen*** Class
http://www.minecraftforum.net/topic/1161528-custom-itemsblocks-not-showing-in-creative-menu/page__view__findpost__p__14242332
together they are powerful beyond imagination."
ok then
I might seem realllllyyy stupid, but does the 'd' at the end of the BiomeGenBase line have to be there?
http://www.roseindia.net/java/java-get-example/cannot-find-symbol.shtml
I've got to go out for the rest of the day, but I really hope someone else can jump in here with some more advice. But I would definitely check out the linked page above, seems like it may pertain to your issue.
Unzip MCP.
Not that I know of.
Texture may be missing. Code may help though.
Post all of your code.
together they are powerful beyond imagination."
I don't know if it will work or not but try:
You have to code it in manually as far as I am aware. I've been going to make a program to do it automatically but I am too busy at the moment.
together they are powerful beyond imagination."