-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
327 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/acacia_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:acacia_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/bamboo_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:bamboo_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...enerated/data/variantchiseledbookshelves/loot_tables/blocks/birch_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:birch_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/cherry_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:cherry_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...erated/data/variantchiseledbookshelves/loot_tables/blocks/crimson_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:crimson_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...rated/data/variantchiseledbookshelves/loot_tables/blocks/dark_oak_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:dark_oak_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/jungle_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:jungle_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...rated/data/variantchiseledbookshelves/loot_tables/blocks/mangrove_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:mangrove_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/spruce_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:spruce_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...nerated/data/variantchiseledbookshelves/loot_tables/blocks/warped_chiseled_bookshelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "variantchiseledbookshelves:warped_chiseled_bookshelf" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/net/xanthian/variantchiseledbookshelves/datagen/LootTableGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.xanthian.variantchiseledbookshelves.datagen; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; | ||
import net.xanthian.variantchiseledbookshelves.block.ChiseledBookshelves; | ||
|
||
public class LootTableGenerator extends FabricBlockLootTableProvider { | ||
public LootTableGenerator(FabricDataOutput dataOutput) { | ||
super(dataOutput); | ||
} | ||
|
||
@Override | ||
public void generate() { | ||
addDropWithSilkTouch(ChiseledBookshelves.ACACIA_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.BAMBOO_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.BIRCH_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.CHERRY_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.CRIMSON_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.DARK_OAK_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.JUNGLE_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.MANGROVE_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.SPRUCE_CHISELED_BOOKSHELF); | ||
addDropWithSilkTouch(ChiseledBookshelves.WARPED_CHISELED_BOOKSHELF); | ||
} | ||
} |