Inventory

rapodaca

New Member
Contributor
I've been working my way toward implementing a Minecraft-like inventory system in which items can be moved and redistributed. It's starting to take shape here:

https://github.com/MovingBlocks/Terasol ... ed-ca1d89e

I'm shooting for a system where after you hit 'i', you get a UI very much like the current one. But you'll be able to drag items around to different locations.

That's about as far as I want to go for now. As I'm working, I'm leaving behind unit tests. So far, I'm just handling the most obvious cases, but as the Inventory feature continues to get built.

One of the biggest changes is that Items no longer keep track of a 'count' property. Instead, the inventory assigns a count to each item delegating through a Cubbyhole (couldn't think of a better name), which maintains stacking/overflow logic.

We'll also need a way to drop items (Minecraft 'q' command), but that's a bit off for me.
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Great work! Today got busier than expected, so still haven't had a chance to check (trying to get to where I can check in myself before checking out the pending pull requests)

Really looking forward to looking at and playing with the inventory stuff - that's just what we need for the current phase :)
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Pulled a second copy of Terasology locally just so I could look at this and other stuff (like those chasey dropped blocks!) - yay working inventory with a closer relationship with the toolbar :)

I revived this older issue in the tracker as a potential enhancement by you?

https://github.com/MovingBlocks/Terasology/issues/84

And another related one that may already be mostly done!

https://github.com/MovingBlocks/Terasology/issues/85

Very much appreciate the contributions, please keep it up! Lots more inventory stuff to go, we should have world containers within too long...
 
Top