@occultus/api-root - v0.29.3
    Preparing search index...

    向实体添加自定义战利品

    const loot = new CustomEntityLoot("minecraft:zombie", "entity/custom_table");
    new CustomLootServer().addLoot(loot);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • typeId: string

        要添加自定义战利品的实体类型 ID

      • path: string

        战利品表的路径

      Returns CustomEntityLoot

    Properties

    path: string

    战利品表对应的路径

    typeId: string

    战利品对应的唯一标识符

    Methods

    • 生成指定的战利品表

      Parameters

      • dimension: Dimension
      • location: Vector3
      • path: string

      Returns void