Atum 2: Return to the Sands

Atum 2: Return to the Sands

23M Downloads

[1.16.5] Loot table "atum:gods/all" has wrong entry weight

GoldenTotem opened this issue ยท 1 comments

commented

Minecraft 1.16.5 Forge 36.2.35 mod 2.2.12

Loot table use "loot_table" as entry type and each one has weight 1, this will make every artifact has different chance to be selected. For example, "atum:atems_homecoming" has 1/15 * 1/8 = 1/120 probability to be selected, but "atum:anubis_wrath" has 1/15 * 1/1 = 1/15 probability.
If this is not intentionally designed like this, to make every artifact has equal probability to be selected, there are 2 methods.
I. You can modify "atum:gods/all" loot table and use "minecraft:item" as entry type instead of "minecraft:loot_table".
II. Keep "minecraft:loot_table" type but modify the weight. For example, "atum:gods/atem" has 8 entries, so set its weight to 8.

commented

Fixed loot table

{
    "type":"minecraft:generic",
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/anput",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/anubis",
                    "weight": 1
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/atem",
                    "weight": 8
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/geb",
                    "weight": 3
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/horus",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/isis",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/montu",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/nepthys",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/nuit",
                    "weight": 3
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/osiris",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/ptah",
                    "weight": 1
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/ra",
                    "weight": 6
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/seth",
                    "weight": 2
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/shu",
                    "weight": 3
                },
                {
                    "type": "minecraft:loot_table",
                    "name": "atum:gods/tefnut",
                    "weight": 2
                }
            ]
        }
    ]
}