Adding Generator For Single Prefab Structures
#11
I created a child of the prefab class that accepts a new parameter in the constructor which is the loot table.

If the draw into chunk method is called it checks any block placed if it‘s a chest and fills it with the loot specified

I don’t like the way it checks for chests (simple going through every block) maybe if we include a vector of all chests position exported from the structure this could be skipped

Although this could be done within another PR

Oh yeah - I already noticed this and that you sometimes you can‘t achieve vanilla behaviour because it changed during the supported versions

And you spend some time looking for the code that actually does the stuff you look for
Reply
Thanks given by:


Messages In This Thread
RE: Adding Generator For Single Prefab Structures - by 12xx12 - 08-23-2020, 07:22 PM



Users browsing this thread: 1 Guest(s)