From e22c0f5e7d0f1d328a4e1f8a57df33eac3f78d35 Mon Sep 17 00:00:00 2001 From: XeKr <987820727@qq.com> Date: Wed, 4 Dec 2024 11:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E5=9D=97=E5=AF=B9?= =?UTF-8?q?=E6=AF=94=E5=99=A8=E7=9A=84=E8=B5=84=E6=BA=90=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blockstates/block_comparator.json | 64 ++++++++++++++++++ .../models/block/block_comparator.json | 44 ++++++++++++ .../models/block/block_comparator_on.json | 9 +++ .../block/block_comparator_precise.json | 9 +++ .../block/block_comparator_precise_on.json | 9 +++ .../textures/block/block_comparator.png | Bin 0 -> 286 bytes .../textures/block/block_comparator_body.png | Bin 0 -> 228 bytes .../textures/block/block_comparator_eyes.png | Bin 0 -> 237 bytes .../block/block_comparator_eyes_precise.png | Bin 0 -> 257 bytes .../textures/block/block_comparator_on.png | Bin 0 -> 322 bytes 10 files changed, 135 insertions(+) create mode 100644 src/main/resources/assets/anvilcraft/blockstates/block_comparator.json create mode 100644 src/main/resources/assets/anvilcraft/models/block/block_comparator.json create mode 100644 src/main/resources/assets/anvilcraft/models/block/block_comparator_on.json create mode 100644 src/main/resources/assets/anvilcraft/models/block/block_comparator_precise.json create mode 100644 src/main/resources/assets/anvilcraft/models/block/block_comparator_precise_on.json create mode 100644 src/main/resources/assets/anvilcraft/textures/block/block_comparator.png create mode 100644 src/main/resources/assets/anvilcraft/textures/block/block_comparator_body.png create mode 100644 src/main/resources/assets/anvilcraft/textures/block/block_comparator_eyes.png create mode 100644 src/main/resources/assets/anvilcraft/textures/block/block_comparator_eyes_precise.png create mode 100644 src/main/resources/assets/anvilcraft/textures/block/block_comparator_on.png diff --git a/src/main/resources/assets/anvilcraft/blockstates/block_comparator.json b/src/main/resources/assets/anvilcraft/blockstates/block_comparator.json new file mode 100644 index 000000000..643c41ba1 --- /dev/null +++ b/src/main/resources/assets/anvilcraft/blockstates/block_comparator.json @@ -0,0 +1,64 @@ +{ + "variants": { + "facing=east,precise=false,powered=false": { + "model": "anvilcraft:block/block_comparator", + "y": 90 + }, + "facing=north,precise=false,powered=false": { + "model": "anvilcraft:block/block_comparator" + }, + "facing=south,precise=false,powered=false": { + "model": "anvilcraft:block/block_comparator", + "y": 180 + }, + "facing=west,precise=false,powered=false": { + "model": "anvilcraft:block/block_comparator", + "y": 270 + }, + "facing=east,precise=true,powered=false": { + "model": "anvilcraft:block/block_comparator_precise", + "y": 90 + }, + "facing=north,precise=true,powered=false": { + "model": "anvilcraft:block/block_comparator_precise" + }, + "facing=south,precise=true,powered=false": { + "model": "anvilcraft:block/block_comparator_precise", + "y": 180 + }, + "facing=west,precise=true,powered=false": { + "model": "anvilcraft:block/block_comparator_precise", + "y": 270 + }, + "facing=east,precise=false,powered=true": { + "model": "anvilcraft:block/block_comparator_on", + "y": 90 + }, + "facing=north,precise=false,powered=true": { + "model": "anvilcraft:block/block_comparator_on" + }, + "facing=south,precise=false,powered=true": { + "model": "anvilcraft:block/block_comparator_on", + "y": 180 + }, + "facing=west,precise=false,powered=true": { + "model": "anvilcraft:block/block_comparator_on", + "y": 270 + }, + "facing=east,precise=true,powered=true": { + "model": "anvilcraft:block/block_comparator_precise_on", + "y": 90 + }, + "facing=north,precise=true,powered=true": { + "model": "anvilcraft:block/block_comparator_precise_on" + }, + "facing=south,precise=true,powered=true": { + "model": "anvilcraft:block/block_comparator_precise_on", + "y": 180 + }, + "facing=west,precise=true,powered=true": { + "model": "anvilcraft:block/block_comparator_precise_on", + "y": 270 + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/anvilcraft/models/block/block_comparator.json b/src/main/resources/assets/anvilcraft/models/block/block_comparator.json new file mode 100644 index 000000000..e5b717b26 --- /dev/null +++ b/src/main/resources/assets/anvilcraft/models/block/block_comparator.json @@ -0,0 +1,44 @@ +{ + "credit": "Made by XeKr with Blockbench", + "parent": "minecraft:block/cube", + "textures": { + "particle": "anvilcraft:block/block_comparator", + "switch": "anvilcraft:block/block_comparator", + "body": "anvilcraft:block/block_comparator_body", + "eyes": "anvilcraft:block/block_comparator_eyes" + }, + "elements": [ + { + "from": [4, 0, 3], + "to": [12, 8, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#switch"}, + "east": {"uv": [16, 8, 3, 16], "texture": "#switch"}, + "south": {"uv": [8, 0, 16, 8], "texture": "#switch", "cullface": "south"}, + "west": {"uv": [3, 8, 16, 16], "texture": "#switch"}, + "up": {"uv": [0, 3, 8, 16], "texture": "#body"}, + "down": {"uv": [8, 0, 16, 13], "texture": "#body", "cullface": "down"} + } + }, + { + "from": [0, 4, 0], + "to": [16, 7, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 0]}, + "faces": { + "north": {"uv": [0, 5, 16, 8], "texture": "#eyes", "cullface": "north"}, + "east": {"uv": [6, 13, 0, 16], "texture": "#eyes", "cullface": "east"}, + "south": {"uv": [0, 5, 16, 8], "texture": "#eyes"}, + "west": {"uv": [0, 13, 6, 16], "texture": "#eyes", "cullface": "west"}, + "up": {"uv": [0, 0, 16, 6], "texture": "#eyes"}, + "down": {"uv": [0, 7, 16, 13], "texture": "#eyes"} + } + } + ], + "display": { + "head": { + "translation": [0, 6, 0], + "scale": [1.5, 1.5, 1.5] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/anvilcraft/models/block/block_comparator_on.json b/src/main/resources/assets/anvilcraft/models/block/block_comparator_on.json new file mode 100644 index 000000000..4fd51fe21 --- /dev/null +++ b/src/main/resources/assets/anvilcraft/models/block/block_comparator_on.json @@ -0,0 +1,9 @@ +{ + "parent": "anvilcraft:block/block_comparator", + "textures": { + "particle": "anvilcraft:block/block_comparator_on", + "switch": "anvilcraft:block/block_comparator_on", + "body": "anvilcraft:block/block_comparator_body", + "eyes": "anvilcraft:block/block_comparator_eyes" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise.json b/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise.json new file mode 100644 index 000000000..28d2b3231 --- /dev/null +++ b/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise.json @@ -0,0 +1,9 @@ +{ + "parent": "anvilcraft:block/block_comparator", + "textures": { + "particle": "anvilcraft:block/block_comparator", + "switch": "anvilcraft:block/block_comparator", + "body": "anvilcraft:block/block_comparator_body", + "eyes": "anvilcraft:block/block_comparator_eyes_precise" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise_on.json b/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise_on.json new file mode 100644 index 000000000..98967439d --- /dev/null +++ b/src/main/resources/assets/anvilcraft/models/block/block_comparator_precise_on.json @@ -0,0 +1,9 @@ +{ + "parent": "anvilcraft:block/block_comparator", + "textures": { + "particle": "anvilcraft:block/block_comparator_on", + "switch": "anvilcraft:block/block_comparator_on", + "body": "anvilcraft:block/block_comparator_body", + "eyes": "anvilcraft:block/block_comparator_eyes_precise" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/anvilcraft/textures/block/block_comparator.png b/src/main/resources/assets/anvilcraft/textures/block/block_comparator.png new file mode 100644 index 0000000000000000000000000000000000000000..8469c406154217e506601f176ea3684bfc5d06c4 GIT binary patch literal 286 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!fol>na*S1(4U@bGX|M&=3@MqyDIHz%j6s;bn~)c*c{TN@iw z6BD39w+BD$fD}(jkYDhB1Yi)lf9@Pmyu#DPF{I*FPJbXDiz0{f%vjc__x1O6d1jwE zK859}W)SazdtNe<7cYH_%jx&H8*Fxdn()~SL!}>~_PPhRcJwsV3M8I;wP1Hg)^%yU z)W%7-E!p{{buP%6EPTYjLsGVawJ literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/anvilcraft/textures/block/block_comparator_body.png b/src/main/resources/assets/anvilcraft/textures/block/block_comparator_body.png new file mode 100644 index 0000000000000000000000000000000000000000..91555c60d09d32ff07fe9729e0a59b933945080f GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!fo(Ey(iS2ri8)YR1e{(f5{DS|3 z0fUq`vl~z-+SA1`q~caiA0uCb0SEKJrvLSursO4ENsFF!nl+6>A#BybSDSWoG_sUy zO7Aewbns``n08@dgPc~a`k_9rXM5}wBBy4tST5*$svX~Oum0Y~4Zpl>8m95?V3A-r XoW;Ct)uqN{pfwDhu6{1-oD!MF@6cDaqQF z1*Eu2g8YL2!vMpkGdkyiqRE~vjv*DdLV7%f4k+*(-lYEbfBS4!uB(lPQpX$4z3KMh zc=mU?VO~P8z|2!(O1V)f{q6<%#8c`FpcYxPJpfr0rqn~qQS(Mdq-7(8A5T-G@yGywpL#a}A` literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/anvilcraft/textures/block/block_comparator_on.png b/src/main/resources/assets/anvilcraft/textures/block/block_comparator_on.png new file mode 100644 index 0000000000000000000000000000000000000000..fb12f0eda62a3d304710b0bdd6281f1189ec2a81 GIT binary patch literal 322 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!fovjCqE*Nw~!UW`mv7@5Mu!-Yj<{xdKKnHkqIF&0Nh+h}OC z<>jTOrn)&fRaI5l+Sv5>_nVrS0JWyG18+=yjPW+(Krgxs3zSkTMjtp@%IT)oaXBe=+_`sq+>;^UOifkCBO24Rl y)^I0P*Pwdho>Q9-_}#aEv2|+l_IL4&Yz#M@cy4XGZq5UA4}+(xpUXO@geCweF?rJf literal 0 HcmV?d00001