How would I increase the damage taken on the EntityDamageEvent hook. I tried the following but it looks like it doesn't work. Code: player.setLastDamage( player.getLastDamage() * 3 );
I don't quite understand your problem, why would you set the last damage, i would use Code: player.setDamage(player.getLastDamage() * 3); instead, so it will change the damage given by the player or the entity to the new value, which is the last damage taken times 3. Hope it work. -Nic
well in this case you have to cast the entity into a player or a livingEntity, then use setDamage() or setHealt()
@Eos It does: Code: @EventHandler public void onDamage(EntityDamageEvent event) { if(event.getEntity() instanceof Player) { Player p = (Player)event.getEntity(); event.setDamage(p.getLastDamage() * 3); return; } }