Posted July 23, 201312 yr Hi everyone, can any of you tell me which event is fired as a EntityPlayer attack, regardless of whether he hits something? Thanks!
July 23, 201312 yr i dont think theres any how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 23, 201312 yr LivingAttackEvent then a check for EntityLivingBase as an instanceof EntityPlayer should do.
July 23, 201312 yr LivingAttackEvent is only posted IF something takes damage, he wants basicly a "onPlayerLeftClick" event how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 23, 201312 yr Right, my bad Then i guess you can use isSwingInProgress and the CombatTracker in EntityLivingBase to simulate that.
July 23, 201312 yr dont worry, i looked at it too hoping it would be that or PlayerInterractEvent how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 23, 201312 yr Author LivingAttackEvent is only posted IF something takes damage, he wants basicly a "onPlayerLeftClick" event Yes, it is what exactly I mean.
July 23, 201312 yr yeah but that doesnt exists how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 24, 201312 yr yeah. ..... yeah ok it kinda is but i wouldnt recommended if its for big server because its going to be updating a hell of a lot how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
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.