diff --git a/kubejs/startup_scripts/wheat_plus.js b/kubejs/startup_scripts/wheat_plus.js index 2e38679..74a7d47 100644 --- a/kubejs/startup_scripts/wheat_plus.js +++ b/kubejs/startup_scripts/wheat_plus.js @@ -583,6 +583,13 @@ onEvent('block.registry', function (event) { model: 'common/isolation_pile_a', orientable: false, }, + { + name: 'ticket_machine_a', + box: [6, 0, 6, 10, 16, 10, true], + label: '售票机', + model: 'common/ticket_machine_a', + orientable: true, + }, { name: 'statue_player_alex', box: [4, 0, 6, 12, 31, 10, true], diff --git a/resourcepack/assets/wheat_plus/models/block/common/ticket_machine_a.json b/resourcepack/assets/wheat_plus/models/block/common/ticket_machine_a.json new file mode 100644 index 0000000..95650ce --- /dev/null +++ b/resourcepack/assets/wheat_plus/models/block/common/ticket_machine_a.json @@ -0,0 +1,100 @@ +{ + "credit": "Created by HuJiao & Frost-ZX using Blockbench.", + "parent": "block/block", + "ambientocclusion": false, + "textures": { + "particle": "wheat_plus:block/common/ticket_machine_a", + "texture": "wheat_plus:block/common/ticket_machine_a" + }, + "elements": [ + { + "name": "Top", + "from": [3, 16, 12.5], + "to": [13, 29.4, 16], + "faces": { + "north": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "east": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "south": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "west": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "up": {"uv": [0, 6, 8, 7.8], "texture": "#texture"}, + "down": {"uv": [8, 0, 12, 4], "texture": "#texture"} + } + }, + { + "name": "Screen", + "from": [3, 19.5, 4], + "to": [13, 29.5, 7], + "rotation": {"angle": 22.5, "axis": "x", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#texture"}, + "east": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "south": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "west": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "up": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "down": {"uv": [8, 0, 12, 4], "texture": "#texture"} + } + }, + { + "name": "Middle", + "from": [3, 12.95, 13.3], + "to": [13, 18.95, 17.3], + "rotation": {"angle": -22.5, "axis": "x", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 6, 8, 7.8], "texture": "#texture"}, + "east": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "south": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "west": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "up": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "down": {"uv": [8, 0, 12, 4], "texture": "#texture"} + } + }, + { + "name": "Card Reader", + "from": [3, 16, 9.3], + "to": [13, 16.1, 13.3], + "rotation": {"angle": -22.5, "axis": "x", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 8, 16, 8.2], "rotation": 180, "texture": "#texture"}, + "east": {"uv": [0, 8, 0.2, 14.2], "rotation": 180, "texture": "#texture"}, + "south": {"uv": [0, 8, 16, 8.2], "rotation": 180, "texture": "#texture"}, + "west": {"uv": [0, 8, 0.2, 14.2], "rotation": 180, "texture": "#texture"}, + "up": {"uv": [0, 8, 16, 14.2], "rotation": 180, "texture": "#texture"} + } + }, + { + "name": "Middle", + "from": [3, 12, 9.2], + "to": [13, 16, 17.2], + "rotation": {"angle": -22.5, "axis": "x", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "east": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "south": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "west": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "up": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "down": {"uv": [8, 0, 12, 4], "texture": "#texture"} + } + }, + { + "name": "Ticket", + "from": [3.5, 12, 5.95], + "to": [12.5, 14.5, 6.05], + "faces": { + "north": {"uv": [8, 6.1, 15, 8], "texture": "#texture"} + } + }, + { + "name": "Bottom", + "from": [3, 0, 6], + "to": [13, 16, 16], + "faces": { + "north": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "east": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "south": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "west": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "up": {"uv": [8, 0, 12, 4], "texture": "#texture"}, + "down": {"uv": [8, 0, 12, 4], "texture": "#texture"} + } + } + ] +} \ No newline at end of file diff --git a/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a.png b/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a.png new file mode 100644 index 0000000..abe733a Binary files /dev/null and b/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a.png differ diff --git a/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a_l.png b/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a_l.png new file mode 100644 index 0000000..8558adc Binary files /dev/null and b/resourcepack/assets/wheat_plus/textures/block/common/ticket_machine_a_l.png differ