SiliconGhetto Engine API
    Preparing search index...

    Function createBucketAPI

    • Returns {
          fillWater(x: number, y: number, z: number): boolean;
          fillLava(x: number, y: number, z: number): boolean;
          pourWater(x: number, y: number, z: number): void;
          pourLava(x: number, y: number, z: number): void;
      }

      • fillWater: function
        • Pick up a water source block into a water bucket item.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns boolean

          True if water was collected, false if no water at that position

      • fillLava: function
        • Pick up a lava source block into a lava bucket item.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns boolean

          True if lava was collected, false if no lava at that position

      • pourWater: function
        • Pour water from a bucket at the given position, placing a water source block.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns void

      • pourLava: function
        • Pour lava from a bucket at the given position, placing a lava source block.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns void