mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Add support for Tuff
This commit is contained in:
parent
b569b9456e
commit
c3d86ba6c5
@ -12,6 +12,7 @@ Version 2.1.197
|
||||
|
||||
Added Rooted Dirt to experience.yml for Excavation
|
||||
Added Moss Block to experience.yml for Herbalism
|
||||
Added Tuff to experience.yml for Mining
|
||||
Added Calcite to experience.yml for Mining
|
||||
Added Smooth Basalt to experience.yml for Mining
|
||||
Added Block_Of_Amethyst to experience.yml for Mining
|
||||
@ -34,6 +35,7 @@ Version 2.1.197
|
||||
Added Lapis Lazuli Ore to experience.yml for Mining (was missing)
|
||||
|
||||
Added Moss Block to Bonus Drops for Herbalism in config.yml
|
||||
Added Tuff to Bonus Drops for Mining in config.yml
|
||||
Added Amethyst Shard to Bonus Drops for Mining in config.yml
|
||||
Added Calcite to Bonus Drops for Mining in config.yml
|
||||
Added Smooth Basalt to Bonus Drops for Mining in config.yml
|
||||
|
@ -159,7 +159,7 @@ public final class BlockUtils {
|
||||
* @return true if the block should affected by Giga Drill Breaker, false
|
||||
* otherwise
|
||||
*/
|
||||
public static boolean affectedByGigaDrillBreaker(BlockState blockState) {
|
||||
public static boolean affectedByGigaDrillBreaker(@NotNull BlockState blockState) {
|
||||
if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.EXCAVATION, blockState.getBlockData()))
|
||||
return true;
|
||||
return mcMMO.getModManager().isCustomExcavationBlock(blockState);
|
||||
@ -171,7 +171,7 @@ public final class BlockUtils {
|
||||
* @param blockState The {@link BlockState} of the block to check
|
||||
* @return true if the block is a log, false otherwise
|
||||
*/
|
||||
public static boolean hasWoodcuttingXP(BlockState blockState) {
|
||||
public static boolean hasWoodcuttingXP(@NotNull BlockState blockState) {
|
||||
return ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.WOODCUTTING, blockState.getBlockData());
|
||||
}
|
||||
|
||||
@ -181,11 +181,11 @@ public final class BlockUtils {
|
||||
* @param blockState The {@link BlockState} of the block to check
|
||||
* @return true if the block is a leaf, false otherwise
|
||||
*/
|
||||
public static boolean isNonWoodPartOfTree(BlockState blockState) {
|
||||
public static boolean isNonWoodPartOfTree(@NotNull BlockState blockState) {
|
||||
return mcMMO.getMaterialMapStore().isTreeFellerDestructible(blockState.getType());
|
||||
}
|
||||
|
||||
public static boolean isNonWoodPartOfTree(Material material) {
|
||||
public static boolean isNonWoodPartOfTree(@NotNull Material material) {
|
||||
return mcMMO.getMaterialMapStore().isTreeFellerDestructible(material);
|
||||
}
|
||||
|
||||
|
@ -514,6 +514,7 @@ Bonus_Drops:
|
||||
Peony: true
|
||||
Lily_Of_The_Valley: true
|
||||
Mining:
|
||||
Tuff: true
|
||||
Deepslate_Redstone_Ore: true
|
||||
Deepslate_Copper_Ore: true
|
||||
Deepslate_Coal_Ore: true
|
||||
|
@ -382,6 +382,7 @@ Experience_Values:
|
||||
Lily_Of_The_Valley: 150
|
||||
Wither_Rose: 500
|
||||
Mining:
|
||||
Tuff: 10
|
||||
Copper_Ore: 1400
|
||||
Deepslate_Copper_Ore: 1900
|
||||
Deepslate: 30
|
||||
|
Loading…
Reference in New Issue
Block a user