Jump to content

[1.7.10] [UNSOLVED] Structure Components not working


Recommended Posts

Posted
  On 9/18/2014 at 7:35 PM, diesieben07 said:

First of all I don't think you realize that the x and z coordinates you get in your IWorldGenerator are chunk coordinates. You'll have to multiply by 16 to get block coordinates. Then in your Temple class you never use the coordinates passed in. Instead you create a bounding box starting at 0,0,0.

This will not work, too and there is no class called temple, only a package. And in the explaination I got, there was explained that I need to create a bounding box and inside of this bounding box the blocks were placed, so everything outside of the bounding box will not be placed.

Developer of Primeval Forest.

Posted

Well, I want that the structure spawns completly random with a chance of 20% in Mesa biomes (well currently it spawns all over the world for testing if it will spawn...).

But why is it not spawning and how can I make it then, that its spawning completly random?

Developer of Primeval Forest.

Posted
  On 9/19/2014 at 2:36 PM, diesieben07 said:

Have you looked at the bottom of the map? As I said, your structure generates starting at y coordinate 0.

I copied now the worlds and looked with the tool MCEdit into them, but I'm not able to find something that looks like my structure. :(

Developer of Primeval Forest.

Posted

I looked at the code and as far as I can see diesieben is correct. You're temple (which is a hallway from the looks of things), will generate at the deepest depths of the overworld. You'd have to dig down to bedrock to see anything.

Posted
  On 9/20/2014 at 11:38 AM, sequituri said:

I looked at the code and as far as I can see diesieben is correct. You're temple (which is a hallway from the looks of things), will generate at the deepest depths of the overworld. You'd have to dig down to bedrock to see anything.

I looked there, in an radius of 30 blocks from my debug message with the coords, there is nothing! So I have no clue why its not working.

Developer of Primeval Forest.

Posted

Start putting debug log output in the different methods that are called and the ones they call, etc. (The most important place is where it eventually calls setBlock...). That would get you a decent trace through your logic.

 

Alternatively, run in debug mode, break point on your StructureGenerator, and single-step through the code.

Posted
  On 9/21/2014 at 4:01 AM, sequituri said:

Start putting debug log output in the different methods that are called and the ones they call, etc. (The most important place is where it eventually calls setBlock...). That would get you a decent trace through your logic.

 

Alternatively, run in debug mode, break point on your StructureGenerator, and single-step through the code.

Ok. I added now a few debug messages (one in the constructor of the structure and one under the method were the blocks are placed...). Well, all debug messages are called, at first the generating code from IWorldGenerator, then the Constructor or the Corridor and then the addComponentParts method from the Corridor where the blocks should be placed with the methods fillWithAir and fillWithBlocks... (both are methods from the class Structure Component that is by Mojang and this methods are used for the village components, too).

So the methods are called, but the blocks won't be placed. :(

Developer of Primeval Forest.

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.

Announcements



×
×
  • Create New...

Important Information

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