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

    自定义方块战利品类,用于处理特定方块类型的战利品生成逻辑

    const loot = new CustomBlockLoot("minecraft:grass_block", "block/custom_table");
    new CustomLootServer().addLoot(loot);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • typeId: string

        方块的唯一标识符

      • path: string

        战利品表文件路径,如entity/zombie

      Returns CustomBlockLoot

    Properties

    path: string

    战利品表对应的路径

    typeId: string

    战利品对应的唯一标识符

    Methods

    • 在指定位置生成战利品

      Parameters

      • dimension: Dimension

        方块所在的维度

      • location: Vector3

        生成战利品的坐标位置

      • path: string

        战利品表路径,指定使用的战利品配置

      Returns void