#How to increase damage to entities from specific Damage Type Source

4 messages · Page 1 of 1 (latest)

pallid laurel
#

The joke is that I'm playing with the Improved Mobs mod, which increases the characteristics of mobs depending on the days passed. There is Tremorzilla from the Alex's Caves mod, which is also affected by this, however, its damage remains the same, since its source code is hard-coded and has no direct connection with AttackDamage attributes, except to hit. In general, I want to increase the damage from her beam, but the Entityevent.hurt event itself does not have a method to set a new damage to the mob. Thank God, but the tremorzilla beam has a separate damageType called tremorzilla_beam. At this stage, I could only output to the console that the mob is taking damage from tremorzilla_beam, but I can't increase it and I don't know, can anyone tell me what needs to be done?

sick wagonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

pallid laurel
#

There is my poor code:


EntityEvents.hurt(event=> {
   if(event.getSource().getType() == 'tremorzilla_beam') {
       console.log("Tremorzilla beam is active");
   }
})
green anchor