Skip to content

Part Inventory Function

Ferdinand Calo edited this page Aug 6, 2019 · 4 revisions
# Function Overview
Name: Inventory Function
Function: allows the part to store an Inventory
From FVTM: yes

The Inventory Function allows the part to hold an inventory,
which can store either Items or Fluids (and in the future maybe more).
It will be available then in the Vehicle.

Example config (taken from FVP):

{
    "__comment": "Part JSON file.",
    "Function":{
    	"id": "fvtm:inventory",
        "type": "ITEM",
        "capacity": 5
    }
}

Here an overview of the available fields:

  • id - the id of the function, it is fvtm:inventory
  • type - Inventory Type, can be ITEM or FLUID (see InventoryType)
  • capacity - max stacks capacity (ITEM) or mB capacity (FLUID)
  • fluid - optional, the default fluid if FLUID type (may be defunct)
  • seats - optional, either a single string or string array
    sets from which seats the inventory can be accessed
    (note: driver can access any none the less)
  • whitelist - optional whitelist to allow only specific items, pattern as follows:
    • { "id": "minecraft:stone", "meta": 2 }, the meta value is optional
  • blacklist - optional blacklist to disallow specific items, pattern as follows:
    • { "id": "minecraft:stone", "meta": 2 }, the meta value is optional
Clone this wiki locally