your current location:首页 > news>Detailed explanation of MineCraft Magic Magic Wiki Minecraft Magic Mechanism

Detailed explanation of MineCraft Magic Magic Wiki Minecraft Magic Mechanism

2024-12-17 06:01:48|Myriagame |source:minecraft skins

This article introduces the mechanism of enchanting.

Enchanting Basis

When a piece of enchanting item is put on the enchanting table, the available enchantment level will be randomly generated according to the following formulas.The enchantment level is determined by the number of nearby bookshelves (up to 15) and the enchanting level in the enchanting list.

Here are the calculation steps that can be used by enchantment:

Can use enchanting level base ( Base ) = (1..8+ ( B /2)+ 0. B )

Among them, B are the number of nearby bookshelves (≤15), " x .. y " indicate in [ x , Y ] A random number is generated in the closed range.After generating the base, the game will be calculated based on the number of rows where the enchantment level is located:

The first line level = max ( Base / 3, 1) The second line level = ( Base × 2)/ 3 + 1 third line level = max ( Base , B × 2)

The new enchantment level base will be used when each line of level calculation, that is, the one -time calculation process will generate 3 BASE

Before the official version 1.3, the formula of the enchanting level base is Base = (1..5+ ( B /2)+ 0 .. B ), and by "ranked factor" (the first line is 1⁄3, the second behavior is 2⁄3, and the third act 1) is obtained.The smallest enchantment level is the same as the effective number of bookshelves around the enchanting table.

Before the official version 1.1, the " B /2)" item of the upper -style was once "0 .. ( B /2)", which made the enchantment randomTo become bigger, it takes a lot of time to brush out high -level enchanting options.At the same time, the minimum level of enchantment can be fixed at 1, which will not be affected by the number of bookshelves.

td> 3 7 1 Maximum (Third Line)
Number of bookshelves 0 2 4 5 9 10 11 14 15
Minimum (first line) 1 1 1 1notTD>
8 11 12 14 15 17 20 21 < 21 23 24 26 29 30

In the creative mode, enchantment does not require experience level.

Placement of bookshelves

The bookshelf near the enchanting table can improve the available enchantment level.In the preview version of 12W22A, if there are no bookshelves around the magic platform, the highest enchantment can only reach level 8.The effective bookshelf must be far away from the two square blocks of the enchanting table, and it must be at the same or high level as a square block.The space between the bookshelf and the enchanting table must be air (the torch and the snow are not allowed).

Because only 15 bookshelves are required to reach the maximum enchanting level, there are many ways to arrange the bookshelves.If you need to limit the maximum enchantment level, a simple way is to interjust some bookshelves into the space between the enchanting table and the bookshelf.Take down the torch to restore the maximum enchanting level.

In addition, it should be noted that the environment of the enchanting area must be checked and the absolute gap between the bookshelf and the enchanting table.For example, in the snowfall biological group, snow can invalidate all bookshelves.Therefore, unless you want to get a smaller enchanting level, carefully check and clean up before the enchantment (or the enchantment in a house with a roof).

How did the curse choose

"Curse level" is the level of experience required for a certain curse (green numbers on the button).

"Mantra Power" is the power of a specific curse.For example, "sharp IV" has 4 points of power.

There are three steps for the selection of spells.

Step 1: Add the adjustment value to the enchanting level

First of all, the game will add two adjustment values ​​to the selected enchantment level.Each adjustment value is limited to a certain range, and the number of numbers near the range will be more common than the two ends.

The first adjustment of value is based on the "enchantment ability" based on the enchanting object, depending on the materials and types of the item (see the table below).The stronger the more powerful materials, the worse.The game will randomly select a number between the half of the magic ability, and then add this number and 1 to the enchantment level.Therefore, the enchantment ability of bow, book and fishing rod is 1.This random number obey the triangle distribution (similar to the result of adding the results of the two dice), so the result is that the chance of the magic ability is far more than the probability of near the extreme value.

Modified enchantment level = enchant/th>

TD> Gold
Materials The enchantment ability of the corresponding armor The enchanting ability of the corresponding sword/tool ​​
Wood Do not use
leather 15 < 15 Do not use
Do not use
Iron 9 14
Chain (Chain A) 12 Do not use
Diamonds 10
25 22
Below alloy 15
Turtle shell Can't use
Book 1 1

Then, Minecraft will select a value between 0.85 and 1.15 and go through the normal distribution.The modified enchantment level will be multiplied by this value (therefore, it can increase or decrease by up to 15 %), and then the four houses and five enter the integer to get the final level adjustment value.

Pseudo-code

-{}-// Return a random integer function rate (n) with [0, n-1]; // Returns a random real number Function Randomfloat () with a range of [0,1).; // Returns the recent integrity of the real number N, four, and five to enter; // Plore a random number int RAND_ENCHANCHANTABILITY = 1 + RANDOMINT (Enchantability/ 4 +1) + RANDOMINT (Enchantability/ 4 + 1); // Select the enchanting energy level int K = Chosen_enchantment_level + RAND_ENCHANTABILITY; // 0.85 to 1.15. randomfloat () + randomfloat () - 1) *0.15 + 1; // The final calculation gets level int Final_level = Round (k * rand_bonus_percent); if (final_level <1) final_level = 1 

A sword with several spells.(After the official version 1.3, sharp V cannot be attached directly to the diamond sword.)

Now, based on the level adjustment value, the game will first list all the types of enchantment and its power (candidate table) that can be applied to target items, so that they can choose later.

The cursing grade table lists the available level and its power of each type of curse.Each of each level of power has the range of regulatory values ​​with the specified level.When the level adjustment value conforms to the level of regulating value of a certain mantra at a certain level of power, this curse enters the candidate table; if the level adjustment value is also included in the level of level adjustment value of different levels of power in the same curse, it is higherGrade curse enters the candidate table.For example, the scope of the level adjustment value of the "sharp I" and "sharp II" spells of the sword is 1, 21 and 12 - 32, respectively, then when the level adjustment value is 10, "sharp I" enters the candidate list;When the value is 15, "Friends II" will enter the candidate list.EnchantView Mod can view what curse can be attached to the items to be attached.

Step 3: Select the spell from the candidate table

Now it has the enchanting candidate table of this item, and the game will choose some of the enchantment that will be finally applied from them.

At least there will be at least one spell attached. The first curse will be selected from the "weight" list -the higher the weight, the higher the chance of choosing.

/TR> TD> Deep Sea Explorer Th> Bow Mantra /td> bait fishing td> Loyalty
Armor curse Protection 10 No
Falling protection protection 5 No
Flame protection 5 No
Ejection protection No
Digging underwater 2 No
Explosion Protection 2 No
- {zh-CN: Underwater breathing; zh-tw: breathing in water;}- 2 No
2 No
Frost > 2 Yes
1 No
Binding curse Yes
Souls 1 Yes
SwordCurse Weight Treasure type
Fine sharp No
Plusal killers 5 No
Revisibility 5 No
Killer 5 No
Flame addition 2 No
Radio No
Sweeping Blade 2 No
Tools Weight Treasure Type
Efficiency 10 No
Shipping No
Precision Collection 1 No
weight Treasure type
-{zh-cn: power; zh-tw: strength; strength;

}-

10 No
2 No
Intellectual No
Infinite 1 No
Fishing rod curse weight Treasure type
No
No
Trident Mantra Weight Treasure
5 No
2 No
No
Lei Lei No
General spell weight Treasure type
Durability 5 No
Experience trimming Yes
Disappearing curse 1 Yes
After the first curse was selected, it is based on the following algorithm to determine whether to get more spells:

minecraft

Exclude the level of adjustment in 2 and enter the four houses and five.(This does not affect the curse candidate table, because the candidate table is determined in the second step.) The probability of P = (modified level adjustment value +1)/50 determines whether to choose an extra spell.After selecting the additional curse, delete any spell in the table with the previously selected enchanting.Select a curse from the remaining curse candidate table (like before, based on weight) and add it to the item.Repeat the first step.Conflicting spells

Some spells conflict with other curses, so they cannot be attached to the same item to reduce the possibility of players' excessive (or unreasonable) weapons/tools/tools.

The rules of the curse are:

Each curse rises with itself.(So ​​you cannot get two tools containing two same curses.) Except- {zh-cn: fall protection; zh-tw: light;} -Te other protection enchantment conflicts with each other, there can only be one item.All damage curses (sharp, undead killers, and nodular killers) conflict."Precision collection" and "time transport" conflict with each other."Deep Sea Explorer" and "Frost Pedestrian" conflict with each other."Experience repair" and "unlimited" conflict with each other."Lei Lei" and "rapids" conflict with each other."Loyalty" and "rapids" conflict with each other."Multi -shooting" and "penetration" conflict with each other.

