Glowstone-Legacy icon indicating copy to clipboard operation
Glowstone-Legacy copied to clipboard

[WIP] Add some structures and their NBT storage

Open jimmikaelkael opened this issue 9 years ago • 10 comments

This PR will add some vanilla structures:

  • Witch Hut
  • Dungeons
  • Desert Well
  • Jungle Temple
  • Desert Temple

Related Links:

  • Ticket: #76

jimmikaelkael avatar Nov 22 '14 15:11 jimmikaelkael

As a note, I'm not a huge fan of the current system and have been reworking it at Turt2Live-Dev/Glowstone:io.

PRHOLD: #524 or similar

turt2live avatar Nov 22 '14 16:11 turt2live

This can be reworked too. I can't find your branch, would you mind to change it to a link please ?

jimmikaelkael avatar Nov 22 '14 16:11 jimmikaelkael

As mentioned in the comment, Turt2Live-Dev/Glowstone:io

turt2live avatar Nov 22 '14 16:11 turt2live

@turt2live As per requested, the content of #524 has been merged into this PR.

jimmikaelkael avatar Nov 27 '14 10:11 jimmikaelkael

~~@turt2live, @SpaceManiac: In my attempt to generate a structure chunk by chunk as it should be, I ran into a problem (sometimes structure is not fully generated). It seems I need to order the chunks to be populated (preserving ordering to be sent to player) so that population order is something predictable, ie from NW to SE direction. I tried to make some pictures to represent what I'm talking about.~~

~~Imagine you have a structure generated at chunk [4, -1] overlapping 4 chunks like represented below:~~ StructureGeneration

~~Now take the actual chunk ordering (sort chunks by distance from player), so closest chunks to the player will be sent first (which is perfectly expected) but that ordering is used to populate the chunks too:~~ StructureChunks

~~As you can see the problem is that structure chunks population order is not predictable, and that's a big problem to build something that is overlapping several chunks. I suggest If you agree that I reoder the chunks specifically for population.~~

EDIT: Nevermind I've found another solution.

jimmikaelkael avatar Nov 28 '14 10:11 jimmikaelkael

Seems I'm wrong with the above, at least with the fact it could solve the structure problem: with 2 or more players discovering chunks it can completely invalidate my chunk population scenario.

jimmikaelkael avatar Nov 28 '14 17:11 jimmikaelkael

@jimmikaelkael There has been no activity on this pull request for almost a month now. Is this still being worked on or is there some circumstance that has interfered? Please respond as soon as possible, thanks!

turt2live avatar Dec 28 '14 05:12 turt2live

@turt2live I've rebased on top of master and retested to be sure all still working. I think it's ready to be reviewed.

jimmikaelkael avatar Dec 28 '14 08:12 jimmikaelkael

I'm putting this back to WIP as I will need to check a few things regarding #607.

jimmikaelkael avatar Jan 11 '15 17:01 jimmikaelkael

@jimmikaelkael Just wanted to let you know that your pull request is no longer mergeable due to recent commits on the master branch. Considering this is a WIP pull request, it's not a huge issue, but it would be appreciated if the conflicts were resolved.

turt2live avatar Jan 15 '15 03:01 turt2live