This commit is contained in:
Evert Prants 2018-06-20 16:56:24 +03:00
parent 34fe189a3c
commit 03ff573adb
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 10 additions and 1153 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,11 +6,11 @@ This API adds support for `fluid_buffers` inside nodes. This means that nodes ca
2. Add the following to the node defintion:
```
fluid_buffers = {
buffer_name = {
capacity = 2000,
accepts = {"default:water_source", "group:water_source"}, -- you can also set this to true to accept any fluid!
drainable = true,
},
buffer_name = {
capacity = 2000,
accepts = {"default:water_source", "group:water_source"}, -- you can also set this to true to accept any fluid!
drainable = true,
},
}
```
3. Set the appropriate metadata.
@ -28,11 +28,11 @@ All numbers are in **milli-buckets** (1 bucket = 1000 mB).
* Returns all the information about this buffer.
```
{
fluid = fluid source block,
amount = amount of fluid,
accepts = list of accepted fluids,
capacity = capacity of the buffer,
drainable = is this buffer drainable,
fluid = fluid source block,
amount = amount of fluid,
accepts = list of accepted fluids,
capacity = capacity of the buffer,
drainable = is this buffer drainable,
}
```