From ed30b76f5745e1a7a25cb9cd7062a12e216e1598 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Fri, 2 May 2025 18:52:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20demo=20=E6=96=B9?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/startup_scripts/wheat_plus.js | 36 +++++++++++++++++++ .../models/block/demo/demo_block_a.json | 23 ++++++++++++ .../models/block/demo/demo_block_b.json | 23 ++++++++++++ .../models/block/demo/demo_block_c.json | 23 ++++++++++++ .../models/block/demo/demo_block_d.json | 23 ++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 resourcepack/assets/wheat_plus/models/block/demo/demo_block_a.json create mode 100644 resourcepack/assets/wheat_plus/models/block/demo/demo_block_b.json create mode 100644 resourcepack/assets/wheat_plus/models/block/demo/demo_block_c.json create mode 100644 resourcepack/assets/wheat_plus/models/block/demo/demo_block_d.json diff --git a/kubejs/startup_scripts/wheat_plus.js b/kubejs/startup_scripts/wheat_plus.js index 5830911..c73a210 100644 --- a/kubejs/startup_scripts/wheat_plus.js +++ b/kubejs/startup_scripts/wheat_plus.js @@ -1362,6 +1362,42 @@ function regBlockCommon(event) { textureUpDown: 'common/tree_willow_wood_ud', type: '', }, + { + name: 'demo_block_a', + label: 'demo 方块', + blockstate: null, + box: [1, 1, 1, 15, 15, 15, true], + model: 'demo/demo_block_a', + texture: '', + type: 'cardinal', + }, + { + name: 'demo_block_b', + label: 'demo 方块', + blockstate: null, + box: [1, 1, 1, 15, 15, 15, true], + model: 'demo/demo_block_b', + texture: '', + type: 'cardinal', + }, + { + name: 'demo_block_c', + label: 'demo 方块', + blockstate: null, + box: [1, 1, 1, 15, 15, 15, true], + model: 'demo/demo_block_c', + texture: '', + type: 'cardinal', + }, + { + name: 'demo_block_d', + label: 'demo 方块', + blockstate: null, + box: [1, 1, 1, 15, 15, 15, true], + model: 'demo/demo_block_d', + texture: '', + type: 'cardinal', + }, ]; blockList.forEach((config) => { diff --git a/resourcepack/assets/wheat_plus/models/block/demo/demo_block_a.json b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_a.json new file mode 100644 index 0000000..1265cc3 --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_a.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "block/block", + "textures": { + "particle": "block/stone", + "texture": "block/stone" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 16, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#texture"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/demo/demo_block_b.json b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_b.json new file mode 100644 index 0000000..1265cc3 --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_b.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "block/block", + "textures": { + "particle": "block/stone", + "texture": "block/stone" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 16, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#texture"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/demo/demo_block_c.json b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_c.json new file mode 100644 index 0000000..1265cc3 --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_c.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "block/block", + "textures": { + "particle": "block/stone", + "texture": "block/stone" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 16, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#texture"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/demo/demo_block_d.json b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_d.json new file mode 100644 index 0000000..1265cc3 --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/demo/demo_block_d.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "block/block", + "textures": { + "particle": "block/stone", + "texture": "block/stone" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 16, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#texture"} + } + } + ] +} \ No newline at end of file