Skip to content

Commit 36f7341

Browse files
committed
refactor: バンドル系アイテムを1.21.4仕様に移植
1.21.4仕様ではあるが、バニラのバンドルとは違い内容量率によってテクスチャを切り替える実装になっている これは古いバージョンのバンドルの挙動であり、現在のバニラバンドルの挙動とは異なるがTUSBにおいてはこちらの実装のほうが扱いやすい可能性が高い
1 parent df4983f commit 36f7341

File tree

11 files changed

+42
-34
lines changed

11 files changed

+42
-34
lines changed

assets/minecraft/models/item/bundle.json

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"model": {
3+
"type": "minecraft:range_dispatch",
4+
"property": "minecraft:bundle/fullness",
5+
"entries": [
6+
{
7+
"model": {
8+
"type": "minecraft:model",
9+
"model": "tusb:item/bundle/emerald/normal"
10+
},
11+
"threshold": 1e-7
12+
}
13+
],
14+
"fallback": {
15+
"type": "minecraft:model",
16+
"model": "tusb:item/bundle/emerald/filled"
17+
}
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"model": {
3+
"type": "minecraft:range_dispatch",
4+
"property": "minecraft:bundle/fullness",
5+
"entries": [
6+
{
7+
"model": {
8+
"type": "minecraft:model",
9+
"model": "tusb:item/bundle/jewel/normal"
10+
},
11+
"threshold": 1e-7
12+
}
13+
],
14+
"fallback": {
15+
"type": "minecraft:model",
16+
"model": "tusb:item/bundle/jewel/filled"
17+
}
18+
}
19+
}

assets/minecraft/models/item/bundle/jewel_bundle_filled.json renamed to assets/tusb/models/item/bundle/emerald/filled.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parent": "parent/accessories/1_0x",
33
"textures": {
4-
"layer0": "item/bundle/jewel_bundle_filled"
4+
"layer0": "tusb:item/bundle/emerald/filled"
55
}
66
}

assets/minecraft/models/item/bundle/emerald_bundle_filled.json renamed to assets/tusb/models/item/bundle/emerald/normal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parent": "parent/accessories/1_0x",
33
"textures": {
4-
"layer0": "item/bundle/emerald_bundle_filled"
4+
"layer0": "tusb:item/bundle/emerald/normal"
55
}
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parent": "parent/accessories/1_0x",
33
"textures": {
4-
"layer0": "item/bundle/emerald_bundle"
4+
"layer0": "tusb:item/bundle/jewel/filled"
55
}
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parent": "parent/accessories/1_0x",
33
"textures": {
4-
"layer0": "item/bundle/jewel_bundle"
4+
"layer0": "tusb:item/bundle/jewel/normal"
55
}
66
}

assets/minecraft/textures/item/bundle/emerald_bundle_filled.png renamed to assets/tusb/textures/item/bundle/emerald/filled.png

File renamed without changes.

assets/minecraft/textures/item/bundle/emerald_bundle.png renamed to assets/tusb/textures/item/bundle/emerald/normal.png

File renamed without changes.

assets/minecraft/textures/item/bundle/jewel_bundle_filled.png renamed to assets/tusb/textures/item/bundle/jewel/filled.png

File renamed without changes.

0 commit comments

Comments
 (0)