diff --git a/kubejs/startup_scripts/wheat_plus.js b/kubejs/startup_scripts/wheat_plus.js index 0d8047f..473ed66 100644 --- a/kubejs/startup_scripts/wheat_plus.js +++ b/kubejs/startup_scripts/wheat_plus.js @@ -471,6 +471,47 @@ onEvent('block.registry', (event) => { }); +// 注册方块 - 其它 +onEvent('block.registry', (event) => { + + console.info(`${LOG_PREFIX} 注册方块 - 其它 - 开始`); + + const blocks = [ + { + name: 'statue_player_alex', + box: [4, 0, 6, 12, 31, 10, true], + label: '模型(Alex)', + model: 'statue/player_alex', + }, + { + name: 'statue_player_steve', + box: [4, 0, 6, 12, 31, 10, true], + label: '模型(Steve)', + model: 'statue/player_steve', + }, + ]; + + blocks.forEach((config) => { + + const id = `${MOD_ID}:${config.name}`; + const block = event.create(id, 'basic'); + + setBlockProps(block, { + boxConfig: config.box, + boxType: 'custom', + displayName: config.label, + isSolid: false, + material: 'stone', + modelPath: `${P_BLOCK}/${config.model}`, + renderType: 'cutout', + }); + + }); + + console.info(`${LOG_PREFIX} 注册方块 - 其它 - 完成`); + +}); + // 注册物品 // onEvent('item.registry', (event) => { // console.info(`${LOG_PREFIX} 注册物品 - 开始`); diff --git a/resourcepack/assets/wheat_plus/models/block/statue/player.json b/resourcepack/assets/wheat_plus/models/block/statue/player.json new file mode 100644 index 0000000..9e5336d --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/statue/player.json @@ -0,0 +1,39 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "ambientocclusion": false, + "display": { + "thirdperson_righthand": { + "rotation": [70, 0, 0], + "scale": [0.4, 0.4, 0.4] + }, + "thirdperson_lefthand": { + "rotation": [70, 0, 0], + "scale": [0.4, 0.4, 0.4] + }, + "firstperson_righthand": { + "translation": [1, 0, 0], + "scale": [0.5, 0.5, 0.5] + }, + "firstperson_lefthand": { + "translation": [1, 0, 0], + "scale": [0.5, 0.5, 0.5] + }, + "ground": { + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [20, -145, 0], + "translation": [0, -3, 0], + "scale": [0.4, 0.4, 0.4] + }, + "head": { + "translation": [11, 0, 0], + "scale": [0.4, 0.4, 0.4] + }, + "fixed": { + "translation": [0, -4, -1], + "scale": [0.5, 0.5, 0.5] + } + } +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/statue/player_alex.json b/resourcepack/assets/wheat_plus/models/block/statue/player_alex.json new file mode 100644 index 0000000..01e0efc --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/statue/player_alex.json @@ -0,0 +1,175 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/statue/player", + "ambientocclusion": false, + "textures": { + "particle": "wheat_plus:block/statue/alex", + "texture": "wheat_plus:block/statue/alex" + }, + "elements": [ + { + "name": "head", + "from": [4, 23.5, 4], + "to": [12, 31.5, 12], + "faces": { + "north": {"uv": [2, 2, 4, 4], "texture": "#texture"}, + "east": {"uv": [0, 2, 2, 4], "texture": "#texture"}, + "south": {"uv": [6, 2, 8, 4], "texture": "#texture"}, + "west": {"uv": [4, 2, 6, 4], "texture": "#texture"}, + "up": {"uv": [4, 2, 2, 0], "texture": "#texture"}, + "down": {"uv": [6, 0, 4, 2], "texture": "#texture"} + } + }, + { + "name": "body", + "from": [4, 11.5, 6], + "to": [12, 23.5, 10], + "faces": { + "north": {"uv": [5, 5, 7, 8], "texture": "#texture"}, + "east": {"uv": [4, 5, 5, 8], "texture": "#texture"}, + "south": {"uv": [8, 5, 10, 8], "texture": "#texture"}, + "west": {"uv": [7, 5, 8, 8], "texture": "#texture"}, + "up": {"uv": [7, 5, 5, 4], "texture": "#texture"}, + "down": {"uv": [9, 4, 7, 5], "texture": "#texture"} + } + }, + { + "name": "right_arm", + "from": [12, 11.5, 6], + "to": [15, 23.5, 10], + "faces": { + "north": {"uv": [11, 5, 11.75, 8], "texture": "#texture"}, + "east": {"uv": [10, 5, 11, 8], "texture": "#texture"}, + "south": {"uv": [12.75, 5, 13.5, 8], "texture": "#texture"}, + "west": {"uv": [11.75, 5, 12.75, 8], "texture": "#texture"}, + "up": {"uv": [11.75, 5, 11, 4], "texture": "#texture"}, + "down": {"uv": [12.5, 4, 11.75, 5], "texture": "#texture"} + } + }, + { + "name": "left_arm", + "from": [1, 11.5, 6], + "to": [4, 23.5, 10], + "faces": { + "north": {"uv": [9, 13, 9.75, 16], "texture": "#texture"}, + "east": {"uv": [8, 13, 9, 16], "texture": "#texture"}, + "south": {"uv": [10.75, 13, 11.5, 16], "texture": "#texture"}, + "west": {"uv": [9.75, 13, 10.75, 16], "texture": "#texture"}, + "up": {"uv": [9.75, 13, 9, 12], "texture": "#texture"}, + "down": {"uv": [10.5, 12, 9.75, 13], "texture": "#texture"} + } + }, + { + "name": "right_leg", + "from": [4, -0.5, 6], + "to": [8, 11.5, 10], + "faces": { + "north": {"uv": [5, 13, 6, 16], "texture": "#texture"}, + "east": {"uv": [4, 13, 5, 16], "texture": "#texture"}, + "south": {"uv": [7, 13, 8, 16], "texture": "#texture"}, + "west": {"uv": [6, 13, 7, 16], "texture": "#texture"}, + "up": {"uv": [6, 13, 5, 12], "texture": "#texture"}, + "down": {"uv": [7, 12, 6, 13], "texture": "#texture"} + } + }, + { + "name": "left_leg", + "from": [8, -0.5, 6], + "to": [12, 11.5, 10], + "faces": { + "north": {"uv": [1, 5, 2, 8], "texture": "#texture"}, + "east": {"uv": [0, 5, 1, 8], "texture": "#texture"}, + "south": {"uv": [3, 5, 4, 8], "texture": "#texture"}, + "west": {"uv": [2, 5, 3, 8], "texture": "#texture"}, + "up": {"uv": [2, 5, 1, 4], "texture": "#texture"}, + "down": {"uv": [3, 4, 2, 5], "texture": "#texture"} + } + }, + { + "name": "head_2nd_layer", + "from": [3.5, 23, 3.5], + "to": [12.5, 32, 12.5], + "faces": { + "north": {"uv": [10, 2, 12, 4], "texture": "#texture"}, + "east": {"uv": [8, 2, 10, 4], "texture": "#texture"}, + "south": {"uv": [14, 2, 16, 4], "texture": "#texture"}, + "west": {"uv": [12, 2, 14, 4], "texture": "#texture"}, + "up": {"uv": [12, 2, 10, 0], "texture": "#texture"}, + "down": {"uv": [14, 0, 12, 2], "texture": "#texture"} + } + }, + { + "name": "body_2nd_layer", + "from": [4, 11.02, 5.49], + "to": [12, 24.03, 10.49], + "faces": { + "north": {"uv": [5, 9, 7, 12], "texture": "#texture"}, + "east": {"uv": [4, 9, 5, 12], "texture": "#texture"}, + "south": {"uv": [8, 9, 10, 12], "texture": "#texture"}, + "west": {"uv": [7, 9, 8, 12], "texture": "#texture"}, + "up": {"uv": [7, 9, 5, 8], "texture": "#texture"}, + "down": {"uv": [9, 8, 7, 9], "texture": "#texture"} + } + }, + { + "name": "right_arm_2nd_layer", + "from": [11.5, 11, 5.5], + "to": [15.5, 24, 10.5], + "faces": { + "north": {"uv": [10.75, 9, 11.5, 12], "texture": "#texture"}, + "east": {"uv": [10, 9, 11, 12], "texture": "#texture"}, + "south": {"uv": [12.75, 9, 13.5, 12], "texture": "#texture"}, + "west": {"uv": [11.75, 9, 12.75, 12], "texture": "#texture"}, + "up": {"uv": [11.75, 9, 11, 8], "texture": "#texture"}, + "down": {"uv": [12.5, 8, 11.75, 9], "texture": "#texture"} + } + }, + { + "name": "left_arm_2nd_layer", + "from": [0.5, 11, 5.5], + "to": [4.5, 24, 10.5], + "faces": { + "north": {"uv": [13, 13, 13.75, 16], "texture": "#texture"}, + "east": {"uv": [12, 13, 13, 16], "texture": "#texture"}, + "south": {"uv": [14.75, 13, 15.5, 16], "texture": "#texture"}, + "west": {"uv": [13.75, 13, 14.75, 16], "texture": "#texture"}, + "up": {"uv": [13.75, 13, 13, 12], "texture": "#texture"}, + "down": {"uv": [14.5, 12, 13.75, 13], "texture": "#texture"} + } + }, + { + "name": "right_leg_2nd_layer", + "from": [7.5, -1, 5.5], + "to": [12.5, 12, 10.5], + "faces": { + "north": {"uv": [1, 9, 2, 12], "texture": "#texture"}, + "east": {"uv": [0, 9, 1, 12], "texture": "#texture"}, + "south": {"uv": [3, 9, 4, 12], "texture": "#texture"}, + "west": {"uv": [0, 9, 1, 12], "texture": "#texture"}, + "up": {"uv": [2, 9, 1, 8], "texture": "#texture"}, + "down": {"uv": [3, 8, 2, 9], "texture": "#texture"} + } + }, + { + "name": "left_leg_2nd_layer", + "from": [3.5, -1, 5.5], + "to": [8.5, 12, 10.5], + "faces": { + "north": {"uv": [1, 13, 2, 16], "texture": "#texture"}, + "east": {"uv": [0, 13, 1, 16], "texture": "#texture"}, + "south": {"uv": [3, 13, 4, 16], "texture": "#texture"}, + "west": {"uv": [2, 13, 3, 16], "texture": "#texture"}, + "up": {"uv": [2, 13, 1, 12], "texture": "#texture"}, + "down": {"uv": [3, 12, 2, 13], "texture": "#texture"} + } + } + ], + "groups": [ + { + "name": "Alex", + "origin": [8, 8, 8], + "color": 0, + "children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/statue/player_steve.json b/resourcepack/assets/wheat_plus/models/block/statue/player_steve.json new file mode 100644 index 0000000..37d401f --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/statue/player_steve.json @@ -0,0 +1,175 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/statue/player", + "ambientocclusion": false, + "textures": { + "particle": "wheat_plus:block/statue/steve", + "texture": "wheat_plus:block/statue/steve" + }, + "elements": [ + { + "name": "head", + "from": [4, 23.5, 4], + "to": [12, 31.5, 12], + "faces": { + "north": {"uv": [2, 2, 4, 4], "texture": "#texture"}, + "east": {"uv": [0, 2, 2, 4], "texture": "#texture"}, + "south": {"uv": [6, 2, 8, 4], "texture": "#texture"}, + "west": {"uv": [4, 2, 6, 4], "texture": "#texture"}, + "up": {"uv": [4, 2, 2, 0], "texture": "#texture"}, + "down": {"uv": [6, 0, 4, 2], "texture": "#texture"} + } + }, + { + "name": "body", + "from": [4, 11.5, 6], + "to": [12, 23.5, 10], + "faces": { + "north": {"uv": [5, 5, 7, 8], "texture": "#texture"}, + "east": {"uv": [4, 5, 5, 8], "texture": "#texture"}, + "south": {"uv": [8, 5, 10, 8], "texture": "#texture"}, + "west": {"uv": [7, 5, 8, 8], "texture": "#texture"}, + "up": {"uv": [7, 5, 5, 4], "texture": "#texture"}, + "down": {"uv": [9, 4, 7, 5], "texture": "#texture"} + } + }, + { + "name": "right_arm", + "from": [12, 11.5, 6], + "to": [16, 23.5, 10], + "faces": { + "north": {"uv": [11, 5, 12, 8], "texture": "#texture"}, + "east": {"uv": [10, 5, 11, 8], "texture": "#texture"}, + "south": {"uv": [13, 5, 14, 8], "texture": "#texture"}, + "west": {"uv": [12, 5, 13, 8], "texture": "#texture"}, + "up": {"uv": [12, 5, 11, 4], "texture": "#texture"}, + "down": {"uv": [13, 4, 12, 5], "texture": "#texture"} + } + }, + { + "name": "left_arm", + "from": [0, 11.5, 6], + "to": [4, 23.5, 10], + "faces": { + "north": {"uv": [9, 13, 10, 16], "texture": "#texture"}, + "east": {"uv": [8, 13, 9, 16], "texture": "#texture"}, + "south": {"uv": [11, 13, 12, 16], "texture": "#texture"}, + "west": {"uv": [10, 13, 11, 16], "texture": "#texture"}, + "up": {"uv": [10, 13, 9, 12], "texture": "#texture"}, + "down": {"uv": [11, 12, 10, 13], "texture": "#texture"} + } + }, + { + "name": "right_leg", + "from": [8, -0.5, 6], + "to": [12, 11.5, 10], + "faces": { + "north": {"uv": [1, 5, 2, 8], "texture": "#texture"}, + "east": {"uv": [0, 5, 1, 8], "texture": "#texture"}, + "south": {"uv": [3, 5, 4, 8], "texture": "#texture"}, + "west": {"uv": [2, 5, 3, 8], "texture": "#texture"}, + "up": {"uv": [2, 5, 1, 4], "texture": "#texture"}, + "down": {"uv": [3, 4, 2, 5], "texture": "#texture"} + } + }, + { + "name": "left_leg", + "from": [4, -0.5, 6], + "to": [8, 11.5, 10], + "faces": { + "north": {"uv": [5, 13, 6, 16], "texture": "#texture"}, + "east": {"uv": [4, 13, 5, 16], "texture": "#texture"}, + "south": {"uv": [7, 13, 8, 16], "texture": "#texture"}, + "west": {"uv": [6, 13, 7, 16], "texture": "#texture"}, + "up": {"uv": [6, 13, 5, 12], "texture": "#texture"}, + "down": {"uv": [7, 12, 6, 13], "texture": "#texture"} + } + }, + { + "name": "head_2nd_layer", + "from": [3.5, 23, 3.5], + "to": [12.5, 32, 12.5], + "faces": { + "north": {"uv": [10, 2, 12, 4], "texture": "#texture"}, + "east": {"uv": [8, 2, 10, 4], "texture": "#texture"}, + "south": {"uv": [14, 2, 16, 4], "texture": "#texture"}, + "west": {"uv": [12, 2, 14, 4], "texture": "#texture"}, + "up": {"uv": [12, 2, 10, 0], "texture": "#texture"}, + "down": {"uv": [14, 0, 12, 2], "texture": "#texture"} + } + }, + { + "name": "body_2nd_layer", + "from": [4, 11.02, 5.5], + "to": [12, 24.03, 10.5], + "faces": { + "north": {"uv": [5, 9, 7, 12], "texture": "#texture"}, + "east": {"uv": [4, 9, 5, 12], "texture": "#texture"}, + "south": {"uv": [8, 9, 10, 12], "texture": "#texture"}, + "west": {"uv": [7, 9, 8, 12], "texture": "#texture"}, + "up": {"uv": [7, 9, 5, 8], "texture": "#texture"}, + "down": {"uv": [9, 8, 7, 9], "texture": "#texture"} + } + }, + { + "name": "right_arm_2nd_layer", + "from": [11.5, 11, 5.5], + "to": [16.49, 24, 10.5], + "faces": { + "north": {"uv": [11, 9, 12, 12], "texture": "#texture"}, + "east": {"uv": [10, 9, 11, 12], "texture": "#texture"}, + "south": {"uv": [13, 9, 14, 12], "texture": "#texture"}, + "west": {"uv": [12, 9, 13, 12], "texture": "#texture"}, + "up": {"uv": [12, 9, 11, 8], "texture": "#texture"}, + "down": {"uv": [13, 8, 12, 9], "texture": "#texture"} + } + }, + { + "name": "left_arm_2nd_layer", + "from": [-0.5, 11, 5.5], + "to": [4.5, 24, 10.5], + "faces": { + "north": {"uv": [13, 13, 14, 16], "texture": "#texture"}, + "east": {"uv": [12, 13, 13, 16], "texture": "#texture"}, + "south": {"uv": [15, 13, 16, 16], "texture": "#texture"}, + "west": {"uv": [14, 13, 15, 16], "texture": "#texture"}, + "up": {"uv": [14, 13, 13, 12], "texture": "#texture"}, + "down": {"uv": [15, 12, 14, 13], "texture": "#texture"} + } + }, + { + "name": "right_leg_2nd_layer", + "from": [7.5, -1, 5.5], + "to": [12.5, 12, 10.5], + "faces": { + "north": {"uv": [1, 9, 2, 12], "texture": "#texture"}, + "east": {"uv": [0, 9, 1, 12], "texture": "#texture"}, + "south": {"uv": [3, 9, 4, 12], "texture": "#texture"}, + "west": {"uv": [2, 9, 3, 12], "texture": "#texture"}, + "up": {"uv": [2, 9, 1, 8], "texture": "#texture"}, + "down": {"uv": [3, 8, 2, 9], "texture": "#texture"} + } + }, + { + "name": "left_leg_2nd_layer", + "from": [3.5, -1, 5.5], + "to": [8.5, 12, 10.5], + "faces": { + "north": {"uv": [1, 13, 2, 16], "texture": "#texture"}, + "east": {"uv": [0, 13, 1, 16], "texture": "#texture"}, + "south": {"uv": [3, 13, 4, 16], "texture": "#texture"}, + "west": {"uv": [2, 13, 3, 16], "texture": "#texture"}, + "up": {"uv": [2, 12, 1, 11], "texture": "#texture"}, + "down": {"uv": [3, 12, 2, 13], "texture": "#texture"} + } + } + ], + "groups": [ + { + "name": "Steve", + "origin": [8, 8, 8], + "color": 0, + "children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/textures/block/statue/alex.png b/resourcepack/assets/wheat_plus/textures/block/statue/alex.png new file mode 100644 index 0000000..b643fe2 Binary files /dev/null and b/resourcepack/assets/wheat_plus/textures/block/statue/alex.png differ diff --git a/resourcepack/assets/wheat_plus/textures/block/statue/steve.png b/resourcepack/assets/wheat_plus/textures/block/statue/steve.png new file mode 100644 index 0000000..4ca8436 Binary files /dev/null and b/resourcepack/assets/wheat_plus/textures/block/statue/steve.png differ