sciguy1121 / Community-Mod-1

Community Mod 1
GNU Lesser General Public License v3.0
10 stars 16 forks source link

Added some random loot in science lab. #142

Closed Fermats-Fish closed 11 years ago

Fermats-Fish commented 11 years ago

Added some random loot in the chest in the science lab. At the moment the code is quite long but I will be simplifying it next update, as well as making more structures easier in the future. Also the items are currently only spawning in the top half of the chest at the moment due to a weird glitch when I try to add stuff in the other chest but hopefully that will be fixed next time I work on this too. That's all. Oh. Also noticed two imports that are not needed that got imported during testing. I don't have time to fix that yet unfortunately but next time I update the structures I will delete them. Seriously that's all now :)

Techtad commented 11 years ago

Well, it's not a glitch that you can only add items to the chest that is placed first. That's just how vanilla chests work, when you form a double chest the second one that you placed copies the tile entity from the first one so you don't lose the items.

ghost commented 11 years ago

I am cleaning up the code now. I have moved the item generation to a separate file, and I am working out a crash bug. For some reason when you generate the world, it crashes, but when you go and open it, it then generates the items in the chests, and doesn't crash. I know the crash has to do with generating the items, so I am trying to figure it out, I think I am just making a stupid mistake and not seeing it. Additionally I am going to make it so that they won't spawn on water, because that is bugging the crap out of me, and it is easy to do. Lastly, I am going to organize all of the structure generation into separate classes, so we aren't generating every structure in the same class, when we have more.

Fermats-Fish commented 11 years ago

Awesome! :)