From e1bdb95a653bd6716b9394980139c30ca681513d Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 6 Apr 2025 16:35:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E6=A5=BC=E6=A2=AF?= =?UTF-8?q?=E9=93=81=E6=89=B6=E6=89=8B=E6=96=B9=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/startup_scripts/wheat_plus.js | 42 ++++++++++- .../building/building_stair_rail_c_half.json | 36 +++++++++ .../block/building/building_stair_rail_f.json | 75 +++++++++++++++++++ .../block/building/building_stair_rail_g.json | 23 ++++++ .../block/building/building_stair_rail_h.json | 23 ++++++ .../building/building_stair_rail_h_half.json | 23 ++++++ 6 files changed, 221 insertions(+), 1 deletion(-) create mode 100644 resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_c_half.json create mode 100644 resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_f.json create mode 100644 resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_g.json create mode 100644 resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h.json create mode 100644 resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h_half.json diff --git a/kubejs/startup_scripts/wheat_plus.js b/kubejs/startup_scripts/wheat_plus.js index 6c63b69..296c402 100644 --- a/kubejs/startup_scripts/wheat_plus.js +++ b/kubejs/startup_scripts/wheat_plus.js @@ -198,7 +198,7 @@ function regBlockBuildingAndFurniture(event) { }, { name: 'building_iron_pole_a', - box: [2, 0, 2, 14, 16, 14, true], + box: [6, 0, 6, 10, 16, 10, true], label: '铁杆', model: 'building/building_iron_pole_a', texture: '', @@ -380,6 +380,14 @@ function regBlockBuildingAndFurniture(event) { texture: '', orientable: true, }, + { + name: 'building_stair_rail_c_half', + box: [2, 0, 2, 14, 16, 14, true], + label: '楼梯铁扶手(半高)', + model: 'building/building_stair_rail_c_half', + texture: '', + orientable: true, + }, { name: 'building_stair_rail_d', box: [2, 0, 2, 14, 16, 14, true], @@ -396,6 +404,38 @@ function regBlockBuildingAndFurniture(event) { texture: '', orientable: true, }, + { + name: 'building_stair_rail_f', + box: [2, 0, 2, 14, 16, 14, true], + label: '楼梯铁扶手', + model: 'building/building_stair_rail_f', + texture: '', + orientable: true, + }, + { + name: 'building_stair_rail_g', + box: [6, 0, 6, 10, 16, 10, true], + label: '楼梯铁扶手(垂直杆子)', + model: 'building/building_stair_rail_g', + texture: '', + orientable: true, + }, + { + name: 'building_stair_rail_h', + box: [2, 0, 2, 14, 16, 14, true], + label: '楼梯铁扶手(水平杆子)', + model: 'building/building_stair_rail_h', + texture: '', + orientable: true, + }, + { + name: 'building_stair_rail_h_half', + box: [2, 0, 2, 14, 16, 14, true], + label: '楼梯铁扶手(水平杆子,半高)', + model: 'building/building_stair_rail_h_half', + texture: '', + orientable: true, + }, { name: 'building_wall_a', box: [0, 0, 0, 16, 16, 16, true], diff --git a/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_c_half.json b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_c_half.json new file mode 100644 index 0000000..f497e53 --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_c_half.json @@ -0,0 +1,36 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/base/normal_ao_off", + "textures": { + "0": "block/iron_block", + "particle": "block/iron_block" + }, + "elements": [ + { + "from": [7, 0, 7], + "to": [9, 8, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [7, 8, 9, 16], "texture": "#0"}, + "east": {"uv": [7, 8, 9, 16], "texture": "#0"}, + "south": {"uv": [7, 8, 9, 16], "texture": "#0"}, + "west": {"uv": [7, 8, 9, 16], "texture": "#0"}, + "up": {"uv": [7, 7, 9, 9], "texture": "#0"}, + "down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"} + } + }, + { + "from": [0, 6, 7], + "to": [7, 8, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [9, 8, 16, 10], "texture": "#0"}, + "east": {"uv": [7, 8, 9, 10], "texture": "#0"}, + "south": {"uv": [0, 8, 7, 10], "texture": "#0"}, + "west": {"uv": [7, 8, 9, 10], "texture": "#0", "cullface": "west"}, + "up": {"uv": [0, 7, 7, 9], "texture": "#0"}, + "down": {"uv": [0, 7, 7, 9], "texture": "#0"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_f.json b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_f.json new file mode 100644 index 0000000..1a46acb --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_f.json @@ -0,0 +1,75 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/base/normal_ao_off", + "textures": { + "0": "block/iron_block", + "particle": "block/iron_block" + }, + "elements": [ + { + "from": [3, 12, 7], + "to": [15, 14, 9], + "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [1, 2, 13, 4], "texture": "#0"}, + "east": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "south": {"uv": [3, 2, 15, 4], "texture": "#0"}, + "west": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "up": {"uv": [3, 7, 15, 9], "texture": "#0"}, + "down": {"uv": [3, 7, 15, 9], "texture": "#0"} + } + }, + { + "from": [14, 12, 7], + "to": [26, 14, 9], + "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [1, 2, 13, 4], "texture": "#0"}, + "east": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "south": {"uv": [3, 2, 15, 4], "texture": "#0"}, + "west": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "up": {"uv": [3, 7, 15, 9], "texture": "#0"}, + "down": {"uv": [3, 7, 15, 9], "texture": "#0"} + } + }, + { + "from": [-8, 12, 7], + "to": [4, 14, 9], + "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [1, 2, 13, 4], "texture": "#0"}, + "east": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "south": {"uv": [3, 2, 15, 4], "texture": "#0"}, + "west": {"uv": [7, 2, 9, 4], "texture": "#0"}, + "up": {"uv": [3, 7, 15, 9], "texture": "#0"}, + "down": {"uv": [3, 7, 15, 9], "texture": "#0"} + } + }, + { + "from": [7, 0, 7], + "to": [9, 15, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [7, 1, 9, 16], "texture": "#0"}, + "east": {"uv": [7, 1, 9, 16], "texture": "#0"}, + "south": {"uv": [7, 1, 9, 16], "texture": "#0"}, + "west": {"uv": [7, 1, 9, 16], "texture": "#0"}, + "up": {"uv": [7, 7, 9, 9], "texture": "#0"}, + "down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"} + } + }, + { + "from": [7, -8, 7], + "to": [9, 0, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, -8, 8]}, + "faces": { + "north": {"uv": [7, 0, 9, 8], "texture": "#0"}, + "east": {"uv": [7, 0, 9, 8], "texture": "#0"}, + "south": {"uv": [7, 0, 9, 8], "texture": "#0"}, + "west": {"uv": [7, 0, 9, 8], "texture": "#0"}, + "up": {"uv": [7, 7, 9, 9], "texture": "#0"}, + "down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_g.json b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_g.json new file mode 100644 index 0000000..55b3bae --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_g.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/base/normal_ao_off", + "textures": { + "0": "block/iron_block", + "particle": "block/iron_block" + }, + "elements": [ + { + "from": [7, 0, 7], + "to": [9, 16, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [7, 0, 9, 16], "texture": "#0"}, + "east": {"uv": [7, 0, 9, 16], "texture": "#0"}, + "south": {"uv": [7, 0, 9, 16], "texture": "#0"}, + "west": {"uv": [7, 0, 9, 16], "texture": "#0"}, + "up": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "up"}, + "down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h.json b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h.json new file mode 100644 index 0000000..493bc7e --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/base/normal_ao_off", + "textures": { + "0": "block/iron_block", + "particle": "block/iron_block" + }, + "elements": [ + { + "from": [0, 14, 7], + "to": [16, 16, 9], + "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 2], "texture": "#0"}, + "east": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "east"}, + "south": {"uv": [0, 0, 16, 2], "texture": "#0"}, + "west": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "west"}, + "up": {"uv": [0, 7, 16, 9], "texture": "#0", "cullface": "up"}, + "down": {"uv": [0, 7, 16, 9], "texture": "#0"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h_half.json b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h_half.json new file mode 100644 index 0000000..493bc7e --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/building/building_stair_rail_h_half.json @@ -0,0 +1,23 @@ +{ + "credit": "Created by Frost-ZX using Blockbench.", + "parent": "wheat_plus:block/base/normal_ao_off", + "textures": { + "0": "block/iron_block", + "particle": "block/iron_block" + }, + "elements": [ + { + "from": [0, 14, 7], + "to": [16, 16, 9], + "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 2], "texture": "#0"}, + "east": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "east"}, + "south": {"uv": [0, 0, 16, 2], "texture": "#0"}, + "west": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "west"}, + "up": {"uv": [0, 7, 16, 9], "texture": "#0", "cullface": "up"}, + "down": {"uv": [0, 7, 16, 9], "texture": "#0"} + } + } + ] +} \ No newline at end of file