Skip to content

Commit 173d9a9

Browse files
committed
feat[sculk_jaw]: 幽匿颚口的掉落与经验
1 parent 7865a85 commit 173d9a9

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
package org.polaris2023.wild_wind.common.block;
22

3+
import net.minecraft.core.BlockPos;
4+
import net.minecraft.world.entity.Entity;
5+
import net.minecraft.world.item.ItemStack;
36
import net.minecraft.world.level.block.Block;
7+
import net.minecraft.world.level.block.entity.BlockEntity;
8+
import net.minecraft.world.level.block.state.BlockState;
9+
10+
import javax.annotation.Nullable;
411

5-
/**
6-
* @author : baka4n
7-
* {@code @Date : 2025/02/12 16:23:45}
8-
*/
912
public class SculkJawBlock extends Block {
1013
public SculkJawBlock(Properties properties) {
1114
super(properties);
1215
}
16+
17+
@Override
18+
public int getExpDrop(BlockState state, net.minecraft.world.level.LevelAccessor level, BlockPos pos,
19+
@Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) {
20+
return 5;
21+
}
1322
}

src/main/java/org/polaris2023/wild_wind/datagen/loot/ModBlockLootSubProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void generate() {
6262
this.dropSelf(ModBlocks.STRIPPED_BAOBAB_LOG.get());
6363
this.dropSelf(ModBlocks.BAOBAB_WOOD.get());
6464
this.dropSelf(ModBlocks.STRIPPED_BAOBAB_WOOD.get());
65-
this.dropSelf(ModBlocks.SCULK_JAW.get());
65+
this.dropWhenSilkTouch(ModBlocks.SCULK_JAW.get());
6666
this.dropSelf(ModBlocks.DUCKWEED.get());
6767
this.dropSelf(ModBlocks.GLISTERING_MELON.get());
6868
this.dropSelf(ModBlocks.POLISHED_STONE.get());

0 commit comments

Comments
 (0)