{
    "neoforge:conditions": [
        {
            "type": "neoforge:mod_loaded",
            "modid": "twilightforest"
        }
    ],
    "type": "apotheosis:gem",
    "constraints": {
        "dimensions": [
            "twilightforest:twilight_forest"
        ]
    },
    "min_purity": "flawed",
    "unique": true,
    "weights": {
        "summit": {
            "quality": 2.0,
            "weight": 50
        },
        "pinnacle": {
            "quality": 2.0,
            "weight": 50
        }
    },
    "bonuses": [
        {
            "type": "apotheosis:twilight_treasure_goblin",
            "gem_class": {
                "key": "weapons",
                "types": [
                    "apotheosis:melee_weapon",
                    "apotheosis:trident",
                    "apotheosis:bow"
                ]
            },
            "values": {
                "flawed": {
                    "chance": 0.0025,
                    "cooldown": 12000
                },
                "normal": {
                    "chance": 0.00375,
                    "cooldown": 12000
                },
                "flawless": {
                    "chance": 0.005,
                    "cooldown": 12000
                },
                "perfect": {
                    "chance": 0.0075,
                    "cooldown": 12000
                }
            }
        },
        {
            "type": "apotheosis:multi_attribute",
            "desc": "bonus.apotheosis:multi_attr.desc.and",
            "gem_class": "apotheosis:shield",
            "modifiers": [
                {
                    "attribute": "apothic_attributes:healing_received",
                    "operation": "add_multiplied_base",
                    "values": {
                        "flawed": 0.1,
                        "normal": 0.2,
                        "flawless": 0.3,
                        "perfect": 0.45
                    }
                },
                {
                    "attribute": "minecraft:generic.attack_speed",
                    "operation": "add_multiplied_base",
                    "values": {
                        "flawed": -0.05,
                        "normal": -0.1,
                        "flawless": -0.15,
                        "perfect": -0.25
                    }
                }
            ]
        },
        {
            "type": "apotheosis:twilight_ore_magnet",
            "gem_class": "apotheosis:breaker",
            "values": {
                "flawed": 24,
                "normal": 20,
                "flawless": 16,
                "perfect": 10
            }
        },
        {
            "type": "apotheosis:multi_attribute",
            "desc": "bonus.apotheosis:multi_attr.desc.but_and",
            "gem_class": "apotheosis:chestplate",
            "modifiers": [
                {
                    "attribute": "apothic_attributes:armor_shred",
                    "operation": "add_multiplied_base",
                    "values": {
                        "flawed": 0.35,
                        "normal": 0.5,
                        "flawless": 0.75,
                        "perfect": 1.0
                    }
                },
                {
                    "attribute": "apothic_attributes:armor_pierce",
                    "operation": "add_multiplied_base",
                    "values": {
                        "flawed": -0.15,
                        "normal": -0.225,
                        "flawless": -0.325,
                        "perfect": -0.4
                    }
                },
                {
                    "attribute": "apothic_attributes:prot_pierce",
                    "operation": "add_multiplied_base",
                    "values": {
                        "flawed": -0.05,
                        "normal": -0.125,
                        "flawless": -0.225,
                        "perfect": -0.2
                    }
                }
            ]
        }
    ]
}
