feat: 添加强化混凝土方块
@@ -1,6 +1,7 @@
|
||||
// priority: 0
|
||||
|
||||
const defaults = global.defaults;
|
||||
const COLORS = global.COLORS;
|
||||
const LOG_PREFIX = global.LOG_PREFIX;
|
||||
|
||||
/**
|
||||
@@ -259,6 +260,36 @@ onEvent('block.registry', (event) => {
|
||||
|
||||
});
|
||||
|
||||
// 注册方块 - 强化混凝土
|
||||
onEvent('block.registry', (event) => {
|
||||
|
||||
console.info(`${LOG_PREFIX} 注册方块 - 强化混凝土 - 开始`);
|
||||
|
||||
const keys = Object.keys(COLORS);
|
||||
|
||||
keys.forEach((key) => {
|
||||
|
||||
const color = COLORS[key];
|
||||
const id = `${MOD_ID}:reinforced_concrete_${color.CODE}`;
|
||||
const block = event.create(id, 'basic');
|
||||
const texture = `${PATH_TEXTURE}reinforced_concrete/${color.CODE}`;
|
||||
|
||||
setBlockProps(block, {
|
||||
boxType: 'full',
|
||||
displayName: `${color.LABEL_CN}强化混凝土`,
|
||||
});
|
||||
|
||||
block.modelJson = {
|
||||
parent: 'minecraft:block/cube_all',
|
||||
textures: { all: texture },
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
console.info(`${LOG_PREFIX} 注册方块 - 强化混凝土 - 完成`);
|
||||
|
||||
});
|
||||
|
||||
// 注册物品
|
||||
// onEvent('item.registry', (event) => {
|
||||
// console.info(`${LOG_PREFIX} 注册物品 - 开始`);
|
||||
|
||||
5
resourcepack/assets/minecraft/lang/en_us.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"block.minecraft.ancient_debris": "White Reinforced Concrete",
|
||||
"block.minecraft.raw_copper_block": "Gray Reinforced Concrete",
|
||||
"block.minecraft.raw_iron_block": "Light Gray Reinforced Concrete"
|
||||
}
|
||||
5
resourcepack/assets/minecraft/lang/zh_cn.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"block.minecraft.ancient_debris": "白色强化混凝土",
|
||||
"block.minecraft.raw_copper_block": "灰色强化混凝土",
|
||||
"block.minecraft.raw_iron_block": "淡灰色强化混凝土"
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
BIN
resourcepack/assets/minecraft/textures/block/raw_iron_block.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |