Artisanrative 2 part of the tool characteristics and reinforcement description and calculation (not suitable for novice)

Foreword

I do n’t know if you are curious about the unclear characteristics of the craftsmanship and what cat tiredness is hidden after strengthening. The author has suddenly wondered the operation of these characteristics recently.No matter how metaphysics.It is better if it can be helpful to build a variety of builds.

The suitable reading object in this article should be friends who are interested in the data party or are interested in specific data. Novice players and friends who are not interested in specific operations may not be suitable for reading this article.

One of the tasks of this article is to translate the source code logic in a nearly equivalent form into a natural language, so that friends who are inconvenient to read the source code but are interested can understand its specific operations.After reading this article, you should be able to calculate the durability, speed, damage, etc. of the tool under the condition of given attributes and characteristics.During the conversion process, there may be a slight difference between the logic of the source code. If the calculation results are caused by error due to the differences, please forgive me. At the same time, it is recommended that friends who have the conditions to read the source code read the source code.

Details related to the tool attributes in the source code may not be explained.

You need to pay attention to two points before reading this article, otherwise readers may be confused during the reading process:

Although the characteristics and strengthening are different concepts in the Soul 2, they are very similar to the timing of the internal operation. Therefore, in most cases in this article, the characteristics and strengthening of the soul 2 will be mixed with each other."Features" called.

For the convenience of writing, this article stipulates a term "primitive": "Primitive" means that this value is not affected by the characteristics of the tool.For example, if you do not destroy the pick and dig a block, although it is not durable, this article believes that the original damage value is 1.When the original value appears in the article, the author will specifically point out this.

Some prerequisites for discussion (unless there are special explanations):

All tests are based on the artisan soul version 1.12.2-2.13.0.183, 1.12.2 The newer soul version should be applied, and other Minecraft versions of the artisan soul 2 cannot guarantee applicability

Use tools in survival mode

The tool is directly located in the player's item bar, and the armor and the deputy are also included (but not the item bar or extended item bar of the backpack)

Tools are used in appropriate occasions

Involved in the calculation of seconds, convert it with TPS = 20

The random distribution type defaults to the uniform distribution, if there are other distributed types, it will specifically explain

There is no gain effect provided by the soul outside

This article believes that the state effect is equivalent to Amplifier+1

The artisan soul that has been changed by the magic is not responsible for explaining

There may be some deviations that the results may be caused by the conditions I have not noticed. Welcome to add

Because this article has been updated, some errors or considerations will be corrected after the contents of incompetence. Friends who read this article have recommended to check the historical changes to check whether there is a correction.

I wrote the tutorial for the first time, and I haven't learned Java. I look at the source code with a little lame C and C ++ experience. I only stay on the level of understanding the high -level code.If you have any errors or unclear, please forgive me.

Friends who are good at or like to read the source code are welcome to help improve.

If you have better typesetting suggestions, you are welcome to make it.

As this tutorial is increasingly larger and the reading experience may decline, readers can consider here and make good use of the outline function for navigation.

The energy may not be updated in time, please forgive me.


Soul Soul 2 strengthened

rapidly

Source code transmission door

For digging tools, the basic speed of each red stone can increase:

If the current excavation speed is less than 15, increase 0.15-0.05 * Current basic speed / 15

If the current excavation speed is greater than 15 less than equal to 25, increase 0.1-0.05 * (current basic speed -15) / 10

If the current excavation speed is greater than 25, an increase of 0.05

For the rapids of each level full of redstone, an additional 0.5 basic speed

The basic speed mentioned here is the speed on the NBT, not the speed of the panel. If the reader is confused about this, it is recommended that the reading mechanism describing the attribute correction part

For close -body weapons, each level increases by 20% of the attack speed

The gain of the bow is not explained for the time being

Sharp

Sharp portal

The basic attack damage of each quartz increase is:

If the current basic attack is less than 10 points, increase 0.05-0.025 * Current basic attack / 10

If the current basic attack is greater than 10 less than equal to 20 points, an increase of 0.025-0.01 * Current basic attack / 20

If the current basic attack is greater than 20 points, increase 0.015

Each level of sharpness, an additional 0.25 basic attack


Soul 2 features

Excavation

Momentum (cobalt)

Source code transmission door

After the motivation tool excavation block, it will give you a hidden buff, the duration is 300/the original speed of the tool (that is, the speed on the panel).The speed gain that the power provides players to players is the original speed*(status effect level/80) points

That is to provide up to 40% of the original speed gain

Assuming that the player's final speed is K times of the original speed, the hardness of the blocks excavated by the player should be less than 10k, otherwise the player cannot destroy this square before the effect of this state disappears, and this gain will be broken.

Lightweight (cobalt)

Source code transmission door

Improve the excavation speed 10%

Increase 0.1 attack speed coefficient

Increase the speed of the primitive string by 10%

Stonebound (Adate)

Stone binding source port transfer door

The speed gain is IN ((maximum durability -current durability) / 72 + 1) * 2

Thank you @SAM0324

Xishui (Aquadynamic) (sea spar)

Xishui source code transmission door

Define a concept "collaborative effect"

Initial collaboration effect = 1

If the player is in water (when you touch the water, you may not be soaked in the water), the synergy effect will increase by 5.5

If the world where the player is in the rain is raining, the synergy effect will increase the rainfall value of the ecosystem of the player / 1.6 points

Hi Shuishui increases the mining speed of the original speed*Coordinated effect point

The rainfall value of the original ecological group can be found here

After reading the annotation, the author originally wanted to weaken the speed punishment of underwater mining, but now it is only necessary to soak water, just.EssenceEssence

UNATURAL

Super Natural Source Source Port

Increase tool mining level -block mining level point mining speed (will not increase negatively)

Crumbling (Cavaliers Slim)

Capital source code transmission door

When the tugging blocks can be excavated without tools, 50% of the original speed gain is given to players

DepthDigger

Depthdigger source code portal

The characteristics appear in the code, but it does not seem to be installed in the game, but I am a little familiar with this feature.

Increase (72 -Y coordinate of digging blocks)/30 points of mining speed

Autoosmelt (flame wood)

Automatic melting source port transfer door

A characteristic that makes the author feel depressed, the author does not have an accurate answer to this feature. Below is only the author's understanding of the source code

The following description is established only when the furnace burning results are excavated:

1. When destroying the block, the amount of the drop of its drop in the furnace furnace is the same as that of the original number that should be dropped.

