mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-26 19:18:37 +01:00
Implement new breaker API
This commit is contained in:
parent
97da84c192
commit
e4cd18b6e4
@ -94,7 +94,7 @@ public abstract class AbstractBlockBreaker extends BlockBreaker {
|
|||||||
int tickDifference = currentTick - startDigTick;
|
int tickDifference = currentTick - startDigTick;
|
||||||
float damage = getDamage(tickDifference);
|
float damage = getDamage(tickDifference);
|
||||||
if (damage >= 1F) {
|
if (damage >= 1F) {
|
||||||
entity.getWorld().getBlockAt(x, y, z).breakNaturally(getItemStack());
|
configuration.blockBreaker().accept(entity.getWorld().getBlockAt(x, y, z), getItemStack());
|
||||||
return BehaviorStatus.SUCCESS;
|
return BehaviorStatus.SUCCESS;
|
||||||
}
|
}
|
||||||
int modifiedDamage = (int) (damage * 10.0F);
|
int modifiedDamage = (int) (damage * 10.0F);
|
||||||
|
@ -203,7 +203,7 @@ citizens.commands.npc.remove.removed-all=You permanently removed all NPCs.
|
|||||||
citizens.commands.npc.remove.removed=You permanently removed [[{0}]].
|
citizens.commands.npc.remove.removed=You permanently removed [[{0}]].
|
||||||
citizens.commands.npc.rename.renamed=You renamed [[{0}]] to [[{1}]].
|
citizens.commands.npc.rename.renamed=You renamed [[{0}]] to [[{1}]].
|
||||||
citizens.commands.npc.respawn.delay-set=Respawn delay set to [[{0}]] ticks.
|
citizens.commands.npc.respawn.delay-set=Respawn delay set to [[{0}]] ticks.
|
||||||
citizens.commands.npc.respawn.describe=Respawn delay is currently [[{0}]].
|
citizens.commands.npc.respawn.describe=Respawn delay is currently [[{0}]] ticks.
|
||||||
citizens.commands.npc.select.already-selected=You already have that NPC selected.
|
citizens.commands.npc.select.already-selected=You already have that NPC selected.
|
||||||
citizens.commands.npc.script.invalid-file=Unknown or unavailable script ''[[{0}]]''.
|
citizens.commands.npc.script.invalid-file=Unknown or unavailable script ''[[{0}]]''.
|
||||||
citizens.commands.npc.scoreboard.added-tags=Added these tags: [[{0}]].
|
citizens.commands.npc.scoreboard.added-tags=Added these tags: [[{0}]].
|
||||||
|
Loading…
Reference in New Issue
Block a user