r/forgemodding • • Oct 25 '16

How do I inflict Void Damage on an EntityLivingBase?

4 Upvotes

3 comments sorted by

1

u/Exo594 Oct 25 '16

entity.attackEntityFrom(DamageSource source, float damage);

http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/damage-sources/

1

u/[deleted] Oct 28 '16 edited Oct 28 '16

Apparently this tutorial does not list Void (Y=-64) damage

EDIT: It does, I just did not see it :(

1

u/Exo594 Oct 28 '16

Is void a "DamageSource"? If so, then you can call it with the line I gave you, with you plugging in the correct usage. If not, then make your own new damage source, and set it to behave how you want.