mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Damage from failed Tree Feller is now random (but never kills)
This commit is contained in:
parent
505df87014
commit
feb073d159
@ -11,6 +11,7 @@ Version 2.0.00-dev
|
|||||||
+ Added Ocelots to Taming XP tables.
|
+ Added Ocelots to Taming XP tables.
|
||||||
! Changed Tree Feller to hand out 1/4 of normal XP for each JUNGLE LOG block it fells
|
! Changed Tree Feller to hand out 1/4 of normal XP for each JUNGLE LOG block it fells
|
||||||
! Changed Tree Feller to only fell trees if you have enough durability
|
! Changed Tree Feller to only fell trees if you have enough durability
|
||||||
|
! Changed Tree Feller to cause injury if your axe splinters from a failed Tree Feller attempt
|
||||||
! Changed invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour
|
! Changed invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour
|
||||||
! Changed Ignition to add fire ticks rather than replacing them.
|
! Changed Ignition to add fire ticks rather than replacing them.
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ public class WoodCutting
|
|||||||
player.sendMessage(ChatColor.RED+"YOUR AXE SPLINTERS INTO DOZENS OF PIECES");
|
player.sendMessage(ChatColor.RED+"YOUR AXE SPLINTERS INTO DOZENS OF PIECES");
|
||||||
|
|
||||||
if(player.getHealth() >= 2)
|
if(player.getHealth() >= 2)
|
||||||
Combat.dealDamage(player, player.getHealth()-1);
|
Combat.dealDamage(player, (int)(Math.random() * (player.getHealth()-1)));
|
||||||
player.updateInventory(); //Not sure if needed
|
player.updateInventory(); //Not sure if needed
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user