A simple prop (an item that can be used) , can only be used once.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Parameters

    • typeId: string

      Identifier of the type of items for the stack. If a namespace is not specified, 'minecraft:' is assumed.

    • OptionaluseEvent: ((arg: ItemUseAfterEvent) => void)

      The event when an item is successfully used by a player.

        • (arg): void
        • Parameters

          • arg: ItemUseAfterEvent

          Returns void

    Returns Prop

Properties

typeId: string

Identifier of the type of items for the stack. If a namespace is not specified, 'minecraft:' is assumed.

useEvent?: ((arg: ItemUseAfterEvent) => void)

The event when an item is successfully used by a player.

Methods

  • Registry the prop.

    Returns void

    Use Register.propRegistry() to registry the prop