From 5bfe013d1817a69a4a0fd4cfc64d406033b87e8e Mon Sep 17 00:00:00 2001 From: XiaoMoMi Date: Sat, 31 May 2025 18:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drelocate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bukkit/build.gradle.kts | 4 +- bukkit/loader/build.gradle.kts | 4 +- .../minecraft/models/item/custom/cap.json | 85 ++++++++++++++++++ .../minecraft/textures/item/custom/cap.png | Bin 0 -> 443 bytes core/build.gradle.kts | 2 +- .../core/pack/AbstractPackManager.java | 2 + gradle.properties | 2 +- 7 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/item/custom/cap.json create mode 100644 bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/textures/item/custom/cap.png diff --git a/bukkit/build.gradle.kts b/bukkit/build.gradle.kts index b1d1e570b..99ba6dad3 100644 --- a/bukkit/build.gradle.kts +++ b/bukkit/build.gradle.kts @@ -92,7 +92,6 @@ tasks { relocate("com.saicone.rtag", "net.momirealms.craftengine.libraries.tag") relocate("org.incendo", "net.momirealms.craftengine.libraries") relocate("dev.dejvokep", "net.momirealms.craftengine.libraries") - relocate("org.apache.commons.io", "net.momirealms.craftengine.libraries.commons.io") relocate("org.bstats", "net.momirealms.craftengine.libraries.bstats") relocate("com.github.benmanes.caffeine", "net.momirealms.craftengine.libraries.caffeine") relocate("net.bytebuddy", "net.momirealms.craftengine.libraries.bytebuddy") @@ -100,7 +99,8 @@ tasks { relocate("org.ahocorasick", "net.momirealms.craftengine.libraries.ahocorasick") relocate("com.ezylang.evalex", "net.momirealms.craftengine.libraries.evalex") relocate("com.google.common.jimfs", "net.momirealms.craftengine.libraries.jimfs") - relocate("org.apache.commons.imaging", "net.momirealms.craftengine.libraries.imaging") + relocate("org.apache.commons.imaging", "net.momirealms.craftengine.libraries.commons.imaging") + relocate("org.apache.commons.io", "net.momirealms.craftengine.libraries.commons.io") } } diff --git a/bukkit/loader/build.gradle.kts b/bukkit/loader/build.gradle.kts index f90ee42e0..3d19d27cf 100644 --- a/bukkit/loader/build.gradle.kts +++ b/bukkit/loader/build.gradle.kts @@ -67,7 +67,6 @@ tasks { relocate("com.saicone.rtag", "net.momirealms.craftengine.libraries.tag") relocate("org.incendo", "net.momirealms.craftengine.libraries") relocate("dev.dejvokep", "net.momirealms.craftengine.libraries") - relocate("org.apache.commons.io", "net.momirealms.craftengine.libraries.commons.io") relocate("org.bstats", "net.momirealms.craftengine.libraries.bstats") relocate("com.github.benmanes.caffeine", "net.momirealms.craftengine.libraries.caffeine") relocate("com.ezylang.evalex", "net.momirealms.craftengine.libraries.evalex") @@ -78,6 +77,7 @@ tasks { relocate("software.amazon.awssdk", "net.momirealms.craftengine.libraries.awssdk") relocate("software.amazon.eventstream", "net.momirealms.craftengine.libraries.eventstream") relocate("com.google.common.jimfs", "net.momirealms.craftengine.libraries.jimfs") - relocate("org.apache.commons.imaging", "net.momirealms.craftengine.libraries.imaging") + relocate("org.apache.commons.imaging", "net.momirealms.craftengine.libraries.commons.imaging") + relocate("org.apache.commons.io", "net.momirealms.craftengine.libraries.commons.io") } } diff --git a/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/item/custom/cap.json b/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/item/custom/cap.json new file mode 100644 index 000000000..69faf92b2 --- /dev/null +++ b/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/item/custom/cap.json @@ -0,0 +1,85 @@ +{ + "credit": "Made with Blockbench", + "texture_size": [32, 32], + "textures": { + "0": "item/custom/cap", + "particle": "item/custom/cap" + }, + "elements": [ + { + "from": [3.5, 0, -5], + "to": [12.5, 0, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0], "texture": "#0"}, + "east": {"uv": [0, 0, 4.5, 0], "texture": "#0"}, + "south": {"uv": [0, 0, 4.5, 0], "texture": "#0"}, + "west": {"uv": [0, 0, 4.5, 0], "texture": "#0"}, + "up": {"uv": [4.5, 4.5, 0, 0], "texture": "#0", "tintindex": 0}, + "down": {"uv": [4.5, 0, 0, 4.5], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [3.3, -0.2, 3.8], + "to": [12.7, 4.2, 13.2], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [2.5, 14, 7, 16], "texture": "#0", "tintindex": 0}, + "east": {"uv": [16, 14, 11.5, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [11.5, 12, 16, 14], "texture": "#0", "tintindex": 0}, + "west": {"uv": [11.5, 14, 16, 16], "texture": "#0", "tintindex": 0}, + "up": {"uv": [11.5, 16, 7, 11.5], "texture": "#0", "tintindex": 0}, + "down": {"uv": [11.5, 11.5, 7, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [3.5, 0, 4], + "to": [12.5, 4, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 9, 4.5, 11], "texture": "#0", "tintindex": 0}, + "east": {"uv": [13.5, 4, 9, 6], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9, 2, 13.5, 4], "texture": "#0", "tintindex": 0}, + "west": {"uv": [9, 4, 13.5, 6], "texture": "#0", "tintindex": 0}, + "up": {"uv": [9, 4.5, 4.5, 0], "texture": "#0", "tintindex": 0}, + "down": {"uv": [9, 4.5, 4.5, 9], "texture": "#0", "tintindex": 0} + } + } + ], + "gui_light": "front", + "display": { + "thirdperson_righthand": { + "rotation": [45, 49, 0], + "translation": [0, 4.5, 2.25], + "scale": [0.5, 0.5, 0.5] + }, + "thirdperson_lefthand": { + "rotation": [45, 49, 0], + "translation": [0, 4.5, 2.25], + "scale": [0.5, 0.5, 0.5] + }, + "firstperson_righthand": { + "rotation": [0, 34, 0], + "translation": [5.25, 4.75, 0], + "scale": [0.75, 0.75, 0.75] + }, + "firstperson_lefthand": { + "rotation": [0, 34, 0], + "translation": [5.25, 4.75, 0], + "scale": [0.75, 0.75, 0.75] + }, + "ground": { + "translation": [0, 4.5, 0], + "scale": [0.75, 0.75, 0.75] + }, + "gui": { + "rotation": [35, 135, 0], + "translation": [0.5, 4.5, 0], + "scale": [0.9, 0.9, 0.9] + }, + "head": { + "translation": [0, 15, -0.75], + "scale": [1.5, 1.5, 1.5] + } + } +} \ No newline at end of file diff --git a/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/textures/item/custom/cap.png b/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/textures/item/custom/cap.png new file mode 100644 index 0000000000000000000000000000000000000000..d7e3923ea6006d8da3200e67cdb7175dc8c32229 GIT binary patch literal 443 zcmV;s0Yv_ZP)Px$bxA})R9J=Wm%VO-Fc8Pj5f2bCAc7bWOHf!?c!2OIo%=YQyL9P8MCnrH4XE6W z0TIN2(xpQecW7PladwOWMXLBs;q3VScibI74kyYeEg%RS=)&zAXAS4#0vl)D+r#al zXOrHd0tWwq9ZqQh006FK!nwEz4{Y&v`k%p?k()z;E^0U&oOTc~ygJnJocnRx+JBF}RZ7uO*>fuDBBj*x1F_UMQ!8u7ysE`Da1E^e zy6lr3;N}99 zi!cbcvj`w6Q%<+SRal9f%j{EP@Cnu(B%nBg$3oJqWI7L#g@u2^tkr!uQQ_-840vZ) lm=&}Jrkal3?*r_fe*