Geode

## Overview

Geodes are items dropping from variants of stone blocks. They can be broken at a Workbench with a Hammer. They can drop useful loot when cracked open in the workbench, including Pristine Gems.

## Obtaining

Geodes are obtainable from Geode Blocks. They are generated on the ore generation stage and replace Deepslate blocks. They have the same texture, but when the brightness level is higher than 2 they emit sparkling particles. One Geode Block drops one Geode item.

The Geode Block is unobtainable in creative mode through any means, but they can be placed in the world using commands:

```
/setblock <x> <y> <z> tetra:block_geode

```

## Cracking open

Drop respects Fortune enchantment and can drop items from the list below:

* Flint
* Redstone Dust
* Raw Copper
* Raw Gold
* Raw iron
* Lapis Lazuli (regular and pristine)
* Emerald (regular and pristine)
* Diamond (regular and pristine)
* Amethyst

The loot table looks as follows:

```
{
    "pools": [
        {
            "name": "geode_extended",
            "rolls": 1,
            "entries": [
                {
                    "type": "group",
                    "weight": 16,
                    "children": [
                        {
                            "type": "minecraft:item",
                            "name": "minecraft:raw_gold",
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:item",
                            "name": "minecraft:raw_iron",
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:item",
                            "name": "minecraft:raw_copper",
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/tin",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/lead",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/osmium",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/nickel",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/aluminum",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        },
                        {
                            "type": "minecraft:tag",
                            "name": "forge:raw_materials/silver",
                            "expand": true,
                            "functions": [
                                {
                                    "function": "set_count",
                                    "count": {
                                        "min": 1,
                                        "max": 3
                                    }
                                },
                                {
                                    "function": "minecraft:apply_bonus",
                                    "enchantment": "minecraft:fortune",
                                    "formula": "minecraft:ore_drops"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "tetra:pristine_diamond",
                    "weight": 6,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.1,
                            "fortuneMultiplier": 0.15
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "tetra:pristine_emerald",
                    "weight": 4,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.1,
                            "fortuneMultiplier": 0.15
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "tetra:pristine_lapis",
                    "weight": 8,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.1,
                            "fortuneMultiplier": 0.15
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:diamond",
                    "weight": 4,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.5,
                            "fortuneMultiplier": 0.2
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 1
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:amethyst_shard",
                    "weight": 2,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.5,
                            "fortuneMultiplier": 0.2
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 1
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:emerald",
                    "weight": 4,
                    "conditions": [
                        {
                            "condition": "tetra:random_chance_with_fortune",
                            "chance": 0.5,
                            "fortuneMultiplier": 0.2
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 1
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:flint",
                    "weight": 4,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 1,
                                "max": 3
                            }
                        },
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 4
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:redstone",
                    "weight": 5,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 5,
                                "max": 10
                            }
                        },
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 3
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:lapis_lazuli",
                    "weight": 5,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 5,
                                "max": 10
                            }
                        },
                        {
                            "function": "minecraft:apply_bonus",
                            "enchantment": "minecraft:fortune",
                            "formula": "uniform_bonus_count",
                            "parameters": {
                                "bonusMultiplier": 3
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

```