Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 

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.

  • 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

  • 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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.