Add Datagen for Loot Tables and Recipes

This commit is contained in:
Martin Prokoph
2024-09-16 20:05:21 +02:00
parent 8e2fc41b99
commit da7af06774
83 changed files with 1676 additions and 1248 deletions

View File

@@ -1,4 +1,4 @@
// 1.19.4 2023-04-13T20:56:56.349859709 This Rocks!/rocks
// 1.21 2024-09-16T20:01:04.36031781 This Rocks!/rocks
d71c0556b644dcaf5737175f7336de62ebdbb167 data/rocks/worldgen/configured_feature/mangrove_stick.json
dcc0d9933482f519f2f7e50417b78be0a515918d data/rocks/worldgen/placed_feature/soul_soil_rock.json
fa2f1ffb8e1754f320b7fa507bebaecccdc48390 data/rocks/worldgen/configured_feature/spruce_stick.json
@@ -16,17 +16,17 @@ dbda0b9c6a571f8d5cbe47fda3cda2f8d08ff9f2 data/rocks/worldgen/configured_feature/
ac68decd062ded192b01770ec250d76a55e76177 data/rocks/worldgen/configured_feature/oak_stick.json
2f7cdca56829a8e66ec6bb6cc3fff2f2bdb95b38 data/rocks/worldgen/configured_feature/red_sand_rock.json
93f0ff373f22b3fe818305c03cf3a947dc0016d0 data/rocks/worldgen/placed_feature/gravel_rock.json
ae1b4c625b9387c5dfc8c1eb53c1eda353ffa712 data/rocks/worldgen/placed_feature/jungle_stick.json
66039045c4bce89398ae0466b1c14ca3cd68912a data/rocks/worldgen/configured_feature/warped_stick.json
ae1b4c625b9387c5dfc8c1eb53c1eda353ffa712 data/rocks/worldgen/placed_feature/jungle_stick.json
6454db935e810df3ad97aa625308e827b57e115d data/rocks/worldgen/configured_feature/acacia_stick.json
5e1c33acb6043e8e33561f06650d0973382d6054 data/rocks/worldgen/placed_feature/nether_geyser.json
6b1fa178181fd3ec1138da12e220976bf11f831c data/rocks/worldgen/configured_feature/nether_gravel_rock.json
07245b68ad42948f36707d5b83dc995ded4b3038 data/rocks/worldgen/placed_feature/seashell.json
16e9b2f47ac483b8f672c42a5c36194d14e7f7f7 data/rocks/worldgen/placed_feature/nether_gravel_rock.json
a09aa0e744166ba6c07e640a55dcb6570c34936f data/rocks/worldgen/placed_feature/andesite_rock.json
07245b68ad42948f36707d5b83dc995ded4b3038 data/rocks/worldgen/placed_feature/seashell.json
14b6c52b4bdeb69a427eb741e12f21d965de76ab data/rocks/worldgen/configured_feature/cherry_stick.json
26574f35fb852a572ad10c2882160b4fc280aad8 data/rocks/worldgen/configured_feature/sand_rock.json
de8a64d00b10892f62b21dd3e034608836b4215b data/rocks/worldgen/configured_feature/netherrack_rock.json
26574f35fb852a572ad10c2882160b4fc280aad8 data/rocks/worldgen/configured_feature/sand_rock.json
6b1fa178181fd3ec1138da12e220976bf11f831c data/rocks/worldgen/configured_feature/gravel_rock.json
4554733520656e979093beaa05d881213ad81415 data/rocks/worldgen/configured_feature/underwater_seashell.json
a2553fb89e8382c0e04dcf3ded89ffcad51b111b data/rocks/worldgen/configured_feature/andesite_rock.json
@@ -35,8 +35,8 @@ a2553fb89e8382c0e04dcf3ded89ffcad51b111b data/rocks/worldgen/configured_feature/
9413155a906186256fb8395d7c892833db2390bc data/rocks/worldgen/configured_feature/end_stone_rock.json
8210691068079b5f1652a95b854c1ffd37548a22 data/rocks/worldgen/configured_feature/rock.json
d0179c57f1a557cd656ebcd902bfbb57fd877e16 data/rocks/worldgen/configured_feature/seashell.json
2ac994ff2e7818ea340b0c4bd527386e80dbcf52 data/rocks/worldgen/placed_feature/underwater_seashell.json
9cb4b04873d315d036c4850b8bf79718aa1919d0 data/rocks/worldgen/configured_feature/jungle_stick.json
2ac994ff2e7818ea340b0c4bd527386e80dbcf52 data/rocks/worldgen/placed_feature/underwater_seashell.json
527e35b402cf6f3ee07e767affe58f75257748ad data/rocks/worldgen/placed_feature/starfish.json
5bc6faa179ca69a8a89cc04910f0288621ce89ea data/rocks/worldgen/configured_feature/nether_geyser.json
eb9d7f31f960d8ec61122d75623acb1e2529b4fa data/rocks/worldgen/placed_feature/cherry_stick.json
@@ -47,10 +47,10 @@ e36c8db5ef949c547e917e3543da41cfbe378970 data/rocks/worldgen/placed_feature/bamb
1c3fa5665b6c36abd5aa406793acc1f54d3d0d27 data/rocks/worldgen/placed_feature/spruce_stick.json
40e1b2b9439381c0f12fdc9811bc8462a23c3a57 data/rocks/worldgen/placed_feature/mangrove_stick.json
79d123df2ad9ab7a1a3ae508c62a90e7dceb3aac data/rocks/worldgen/configured_feature/crimson_stick.json
8eeab96572a35223ec7be23886da2d5ebaef8c47 data/rocks/worldgen/placed_feature/dark_oak_stick.json
f9b95c245164e443738638e4af012ed92b8180e0 data/rocks/worldgen/configured_feature/starfish.json
735c703ef4e0d25978d492d203e7f9979d601524 data/rocks/worldgen/placed_feature/underwater_starfish.json
8eeab96572a35223ec7be23886da2d5ebaef8c47 data/rocks/worldgen/placed_feature/dark_oak_stick.json
c25b0c3bdb96f8e3469481cb787691807bfc3fa3 data/rocks/worldgen/configured_feature/snowy_geyser.json
735c703ef4e0d25978d492d203e7f9979d601524 data/rocks/worldgen/placed_feature/underwater_starfish.json
23b0fb98fdaafef8c0ff7346149d85c7c597e86a data/rocks/worldgen/configured_feature/birch_stick.json
ebaddc15f52cda4480ae94bd7b3d57b0cbbbbdfb data/rocks/worldgen/placed_feature/oak_stick.json
0d79544af5d224d8067936bbfd447f1c533e27b5 data/rocks/worldgen/placed_feature/granite_rock.json

