Posted November 7, 20195 yr I'm trying to check if the Entity was hurt by the player via LivingHurtEvent, but i'm not sure what i can use to get the player as a damage source.
November 7, 20195 yr 2 hours ago, nil said: but i'm not sure what i can use to get the player as a damage source. The event has a DamageSource field. The DamageSource has a method called getTrueSource which will return the Entity that caused the damage. Check if it is an instance of EntityPlayer. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.