Remove redundant recipes, books silk touch changes
This commit is contained in:
parent
470d4a6c1e
commit
0d6d24b748
2 changed files with 1 additions and 9 deletions
|
@ -35,7 +35,7 @@ public class BaseBookshelfBlock extends BaseBlock {
|
|||
@Override
|
||||
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
|
||||
ItemStack tool = builder.getParameter(LootContextParams.TOOL);
|
||||
if (tool != null && tool.isCorrectToolForDrops(state)) {
|
||||
if (tool != null) {
|
||||
int silk = EnchantmentHelper.getItemEnchantmentLevel(Enchantments.SILK_TOUCH, tool);
|
||||
if (silk > 0) {
|
||||
return Collections.singletonList(new ItemStack(this));
|
||||
|
|
|
@ -380,13 +380,5 @@ public class WoodenComplexMaterial extends ComplexMaterial {
|
|||
.addMaterial('#', getBlock(BLOCK_SLAB))
|
||||
.build();
|
||||
}));
|
||||
addRecipeEntry(new RecipeEntry("shulker", (material, config, id) -> {
|
||||
GridRecipe.make(id, Blocks.SHULKER_BOX)
|
||||
.checkConfig(config)
|
||||
.setShape("S", "#", "S")
|
||||
.addMaterial('S', Items.SHULKER_SHELL)
|
||||
.addMaterial('#', getBlock(BLOCK_CHEST))
|
||||
.build();
|
||||
}));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue