Containers

From TESS-GEN

TESS-GEN uses the concept of containers to store items like ingredients and food, instead of sending the ingredient as an object or storing it only in the server.

The containers have:

  • Models: they can be bags, boxes, crates, barrels, only to cite a few.
  • Types of materials they can store: containers don't accept all types of materials, instead, each model has a list of types they accept. For example, barrels can accept liquids, gas cylinders only gas, baskets can hold fruits, vegetables, meat, fish. (they follow the Real Life logic to be easier to know which model can stores what type of ingredients: baskets can't hold liquids)
  • Number of uses: each container has a limited number of uses until it break and need to be replaced.
  • Capacity: the container can hold only a certain amount of the material.

You can get containers in the following ways:

  • A free starter in the store
  • Crafting from materials in the right crafting stations and knowing the recipe
  • Earning sometimes from missions

Containers have a number of uses, and vanishes after all being used.

Containers are transferable, so, you can use them to send items to another players, but pay attention on how they work in the section below.

How containers works

Container need to be rezzed or weared to receive or send items, and they need to be very close to the unit that is requesting them.

They show on menu what they are holding and quantity, and if they are Open or Closed. The name of the object itself also changes depending on its contents and number of uses.

But what Open or Closed means?

  • Open: when open the containers will accept items to store, but they can't send the items to a crafting unit or another container. They are open when they are created, and become Open when all items are used, or player choose 'Clear' option in menu, Every time a container opens, it lost one use.
  • Closed: occurs automatically when the container is fully filled, or the player closes it manually. Also happens when you send an open container to another player. You can only use items in containers if the container is Closed.

Let's see an example: you rez an open basket near a plant to harvest. You harvest the plant and it try to send the item to the nearby container. If the container can hold the type of item the plant is sending, it will get the item, update it's name, and if the number of items is the same of the capacity of the container, it will close automatically. If not, it will stay open to receive more of the same item.

Now let's say you harvest corn, the container is full and now it is closed, and you really want to make those soft and delicious corn breads. Take the container and put it nearby the oven you will use to make the bread. When the oven is asking for the ingredients, just touch the container with the corn to send it to the oven. For more information about how to cook, consult the section [ok, need to create it]

When you use all the corn it contains, it will open again and loses one use.

This is important:

  • You can only open again a container by clearing it. This means you will lost all items and the container will lose one use. There is no way to open a container to add items.
  • You can only send items to an open container.
  • You can only use or transfer items from closed containers.
  • When sending a container to another player, it will close if open, and will lose all the uses. So, the player that receive the container cannot open it to use again.

Menu Options

For Open containers:

  • Close: close the container, allowing the use of its contents.
  • Clear: clear all the items. In this case the container will not lost uses, since it is open.

For Closed containers:

  • Send Item: send item to a crafting unit. The unit will determine how much is needed.
  • Transfer: will transfer the items to another container, quantity will depend on how much the other container can accept. This is useful if you want to send items from small containers to a bigger one.
  • Clear: will remove the items and set the container to Open again.

In any state, and will appear only to owner:

  • Access: set who can use the container.
  • Float Text: turns on or off the floating text with information about the barrel

Containers types

To know the requirements to create a container, check recipes.

The type of item if not the item itself, but the class to it belongs. For example, Corn belongs to class Grain.

Note: more types can be added over time.

Name Capacity Uses Type of item it accepts
Small basket 5 25 Meat, Fish, Food, Grain, Metal, vegetable, Wool, Fruit, Bait, Coal, Cattle Water, Flower/Leaves
Medium basket 25 50 Meat, Fish, Food, Grain, Metal, vegetable, Wool, Fruit, Bait, Coal, Cattle Water, Flower/Leaves
Big Basket 50 100 Meat, Fish, Food, Grain, Metal, vegetable, Wool, Fruit, Bait, Coal, Cattle Water, Flower/Leaves
Small Bottle 5 25 Cream, Water, Drink, Medicine
Small Jar 5 25 Cream, Water, Drink, Medicine
Small Wood Crate 5 25 Meat, Fish, Food, Metal, Vegetable, Wool, Fruit, Wood, Coal, Leaf/Flower
Wood Barrel 10 50 Water, Drink, Bait, Alcohol Drink, Liquid, Fertilizer
Steel Drum 50 100 Water, Drink, Alcohol Drink, Fertilizer, Ethanol
Gas Cylinder Small 25 25 Gas
Gas Cylinder Big 75 50 Gas