View File

@@ -0,0 +1 @@
// 1.21 2024-09-16T20:01:04.361596285 This Rocks!/Tags for minecraft:block

View File

@@ -0,0 +1,26 @@
// 1.21 2024-09-16T20:01:04.361779283 This Rocks!/Block Loot Tables
847f71960b56bcc92eaebfb2f98818477868e56b data/rocks/loot_table/blocks/soul_soil_rock.json
e9d103438e87429bf353ae9f8c72b986cfb03982 data/rocks/loot_table/blocks/oak_stick.json
0b5f09e47b168ea1605353b441cf84423e998781 data/rocks/loot_table/blocks/red_sand_rock.json
1ed5083da79cd8c0e4629b4906efcdfa7fa13f7b data/rocks/loot_table/blocks/starfish.json
a943852527aa61b311a21312312cb67b0e941593 data/rocks/loot_table/blocks/crimson_stick.json
706890e011d7e0f74f575790ea9e50b55085f256 data/rocks/loot_table/blocks/spruce_stick.json
a4daf8fc7c400e7c9a16f4f1392e29d35dcddc5a data/rocks/loot_table/blocks/ice_rock.json
f34d9890e8353b13952972d71085eeff4bcab1eb data/rocks/loot_table/blocks/cherry_stick.json
6628d84cd87044ac74c6170bf1adb4a0ba3e1451 data/rocks/loot_table/blocks/netherrack_rock.json
95e50bb507ce330ceff8c04eca287457193015bb data/rocks/loot_table/blocks/acacia_stick.json
aa89fb0888b5a8abaef4c713c292ec8076298170 data/rocks/loot_table/blocks/gravel_rock.json
57039ec5e50322cbfde63394dd304315fb670dd7 data/rocks/loot_table/blocks/andesite_rock.json
8cbee37f5a070e21308dc7c0aa9b0beea416b84a data/rocks/loot_table/blocks/sand_rock.json
8224883d1a2ed01334a64216168b1f56c4ed2a90 data/rocks/loot_table/blocks/pinecone.json
c37079a8ac71c003bdda9d8e6a9c4b770c8a8bbc data/rocks/loot_table/blocks/rock.json
f0908425c618a5483354eba1ead6a611f1fa51fb data/rocks/loot_table/blocks/birch_stick.json
cf62804400411aabc548c741280abde43a3d0d59 data/rocks/loot_table/blocks/mangrove_stick.json
71181493ade8079fbb528115025e4a4d345e29e3 data/rocks/loot_table/blocks/end_stone_rock.json
7c6403bd90213358a18381e79395d986daf21a88 data/rocks/loot_table/blocks/diorite_rock.json
2793e53c85ec8bad852f656856298d6e00bfdf85 data/rocks/loot_table/blocks/seashell.json
852ccbedaeaa82a525f8dc435fb7a30a495f842f data/rocks/loot_table/blocks/bamboo_stick.json
fb92bcdad8ef685be9a0604c0dec357992389bbf data/rocks/loot_table/blocks/dark_oak_stick.json
67d948f5d9305509d2a23e13137a14b26eccf6d7 data/rocks/loot_table/blocks/warped_stick.json
31015a9cbb6ab6790056eb16ecb9aff0ad0a03b1 data/rocks/loot_table/blocks/jungle_stick.json
283f96ab013b53fe1569127810bdc838f7746c09 data/rocks/loot_table/blocks/granite_rock.json

