Skip to content

Commit d4e764c

Browse files
move to new custom model data format for 1.21.4
1 parent e88a5c5 commit d4e764c

File tree

7 files changed

+30
-14
lines changed

7 files changed

+30
-14
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
[![Modrinth Downloads](https://img.shields.io/modrinth/dt/zhYMjiZY?color=blue&logo=modrinth&style=for-the-badge)](https://modrinth.com/datapack/muffintime-data-pack)
55

66
This datapack is used to change resources of totems while using [muffintime-resource-pack](https://github.com/RealMuffinTime/muffintime-resource-pack).
7-
For Minecraft version `1.21.2-1.21.3`.
7+
For Minecraft version `1.21.4`.
88

99
## Features
1010

1111
It's is possible to change Totem textures via the command `/function muffintime:<totem_type>`.
1212
Currently `<totem_type>` can be one of:
13-
| Custom item texture for totem | custom_model_data | `<totem_type>` |
14-
| -------------------------------- | ----------------- | ----------------- |
15-
| UNO Reverse Card Green | 0 | green |
16-
| UNO Reverse Card Blue | 1 | blue |
17-
| UNO Reverse Card Red | 2 | red |
18-
| UNO Reverse Card Yellow | 3 | yellow |
19-
| Animated UNO Reverse Card Ahegao | 69 | ahegao |
13+
14+
| Custom item texture for totem | custom_model_data | `<totem_type>` |
15+
| -------------------------------- | ----------------- | ----------------- |
16+
| UNO Reverse Card Green | green | green |
17+
| UNO Reverse Card Blue | blue | blue |
18+
| UNO Reverse Card Red | red | red |
19+
| UNO Reverse Card Yellow | yellow | yellow |
20+
| Animated UNO Reverse Card Ahegao | ahegao | ahegao |
2021

2122
The totem needs to be hold in mainhand, while running the command.
2223

data/muffintime/item_modifier/ahegao.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"function": "minecraft:set_custom_model_data",
4-
"value": 69,
4+
"strings": {
5+
"values": ["ahegao"],
6+
"mode": "replace_all"
7+
},
58
"conditions": [
69
{
710
"condition": "minecraft:entity_properties",

data/muffintime/item_modifier/blue.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"function": "minecraft:set_custom_model_data",
4-
"value": 1,
4+
"strings": {
5+
"values": ["blue"],
6+
"mode": "replace_all"
7+
},
58
"conditions": [
69
{
710
"condition": "minecraft:entity_properties",

data/muffintime/item_modifier/green.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"function": "minecraft:set_custom_model_data",
4-
"value": 0,
4+
"strings": {
5+
"values": ["green"],
6+
"mode": "replace_all"
7+
},
58
"conditions": [
69
{
710
"condition": "minecraft:entity_properties",

data/muffintime/item_modifier/red.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"function": "minecraft:set_custom_model_data",
4-
"value": 2,
4+
"strings": {
5+
"values": ["red"],
6+
"mode": "replace_all"
7+
},
58
"conditions": [
69
{
710
"condition": "minecraft:entity_properties",

data/muffintime/item_modifier/yellow.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"function": "minecraft:set_custom_model_data",
4-
"value": 3,
4+
"strings": {
5+
"values": ["yellow"],
6+
"mode": "replace_all"
7+
},
58
"conditions": [
69
{
710
"condition": "minecraft:entity_properties",

pack.mcmeta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"pack": {
3-
"pack_format": 57,
3+
"pack_format": 61,
44
"description": "§6§lThe MuffinTime Datapack§r\nby RealMuffinTime"
55
}
66
}

0 commit comments

Comments
 (0)