自定义方块战利品类,用于处理特定方块类型的战利品生成逻辑
const loot = new CustomBlockLoot("minecraft:grass_block", "block/custom_table");new CustomLootServer().addLoot(loot); Copy
const loot = new CustomBlockLoot("minecraft:grass_block", "block/custom_table");new CustomLootServer().addLoot(loot);
方块的唯一标识符
战利品表文件路径,如entity/zombie
entity/zombie
战利品表对应的路径
Readonly
战利品对应的唯一标识符
在指定位置生成战利品
方块所在的维度
生成战利品的坐标位置
战利品表路径,指定使用的战利品配置
自定义方块战利品类,用于处理特定方块类型的战利品生成逻辑
Example