Jump to content

[1.7.10] [UNSOLVED] Structure Components not working


Bektor

Recommended Posts

Hello,

 

after a small explaination of how the Structure Component are working (by the creator of the gravestone mod) I created a small Structure Component, but its still not working. So can anyone tell me, whats wrong, that its not spawning?

 

Here is the code: https://bitbucket.org/MinecraftPlaye/test/overview

 

I'm using Forge 1.7.10-10.13.0.1208.

 

Bektor

Developer of Primeval Forest.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.