Skip to content

Commit 899a6bb

Browse files
authored
Merge pull request #18 from QZL-efz/main
feat: modifing loot tables for grass blocks
2 parents c30b1c1 + 1cd0a29 commit 899a6bb

42 files changed

Lines changed: 1518 additions & 372 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/workspace.xml

Lines changed: 42 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

box3formula/data/box3/loot_table/blocks/blue_grass.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,45 @@
22
"type": "minecraft:block",
33
"pools": [
44
{
5-
"rolls": 1,
5+
"bonus_rolls": 0.0,
66
"entries": [
77
{
8-
"type": "minecraft:item",
9-
"name": "box3:blue_grass"
8+
"type": "minecraft:alternatives",
9+
"children": [
10+
{
11+
"type": "minecraft:item",
12+
"conditions": [
13+
{
14+
"condition": "minecraft:match_tool",
15+
"predicate": {
16+
"predicates": {
17+
"minecraft:enchantments": [
18+
{
19+
"enchantments": "minecraft:silk_touch",
20+
"levels": {
21+
"min": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
],
29+
"name": "box3:blue_grass"
30+
},
31+
{
32+
"type": "minecraft:item",
33+
"conditions": [
34+
{
35+
"condition": "minecraft:survives_explosion"
36+
}
37+
],
38+
"name": "box3:dirt"
39+
}
40+
]
1041
}
1142
],
12-
"conditions": [
13-
{
14-
"condition": "minecraft:survives_explosion"
15-
}
16-
]
43+
"rolls": 1.0
1744
}
1845
]
19-
}
46+
}

box3formula/data/box3/loot_table/blocks/dark_blue_grass.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,45 @@
22
"type": "minecraft:block",
33
"pools": [
44
{
5-
"rolls": 1,
5+
"bonus_rolls": 0.0,
66
"entries": [
77
{
8-
"type": "minecraft:item",
9-
"name": "box3:dark_blue_grass"
8+
"type": "minecraft:alternatives",
9+
"children": [
10+
{
11+
"type": "minecraft:item",
12+
"conditions": [
13+
{
14+
"condition": "minecraft:match_tool",
15+
"predicate": {
16+
"predicates": {
17+
"minecraft:enchantments": [
18+
{
19+
"enchantments": "minecraft:silk_touch",
20+
"levels": {
21+
"min": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
],
29+
"name": "box3:dark_blue_grass"
30+
},
31+
{
32+
"type": "minecraft:item",
33+
"conditions": [
34+
{
35+
"condition": "minecraft:survives_explosion"
36+
}
37+
],
38+
"name": "box3:dirt"
39+
}
40+
]
1041
}
1142
],
12-
"conditions": [
13-
{
14-
"condition": "minecraft:survives_explosion"
15-
}
16-
]
43+
"rolls": 1.0
1744
}
1845
]
19-
}
46+
}

box3formula/data/box3/loot_table/blocks/dark_grass.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,45 @@
22
"type": "minecraft:block",
33
"pools": [
44
{
5-
"rolls": 1,
5+
"bonus_rolls": 0.0,
66
"entries": [
77
{
8-
"type": "minecraft:item",
9-
"name": "box3:dark_grass"
8+
"type": "minecraft:alternatives",
9+
"children": [
10+
{
11+
"type": "minecraft:item",
12+
"conditions": [
13+
{
14+
"condition": "minecraft:match_tool",
15+
"predicate": {
16+
"predicates": {
17+
"minecraft:enchantments": [
18+
{
19+
"enchantments": "minecraft:silk_touch",
20+
"levels": {
21+
"min": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
],
29+
"name": "box3:dark_grass"
30+
},
31+
{
32+
"type": "minecraft:item",
33+
"conditions": [
34+
{
35+
"condition": "minecraft:survives_explosion"
36+
}
37+
],
38+
"name": "box3:dirt"
39+
}
40+
]
1041
}
1142
],
12-
"conditions": [
13-
{
14-
"condition": "minecraft:survives_explosion"
15-
}
16-
]
43+
"rolls": 1.0
1744
}
1845
]
19-
}
46+
}

box3formula/data/box3/loot_table/blocks/dark_grass_rock.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,45 @@
22
"type": "minecraft:block",
33
"pools": [
44
{
5-
"rolls": 1,
5+
"bonus_rolls": 0.0,
66
"entries": [
77
{
8-
"type": "minecraft:item",
9-
"name": "box3:dark_grass_rock"
8+
"type": "minecraft:alternatives",
9+
"children": [
10+
{
11+
"type": "minecraft:item",
12+
"conditions": [
13+
{
14+
"condition": "minecraft:match_tool",
15+
"predicate": {
16+
"predicates": {
17+
"minecraft:enchantments": [
18+
{
19+
"enchantments": "minecraft:silk_touch",
20+
"levels": {
21+
"min": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
],
29+
"name": "box3:dark_grass_rock"
30+
},
31+
{
32+
"type": "minecraft:item",
33+
"conditions": [
34+
{
35+
"condition": "minecraft:survives_explosion"
36+
}
37+
],
38+
"name": "box3:rock"
39+
}
40+
]
1041
}
1142
],
12-
"conditions": [
13-
{
14-
"condition": "minecraft:survives_explosion"
15-
}
16-
]
43+
"rolls": 1.0
1744
}
1845
]
19-
}
46+
}

box3formula/data/box3/loot_table/blocks/dark_grass_sand.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,45 @@
22
"type": "minecraft:block",
33
"pools": [
44
{
5-
"rolls": 1,
5+
"bonus_rolls": 0.0,
66
"entries": [
77
{
8-
"type": "minecraft:item",
9-
"name": "box3:dark_grass_sand"
8+
"type": "minecraft:alternatives",
9+
"children": [
10+
{
11+
"type": "minecraft:item",
12+
"conditions": [
13+
{
14+
"condition": "minecraft:match_tool",
15+
"predicate": {
16+
"predicates": {
17+
"minecraft:enchantments": [
18+
{
19+
"enchantments": "minecraft:silk_touch",
20+
"levels": {
21+
"min": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
],
29+
"name": "box3:dark_grass_sand"
30+
},
31+
{
32+
"type": "minecraft:item",
33+
"conditions": [
34+
{
35+
"condition": "minecraft:survives_explosion"
36+
}
37+
],
38+
"name": "box3:sand_stones"
39+
}
40+
]
1041
}
1142
],
12-
"conditions": [
13-
{
14-
"condition": "minecraft:survives_explosion"
15-
}
16-
]
43+
"rolls": 1.0
1744
}
1845
]
19-
}
46+
}

0 commit comments

Comments
 (0)