Using a special /GIVE instruction, you can get a spell of conflict on the same item.The behavior of this kind of item is not reliable, but the following rules are followed:

It contains multiple items with the same curse, and only the first curse in the list takes effect.An armor containing conflict protection spells takes effect independently.Weapons containing conflict damage spells take effect independently.At the same time, there is a tool for "precise collection" and "time transport" spells: for the squares that are applicable to both spells, accurately collect priority; for accurate collection of unsuitable blocks (such as crops), time transportation is effective.At the same time, it has a bow and "infinite" bow, and each curse takes effect independently.At the same time, the Trident with "loyalty" and "rapids" has taken effect normally.Players will not be able to throw the trident, but the transmitter can still throw normally.At the same time, there is a crossbow with "multiple shooting" and "penetrating", and each curse takes effect independently.Take diamond pick -level 30 enchantment as an example as an example.

First, calculate the enchanting value -for -money value. Diamonds are 10, regardless of the sword/tool/armor's enchantment ability, then 10/4 = 2.5, 3*2 = 6, then the system will randomly take one within 0 ~ 6 range.Value, +1, is the modified enchantment level. The range is 31 ~ 37. Then take a random value of 0.85 ~ 1.15 to get the final level adjustment value.

And the level adjustment value you get is a value within the range (because the two normal distribution algorithms are greater than the middle value of 35 than the extreme value), this value will affect the curse candidate table and whether to get more demon.curse.

Step 2

Based on this as the benchmark, select the spell through the curse level table

Tool Mantra The modified enchantment level
i ii III v
Efficiency 1 –51 11–61 21–71 31–81 41–91
Precision collection 15–65
durability 5 --55 13 –63 21–71
Shipping 15–65 24–74 33 –83

Find out the possible spells (in parentheses are the corresponding spell level range): efficiency III (21-71), efficiency IV (31-81), efficiency V (41-91), precise collection (15-65), durability III (21-71), Time Yun II (24-74), Time Transport III (33-83)

That is, the magic grade adjustment value and the curse that corresponds to the candidate table is (special, sharp V is the only curse that can not be obtained by level 30 diamond enchantment, because its minimum level requires 45)

Efficiency Durability Precision collection
enchanting level adjustment value40 41-43
IV IV v
Shipping ii III III
III III III
i i i
Step 3

To determine which one of the four spells of the candidate table, you need to calculate the weight of each curse. The efficiency of the watch is 10, the precise collection is 1, the durability is 5, and the time is 2.The probability is 10/(10+1+5+2) = 5/9, precise collection of 1/18, durability 5/18, time of time 1/9

So I got the first enchanting

Determine if you get more spells

The level adjustment value is removed by 2, the value range is 13 ~ 21.5, and the four houses and five enter 13 ~ 22

Note that the candidate table is no longer affected by the level adjustment value, that is, if there is a second curse for durability, it will still be durable III.

The probability of obtaining the second curse is p = (the modified level adjustment value +1)/50 , the probability range is 28%to 46%.

Next, the candidate table deletes the enchanting and conflict -only accurate collection and time transport conflict in the tools, once again the probability of the next curse through the weight calculation, and get the second curse.

The level adjustment value is divided by 2 again, the value range is 6.5 ~ 11, and the probability range of the third curse is 16%to 24%.Repeat the enchantment of the existing and conflict in the candidate table. So that the candidate table is only time -long and accurate collection, the probability of getting time transport is 2/3, the probability of accurate collection is 1/3, and there are only one in other situations.Candidate spells will inevitably get the curse.Therefore, the Ho got up to three spells at most, and even after getting the fourth opportunity for the magic, it would be invalid because there was no curse in the candidate (and the sword could get five spells, although the probability was extremely low).

In this way, the final enchanting diamond pick.

Magic possibility chart

Diamond tools may have a list of enchanting.


The copyright of the work belongs to the author. If it infringes upon your copyright, please contact us and this site will be deleted within 3 working days.

Warm reminder: Resist bad games, refuse pirated games, pay attention to self-protection, beware of being deceived, moderate games are good for the brain, addiction to games is harmful to the body, arrange your time reasonably, and enjoy a healthy life!

© Copyright © 2025-2035 Myriagame All Rights Reserved