Jump to content

Recommended Posts

Posted

hey guys new to the forum, im having an issue with the structure generation in the new mod im creating, i can get everything to work perfectly (i have a house generating naturally at the spawn as planned it looks fine and is perfect in every way) BUT.... the bed and door just wont spawn properly im either getting half doors and beds or they just dont spawn and im getting the items floating on the ground instead

 

also to note if i place a block next to the half bed or the half doors and update the blocks the half blocks turn to items anyway as well

 

any ideas? i can post any relevant code if needed :) thanks in advance for any help guys and girls

Posted

spot on i think! didnt think about that :) i made the structure in mcedit (they dont set metas automatically for the door and bed blocks) i think i was trying to spawn two tail end of the bed and two bottom half of the door //face palm

Posted

With structures, i tend to build them in multiple passes.  First I do blocks with no metadata, then I do the blocks with metadata (and yes you need to get that right if you want your beds and doors and stuff right and facing right direction), then I do some special blocks ("decorations") that attach to other blocks (for example trip wires, because if you place them before the floor blocks beneath them they will end up as entity items instead of trip wire), then I place any items that I want inside any tile entities.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

hmmm update that advice fixed the bed but not the doors :/ theyre either invisible half doors or bottom half doors and invisible top half doors :/

 

jabelar do you have any advice for doors

Posted

For any block with metadata, I usually check the Minecraft wiki.

 

For doors in particular, metadata is as follows:

Top block = 8 + either 0 or 1 for hinge direction (so only values for top are 8 or 9)

Bottom block = 0 - west, 1 - north, 2 - east, 3 - south; +4 to flag the door as open (values for bottom range from 0 to 7)

 

Make sure that the block underneath the door is solid and placed before the door.

Posted

perfect :) thank you the doors work perfectly now and the bed spawns properly, my problems are solved haha ! sorry for the simple issue tis my first time trying to generate structures in forge

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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