Posted June 11, 201312 yr Hello! I want to create seaweeds for my mod, but I don't know how to make it generate underwater :'(. Could you help me, please? Than you! If you need some other information, please tell me
June 11, 201312 yr Just put a check for the candidate block in your Generator or WorldGen for the candidate block: if world.getBlockId(x,y+1,z) == Block.waterStill.blockID: # do stuff BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 11, 201312 yr Author I'm sorry but, how can I use it? (I say it because it gives me these errors and I am confused) Multiple markers at this line - Syntax error on token "if", assert expected - y cannot be resolved to a variable - z cannot be resolved to a variable - x cannot be resolved to a variable I'm getting these errors in the "60." line My code (If you want to see it): http://pastebin.com/QbquX9MU
June 11, 201312 yr I'm sorry but, how can I use it? (I say it because it gives me these errors and I am confused) Multiple markers at this line - Syntax error on token "if", assert expected - y cannot be resolved to a variable - z cannot be resolved to a variable - x cannot be resolved to a variable I'm getting these errors in the "60." line My code (If you want to see it): http://pastebin.com/QbquX9MU Are you a Java coder or not? That was Python syntax, which I'm sorry for, but not enough to tell you that you need parentheses around a Java "if" condition. And you should be putting that condition around line 66, and, if you're not smart enough to know which variables use instead of "x","y", and "z", then I'm not going to tell you. (Hint: You defined them yourself.) Okay, rant over... I needed that. I'm sorry, I've been struggling with entities all day. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 11, 201312 yr Author Yes, I am a Java coder but not a veteran, so I can make many mistakes. It's okay, but as you can see, I'm relatively new and I need help to create new things. I learn when I write my code. Thank you for your help . Now I have this error. It occurs when I enter into a Ocean biome (Where I want to spawn the Seaweeds) Sorry if I misspelled something, my English isn't very good (currently )
June 12, 201312 yr Author Yes...I can see it, but I need it to spawn underwater, at the bottom of the ocean, like seaweeds. I think I have to decrease the Ycoord, isn't it? (But the ocean hasn't a regular bottom, so I'm trying to find out how.)
June 12, 201312 yr you can copy the WorldMinable (hope you ever heard of it, if you don't, search on google how to make ores in the nether, that should help a lot) and then you can just add them like you do in the overworld with you max Ycord (for example 30) http://i.imgur.com/sKDS7bj.png[/img] http://www.minecraftforum.net/topic/1877292-15x-forge-smp-nightmarecraft-alpha-10-it-started-with-a-dream-new/
June 12, 201312 yr Author Hello! I know how to make ores in the world, but I don't want it. I just want to spawn my Seaweeds IN the water. And...What has to do the Nether with the underwater generation?
June 12, 201312 yr You could make it so it use ore generation methods to spawn in ocean biomes, below laver 64 and above 50 (or something) that way it will spawn in oceans, and in the oceans, not below it Why bother?
June 12, 201312 yr (1) You need to put a check in there for whatever block you want to replace. (2) Make sure you have it as y+1 instead of y-1. (3) You'll probably want to change waterStill to waterMoving (or whatever moving water is.) Sorry about that. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 12, 201312 yr Author Hello ! I just make a new world generator (WorldGeneratorSeaWeed) that extends WorldGenerator. It checks what there are above and below of my block, so it can be placed in sand or dirt (for example). Thank you all for helping me and I'm sorry if I've been a bit lazy .
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.