feat: 添加简约灯方块
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
// priority: 100
|
||||
|
||||
console.info(`${global.LOG_PREFIX} 加载客户端内容`);
|
||||
const JSON_ASSETS = global.JSON_ASSETS;
|
||||
const LOG_PREFIX = global.LOG_PREFIX;
|
||||
|
||||
console.info(`${LOG_PREFIX} 加载客户端内容`);
|
||||
|
||||
// 生成客户端资源
|
||||
// event.add(new ResourceLocation(`<命名空间>:<资源相对路径>`), `JSON`);
|
||||
// event.add(new ResourceLocation(`minecraft:models/block/stone`), {});
|
||||
onEvent('client.generate_assets', (event) => {
|
||||
|
||||
console.info(`${LOG_PREFIX} 生成客户端资源 - 开始`);
|
||||
|
||||
JSON_ASSETS.forEach((item) => {
|
||||
event.add(new ResourceLocation(item.PATH), item.DATA);
|
||||
});
|
||||
|
||||
console.info(`${LOG_PREFIX} 生成客户端资源 - 完成`);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user