Skip to content

Commit 28b5cbc

Browse files
committed
1.20.5-pre1
1 parent 8d82a37 commit 28b5cbc

24 files changed

Lines changed: 931 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"criteria": {
3+
"invalid_shulker_box_in_inventory": {
4+
"trigger": "minecraft:inventory_changed",
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": "#dorkorc.stackable_shulker_boxes:shulker_boxes",
9+
"components": {
10+
"minecraft:max_stack_size": 1
11+
},
12+
"predicates": {
13+
"container": {
14+
"items": {
15+
"count": [
16+
{
17+
"test": {
18+
"count": {
19+
"min": 1
20+
}
21+
},
22+
"count": 0
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
29+
]
30+
}
31+
}
32+
},
33+
"requirements": [
34+
[
35+
"invalid_shulker_box_in_inventory"
36+
]
37+
],
38+
"rewards": {
39+
"function": "dorkorc.stackable_shulker_boxes:detect/invalid_shulker_box_in_inventory/main"
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
item modify entity @s hotbar.0 dorkorc.stackable_shulker_boxes:fix_shulker_box
2+
item modify entity @s hotbar.1 dorkorc.stackable_shulker_boxes:fix_shulker_box
3+
item modify entity @s hotbar.2 dorkorc.stackable_shulker_boxes:fix_shulker_box
4+
item modify entity @s hotbar.3 dorkorc.stackable_shulker_boxes:fix_shulker_box
5+
item modify entity @s hotbar.4 dorkorc.stackable_shulker_boxes:fix_shulker_box
6+
item modify entity @s hotbar.5 dorkorc.stackable_shulker_boxes:fix_shulker_box
7+
item modify entity @s hotbar.6 dorkorc.stackable_shulker_boxes:fix_shulker_box
8+
item modify entity @s hotbar.7 dorkorc.stackable_shulker_boxes:fix_shulker_box
9+
item modify entity @s hotbar.8 dorkorc.stackable_shulker_boxes:fix_shulker_box
10+
item modify entity @s inventory.0 dorkorc.stackable_shulker_boxes:fix_shulker_box
11+
item modify entity @s inventory.1 dorkorc.stackable_shulker_boxes:fix_shulker_box
12+
item modify entity @s inventory.2 dorkorc.stackable_shulker_boxes:fix_shulker_box
13+
item modify entity @s inventory.3 dorkorc.stackable_shulker_boxes:fix_shulker_box
14+
item modify entity @s inventory.4 dorkorc.stackable_shulker_boxes:fix_shulker_box
15+
item modify entity @s inventory.5 dorkorc.stackable_shulker_boxes:fix_shulker_box
16+
item modify entity @s inventory.6 dorkorc.stackable_shulker_boxes:fix_shulker_box
17+
item modify entity @s inventory.7 dorkorc.stackable_shulker_boxes:fix_shulker_box
18+
item modify entity @s inventory.8 dorkorc.stackable_shulker_boxes:fix_shulker_box
19+
item modify entity @s inventory.9 dorkorc.stackable_shulker_boxes:fix_shulker_box
20+
item modify entity @s inventory.10 dorkorc.stackable_shulker_boxes:fix_shulker_box
21+
item modify entity @s inventory.11 dorkorc.stackable_shulker_boxes:fix_shulker_box
22+
item modify entity @s inventory.12 dorkorc.stackable_shulker_boxes:fix_shulker_box
23+
item modify entity @s inventory.13 dorkorc.stackable_shulker_boxes:fix_shulker_box
24+
item modify entity @s inventory.14 dorkorc.stackable_shulker_boxes:fix_shulker_box
25+
item modify entity @s inventory.15 dorkorc.stackable_shulker_boxes:fix_shulker_box
26+
item modify entity @s inventory.16 dorkorc.stackable_shulker_boxes:fix_shulker_box
27+
item modify entity @s inventory.17 dorkorc.stackable_shulker_boxes:fix_shulker_box
28+
item modify entity @s inventory.18 dorkorc.stackable_shulker_boxes:fix_shulker_box
29+
item modify entity @s inventory.19 dorkorc.stackable_shulker_boxes:fix_shulker_box
30+
item modify entity @s inventory.20 dorkorc.stackable_shulker_boxes:fix_shulker_box
31+
item modify entity @s inventory.21 dorkorc.stackable_shulker_boxes:fix_shulker_box
32+
item modify entity @s inventory.22 dorkorc.stackable_shulker_boxes:fix_shulker_box
33+
item modify entity @s inventory.23 dorkorc.stackable_shulker_boxes:fix_shulker_box
34+
item modify entity @s inventory.24 dorkorc.stackable_shulker_boxes:fix_shulker_box
35+
item modify entity @s inventory.25 dorkorc.stackable_shulker_boxes:fix_shulker_box
36+
item modify entity @s inventory.26 dorkorc.stackable_shulker_boxes:fix_shulker_box
37+
item modify entity @s weapon.offhand dorkorc.stackable_shulker_boxes:fix_shulker_box
38+
item modify entity @s armor.head dorkorc.stackable_shulker_boxes:fix_shulker_box
39+
item modify entity @s player.cursor dorkorc.stackable_shulker_boxes:fix_shulker_box
40+
item modify entity @s player.crafting.0 dorkorc.stackable_shulker_boxes:fix_shulker_box
41+
item modify entity @s player.crafting.1 dorkorc.stackable_shulker_boxes:fix_shulker_box
42+
item modify entity @s player.crafting.2 dorkorc.stackable_shulker_boxes:fix_shulker_box
43+
item modify entity @s player.crafting.3 dorkorc.stackable_shulker_boxes:fix_shulker_box
44+
45+
advancement revoke @s only dorkorc.stackable_shulker_boxes:detect/invalid_shulker_box_in_inventory
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"function": "minecraft:filtered",
3+
"item_filter": {
4+
"items": "#dorkorc.stackable_shulker_boxes:shulker_boxes",
5+
"predicates": {
6+
"minecraft:container": {
7+
"items": {
8+
"count": [
9+
{
10+
"test": {
11+
"count": {
12+
"min": 1
13+
}
14+
},
15+
"count": 0
16+
}
17+
]
18+
}
19+
}
20+
}
21+
},
22+
"modifier": {
23+
"function": "minecraft:set_components",
24+
"components": {
25+
"minecraft:max_stack_size": 64
26+
}
27+
}
28+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"values": [
3+
"minecraft:black_shulker_box",
4+
"minecraft:blue_shulker_box",
5+
"minecraft:brown_shulker_box",
6+
"minecraft:cyan_shulker_box",
7+
"minecraft:gray_shulker_box",
8+
"minecraft:green_shulker_box",
9+
"minecraft:light_blue_shulker_box",
10+
"minecraft:light_gray_shulker_box",
11+
"minecraft:lime_shulker_box",
12+
"minecraft:magenta_shulker_box",
13+
"minecraft:orange_shulker_box",
14+
"minecraft:pink_shulker_box",
15+
"minecraft:purple_shulker_box",
16+
"minecraft:red_shulker_box",
17+
"minecraft:shulker_box",
18+
"minecraft:white_shulker_box",
19+
"minecraft:yellow_shulker_box"
20+
]
21+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"rolls": 1,
6+
"bonus_rolls": 0,
7+
"entries": [
8+
{
9+
"type": "minecraft:item",
10+
"name": "minecraft:black_shulker_box",
11+
"functions": [
12+
{
13+
"function": "minecraft:copy_components",
14+
"source": "block_entity",
15+
"include": [
16+
"minecraft:custom_name",
17+
"minecraft:container",
18+
"minecraft:lock",
19+
"minecraft:container_loot"
20+
]
21+
},
22+
{
23+
"function": "minecraft:reference",
24+
"name": "dorkorc.stackable_shulker_boxes:fix_shulker_box"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"random_sequence": "minecraft:blocks/black_shulker_box",
32+
"__smithed__": {
33+
"rules": [
34+
{
35+
"type":"append",
36+
"target":"pools[0].entries[0].functions",
37+
"source": {
38+
"type":"reference",
39+
"path":"pools[0].entries[0].functions[1]"
40+
}
41+
}
42+
]
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"rolls": 1,
6+
"bonus_rolls": 0,
7+
"entries": [
8+
{
9+
"type": "minecraft:item",
10+
"name": "minecraft:blue_shulker_box",
11+
"functions": [
12+
{
13+
"function": "minecraft:copy_components",
14+
"source": "block_entity",
15+
"include": [
16+
"minecraft:custom_name",
17+
"minecraft:container",
18+
"minecraft:lock",
19+
"minecraft:container_loot"
20+
]
21+
},
22+
{
23+
"function": "minecraft:reference",
24+
"name": "dorkorc.stackable_shulker_boxes:fix_shulker_box"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"random_sequence": "minecraft:blocks/blue_shulker_box",
32+
"__smithed__": {
33+
"rules": [
34+
{
35+
"type":"append",
36+
"target":"pools[0].entries[0].functions",
37+
"source": {
38+
"type":"reference",
39+
"path":"pools[0].entries[0].functions[1]"
40+
}
41+
}
42+
]
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"rolls": 1,
6+
"bonus_rolls": 0,
7+
"entries": [
8+
{
9+
"type": "minecraft:item",
10+
"name": "minecraft:brown_shulker_box",
11+
"functions": [
12+
{
13+
"function": "minecraft:copy_components",
14+
"source": "block_entity",
15+
"include": [
16+
"minecraft:custom_name",
17+
"minecraft:container",
18+
"minecraft:lock",
19+
"minecraft:container_loot"
20+
]
21+
},
22+
{
23+
"function": "minecraft:reference",
24+
"name": "dorkorc.stackable_shulker_boxes:fix_shulker_box"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"random_sequence": "minecraft:blocks/brown_shulker_box",
32+
"__smithed__": {
33+
"rules": [
34+
{
35+
"type":"append",
36+
"target":"pools[0].entries[0].functions",
37+
"source": {
38+
"type":"reference",
39+
"path":"pools[0].entries[0].functions[1]"
40+
}
41+
}
42+
]
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"rolls": 1,
6+
"bonus_rolls": 0,
7+
"entries": [
8+
{
9+
"type": "minecraft:item",
10+
"name": "minecraft:cyan_shulker_box",
11+
"functions": [
12+
{
13+
"function": "minecraft:copy_components",
14+
"source": "block_entity",
15+
"include": [
16+
"minecraft:custom_name",
17+
"minecraft:container",
18+
"minecraft:lock",
19+
"minecraft:container_loot"
20+
]
21+
},
22+
{
23+
"function": "minecraft:reference",
24+
"name": "dorkorc.stackable_shulker_boxes:fix_shulker_box"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"random_sequence": "minecraft:blocks/cyan_shulker_box",
32+
"__smithed__": {
33+
"rules": [
34+
{
35+
"type":"append",
36+
"target":"pools[0].entries[0].functions",
37+
"source": {
38+
"type":"reference",
39+
"path":"pools[0].entries[0].functions[1]"
40+
}
41+
}
42+
]
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"rolls": 1,
6+
"bonus_rolls": 0,
7+
"entries": [
8+
{
9+
"type": "minecraft:item",
10+
"name": "minecraft:gray_shulker_box",
11+
"functions": [
12+
{
13+
"function": "minecraft:copy_components",
14+
"source": "block_entity",
15+
"include": [
16+
"minecraft:custom_name",
17+
"minecraft:container",
18+
"minecraft:lock",
19+
"minecraft:container_loot"
20+
]
21+
},
22+
{
23+
"function": "minecraft:reference",
24+
"name": "dorkorc.stackable_shulker_boxes:fix_shulker_box"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"random_sequence": "minecraft:blocks/gray_shulker_box",
32+
"__smithed__": {
33+
"rules": [
34+
{
35+
"type":"append",
36+
"target":"pools[0].entries[0].functions",
37+
"source": {
38+
"type":"reference",
39+
"path":"pools[0].entries[0].functions[1]"
40+
}
41+
}
42+
]
43+
}
44+
}

0 commit comments

Comments
 (0)