View File

@@ -0,0 +1,21 @@
// 1.21 2024-09-16T20:01:04.362147985 This Rocks!/Recipes
b6c911282f64d7f0e0b3f6108bad4dbb3df515a6 data/rocks/advancement/recipes/building_blocks/stone_from_splitter.json
54e83b6dcb86d6449ac69700336bac9f7b308931 data/rocks/recipe/andesite_from_splitter.json
667857ccb79ec82999a28a0ac364ef3abfb1e940 data/rocks/recipe/ice_from_splitter.json
a7c075826da6d91e9a8dd4c45a62e2584252d35a data/rocks/recipe/granite_from_splitter.json
6fc5a499309ae86487bfcdbf1783751d992d7bdc data/rocks/advancement/recipes/building_blocks/diorite_from_splitter.json
5e51953ff415119c283d0b925b2617e7d5b73b40 data/rocks/recipe/soul_soil_from_splitter.json
82d0010e162387ee929082f502d3a4607d84aa8d data/rocks/advancement/recipes/building_blocks/ice_from_splitter.json
9772534185914e9398078ac9a7fcd05f25ade481 data/rocks/advancement/recipes/building_blocks/soul_soil_from_splitter.json
725624c5ea8833ec71fb9f8adf6efe539835120e data/rocks/advancement/recipes/building_blocks/andesite_from_splitter.json
09e9680aafaaa8e6ef2c08063ecdf88f94d1fea1 data/rocks/recipe/stone_from_splitter.json
1c7de94400d03b90df1468e12bf793c073d2063c data/rocks/recipe/netherrack_from_splitter.json
ec73556fd65c48863750db345532e88ba051a7af data/rocks/advancement/recipes/building_blocks/netherrack_from_splitter.json
2979c1cbad1e33cf3eddee36831abab780f11fe4 data/rocks/advancement/recipes/building_blocks/end_stone_from_splitter.json
5ca53887c2cc9e9b22aedfe362821e29ad0d1bdf data/rocks/advancement/recipes/building_blocks/red_sandstone_from_splitter.json
81d37fc236c6c2aa9b53219d4d2be41e9686f0f4 data/rocks/advancement/recipes/building_blocks/sandstone_from_splitter.json
424226dbb76410282b0abf7cab1123a760cf36fe data/rocks/advancement/recipes/building_blocks/granite_from_splitter.json
e6b4864bd839293dcdf078ebdbb1284a378d0862 data/rocks/recipe/diorite_from_splitter.json
ee5e78fedb2ca204462d67398a668f01cba976b3 data/rocks/recipe/red_sandstone_from_splitter.json
d190015248ae4c1bc3fd274e6fbd4cb262300507 data/rocks/recipe/end_stone_from_splitter.json
12d6109625cde783570f8337c4e5ace2804731e6 data/rocks/recipe/sandstone_from_splitter.json

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_andesite_splitter": {
"conditions": {
"items": [
{
"items": "rocks:andesite_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:andesite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_andesite_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:andesite_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_diorite_splitter": {
"conditions": {
"items": [
{
"items": "rocks:diorite_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:diorite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_diorite_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:diorite_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_end_stone_splitter": {
"conditions": {
"items": [
{
"items": "rocks:end_stone_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:end_stone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_end_stone_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:end_stone_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_granite_splitter": {
"conditions": {
"items": [
{
"items": "rocks:granite_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:granite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_granite_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:granite_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_ice_splitter": {
"conditions": {
"items": [
{
"items": "rocks:ice_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:ice_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_ice_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:ice_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_netherrack_splitter": {
"conditions": {
"items": [
{
"items": "rocks:netherrack_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:netherrack_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_netherrack_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:netherrack_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_red_sandstone_splitter": {
"conditions": {
"items": [
{
"items": "rocks:red_sandstone_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:red_sandstone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_red_sandstone_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:red_sandstone_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_sandstone_splitter": {
"conditions": {
"items": [
{
"items": "rocks:sandstone_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:sandstone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_sandstone_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:sandstone_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_soul_soil_splitter": {
"conditions": {
"items": [
{
"items": "rocks:soul_soil_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:soul_soil_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_soul_soil_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:soul_soil_from_splitter"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_cobblestone_splitter": {
"conditions": {
"items": [
{
"items": "rocks:cobblestone_splitter"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:stone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_cobblestone_splitter"
]
],
"rewards": {
"recipes": [
"minecraft:stone_from_splitter"
]
}
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:acacia_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:andesite_rock"
},
{
"type": "minecraft:item",
"name": "rocks:andesite_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:bamboo_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:birch_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:cherry_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:crimson_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:dark_oak_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:diorite_rock"
},
{
"type": "minecraft:item",
"name": "rocks:diorite_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:end_stone_rock"
},
{
"type": "minecraft:item",
"name": "rocks:end_stone_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:granite_rock"
},
{
"type": "minecraft:item",
"name": "rocks:granite_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:gravel_rock"
},
{
"type": "minecraft:item",
"name": "minecraft:flint"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:ice_rock"
},
{
"type": "minecraft:item",
"name": "rocks:ice_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:jungle_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:mangrove_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:netherrack_rock"
},
{
"type": "minecraft:item",
"name": "rocks:netherrack_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:oak_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -2,26 +2,31 @@
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:pinecone",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
]
],
"name": "rocks:pinecone"
},
{
"type": "minecraft:item",
@@ -30,11 +35,7 @@
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
"rolls": 1.0
}
]
}
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:red_sand_rock"
},
{
"type": "minecraft:item",
"name": "rocks:red_sandstone_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -2,35 +2,31 @@
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
]
],
"name": "rocks:rock"
},
{
"type": "minecraft:item",
@@ -39,11 +35,7 @@
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
"rolls": 1.0
}
]
}
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:sand_rock"
},
{
"type": "minecraft:item",
"name": "rocks:sandstone_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,54 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:seashell"
},
{
"type": "minecraft:item",
"conditions": [
{
"chances": [
0.02,
0.022222223,
0.025,
0.033333335,
0.1
],
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune"
}
],
"name": "minecraft:nautilus_shell"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:soul_soil_rock"
},
{
"type": "minecraft:item",
"name": "rocks:soul_soil_splitter"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:spruce_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -2,22 +2,28 @@
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "rocks:starfish",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:starfish",
"function": "minecraft:copy_state",
"properties": [
"variation"
]
}
]
],
"name": "rocks:starfish"
}
]
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "rocks:warped_stick"
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"rolls": 1.0
}
]
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:andesite"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:diorite"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:end_stone"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:granite"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:ice_splitter"
},
{
"item": "rocks:ice_splitter"
},
{
"item": "rocks:ice_splitter"
},
{
"item": "rocks:ice_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:ice"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:netherrack"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:red_sandstone"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:sandstone"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:soul_soil"
}
}

View File

@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
}
],
"result": {
"count": 1,
"id": "minecraft:stone"
}
}

View File

@@ -1,5 +1,8 @@
package eu.midnightdust.motschen.rocks;
import eu.midnightdust.motschen.rocks.datagen.LootTables;
import eu.midnightdust.motschen.rocks.datagen.Recipes;
import eu.midnightdust.motschen.rocks.datagen.Tags;
import eu.midnightdust.motschen.rocks.world.configured_feature.MiscFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.NetherFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.RockFeatures;
@@ -19,6 +22,9 @@ public class RocksDataGen implements DataGeneratorEntrypoint {
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
FabricDataGenerator.Pack pack = fabricDataGenerator.createPack();
pack.addProvider(WorldGenData::new);
pack.addProvider(LootTables.BlockLootTables::new);
pack.addProvider(Tags.Blocks::new);
pack.addProvider(Recipes::new);
System.out.println("out");
}
@Override

View File

@@ -0,0 +1,57 @@
package eu.midnightdust.motschen.rocks.datagen;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.util.RockType;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider;
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.loot.LootPool;
import net.minecraft.loot.LootTable;
import net.minecraft.loot.condition.TableBonusLootCondition;
import net.minecraft.loot.entry.ItemEntry;
import net.minecraft.loot.function.CopyStateLootFunction;
import net.minecraft.loot.provider.number.ConstantLootNumberProvider;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.RegistryWrapper;
import net.minecraft.state.property.Property;
import java.util.Arrays;
import java.util.concurrent.CompletableFuture;
public class LootTables {
public static class BlockLootTables extends FabricBlockLootTableProvider {
public BlockLootTables(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup) {
super(dataOutput, registryLookup);
}
@Override
public void generate() {
RocksMain.rocksByType.forEach((rockType, rock) -> addSilkTouchDrop(rock, rockType != RockType.GRAVEL ? RocksMain.splittersByType.get(rockType) : Items.FLINT));
RocksMain.sticksByType.forEach((stickType, stick) -> addSilkTouchDrop(stick, Items.STICK));
addSilkTouchDrop(RocksMain.Pinecone, Items.SPRUCE_SAPLING);
addSilkTouchOrRareDrop(RocksMain.Seashell, Items.NAUTILUS_SHELL, 0.02f, 0.022222223f, 0.025f, 0.033333335f, 0.1f);
addCopyStateDrop(RocksMain.Starfish, RocksMain.STARFISH_VARIATION);
}
public void addCopyStateDrop(Block block, Property<?>... properties) {
var lootFunction = CopyStateLootFunction.builder(block);
Arrays.stream(properties).forEach(lootFunction::addProperty);
addDrop(block, LootTable.builder().pool(this.addSurvivesExplosionCondition(block,
LootPool.builder().rolls(ConstantLootNumberProvider.create(1.0F)).with(ItemEntry.builder(block)
.apply(lootFunction)))));
}
public void addSilkTouchDrop(Block block, Item alternative) {
addDrop(block, this.dropsWithSilkTouch(block, ItemEntry.builder(alternative)));
}
public void addSilkTouchOrRareDrop(Block block, Item alternative, float... chances) {
RegistryWrapper.Impl<Enchantment> impl = this.registryLookup.getWrapperOrThrow(RegistryKeys.ENCHANTMENT);
addDrop(block, this.dropsWithSilkTouch(block, ItemEntry.builder(alternative).conditionally(TableBonusLootCondition.builder(impl.getOrThrow(Enchantments.FORTUNE), chances))));
}
}
}

View File

@@ -0,0 +1,33 @@
package eu.midnightdust.motschen.rocks.datagen;
import eu.midnightdust.motschen.rocks.RocksMain;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider;
import net.minecraft.data.server.recipe.RecipeExporter;
import net.minecraft.data.server.recipe.ShapelessRecipeJsonBuilder;
import net.minecraft.recipe.book.RecipeCategory;
import net.minecraft.registry.Registries;
import net.minecraft.registry.RegistryWrapper;
import net.minecraft.util.Identifier;
import java.util.concurrent.CompletableFuture;
public class Recipes extends FabricRecipeProvider {
public Recipes(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) {
super(output, registriesFuture);
}
@Override
public void generate(RecipeExporter exporter) {
generateCrafting(exporter);
}
private void generateCrafting(RecipeExporter exporter) {
RocksMain.splittersByType.forEach(((rockType, splitter) -> {
ShapelessRecipeJsonBuilder.create(RecipeCategory.BUILDING_BLOCKS, Registries.BLOCK.get(Identifier.ofVanilla(rockType.name().toLowerCase())))
.input(splitter, 4)
.criterion(FabricRecipeProvider.hasItem(splitter), FabricRecipeProvider.conditionsFromItem(splitter))
.offerTo(exporter, rockType.name().toLowerCase()+"_from_splitter");
}));
}
}

View File

@@ -0,0 +1,31 @@
package eu.midnightdust.motschen.rocks.datagen;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider;
import net.minecraft.registry.RegistryWrapper;
import java.util.concurrent.CompletableFuture;
public class Tags {
public static class Blocks extends FabricTagProvider.BlockTagProvider {
// private static final TagKey<Block> PICKAXE_MINEABLE = TagKey.of(RegistryKeys.BLOCK, Identifier.ofVanilla("mineable/pickaxe"));
// private static final TagKey<Block> AXE_MINEABLE = TagKey.of(RegistryKeys.BLOCK, Identifier.ofVanilla("mineable/axe"));
// private static final TagKey<Block> NEEDS_STONE_TOOL = TagKey.of(RegistryKeys.BLOCK, Identifier.ofVanilla("needs_stone_tool"));
public Blocks(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) {
super(output, registriesFuture);
}
@Override
protected void configure(RegistryWrapper.WrapperLookup arg) {
// List<Block> pickaxeBlocks = new ArrayList<>(DecorativeMain.BLOCKS);
// pickaxeBlocks.removeAll(LogsWithAxes.TYPES);
// getOrCreateTagBuilder(PICKAXE_MINEABLE).setReplace(false)
// .add(pickaxeBlocks.toArray(new Block[0]));
// getOrCreateTagBuilder(AXE_MINEABLE).setReplace(false)
// .add(LogsWithAxes.TYPES.toArray(new Block[0]));
// getOrCreateTagBuilder(NEEDS_STONE_TOOL).setReplace(false)
// .add(DecorativeMain.RockyAsphalt);
}
}
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:acacia_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:acacia_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:andesite_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:andesite_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:andesite_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:bamboo_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:bamboo_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:bamboo"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:birch_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:birch_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:cherry_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:cherry_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:crimson_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:crimson_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:dark_oak_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:dark_oak_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:diorite_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:diorite_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:diorite_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:end_stone_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:end_stone_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:end_stone_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:granite_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:granite_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:granite_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:gravel_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:gravel_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:flint"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:jungle_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:jungle_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:mangrove_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:mangrove_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:netherrack_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:netherrack_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:netherrack_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:oak_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:oak_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:red_sand_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:red_sand_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:red_sandstone_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:sand_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:sand_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:sandstone_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,32 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune",
"chances": [
0.02,
0.022222223,
0.025,
0.033333335,
0.1
]
}
],
"functions": [
{
"function": "minecraft:explosion_decay"
}
],
"name": "minecraft:nautilus_shell"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:soul_soil_rock",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:soul_soil_rock",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "rocks:soul_soil_splitter"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:spruce_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:spruce_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,49 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "rocks:spruce_stick",
"functions": [
{
"function": "minecraft:copy_state",
"block": "rocks:spruce_stick",
"properties": [
"variation"
]
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:stick"
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
},
{
"item": "rocks:andesite_splitter"
}
],
"result": {
"id": "minecraft:andesite",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
},
{
"item": "rocks:cobblestone_splitter"
}
],
"result": {
"id": "minecraft:cobblestone",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
},
{
"item": "rocks:diorite_splitter"
}
],
"result": {
"id": "minecraft:diorite",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
},
{
"item": "rocks:end_stone_splitter"
}
],
"result": {
"id": "minecraft:end_stone",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
},
{
"item": "rocks:granite_splitter"
}
],
"result": {
"id": "minecraft:granite",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
},
{
"item": "rocks:netherrack_splitter"
}
],
"result": {
"id": "minecraft:netherrack",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
},
{
"item": "rocks:red_sandstone_splitter"
}
],
"result": {
"id": "minecraft:red_sandstone",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
},
{
"item": "rocks:sandstone_splitter"
}
],
"result": {
"id": "minecraft:sandstone",
"count": 1
}
}

View File

@@ -1,21 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
},
{
"item": "rocks:soul_soil_splitter"
}
],
"result": {
"id": "minecraft:soul_soil",
"count": 1
}
}