Skip to content

Commit 18118bd

Browse files
committed
Update tag-game for 26.2.
This version is required starting from 26.2 Snapshot 3 and is backwards compatible.
1 parent 2466cb2 commit 18118bd

4 files changed

Lines changed: 51 additions & 8 deletions

File tree

.github/workflows/modrinth-upload.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
datapack
3333
game-versions: |-
3434
1.21.X
35-
26.1
36-
26.1.1
37-
26.1.2
35+
26.X
36+
26.2
3837
files: ${{ github.event.release.name }}.zip

data/tag/advancement/player_tagged.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"blocked": false,
88
"type": {
99
"source_entity": {
10-
"type": "minecraft:player",
10+
"entity_type": "minecraft:player",
1111
"equipment": {
1212
"mainhand": {
1313
"components": {
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"criteria": {
3+
"tagged": {
4+
"trigger": "minecraft:entity_hurt_player",
5+
"conditions": {
6+
"damage": {
7+
"blocked": false,
8+
"type": {
9+
"source_entity": {
10+
"type": "minecraft:player",
11+
"equipment": {
12+
"mainhand": {
13+
"components": {
14+
"minecraft:custom_data": {
15+
"tag": 1
16+
}
17+
}
18+
}
19+
}
20+
},
21+
"tags": [
22+
{
23+
"id": "minecraft:is_player_attack",
24+
"expected": true
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
31+
},
32+
"rewards": {
33+
"function": "tag:check_tag"
34+
}
35+
}

pack.mcmeta

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
"pack": {
33
"description": [
44
{ "text": "Tag game", "color": "green" },
5-
{ "text": "\nv1.2.7", "color": "white" },
5+
{ "text": "\nv1.3.0", "color": "white" },
66
{ "text": "\nBy SuperDyl", "color": "white" }
77
],
8-
"pack_format": 101,
8+
"pack_format": 102,
99
"supported_formats": {
1010
"min_inclusive": 48,
11-
"max_inclusive": 101
11+
"max_inclusive": 102
1212
},
1313
"min_format": 48,
14-
"max_format": 101
14+
"max_format": 102
1515
},
1616
"overlays": {
1717
"entries": [
@@ -21,6 +21,15 @@
2121
"min_inclusive": 1,
2222
"max_inclusive": 61
2323
}
24+
},
25+
{
26+
"directory": "overlay-1.21-26.1.2",
27+
"formats": {
28+
"min_inclusive": 1,
29+
"max_inclusive": 101
30+
},
31+
"min_format": 1,
32+
"max_format": [101, 2]
2433
}
2534
]
2635
}

0 commit comments

Comments
 (0)