# [solved][1.16.5]How to make arrow faster but not incrase its damage?

## Recommended Posts

Hello, I have made enchantment that accelerates arrow fired by crossbow, but not only this increases speed, this also increases damage, I want it to have the same damage as before, how can i make damage the same?
What i'm doing is when firing arrow, detect it using EntityJoinWorld event and changing its velocity

```if(enchants.containsKey(TCombatEnchants.SNIPE.get())){
double damage = abstractArrowEntity.getBaseDamage();
Vector3d vector3d1 = shooter.getUpVector(1.0F);
Quaternion quaternion = new Quaternion(new Vector3f(vector3d1), 0, true);
Vector3d vector3d = shooter.getViewVector(1.0F);
Vector3f vector3f = new Vector3f(vector3d);
vector3f.transform(quaternion);
Vector3d originalVector = abstractArrowEntity.getDeltaMovement();
double length = originalVector.length() * 10;
abstractArrowEntity.setDeltaMovement(vector3f.x()*length, vector3f.y()*length, vector3f.z()*length);
abstractArrowEntity.hurtMarked = true;
abstractArrowEntity.setBaseDamage(damage);
}```

Edit:I have solved it by saving length of original velocity and setting damage when it hit entity to its base damage multiplied by saved length

Edited by tmvkrpxl0
solved
##### Share on other sites

28 minutes ago, tmvkrpxl0 said:

how can i make damage the same?

I think that's not possible because the damage from the arrow depends on the arrow velocity
that mean if you increase the speed of the arrow, the damage is also increased

Edit: check out the method onEntityHit in the AbstractArrowEntity class for more information

Edited by Luis_ST
##### Share on other sites

I have succeed by saving length of original velocity and setting damage when arrow hit something to arrow's base damage multiplied by saved length

##### Share on other sites

• tmvkrpxl0 changed the title to [solved][1.16.5]How to make arrow faster but not incrase its damage?

## 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.

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

• ### Posts

• Is it possible to recover an entire folder full of files that were accidentally deleted while I was deleting a single file?
• Recovering lost funds from online scams has been a daunting journey, and my ordeal with Rapid Digital Recovery underscores the importance of vigilance and education. I recently managed to recover over \$338,000 thanks to their expertise, and sharing my story is crucial for raising awareness about these deceitful practices. I fell victim to a sophisticated scam involving fake forex and binary options investment platforms. The scammers created a facade of legitimacy with professional websites, persuasive pitches, and false assurances of high returns. They promised substantial profits and used high-pressure tactics to get me to invest large amounts of money. It wasn’t until I noticed red flags and attempted to withdraw my funds that I realized I had been duped. Rapid Digital Recovery proved to be a lifeline in this situation. Their team worked diligently to investigate the fraud, trace my funds, and liaise with financial institutions to secure the recovery. Their expertise in handling such cases was invaluable, and their efforts ultimately helped me reclaim a significant portion of my lost assets. However, I learned that while these services can be effective, they are not a guaranteed solution. Success depends on various factors, including the nature of the scam and the cooperation of involved parties.  This experience has underscored the critical need for education about online scams. Scammers use a range of tactics to deceive individuals, from fake testimonials to promises of guaranteed returns. Understanding these tactics and recognizing red flags can prevent others from falling into the same trap. Researching investment opportunities thoroughly and verifying the legitimacy of platforms before committing any money are crucial steps. I’ve come to realize that the best way to protect oneself is through education and awareness. By being informed about how scams operate and approaching investments with caution, individuals can safeguard their finances and avoid similar pitfalls. My experience with Rapid Digital Recovery highlights both the importance of being proactive in preventing scams and the value of having a recovery strategy in place if things go wrong. Sharing my story is a way to help others avoid the same mistakes and contribute to a safer online environment.
• It looks like you have a problem one or more of your `.toml` files.
• Make a test without modernfix If there is no change, also add the latest.log (logs-folder)

• ### Who's Online (See full list)

• There are no registered users currently online
×

• #### Activity

×
• Create New...