Jump to content

[1.5] Structures not spawning.


GigaNova

Recommended Posts

Hello,

 

I've seen that .setblock was replaced (I have no idea why) so I had to replace edit my structures.

My normal blocks look like this:

world.func_94575_c(i + 0, j + 0, k + 0, Block.stoneBrick.blockID);

and my Metadata blocks:

world.setBlockAndMetadataWithNotify(i + 7, j + 8, k + 38, Block.stoneBrick.blockID, 1, 1);

 

In my mod_ file there is this piece:

for(int i = 0; i < 10; i++)
	{
	int randPosX = chunkX + random.nextInt(16);
	int randPosY = random.nextInt(60);
	int randPosZ = chunkZ + random.nextInt(16);
	(new GiygasTemple()).generate(world, random, randPosX, randPosY, randPosZ);		

Underneath "generatesurface"

 

But when creating a world, nothing happens. There is no structure, anywhere.

Has this changed or...?

 

Thanks in advance

 

EDIT: Seriously? Nobody knows how to fix it?

Link to comment
Share on other sites

I'm sorry if this doesn't help, but make sure that the methods you're overriding still have the same number of parameters as before the patch.

Thank you, but there is no func that is the same as .setblock anymore. Only .setblockandmetadatawithnotify. Its still not generating, but I get no errors about the code.

 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.