Part Inventory Function - Fexcraft/FVTM GitHub Wiki
# 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 isfvtm:inventory
type
- Inventory Type, can beITEM
orFLUID
(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 inventory in the vehicle)
"external" is a special value to make it accessible from outside
"external-locked" is also from outside, but even when the vehicle is lockedwhitelist
- 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