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.
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22