SiliconGhetto Engine API
    Preparing search index...

    Function setBlock

    • Place or remove a block at a world position.

      Parameters

      • x: number

        Block X coordinate

      • y: number

        Block Y coordinate

      • z: number

        Block Z coordinate

      • type: number

        Block type ID (use sg.BLOCKS constants, 0 = air)

      Returns number

      The previous block type at that position