your current location:首页 > news>[EL] Extra Loot

[EL] Extra Loot

2024-12-12 09:28:01|Myriagame |source:minecraft skins

introduce

This module adds a new loot watch (what is that?), In order to configure the loot according to the physical attribute.

In addition, you can quickly add additional loot to the existing torrential tables by editing the configuration file.

Initial configuration file:

 {"maxhealthweight": 1.0, "Armorweight": 1.0, "Armortoughnessweight": 1.0, "Attackdamageight": 1.0, " Extraloots ": []," Extraxpmultiplier ": 1.0," "Extraxpchance ": 0.5} 

The first four entries determine the weight of various attributes.The remaining three items are used to configure loot and experience.

Usage example

Obviously, there should be no ellipsis or notes in the JSON format file. This example is just to explain.

Configure file (Extra-Loot.json):

 {"maxhealthweight": 1.0, "Armorweight": 2.0, "Armortoughnessweight": 2.0, "Attackdamageight": 4.0, " Extraloots ": [{" target_regex ":"^(?!.*xxx).*Entities.*", // Support regular expresions." Extra_table ":" xxx: Common_drop "}]," Extraxpmultiplier ": 1.0," EXTRAXP CHANCE ": 0.1} 

Package (xxx/loot_tables/commit_drop.json):

 {"pools": [{"conditions": [{"condition": "minecraft: killed_by_player"}, {"condit Ion ":" Extra-Loot: Entity_tier "," Entity": This", "min":: 0, "max": 50 // for "max" propy, -1 means infinity.}], "Entries": [...]} 
Results

The above configuration shows that it will include "ENTITIES" but not "XXX" tallest tables to add an additional loot table ("XXX: Common_drop").

For example, when the player kills zombies, the game will weigh and seek the maximum health, armor, toughness and attack power of zombies.If this sum is between 0 and 50, it will meet the conditions and drop extra torrential products.

In addition, when the player kills the creature, it has a certain chance to drop additional experience.Probability is equal to the "ExtraxPchance" in the configuration file, and the value of additional experience is equal to the weighted weighted and multiplied by the "Extraxpmultiplier" in the configuration file.

warn

During the configuration process, try to avoid the infinite cycle/set of baby in the torrential table.

Although you don't do this, there will be no serious consequences ...

 {... "exploots": [{"target_regex": ".*", "extra_table": "Minecraft: Entities/Zombie"}] ...} 
In this case, the target warfare table contains extra tables.If you kill a zombie, the zombie's loot will try to drop yourself, which will lead to infinite recursion.