Posted December 28, 201410 yr goods days i have done a gun a colt 1911 model and have notice that i cant shoot fast multiple times a mob whitout lost some shoots but there is no trouble if i shoot wait and shoot again. this could be not notice wen hiting zombies whit swords of arrows coz knock back and time to tense a new arrow will cover the feature ¿ some one knows how many time exactly dure this temporal inmunity am prety sure is more than 1/4 second but less than half or at less a method to meassure it? i need this to adjust time betwin shoots
December 29, 201410 yr They are not temporally immune. They are temporarily immune. And that's handled by the EntityLivingBase class. If you want to ignore it, when your bullet hits an entity, set that entity's hurtResistantTime to 0. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 29, 201410 yr Author complicated We are talking about vanilla minecraft mobs so any modifications wanted must be done in my bullet class I manage to get the entity that receives the damage but nothing so close to set hurttime just a Mobentity.hurtResistantTime; and dont know exactly what this is for soo idont find how to set the mob hurtResistantTime to zero from mi bullet class what I want is set to set hurtResistantTime to zero to the mob at the time of shooting before causing the damage altering just the code in my bullet class Entity Mobentity=movingobjectposition.entityHit; int d=Mobentity.hurtResistantTime; chat.chatr( (EntityPlayer) shootingEntity, "hurtTime"+d+" entity Name="+Mobentity.getName()); it returns : [20:23:16] [Client thread/INFO]: [CHAT] §c hurtTime 0 entity Name=Zombie [20:23:17] [Client thread/INFO]: [CHAT] §c hurtTime 7 entity Name=Zombie [20:23:17] [Client thread/INFO]: [CHAT] §c hurtTime 8 entity Name=Zombie im loading the entity from movingobjectposition.entityHit; but dont have method to set this value any idea how could do this
December 29, 201410 yr Author ñaa just getit EntityLivingBase Mobbentity=(EntityLivingBase) movingobjectposition.entityHit; Mobbentity.maxHurtResistantTime=0; now there is no more loss bullets but i need testing whith non vainilla mobs before know if it won crash
December 29, 201410 yr Non-vanilla mobs still have to extend EntityLivingBase. Unless that person is dumb and wants their mod to crash. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.