Skip to content

Commit ae148fa

Browse files
Updating the info related to placeable fluid creation. (#4029)
1 parent efd9bef commit ae148fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/content/Modpacks/Materials-and-Elements/01-Material-Creation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ You can change the properties of the material by adding any combination of the f
141141

142142
=== "JavaScript"
143143
```js title="fluid.js"
144+
// const $FluidBuilder = Java.loadClass('com.gregtechceu.gtceu.api.fluids.FluidBuilder'); Uncomment if you want to use the Fluid Builder.
144145
GTCEuStartupEvents.registry('gtceu:material', event => {
145146
event.create('mysterious_ooze')
146147
.fluid() // Or .liquid(Int Temperature)
@@ -160,6 +161,10 @@ You can change the properties of the material by adding any combination of the f
160161
}
161162
```
162163

164+
!!! note
165+
- To create a placeable fluid, you need to call a new instance of the FluidBuilder class and call .block() inside of it. The syntax for this will be the same in java and kubejs but you will need to load the FluidBuilder class for kubejs.
166+
- For example: `.liquid(new $FluidBuilder().block().temperature(3100))`.
167+
163168

164169
!!! tip "Further Material Information"
165170
For more information on more fine grained material control, check out the pages below!

0 commit comments

Comments
 (0)