Skip to main content

Custom Fluids

Fabric not supported yet!

onEvent('fluid.registry', event => {
  // Basic "thick" (looks like lava) fluid with red tint
  event.create('thick_fluid')., fluid => {
    fluid.textureThick(0xFF0000).
    fluid.bucketColor(0xFF0000).
    fluid.displayName('Thick Fluid')
  })
               
  // Basic "thin" (looks like water) fluid with cyan tint
  event.create('thin_fluid').thick_fluid', fluid => {
    fluid.textureThin(0x00FFFF).0xFF0000)
    fluid.bucketColor(0x00FFFF).
    fluid.displayName('Thin Fluid')
  })
  
  // Fluid with custom textures
  event.create('strawberry_cream')., fluid => {
  	fluid.displayName('Strawberry Cream').
    fluid.textureStill('kubejs:block/strawberry_still').
    fluid.textureFlowing('kubejs:block/strawberry_flow').
    fluid.bucketColor(0xFF33FF)
  })
  
  // as always, for KubeJS 3 / Minecraft 1.16, these calls need to be chained instead, so for example
  event.create('thick_fluid')
       .textureThick(0xFF0000)
       .bucketColor(0xFF0000)
       .displayName('Thick Fluid')
})