Jump to content

[1.8] Village Building Problems


TrekkieCub314

Recommended Posts

I'm having a few problems when trying to create a custom building in a village.

 

1) I'm trying to make the structure out of Polished Andesite.  Unfortunately, some of the blocks are being replaced with ores, gravel, other stone types, etc.  I think the problem is the order in which certain items are created in the world, with ores being generated after villages and the ore generation replacing some stone blocks, regardless of block state.  Is there a workaround for this that doesn't involve modification of vanilla files?

 

2) Some of the blocks within the building are not rotating correctly with the building.  Some, like stairs and torches, are rotating correctly, but chests and trapdoors aren't.  Considering furnaces and chests in vanilla village buildings aren't consistently rotating either, this looks like a problem with vanilla Minecraft itself.  Has anyone found a workaround?

 

3) How do I change which blocks are being used to construct the building depending on the current biome?  I'm not sure how to find the current position in the world where the structure is being spawned.  If I knew how to do that, I could probably find the local biome with the World object.  I know vanilla villages, at some point, had a method where all of the various materials in a village would be replaced with their desert counterparts if the village was in a desert, but I forgot where that was located and don't know how to make it change my building.

 

If anyone can help with these issues I'd greatly appreciate it!

Link to comment
Share on other sites

  • 2 months later...

Im sure you solved this by now, sorry its so late responding found it looking for something else unrelated.

 

Anyway for number one, I have the same issue, I dont know yet what causes it

 

for number two there is more than one way to get metadata. Have a look in the block class for each block you are having trouble with, thats where I found my answers.

 

For number three the answer is in the village class of the structurevillagepieces class.

Link to comment
Share on other sites

#2 has to do with the fact that the block decides on its own metadata after being placed, ignoring the metadata passed to the setBlock method.  Just do world.setBlockMetadata(...) afterwards.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.