SiliconGhetto Engine API
    Preparing search index...

    Function createFireAPI

    • Returns {
          ignite(x: number, y: number, z: number): void;
          extinguish(x: number, y: number, z: number): void;
          isOnFire(x: number, y: number, z: number): boolean;
      }

      • ignite: function
        • Place a fire block at the given position.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns void

      • extinguish: function
        • Extinguish a fire block at the given position (replaces with air).

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns void

      • isOnFire: function
        • Check whether there is a fire block at the given position.

          Parameters

          • x: number

            World X coordinate

          • y: number

            World Y coordinate

          • z: number

            World Z coordinate

          Returns boolean

          True if the block is fire