-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 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 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
-
Need help in something that is not in the wiki, or is not there yet? Got issues or crashes?
Or want to help expand the Wiki? We have a discord server! https://discord.gg/AkMAzaA