Super Mario Galaxy Object Database

Objects | Classes | Occurrences

Class: ItemBlock

A ? Block that spawns items when hit. SplashCoinBlock and TimerCoinBlock spawn Coins, SplashPieceBock and TimerPieceBlock spawn Star Bits, CoinBlock2D spawns a single Coin and ItemBlockSwitch does not spawn any items but it activates SW_DEAD. The "Splash" blocks drop the items immediately when hit. The "Timer" blocks award the player one item each time it's hit. However, these variants will automatically disappear after a timer runs out.

Arguments

NameTypeGamesRequired?DescriptionValuesExclusives?
Obj_arg0IntegerBothFalse

Number of Items: How many items will be spawned after hitting the block. Default is 8.

    • SplashCoinBlock
    • SplashPieceBlock
    Obj_arg1IntegerBothFalse

    Hit Timer: How long the player is able to hit the block consecutively. Default is 240.

      • TimerCoinBlock
      • TimerPieceBlock
      Obj_arg2IntegerBothFalse

      Shadow Calculation: Specifies how to calculate the shadow.

      • -1: Calculate shadow once
      • 1: Always calculate shadow
        Obj_arg4FloatBothFalse

        Shadow Length: Sets the shadow drop length.

            Switches

            NameGamesRequired?DescriptionExclusives?
            SW_DEADBothTrue

            Gets activated after hitting the block.

            • ItemBlockSwitch
            SW_AWAKEBothFalse

            The object will become visible and resume movement when this switch is activated.

              Properties

              NameGamesRequired?Description
              ClippingGroupBothFalse

              Objects in this group are always clipped together.