2. If you exist the time to transport the enchantment (the reinforcement of the time is to give the tool to the time to attach the magic), the number of drops is {from time to time, the number of drops of the drop in time × [0, time transport level]Minecraft's time -loading formula is different.The linkage of automatic melting and time transport can be closed by configuring the AutoSMeltfortuneINEINTERACTION item.

3. Automatic melting will also drop experience. If the experience of the furnace formula is less than 1 (for example, the experience of burning each stone as a stone is 0.1), then the experience of (experience of the furnace formula) may fall a little experience, otherwise it will be followed by according to it.The number of experiences of the furnace formula drop

However, when the author tests the test, it is found that the results are not very consistent with the author's understanding.The author first gave Hozi the time luck i and automatic melting, and then used it to minimize the iron. There were two results: drop one iron ingot and two iron ingots.However, the number of two iron ingots is more; the author also uses Crafttweaker to add a liquid furnace to the furnace to furnish into a diamond formula, and then use the above pick to dig the green stone ore.Only the number of lapisi stones dug out from Shiyun Ichi is much less than the diamonds dug out of the aforemention.

Combat

Coldblooded (Ma Yuling)

Source code transmission door

The official description of cold blood is very simple. Was it 1.5 times the injury of full blood, but here is a greasy head. The 1.5 damage of the cold blood is doubled.

After reading the source code here, I know that this 1.5 times turned the original damage

For example, a small wooden sword that attacked a 4 -point basis, brought purgatory and cold -blooded "non -lower bound creatures", the damage is 4*1.5+4 = 10 points instead of (4+4)*1.5

Insatiable (Ma Yuling)

Source code transmission door

After holding a greedy tool to attack the creature, it will give you a 5 × 20 hidden DEBUFF (it is so specified). Each attack of this state is raised at level 1 and the highest level is 10.

This DEBUFF can drink milk to dispel it, but the time for you to drink bucket milk is not much different when it disappears.EssenceEssence1/3 of the damage increases this state effect level

Damage of tools increases 1/3 of this state effect level (take down)

Conclusion: greedy increased injury at 10/3 points

So if you have an endless set of immune Debuff, then this feature cannot take effect

Crude (Crude)

Source code transmission door

Level characteristics, maximum level 3

When the number of target defense points is not greater than 0, it will cause an additional 5%× rough level damage to the target (calculated based on the original damage)

Therefore, even if the normal zombie without a armor is not injured

Jagged (sea spar)

Source code transmission door

The attack gain is IN ((maximum durability -current durability) / 72 + 1) * 2, the same formula as the stone binding

Thank you @SAM0324

Splintering (bone)

Broken Source Code Portal Door

Each attack is given a 40 -engraved Debuff, each attack rises by 1, the highest level 5

Attack damage to the target increases this debuff level * 0.3 points

So the highest injury increase 1.5 points

Fraction (bone) (bone)

Source code transmission door:

https://github.com/slimeknights/tinkerSconstruct/blob/1.12/main/java/slimeknights/tring/traitbonusDamage.java

https://github.com/slimeknights/tinkersconstruct/blob/1.12/main/java/slimeknights/tools/tinkertraits.java7666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666,

Added tool NBT attack 1.5 points

There is no sense of presence on the source code, and there is no specifically providing a file for it

Hellish (Hellish) (Hell Rock)

Purgatory source code portal

The description on the manual is an additional damage to "non -lower biology". This description is inaccurate

In fact, the effect of this characteristic is to cause an additional 4 points of damage to creatures that are not immune to fire.

Prickly (Fairy palm)

Specific source code transmission door

The damage of penetrating armor that will not be modified by the status effect and curse is caused by the source of damage

The damage value is 0.5 + max (-0.5, a random number that obeys the normal distribution of standards)

Spike (SPIKY) (cactus)

Stomatology source code portal

For this feature, the author also has no accurate answer, and friends who want to and informed friends to discuss it here.

After reading the source code, the author's conclusion to the spiny thorns is:

When the player is injured, half of the damage to the attacker is harmful to the attacker.

When the player is blocked, it causes panel damage to the attacker, nails and damage immunity

Can't be self -injury, no anti -injury thorns damage

But it is not measured, some experimental data are as follows:

The test target is spiders, using two weapons of large swords and combat brands for testing. The combat brand is in a blocking state

Experiment Series Big Sword Panel damage = "Box-sizing: border-box; padding: 6px 13px; Border-Bottom: 0px; Border-Top-COLOR: RGB (223, 226, 229);; Border-heorder-heorder-level-color: RGB (223, 226, 229); margin: 0px; "> Battlepan panel damage Anti -injury to spiders (blocking status) 143.547.0265.5611.0387.5815.04109.31018.6 (Test the upper limit of the spider life is 20) from this table, it can draw a conclusion, full anti -injury =Panel damage* 2-1 (18.6 is the damage after the attenuation of the critical damage 15 of the damage 19)

I feel very depressed about this, I do n’t know where to understand, and even doubt the author compile it with a private goods code.

PS: In the old version of the artisan soul of 1.12, the formula of the spiny thorns is different. The damage is 1/3 of the damage of the tool panel

Flammable (lava Slim)

Crystal source code transmission door

Lighten the attacker for 3 seconds when injured

When blocking, if the hand holder is damaged by the flame, it will cause 3 points of original damage to the tool and block the flame damage; if the hand holder is damaged from other creatures, the attacker will be ignited for 3 seconds for 3 seconds

Superheat (lava Slim)

Overheating source code portal

When the target of the attack is on fire, increase the original damage by 30%

Holy (silver)

Holy source port delivery door

5 additional damage to the undead creature and giving them weak i 50 engraved

Poisonous (lead)

Toxic source code transmission door

After attacking a creature, give him poisoning i 101?

Heavy (lead)

Heavy source teleportation door

When the player's master or the deputy holding tool is with this characteristic, set the player Attributes to retreat to 1, that is, it will not be repelled

Sharp (Steel)

Rui source code transmission door

After successfully attacking the creature, give the creature a level 1 DEBUFF 121

The BUFF effect is that every time the remaining amount of the effect is 15, the state effect level of the creature is inconsistent with the damage of the state effect level/3 points.

Perseverance (STiff) (Steel)

Persevere source code transmission door

When the player is damaged, it will be reduced by 1 damage, and the damage after reduction is at least 1 point.

Durable

Ecology (ecological (wood)

Source code transmission door

Determine every 1/800 may have a little durability of 1/800.

It can be approximately understood as an average of 40 seconds to reply to 1 point durability

Cheapskate & cheap (Cheap)

门 Source code transmission door, cheap source code transmission door

出来: After the tool manufacturing, the maximum durability is reduced by 20%, and it will not be lower than 1 point. This feature directly affects the data on the NBT

Cheap: Tools recover 5% of the original recovery value when they are durable

Petramor

Love Stone Source Code Portal

When digging "Stone", there is a 10% chance to reply to 5 o'clock durability

"Stone" not only refers to stones, but the rocks that share the name space of the original and stones are also included. To be precise, it is material.Rock

The official description mentioned the word "absorption", in fact, there are not few things to be dug.

So as long as you bring a reinforcement 3, you can dig the Anshan rock brush durability?Intersection

Duritos (obsidian) (obsidian)

The long -lasting source code transmission door

Each time the original damage value is generated, the 10% probability increases the damage of the original damage value (if other characteristics are twice the loss), the 40% probability reduces the damage of the original damage value (if other features are not considered, it is not that it is notLost), otherwise it will be damaged and settled normally

Dense (bronze)

The dense source code transmission door

Each time the original damage value is generated, there may be (0.75 * (1 -current durability/maximum durability)^3, which reduces the damage value by half of the original damage value (taken down) and at least 1 point.

other

Alien (Alien) (last stone)

Alien source code portal

A total of 800 rewards for aliens are 800 times. At the first update, the tool has determined the distribution of these 800 times on the 3 attributes, and they are randomly distributed to the three attribute rewards.

Each reward of aliens may be:

1 point to maximum durability

0.007 point excavation speed

0.005 attack damage

Every 72 (3.6 seconds) is a reward cycle. Each cycle takes turns to reward one attribute, and immediately take effect on the tool:

durable

Excavation speed

Attack damage

There are a few unbelievable additional explanations:

If the number of rewards for a reward cycle but corresponding attributes has been used, then nothing can be done by this reward cycle instead of applying the next round of rewards.

When the reward cycle is rewarded but the player is using this tool to excavate the square, this reward cycle (the round is also skipped), but it will not consume the remaining number of rewards for the reward.For example, if the reward cycle is to reward the excavation speed, the player is digging the block. The reward cycle is skipped, and the number of remaining rewards of the excavation speed will not decrease, but the attack damage will be the reward next time.

Although the unit is the number of rewards at the time of the explanation, the reward pool stored in the NBT is actually the value of various attributes.

Summary: at least 48 minutes of reward is completed; the average alien average reward is 266.67 points durable, 1.867 points of excavation speed, 1.333 points attack damage damage damage damage damage

EnderFerence

Shadow source code transmission door

When successful attacking creatures, a 100 -engraved level 1 hidden debuff is given to the creature. This Debuff will cancel the EndertEleport event (the original version is to prevent the last filmmaker from transmitting, and the module organisms that use this event should also work)

The last stone fry

Aridiculous (Hell Rock)

Good Summer Source Code Portal

Define a concept "Summer"

Summer at the excavation block = 1.25^(3*(3*(3*(0.5+ blocks of the temperature of the ecological group in the block-the rainfall of the ecological group in the block))-1.25-rain

The summer heat of the player = 1.25^(3*(3*(0.5+ the temperature of the ecological group in the player-the rainfall of the ecological group in the player)-1.25-rain

If the world is raining, Rain = the rainfall of the ecological group there, otherwise Rain = 0

There are two effects of good summer summer

Player mining speed increases the summer heat at the excavation block of the original mining speed/10 times

Player attacks additional 2*Summer damage at the player

Summer may be negative, so the temperature and rainfall value of the original ecological group can be produced on the mining speed and attack damage.

Magnetic (iron)

Magnetic source code transmission door

Level characteristics, maximum level 3

When the player successfully attacks a creature or destroy a block, give the player a hidden buff for 30 engraved

During the effective period of status effect, attract a player -centered side length to (1.8+ state effect level × 0.3) × 2 falling items

Baconlicious (raw iron)

Delicious Bacon Source Code Transmitting Door

After destroying a block, there is a 0.5 % probability to get a bacon

After killing a creature, a 5 % probability gets a bacon

Delicious (Tasty) (raw iron)

Delicious source code transmission door

Players eat once a tool to restore 1 food level, consumption tools are durable at 5 points (can be affected by other characteristics)

Conditions for triggering consumption:

Players must hold this tool

The tool is not damaged and has enough durability to make a consumption

Player's food level is not full

The basic probability of player consumption is 1%

If the player is injured, the probability increases by 2%

If the player's food level is less than 10, the probability increases (10-food level) × 0.25%-saturation × 0.5%

There is a cumulative probability of each moment that makes players trigger food

Slimey (Slimey)

Sticky source code transmission door

After each destroying blocks or killing the creature, there is a 0.33% probability to generate a 1 -level Slim of the corresponding color type

The specific position is:

X+0.5, Y, Z+0.5 at the damaged block

At the point of killing the creature X, Y, Z

Infitool

INFITOOL source code transmission door

Infital

The effect of INFITOOL is as follows:

Tools are durable to 999999

Tool NBT attack is set to 999999

Tool NBT mining speed is set to 9999999

The tool enhanced slot is set to 0

No rename tools are not allowed

When the tool is suffered by the original injury, set the damage value to 0

But, there is no priority of this stuff, so you can do something, such as engraving a greedy up, and it will fall when you take a picture of people;Personally, I should give this feature a lower priority

Squeaky (sponge) (sponge)

Soft source code transmission door

Two effects

Collect enchanting accurately on the tools

When the player causes damage, set the damage to 0

Regarding the second point, an example of an extreme point, if there is such a sword: Ma Yuling blade+ Ma Yuling handle+ sponge handle, the characteristics order is soft → greedy → cold blood, then this sword can still be inWhen triggering greed and cold blood, it is necessary to meet you and want to listen to rubber duck calls and want to make damage.

Splinters (wood) (wood)

Splinters source code transmission door

The characteristics that once existed on the wood, the author said that this characteristic confusing the newcomer, has been removed in the new version of the new version of the artisan soul

After successfully attacking or destroying the square, there is a chance of 1/150 to cause 0.1 points to ignore the damage of damage and armor -piercing damage.

Established (copper)

Lao Cheng source code transmission door

If the player holds the tool holding tools contains this characteristic:

After the player kills the creature,

If you do n’t have a drop of experience, 3% of the opportunity will drop 1 experience

If you originally dropped experience and set it to EXP, the final drop of 1 + four houses and five entry {1.25 × Exp + a 0 ~ 1 random decimal × 0.25} point experience

After the player digs a square,

If you do n’t have a drop of experience, there will be 3% of the opportunity to add 1 point of experience to drop

If you originally dropped experience, 33% of the chances of adding 1 point of experience drop

Shocking (amber gold)

Shock Source Code Transmitting Door

Define two concepts:

Charging Energy: Tools with this feature will have an energy value. Some actions will charge the tool. When the energy value is greater than or equal to 100, the tool is complete, and the energy value is less than 100, that is, the energy value is not complete.The way of filling energy is attack, excavation and movement

Release Energy: The energy value is zero after the charge is completed and the energy value is zero after attacking or mining the trigger effect

Every time the attack is successful,

If it has been charged, it will cause an additional 5 points of ignoring damage immunity to the target, giving players 50 at the speed VI, and release energy

If the filling energy is not complete, the energy of the charge (the degree of cooling of the 15 * attack (the maximum is 1)) points

Every time I dig out,

If it has been charged, give the player 50 urgent III, and release energy

If the charge is not complete, it can be charged at 15 points

Under the handheld tool, every 5 minutes, if the charge is not complete,

If the distance of the player's movement within the first 5 moments, that is, √ (dx^2+dy^2+dz^2) less than 0.1, then do not charge if the player moves in the first 5 of the player.

Otherwise, it will be charged (the distance between the player's movement in the first 5 pits) points

Thank you @qq sauce 81960 instructions

Research (Writable) (paper)

Reading source port delivery door

Level characteristics, maximum level 3

Add 1 strengthening position

There is nothing to say, but in order to finish (qiang), the whole (po) (zheng), let's mention it casually

Some artisan soul 2 expansion module characteristics

Extra Utilities 2 (1.12-1.9.9)

Magic Fragment (Magic)

Source code transmission door

First of all, you can draw a conclusion after reading the source code. 99% (I dare not say absolutely, but I have never seen the 1% characteristics at present).Magic fragile performance is because its calculation basis is the original damage value.For example, even if you give you 5 reinforcements to your tools, after doing the behavior that originally caused damage to the tool, magic fragile photos may still explode your tools.

The following explains its working mechanism:


If the maximum durability of the tool is only 1 point, sorry, it will be durable once, and you can not discuss it.

If the maximum durability of the tool is greater than 1 point, if your behavior causes X -point damage to the tool, then the X -time judgment (the minimum number of judges is 1), each judgment is 1/(maximum durable square) (and the minimum value of this value is the minimum valuePerhaps you can explode your tools for 0.01)

Taiga (1.12.2-1.3.4)

Soul Eater (Xujin)

Source code transmission door

Every time the bonus obtained by killing a creature = a random decimal value of 0 ~ 1 × the maximum health value of the creature × 0.004, and the four houses and five to the two decimals.

Increasing damage is the BONUS value.

TwilightForest (1.12.2-3.11.1021)


Same (steel leaf)

Source code transmission door

Define a concept of "healing energy", the initial healing energy is 0, and check the player's shortcut:

Every steel leaf is added 1 point to cure energy

Every time there is a steel leaf block increases 9 points to cure energy


Every time there is a steel leaf tool (only the twilight of the steel leaf tool, uncertain) increases 1 point to cure energy

The following operations are performed every moment:

Define two values, recovery value 1 and recovery value 2

Possible recovery value 1 (decimal part of (cure energy/256)) 1 is equal to 1, otherwise the recovery value 1 is equal to 0

Recovery value 2 is equal to the integer part of (healing energy/256)

Restore each moment (recovery value 1 + recovery value 2) Point durability

For example, if you have a set of steel leaves in your shortcut bar, you will restore an average of 0.25+0 = 0.25 points per moment durable, and the average recovery of 5 points per second is durable.

Some artisan soul 2 mechanism description

All special terms about this part are fabricated by the author to facilitate the explanation, not the official statement

Attribute correction

Ho and Hammer, the excavation speed written in Stat NBT is the same, but the excavation speed on the NBT is not the actual mining speed. In fact, the mining speed of the two is different.

The actual mining speed = the speed on the NBT × speed correction coefficient. This speed is the mining speed written on the panel. All the original mining speed in this article refers to this

For example, there are no reinforced pure wood hammers and pure wooden picks. Their head mining speed is wood, 2.0 points, and is written on the NBT.The coefficient, so the actual mining speed of the wooden pick is 2.0*1.0 = 2 points, and the wood hammer is 2.0*0.4 = 0.8 points. This is the mining speed written on the panel


The excavation speed based on the rapid strengthening of calculation is the mining speed on the NBT, which has nothing to do with the actual mining speed.

For example, the tap speed written on the NBT after the wooden pick and the wood hammer above were full 3 were 20.311396.The actual excavation speed of the wooden pick is 20.311396*1.0 = 20.311396, and the two decimal numbers are written on the panel 20.31; the actual mining speed of the wood hammer is 20.311396*0.4 = 8.1245584.

The damage and mining speed are the same, and the sharp strengthening and rapid strengthening are the same, but the damage of the panel includes the damage of the player Attribute.

Attack speed is the attributes of each tool, the basic attack speed of each tool is different

Tool Properties NBT

There are many key values ​​for a tag of a soul tool, focusing on a few

Traits: Tool feature list (the only name of the characteristic string)

STAT: The current NBT data of the tool attribute is that some features are here to move knives such as rapidness, sharpness, and stingy.The NBT excavation speed mentioned in the article, the NBT attack refers to the value of the value here: the tool does not calculate the attributes when the tool does not calculate the characteristics.To calculate the basis such as emerald

Why distinguish this thing, because it is related to the calculation method of speed and attack, if you don’t distinguish it, it may be wrong.

Damage attenuation

Because the calculation is more complicated, it is recommended that friends who read the source code condition of the wall cracks read the source code

Each craftsmanship close -up weapon has a critical value. When the damage caused by this close -up weapon exceeds this critical value, the damage will be attenuated

In order to make the formula look more beautiful, the definition of the following operations:, the two operations priority and multiplication method, the encyclopedia has no formula. It is a bit disappointed.EssenceEssence

Application formula (the source code is not calculated):

If the damage/critical damage <67, the first item is the equal number list sequential)

If the damage/critical damage = 67, then

If damage/critical damage> 67, then

High damage is recommended to write script calculations. If the damage is relatively small (less than 100), it is not particularly complicated to find and calculate directly. Remember three values ​​during the calculation process: coefficient P, value D1, and value D2.Value will change during the calculation process

Initial value: P = 1, D1 = Calculating the damage before attenuation, D2 = 0

Floor (damage/critical damage) is calculated as follows:

D2 increases P * critical damage

P multiplier 0.9

D1 minus critical damage

Final damage = d2 + final P * final D1

For example, there is no enhanced pure gold sword. After entering the beast mode, it should cause 4*8 = 32 damage to the target. After calculating the damage attenuation, 1*15 + 0.9*15 + 0.81*2 = 30.12

Another example of high damage, from Tinkers' Evolution without strengthening pure endless sword. After assembling, the damage should have been 9003, but it has been attenuated to 15*(1-0.9^67)/(1-0.9) +0.9^66*15*((9003-15*66) // 15-1) = 157.506 points, this damage is the damage written on the panel

In short, the conclusion is that the higher the damage, the more fade; the lower the critical damage, the easier it is to decay, and the attenuation is even greater

When building a Build, you can consider whether it is worth it after being attenuated after being attenuated by other performance

The order of digging speed characteristics calculation

Let's assume that a scene, assuming that a bear child made a lot of stone brush towers at your doorstep while you were not at home, you were furious when you returned home and felt that this stuff was destroyed.The child demolish this illegal building and requires the completion of the demolition operation in the shortest time. The speed required to destroy the circular stone at an instant by calculation is 2*30 = 60, so you need a pick that can soar more than 60.First of all, the first choice must have taiga. Beerserk is four times the speed of Dafa, anyway, anyway; then the level of the round stone mining is relatively low, you can consider the Cavaliers Slime; then you want to choose a cheaper and good speed and good pick -headed head., That is cobalt.

Well, now our finished pick has two possible solutions:

Cobalt Po head + fine gold binding + knight Slime handle

Cobalt Po Head + Cavaliers Slim Binding + Essence Gold Howle

Then there are two possibilities for opening Berserk to dig the stone:

Non -natural first berserk takes effect: (12+4) * 4 = 64> 60, you can remove round stones in seconds

After non -natural, beerserk takes effect: 12 * 4 + 4 = 52 <60, do not remove the round stones in seconds

Okay, now I started watching again and again

Experiments show that the first pick (Cavaliers Slime handle) can instantly destroy the stones, corresponding to the first speed, that is, non -natural work;Roundstone, corresponding to the second speed, takes effect after non -natural

For another example: there are two picks, and the speed of the two is 28.65859 after full 3 (only two decimals are displayed on the panel, which is 28.66, but 28.66 will have a relatively large error)

Cobalt head+cobalt knot+Cavaliers slime handle+rapid 3

Cobalt head+knight Slime knot+cobalt handle+rapid 3

Both picks have the ability to destroy stones in an instant, but their timing is different. The first pick starts to destroy the stones in an instant as long as the first pick is dug 24 stones.s = 28.65859

(S+4+(s*24/80))*1.1 = 45.3817837

S+S*0.1+(S*27/80)+4 = 45.196723125

Of course, in normal games, you will not investigate the gap between these three stones. This example is just to explain the effective order of mining characteristics, but at some point, it is really different to read the source code.The order of the effectiveness of the excavation speed characteristics is determined by two factors:

The primary factor is the priority of characteristics, and most of the characteristics of the characteristics are the same (at least the same original ones).

The second factor is the location of the feature on the Traits NBT, which works in front of it.The order of the characteristics on the panel is basically the same as the NBT, but the judgment can be made accordingly

The calculation order of judging characteristics is basically enough to look at the order of the panel. The special features of priority are relatively rare. When the calculation results are found, the priority may consider that the priority may be specially special.

From these we can see that sometimes the effective order of characteristics may be considered when building a build.In the case of not knowing which feature is the work, you can change some combinations on the assembly table before assembling a tool to look at the order of characteristics from the panel on the right

Finally, let's mention the general process of the calculation of the truly excavation speed (not the speed of the panel):

Calculate the actual mining speed (excavation speed on the panel) = digging speed saved on NBT * mining speed correction coefficient

The characteristics related to the excavation speed on the settlement tool one by one, and provide gain on the basis of the original mining speed

The final excavation speed of the player is still composed of multiple factors: for example, in the air excavation, the punishment of the underwater mining speed, the urgency and other states, and even use the NBT method to attach the efficiency and other spells of the artisan soul tool, or other modules, or other modulesFor the gain, the artisan soul mining tool is just one of the role factor.Discussing the gain brought by other factors is not within the scope of the discussion in this article

Tool damage calculation

Calculating process: Player basic damage → +Tools actual damage → Figures related to settlement and damage in order → Calculate crit damage → Calculate damage attenuation → Calculate damage by attack cooling → get final damage

Each step of additional explanation:

Player's basic damage is stored in the Attributes of player NBT (General.attackdamage). Normally, 1.0 is 1.0 under normal circumstances

Tool actual damage = tool NBT damage × correction coefficient

There are also priority, which is also settled in order

Critical damage over 1.5 times

The damage attenuation is mentioned before

Craftsmanship tool attack cooling damage calculation formula is the same as the original, see here for details

Arrange calculation questions: Seeking each of the two tools under the following conditions and DPS (DPS = Final Attack damage × attack speed)

Condition 1: Player's basic damage is not modified by other modules

Condition 2: 3 points of damage at the top of hell rock; Western sword damage correction is 0.55, and the split knife is 1.2

Condition 3: The order of tool characteristics on the panel is: soul -eater → good summer → purgatory → beerserk; the Bonus of the soul eater is 10.0 points; waving weapons on the desert, desert temperature 2.0, precipitation 0.0; attack non -immune fire creature;

Condition 4: Play crit damage

Condition 5: 13 points of critical damage of Western swords, 25 points for splitting knives

Condition 6: The attack is performed after cooling

Tool 1 -Western Sword: Hell Rock Blade + refined gold cross handle + virtual gold handle + sharp 3

Tools 2 -Speed ​​knife: Hell Rock Kiddust Blade + Hell Rock Blade + Vanity Gold Pass 1 + refined gold handle 2 + sharp 3

untie:

1. Western sword:

1.1 Player Basic Damage: 1 point

1.2 Calculation real damage:

1.2.1 Basic damage of nude tools 3 points

1.2.2 Calculation is 10.830295 (how to calculate it for no specific research, the script is calculated)

1.2.3 Real damage is 10.830295*0.55 = 5.9566662.The damage to this step is 6.956662

1.3 The gain brought by the calculation characteristics:

1.3.1 Soul Eater increases the damage by 10.0 points.Now the damage is 16.956662 1.3.2 Good summer increase (1.25^3*(0.5+2-0) -1.25-0)*2 = 8.162403.Now the damage is 25.119065

1.3.3 Increase 4 points of purgatory.The damage is now 29.119065

1.3.4 Beerserk directly turn the damage 4 times.The damage is now 29.119065*4 = 116.476260

1.4 Calculation crit damage: 116.476260*1.5 = 174.714390

1.5 Calculation damage attenuation: 13*(1-0.9^13)/(1-0.9)+0.9^13*(174.714390-13*13) = 98.408265

1.6 Calculation Cold but damage: 98.408265*1.0 = 98.408265, this is the final damage

1.7 DPS = 98.408265*3 = 295.224795

2. Slap:

2.1 Player Basic Damage: 1 point

2.2 Calculation real damage:

2.2.1 Basic damage naked tools 3*1.3+3 = 6.9 points (formula for the basic damage formula of the knife)

2.2.2 Calculation of sharpness 3 is 12.856173

2.2.3 Real damage is 12.856173*1.2 = 15.427408.The damage to this step is 16.427408

2.3 The gain brought by the calculation characteristics:

2.3.1 Soul Eater increases the damage by 10.0 points.Now the damage is 26.427408

2.3.2 Good summer increase (1.25^3*(0.5+2-0) -1.25-0)*2 = 8.162403.Now the damage is 34.589811

2.3.3 Increase 4 points of purgatory.Now the damage is 38.589811

2.3.4 Beerserk directly turns the damage 4 times.Now the damage is 38.589811*4 = 154.359244

2.4 Calculation crit damage: 154.359244*1.5 = 231.538866

2.5 Calculation damage attenuation: 25*(1-0.9^9)/(1-0.9)+0.9^9*(231.538866-25*9) = 155.678168

2.6 Calculation Cold but damage: 155.678168*1.0 = 155.678168, this is the final damage

2.7 DPS = 155.678168*0.7 = 108.974718 Due to the calculation of the computer's floating point, it will cause metaphysical errors, and there may be a little difference.

Part 2 part of the data

Some tools durable calculation formulas

The formula comes from reddit (need technology), and I would like to express my gratitude to the original author

Eventually durable

Tools durable formula Holyx sh for shovel (top+ binding) * handle coefficient+ handle durability sword 1.1 * (top+ handle) * handle coefficient+ handle durable sword 1.05 * (top+ at the top+Hand) * handle coefficient+ handle durability Western sword 0.8 * (top+ handle) * handle coefficient+ handle durability split knife 2 * ((head+ large board) / 2+ handle 2 additional durability) * handle 1 coefficient 1 coefficient 1 coefficient+ Handle 1 durability) (Experimental verification is on the left is the handle on the assembly platform 1) Crane mouth hoe ((shovel head+ ax) / 2) * handle coefficient+ handle durable hammer 2.5 * ((head * 2+ large board plate plate plate plate large board plate board1+ large board 2) / 4 * handle coefficient+ handle durable excavation shovel 1.75 * ((head+ large board) / 2+ binding) * handle coefficient+ handle durable) Lucky ax 2 *+ Large board) / 2+ binding) * handle coefficient+ handle durability) sickle 2.2 * ((head+ binding knot) * (handle 1 coefficient+ handle 2 coefficient) / 2+Durability) / 2) Frying cooker head * handle coefficient + handle durable combat brand * handle coefficient + handle durability short bow (bow arm 1 + bow arm 2) / 2 * bowstring coefficient long bow 1.4 * (bow arm 1 +Bow arm 2) / 2 + big plate extra durability) * Bow strings coefficient cross bow

(Bow arm + (binding knot + handle extra durability) / 2) * handle coefficient + handle durability) * bow string coefficient

Tool attribute data