[Change] Increased Durability of Anvils(quiqueck/BetterEnd#74)
This commit is contained in:
parent
dfb1d34bb9
commit
fc8e860369
1 changed files with 2 additions and 2 deletions
|
@ -120,13 +120,13 @@ public abstract class BaseAnvilBlock extends AnvilBlock implements BlockModelPro
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxDurability() {
|
public int getMaxDurability() {
|
||||||
return 3;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockState damageAnvilUse(BlockState state, RandomSource random) {
|
public BlockState damageAnvilUse(BlockState state, RandomSource random) {
|
||||||
IntegerProperty durability = getDurabilityProp();
|
IntegerProperty durability = getDurabilityProp();
|
||||||
int value = state.getValue(durability);
|
int value = state.getValue(durability);
|
||||||
if (value < getMaxDurability() && random.nextInt(8) == 0) {
|
if (value < getMaxDurability() && random.nextInt(10) == 0) {
|
||||||
return state.setValue(durability, value + 1);
|
return state.setValue(durability, value + 1);
|
||||||
}
|
}
|
||||||
value = state.getValue(DESTRUCTION);
|
value = state.getValue(DESTRUCTION);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue