All Downloads are FREE. Search and download functionalities are using the official Maven repository.

data.1.21-rv4.source-code.enchantments.snbt Maven / Gradle / Ivy

The newest version!
{
    "minecraft:aqua_affinity": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.aqua_affinity"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: 4b,
                        per_level_above_first: 4b,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:player.submerged_mining_speed",
                    id: "minecraft:enchantment.aqua_affinity",
                    operation: "add_multiplied_total"
                }
            ]
        },
        max_cost: {
            base: 41b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 1b,
            per_level_above_first: 0b
        },
        slots: [
            "head"
        ],
        supported_items: "#minecraft:enchantable/head_armor",
        weight: 2b
    },
    "minecraft:bane_of_arthropods": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.bane_of_arthropods"
        },
        effects: {
            "minecraft:damage": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2.5f,
                            per_level_above_first: 2.5f,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            type: "#minecraft:sensitive_to_bane_of_arthropods"
                        }
                    }
                }
            ],
            "minecraft:post_attack": [
                {
                    affected: "victim",
                    effect: {
                        max_amplifier: 3b,
                        max_duration: {
                            base: 1.5f,
                            per_level_above_first: 0.5f,
                            type: "minecraft:linear"
                        },
                        min_amplifier: 3b,
                        min_duration: 1.5f,
                        to_apply: "minecraft:slowness",
                        type: "minecraft:apply_mob_effect"
                    },
                    enchanted: "attacker",
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                condition: "minecraft:entity_properties",
                                entity: "this",
                                predicate: {
                                    type: "#minecraft:sensitive_to_bane_of_arthropods"
                                }
                            },
                            {
                                condition: "minecraft:damage_source_properties",
                                predicate: {
                                    is_direct: 1b
                                }
                            }
                        ]
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 25b,
            per_level_above_first: 8b
        },
        max_level: 5b,
        min_cost: {
            base: 5b,
            per_level_above_first: 8b
        },
        primary_items: "#minecraft:enchantable/sword",
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/weapon",
        weight: 5b
    },
    "minecraft:binding_curse": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.binding_curse"
        },
        effects: {
            "minecraft:prevent_armor_change": {}
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 25b,
            per_level_above_first: 0b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/equippable",
        weight: 1b
    },
    "minecraft:blast_protection": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.blast_protection"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: 0.15d,
                        per_level_above_first: 0.15d,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:generic.explosion_knockback_resistance",
                    id: "minecraft:enchantment.blast_protection",
                    operation: "add_value"
                }
            ],
            "minecraft:damage_protection": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2b,
                            per_level_above_first: 2b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            tags: [
                                {
                                    expected: 1b,
                                    id: "minecraft:is_explosion"
                                },
                                {
                                    expected: 0b,
                                    id: "minecraft:bypasses_invulnerability"
                                }
                            ]
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/armor",
        max_cost: {
            base: 13b,
            per_level_above_first: 8b
        },
        max_level: 4b,
        min_cost: {
            base: 5b,
            per_level_above_first: 8b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/armor",
        weight: 2b
    },
    "minecraft:breach": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.breach"
        },
        effects: {
            "minecraft:armor_effectiveness": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: -0.15d,
                            per_level_above_first: -0.15d,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 4b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mace",
        weight: 2b
    },
    "minecraft:channeling": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.channeling"
        },
        effects: {
            "minecraft:hit_block": [
                {
                    effect: {
                        effects: [
                            {
                                entity: "minecraft:lightning_bolt",
                                type: "minecraft:summon_entity"
                            },
                            {
                                pitch: 1b,
                                sound: "minecraft:item.trident.thunder",
                                type: "minecraft:play_sound",
                                volume: 5b
                            }
                        ],
                        type: "minecraft:all_of"
                    },
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                condition: "minecraft:weather_check",
                                thundering: 1b
                            },
                            {
                                condition: "minecraft:entity_properties",
                                entity: "this",
                                predicate: {
                                    type: "minecraft:trident"
                                }
                            },
                            {
                                condition: "minecraft:location_check",
                                predicate: {
                                    can_see_sky: 1b
                                }
                            },
                            {
                                block: "minecraft:lightning_rod",
                                condition: "minecraft:block_state_property"
                            }
                        ]
                    }
                }
            ],
            "minecraft:post_attack": [
                {
                    affected: "victim",
                    effect: {
                        effects: [
                            {
                                entity: "minecraft:lightning_bolt",
                                type: "minecraft:summon_entity"
                            },
                            {
                                pitch: 1b,
                                sound: "minecraft:item.trident.thunder",
                                type: "minecraft:play_sound",
                                volume: 5b
                            }
                        ],
                        type: "minecraft:all_of"
                    },
                    enchanted: "attacker",
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                condition: "minecraft:weather_check",
                                thundering: 1b
                            },
                            {
                                condition: "minecraft:entity_properties",
                                entity: "this",
                                predicate: {
                                    location: {
                                        can_see_sky: 1b
                                    }
                                }
                            },
                            {
                                condition: "minecraft:entity_properties",
                                entity: "direct_attacker",
                                predicate: {
                                    type: "minecraft:trident"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 25b,
            per_level_above_first: 0b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/trident",
        weight: 1b
    },
    "minecraft:density": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.density"
        },
        effects: {
            "minecraft:smash_damage_per_fallen_block": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 0.5f,
                            per_level_above_first: 0.5f,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 25b,
            per_level_above_first: 8b
        },
        max_level: 5b,
        min_cost: {
            base: 5b,
            per_level_above_first: 8b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mace",
        weight: 5b
    },
    "minecraft:depth_strider": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.depth_strider"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: 0.33333334d,
                        per_level_above_first: 0.33333334d,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:generic.water_movement_efficiency",
                    id: "minecraft:enchantment.depth_strider",
                    operation: "add_value"
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/boots",
        max_cost: {
            base: 25b,
            per_level_above_first: 10b
        },
        max_level: 3b,
        min_cost: {
            base: 10b,
            per_level_above_first: 10b
        },
        slots: [
            "feet"
        ],
        supported_items: "#minecraft:enchantable/foot_armor",
        weight: 2b
    },
    "minecraft:efficiency": {
        anvil_cost: 1b,
        description: {
            translate: "enchantment.minecraft.efficiency"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        added: 1b,
                        type: "minecraft:levels_squared"
                    },
                    attribute: "minecraft:player.mining_efficiency",
                    id: "minecraft:enchantment.efficiency",
                    operation: "add_value"
                }
            ]
        },
        max_cost: {
            base: 51b,
            per_level_above_first: 10b
        },
        max_level: 5b,
        min_cost: {
            base: 1b,
            per_level_above_first: 10b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mining",
        weight: 10b
    },
    "minecraft:feather_falling": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.feather_falling"
        },
        effects: {
            "minecraft:damage_protection": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 3b,
                            per_level_above_first: 3b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            tags: [
                                {
                                    expected: 1b,
                                    id: "minecraft:is_fall"
                                },
                                {
                                    expected: 0b,
                                    id: "minecraft:bypasses_invulnerability"
                                }
                            ]
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 11b,
            per_level_above_first: 6b
        },
        max_level: 4b,
        min_cost: {
            base: 5b,
            per_level_above_first: 6b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/foot_armor",
        weight: 5b
    },
    "minecraft:fire_aspect": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.fire_aspect"
        },
        effects: {
            "minecraft:post_attack": [
                {
                    affected: "victim",
                    effect: {
                        duration: {
                            base: 4b,
                            per_level_above_first: 4b,
                            type: "minecraft:linear"
                        },
                        type: "minecraft:ignite"
                    },
                    enchanted: "attacker",
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            is_direct: 1b
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 60b,
            per_level_above_first: 20b
        },
        max_level: 2b,
        min_cost: {
            base: 10b,
            per_level_above_first: 20b
        },
        primary_items: "#minecraft:enchantable/sword",
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/fire_aspect",
        weight: 2b
    },
    "minecraft:fire_protection": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.fire_protection"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: -0.15d,
                        per_level_above_first: -0.15d,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:generic.burning_time",
                    id: "minecraft:enchantment.fire_protection",
                    operation: "add_multiplied_base"
                }
            ],
            "minecraft:damage_protection": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2b,
                            per_level_above_first: 2b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                condition: "minecraft:damage_source_properties",
                                predicate: {
                                    tags: [
                                        {
                                            expected: 1b,
                                            id: "minecraft:is_fire"
                                        },
                                        {
                                            expected: 0b,
                                            id: "minecraft:bypasses_invulnerability"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/armor",
        max_cost: {
            base: 18b,
            per_level_above_first: 8b
        },
        max_level: 4b,
        min_cost: {
            base: 10b,
            per_level_above_first: 8b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/armor",
        weight: 5b
    },
    "minecraft:flame": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.flame"
        },
        effects: {
            "minecraft:projectile_spawned": [
                {
                    effect: {
                        duration: 100b,
                        type: "minecraft:ignite"
                    }
                }
            ]
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 20b,
            per_level_above_first: 0b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/bow",
        weight: 2b
    },
    "minecraft:fortune": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.fortune"
        },
        exclusive_set: "#minecraft:exclusive_set/mining",
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mining_loot",
        weight: 2b
    },
    "minecraft:frost_walker": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.frost_walker"
        },
        effects: {
            "minecraft:damage_immunity": [
                {
                    effect: {},
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            tags: [
                                {
                                    expected: 1b,
                                    id: "minecraft:burn_from_stepping"
                                },
                                {
                                    expected: 0b,
                                    id: "minecraft:bypasses_invulnerability"
                                }
                            ]
                        }
                    }
                }
            ],
            "minecraft:location_changed": [
                {
                    effect: {
                        block_state: {
                            state: {
                                Name: "minecraft:frosted_ice",
                                Properties: {
                                    age: "0"
                                }
                            },
                            type: "minecraft:simple_state_provider"
                        },
                        height: 1b,
                        offset: [B; 0B, -1B, 0B],
                        predicate: {
                            predicates: [
                                {
                                    offset: [B; 0B, 1B, 0B],
                                    tag: "minecraft:air",
                                    type: "minecraft:matching_block_tag"
                                },
                                {
                                    blocks: "minecraft:water",
                                    type: "minecraft:matching_blocks"
                                },
                                {
                                    fluids: "minecraft:water",
                                    type: "minecraft:matching_fluids"
                                },
                                {
                                    type: "minecraft:unobstructed"
                                }
                            ],
                            type: "minecraft:all_of"
                        },
                        radius: {
                            max: 16b,
                            min: 0b,
                            type: "minecraft:clamped",
                            value: {
                                base: 3b,
                                per_level_above_first: 1b,
                                type: "minecraft:linear"
                            }
                        },
                        trigger_game_event: "minecraft:block_place",
                        type: "minecraft:replace_disk"
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            flags: {
                                is_on_ground: 1b
                            }
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/boots",
        max_cost: {
            base: 25b,
            per_level_above_first: 10b
        },
        max_level: 2b,
        min_cost: {
            base: 10b,
            per_level_above_first: 10b
        },
        slots: [
            "feet"
        ],
        supported_items: "#minecraft:enchantable/foot_armor",
        weight: 2b
    },
    "minecraft:impaling": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.impaling"
        },
        effects: {
            "minecraft:damage": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2.5f,
                            per_level_above_first: 2.5f,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            type: "#minecraft:sensitive_to_impaling"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 21b,
            per_level_above_first: 8b
        },
        max_level: 5b,
        min_cost: {
            base: 1b,
            per_level_above_first: 8b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/trident",
        weight: 2b
    },
    "minecraft:infinity": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.infinity"
        },
        effects: {
            "minecraft:ammo_use": [
                {
                    effect: {
                        type: "minecraft:set",
                        value: 0b
                    },
                    requirements: {
                        condition: "minecraft:match_tool",
                        predicate: {
                            items: "minecraft:arrow"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/bow",
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 20b,
            per_level_above_first: 0b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/bow",
        weight: 1b
    },
    "minecraft:knockback": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.knockback"
        },
        effects: {
            "minecraft:knockback": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 55b,
            per_level_above_first: 20b
        },
        max_level: 2b,
        min_cost: {
            base: 5b,
            per_level_above_first: 20b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/sword",
        weight: 5b
    },
    "minecraft:looting": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.looting"
        },
        effects: {
            "minecraft:equipment_drops": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 0.01d,
                            per_level_above_first: 0.01d,
                            type: "minecraft:linear"
                        }
                    },
                    enchanted: "attacker",
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "attacker",
                        predicate: {
                            type: "minecraft:player"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/sword",
        weight: 2b
    },
    "minecraft:loyalty": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.loyalty"
        },
        effects: {
            "minecraft:trident_return_acceleration": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 3b,
        min_cost: {
            base: 12b,
            per_level_above_first: 7b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/trident",
        weight: 5b
    },
    "minecraft:luck_of_the_sea": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.luck_of_the_sea"
        },
        effects: {
            "minecraft:fishing_luck_bonus": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/fishing",
        weight: 2b
    },
    "minecraft:lure": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.lure"
        },
        effects: {
            "minecraft:fishing_time_reduction": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 5b,
                            per_level_above_first: 5b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/fishing",
        weight: 2b
    },
    "minecraft:mending": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.mending"
        },
        effects: {
            "minecraft:repair_with_xp": [
                {
                    effect: {
                        factor: 2b,
                        type: "minecraft:multiply"
                    }
                }
            ]
        },
        max_cost: {
            base: 75b,
            per_level_above_first: 25b
        },
        max_level: 1b,
        min_cost: {
            base: 25b,
            per_level_above_first: 25b
        },
        slots: [
            "any"
        ],
        supported_items: "#minecraft:enchantable/durability",
        weight: 2b
    },
    "minecraft:multishot": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.multishot"
        },
        effects: {
            "minecraft:projectile_count": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2b,
                            per_level_above_first: 2b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ],
            "minecraft:projectile_spread": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 10b,
                            per_level_above_first: 10b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/crossbow",
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 20b,
            per_level_above_first: 0b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/crossbow",
        weight: 2b
    },
    "minecraft:piercing": {
        anvil_cost: 1b,
        description: {
            translate: "enchantment.minecraft.piercing"
        },
        effects: {
            "minecraft:projectile_piercing": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/crossbow",
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 4b,
        min_cost: {
            base: 1b,
            per_level_above_first: 10b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/crossbow",
        weight: 10b
    },
    "minecraft:power": {
        anvil_cost: 1b,
        description: {
            translate: "enchantment.minecraft.power"
        },
        effects: {
            "minecraft:damage": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 0.5f,
                            per_level_above_first: 0.5f,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "direct_attacker",
                        predicate: {
                            type: "#minecraft:arrows"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 16b,
            per_level_above_first: 10b
        },
        max_level: 5b,
        min_cost: {
            base: 1b,
            per_level_above_first: 10b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/bow",
        weight: 10b
    },
    "minecraft:projectile_protection": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.projectile_protection"
        },
        effects: {
            "minecraft:damage_protection": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2b,
                            per_level_above_first: 2b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            tags: [
                                {
                                    expected: 1b,
                                    id: "minecraft:is_projectile"
                                },
                                {
                                    expected: 0b,
                                    id: "minecraft:bypasses_invulnerability"
                                }
                            ]
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/armor",
        max_cost: {
            base: 9b,
            per_level_above_first: 6b
        },
        max_level: 4b,
        min_cost: {
            base: 3b,
            per_level_above_first: 6b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/armor",
        weight: 5b
    },
    "minecraft:protection": {
        anvil_cost: 1b,
        description: {
            translate: "enchantment.minecraft.protection"
        },
        effects: {
            "minecraft:damage_protection": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:damage_source_properties",
                        predicate: {
                            tags: [
                                {
                                    expected: 0b,
                                    id: "minecraft:bypasses_invulnerability"
                                }
                            ]
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/armor",
        max_cost: {
            base: 12b,
            per_level_above_first: 11b
        },
        max_level: 4b,
        min_cost: {
            base: 1b,
            per_level_above_first: 11b
        },
        slots: [
            "armor"
        ],
        supported_items: "#minecraft:enchantable/armor",
        weight: 10b
    },
    "minecraft:punch": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.punch"
        },
        effects: {
            "minecraft:knockback": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "direct_attacker",
                        predicate: {
                            type: "#minecraft:arrows"
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 37b,
            per_level_above_first: 20b
        },
        max_level: 2b,
        min_cost: {
            base: 12b,
            per_level_above_first: 20b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/bow",
        weight: 2b
    },
    "minecraft:quick_charge": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.quick_charge"
        },
        effects: {
            "minecraft:crossbow_charge_time": {
                type: "minecraft:add",
                value: {
                    base: -0.25f,
                    per_level_above_first: -0.25f,
                    type: "minecraft:linear"
                }
            },
            "minecraft:crossbow_charging_sounds": [
                {
                    end: "minecraft:item.crossbow.loading_end",
                    start: "minecraft:item.crossbow.quick_charge_1"
                },
                {
                    end: "minecraft:item.crossbow.loading_end",
                    start: "minecraft:item.crossbow.quick_charge_2"
                },
                {
                    end: "minecraft:item.crossbow.loading_end",
                    start: "minecraft:item.crossbow.quick_charge_3"
                }
            ]
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 3b,
        min_cost: {
            base: 12b,
            per_level_above_first: 20b
        },
        slots: [
            "mainhand",
            "offhand"
        ],
        supported_items: "#minecraft:enchantable/crossbow",
        weight: 5b
    },
    "minecraft:respiration": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.respiration"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: 1b,
                        per_level_above_first: 1b,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:generic.oxygen_bonus",
                    id: "minecraft:enchantment.respiration",
                    operation: "add_value"
                }
            ]
        },
        max_cost: {
            base: 40b,
            per_level_above_first: 10b
        },
        max_level: 3b,
        min_cost: {
            base: 10b,
            per_level_above_first: 10b
        },
        slots: [
            "head"
        ],
        supported_items: "#minecraft:enchantable/head_armor",
        weight: 2b
    },
    "minecraft:riptide": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.riptide"
        },
        effects: {
            "minecraft:trident_sound": [
                "minecraft:item.trident.riptide_1",
                "minecraft:item.trident.riptide_2",
                "minecraft:item.trident.riptide_3"
            ],
            "minecraft:trident_spin_attack_strength": {
                type: "minecraft:add",
                value: {
                    base: 1.5f,
                    per_level_above_first: 0.75f,
                    type: "minecraft:linear"
                }
            }
        },
        exclusive_set: "#minecraft:exclusive_set/riptide",
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 3b,
        min_cost: {
            base: 17b,
            per_level_above_first: 7b
        },
        slots: [
            "hand"
        ],
        supported_items: "#minecraft:enchantable/trident",
        weight: 2b
    },
    "minecraft:sharpness": {
        anvil_cost: 1b,
        description: {
            translate: "enchantment.minecraft.sharpness"
        },
        effects: {
            "minecraft:damage": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 1b,
                            per_level_above_first: 0.5f,
                            type: "minecraft:linear"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 21b,
            per_level_above_first: 11b
        },
        max_level: 5b,
        min_cost: {
            base: 1b,
            per_level_above_first: 11b
        },
        primary_items: "#minecraft:enchantable/sword",
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/sharp_weapon",
        weight: 10b
    },
    "minecraft:silk_touch": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.silk_touch"
        },
        effects: {
            "minecraft:block_experience": [
                {
                    effect: {
                        type: "minecraft:set",
                        value: 0b
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/mining",
        max_cost: {
            base: 65b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 15b,
            per_level_above_first: 0b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mining_loot",
        weight: 1b
    },
    "minecraft:smite": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.smite"
        },
        effects: {
            "minecraft:damage": [
                {
                    effect: {
                        type: "minecraft:add",
                        value: {
                            base: 2.5f,
                            per_level_above_first: 2.5f,
                            type: "minecraft:linear"
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            type: "#minecraft:sensitive_to_smite"
                        }
                    }
                }
            ]
        },
        exclusive_set: "#minecraft:exclusive_set/damage",
        max_cost: {
            base: 25b,
            per_level_above_first: 8b
        },
        max_level: 5b,
        min_cost: {
            base: 5b,
            per_level_above_first: 8b
        },
        primary_items: "#minecraft:enchantable/sword",
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/weapon",
        weight: 5b
    },
    "minecraft:soul_speed": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.soul_speed"
        },
        effects: {
            "minecraft:location_changed": [
                {
                    effect: {
                        amount: {
                            base: 0.0405d,
                            per_level_above_first: 0.0105d,
                            type: "minecraft:linear"
                        },
                        attribute: "minecraft:generic.movement_speed",
                        id: "minecraft:enchantment.soul_speed",
                        operation: "add_value",
                        type: "minecraft:attribute"
                    },
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                condition: "minecraft:inverted",
                                term: {
                                    condition: "minecraft:entity_properties",
                                    entity: "this",
                                    predicate: {
                                        vehicle: {}
                                    }
                                }
                            },
                            {
                                condition: "minecraft:any_of",
                                terms: [
                                    {
                                        condition: "minecraft:all_of",
                                        terms: [
                                            {
                                                active: 1b,
                                                condition: "minecraft:enchantment_active_check"
                                            },
                                            {
                                                condition: "minecraft:entity_properties",
                                                entity: "this",
                                                predicate: {
                                                    flags: {
                                                        is_flying: 0b
                                                    }
                                                }
                                            },
                                            {
                                                condition: "minecraft:any_of",
                                                terms: [
                                                    {
                                                        condition: "minecraft:entity_properties",
                                                        entity: "this",
                                                        predicate: {
                                                            movement_affected_by: {
                                                                block: {
                                                                    blocks: "#minecraft:soul_speed_blocks"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    {
                                                        condition: "minecraft:entity_properties",
                                                        entity: "this",
                                                        predicate: {
                                                            flags: {
                                                                is_on_ground: 0b
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        condition: "minecraft:all_of",
                                        terms: [
                                            {
                                                active: 0b,
                                                condition: "minecraft:enchantment_active_check"
                                            },
                                            {
                                                condition: "minecraft:entity_properties",
                                                entity: "this",
                                                predicate: {
                                                    flags: {
                                                        is_flying: 0b
                                                    },
                                                    movement_affected_by: {
                                                        block: {
                                                            blocks: "#minecraft:soul_speed_blocks"
                                                        }
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                },
                {
                    effect: {
                        amount: 1b,
                        attribute: "minecraft:generic.movement_efficiency",
                        id: "minecraft:enchantment.soul_speed",
                        operation: "add_value",
                        type: "minecraft:attribute"
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            movement_affected_by: {
                                block: {
                                    blocks: "#minecraft:soul_speed_blocks"
                                }
                            }
                        }
                    }
                },
                {
                    effect: {
                        amount: 1b,
                        type: "minecraft:damage_item"
                    },
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                chance: {
                                    amount: 0.04d,
                                    type: "minecraft:enchantment_level"
                                },
                                condition: "minecraft:random_chance"
                            },
                            {
                                condition: "minecraft:entity_properties",
                                entity: "this",
                                predicate: {
                                    flags: {
                                        is_on_ground: 1b
                                    },
                                    movement_affected_by: {
                                        block: {
                                            blocks: "#minecraft:soul_speed_blocks"
                                        }
                                    }
                                }
                            }
                        ]
                    }
                }
            ],
            "minecraft:tick": [
                {
                    effect: {
                        horizontal_position: {
                            type: "in_bounding_box"
                        },
                        horizontal_velocity: {
                            movement_scale: -0.2d
                        },
                        particle: {
                            type: "minecraft:soul"
                        },
                        speed: 1b,
                        type: "minecraft:spawn_particles",
                        vertical_position: {
                            offset: 0.1d,
                            type: "entity_position"
                        },
                        vertical_velocity: {
                            base: 0.1d
                        }
                    },
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "this",
                        predicate: {
                            flags: {
                                is_flying: 0b,
                                is_on_ground: 1b
                            },
                            movement: {
                                horizontal_speed: {
                                    min: 1.0E-5f
                                }
                            },
                            movement_affected_by: {
                                block: {
                                    blocks: "#minecraft:soul_speed_blocks"
                                }
                            },
                            periodic_tick: 5b
                        }
                    }
                },
                {
                    effect: {
                        pitch: {
                            max_exclusive: 1b,
                            min_inclusive: 0.6d,
                            type: "minecraft:uniform"
                        },
                        sound: "minecraft:particle.soul_escape",
                        type: "minecraft:play_sound",
                        volume: 0.6d
                    },
                    requirements: {
                        condition: "minecraft:all_of",
                        terms: [
                            {
                                chance: 0.35d,
                                condition: "minecraft:random_chance"
                            },
                            {
                                condition: "minecraft:entity_properties",
                                entity: "this",
                                predicate: {
                                    flags: {
                                        is_flying: 0b,
                                        is_on_ground: 1b
                                    },
                                    movement: {
                                        horizontal_speed: {
                                            min: 1.0E-5f
                                        }
                                    },
                                    movement_affected_by: {
                                        block: {
                                            blocks: "#minecraft:soul_speed_blocks"
                                        }
                                    },
                                    periodic_tick: 5b
                                }
                            }
                        ]
                    }
                }
            ]
        },
        max_cost: {
            base: 25b,
            per_level_above_first: 10b
        },
        max_level: 3b,
        min_cost: {
            base: 10b,
            per_level_above_first: 10b
        },
        slots: [
            "feet"
        ],
        supported_items: "#minecraft:enchantable/foot_armor",
        weight: 1b
    },
    "minecraft:sweeping_edge": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.sweeping_edge"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        denominator: {
                            base: 2b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        },
                        numerator: {
                            base: 1b,
                            per_level_above_first: 1b,
                            type: "minecraft:linear"
                        },
                        type: "minecraft:fraction"
                    },
                    attribute: "minecraft:player.sweeping_damage_ratio",
                    id: "minecraft:enchantment.sweeping_edge",
                    operation: "add_value"
                }
            ]
        },
        max_cost: {
            base: 20b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 5b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/sword",
        weight: 2b
    },
    "minecraft:swift_sneak": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.swift_sneak"
        },
        effects: {
            "minecraft:attributes": [
                {
                    amount: {
                        base: 0.15d,
                        per_level_above_first: 0.15d,
                        type: "minecraft:linear"
                    },
                    attribute: "minecraft:player.sneaking_speed",
                    id: "minecraft:enchantment.swift_sneak",
                    operation: "add_value"
                }
            ]
        },
        max_cost: {
            base: 75b,
            per_level_above_first: 25b
        },
        max_level: 3b,
        min_cost: {
            base: 25b,
            per_level_above_first: 25b
        },
        slots: [
            "legs"
        ],
        supported_items: "#minecraft:enchantable/leg_armor",
        weight: 1b
    },
    "minecraft:thorns": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.thorns"
        },
        effects: {
            "minecraft:post_attack": [
                {
                    affected: "attacker",
                    effect: {
                        effects: [
                            {
                                damage_type: "minecraft:thorns",
                                max_damage: 5b,
                                min_damage: 1b,
                                type: "minecraft:damage_entity"
                            },
                            {
                                amount: 2b,
                                type: "minecraft:damage_item"
                            }
                        ],
                        type: "minecraft:all_of"
                    },
                    enchanted: "victim",
                    requirements: {
                        chance: {
                            amount: {
                                base: 0.15d,
                                per_level_above_first: 0.15d,
                                type: "minecraft:linear"
                            },
                            type: "minecraft:enchantment_level"
                        },
                        condition: "minecraft:random_chance"
                    }
                }
            ]
        },
        max_cost: {
            base: 60b,
            per_level_above_first: 20b
        },
        max_level: 3b,
        min_cost: {
            base: 10b,
            per_level_above_first: 20b
        },
        primary_items: "#minecraft:enchantable/chest_armor",
        slots: [
            "any"
        ],
        supported_items: "#minecraft:enchantable/armor",
        weight: 1b
    },
    "minecraft:unbreaking": {
        anvil_cost: 2b,
        description: {
            translate: "enchantment.minecraft.unbreaking"
        },
        effects: {
            "minecraft:item_damage": [
                {
                    effect: {
                        chance: {
                            denominator: {
                                base: 10b,
                                per_level_above_first: 5b,
                                type: "minecraft:linear"
                            },
                            numerator: {
                                base: 2b,
                                per_level_above_first: 2b,
                                type: "minecraft:linear"
                            },
                            type: "minecraft:fraction"
                        },
                        type: "minecraft:remove_binomial"
                    },
                    requirements: {
                        condition: "minecraft:match_tool",
                        predicate: {
                            items: "#minecraft:enchantable/armor"
                        }
                    }
                },
                {
                    effect: {
                        chance: {
                            denominator: {
                                base: 2b,
                                per_level_above_first: 1b,
                                type: "minecraft:linear"
                            },
                            numerator: {
                                base: 1b,
                                per_level_above_first: 1b,
                                type: "minecraft:linear"
                            },
                            type: "minecraft:fraction"
                        },
                        type: "minecraft:remove_binomial"
                    },
                    requirements: {
                        condition: "minecraft:inverted",
                        term: {
                            condition: "minecraft:match_tool",
                            predicate: {
                                items: "#minecraft:enchantable/armor"
                            }
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 55b,
            per_level_above_first: 8b
        },
        max_level: 3b,
        min_cost: {
            base: 5b,
            per_level_above_first: 8b
        },
        slots: [
            "any"
        ],
        supported_items: "#minecraft:enchantable/durability",
        weight: 5b
    },
    "minecraft:vanishing_curse": {
        anvil_cost: 8b,
        description: {
            translate: "enchantment.minecraft.vanishing_curse"
        },
        effects: {
            "minecraft:prevent_equipment_drop": {}
        },
        max_cost: {
            base: 50b,
            per_level_above_first: 0b
        },
        max_level: 1b,
        min_cost: {
            base: 25b,
            per_level_above_first: 0b
        },
        slots: [
            "any"
        ],
        supported_items: "#minecraft:enchantable/vanishing",
        weight: 1b
    },
    "minecraft:wind_burst": {
        anvil_cost: 4b,
        description: {
            translate: "enchantment.minecraft.wind_burst"
        },
        effects: {
            "minecraft:post_attack": [
                {
                    affected: "attacker",
                    effect: {
                        block_interaction: "trigger",
                        immune_blocks: "#minecraft:blocks_wind_charge_explosions",
                        knockback_multiplier: {
                            fallback: {
                                base: 1.5f,
                                per_level_above_first: 0.35d,
                                type: "minecraft:linear"
                            },
                            type: "minecraft:lookup",
                            values: [
                                {
                                    "": 1.2d
                                },
                                {
                                    "": 1.75f
                                },
                                {
                                    "": 2.2d
                                }
                            ]
                        },
                        large_particle: {
                            type: "minecraft:gust_emitter_large"
                        },
                        radius: 3.5f,
                        small_particle: {
                            type: "minecraft:gust_emitter_small"
                        },
                        sound: "minecraft:entity.wind_charge.wind_burst",
                        type: "minecraft:explode"
                    },
                    enchanted: "attacker",
                    requirements: {
                        condition: "minecraft:entity_properties",
                        entity: "direct_attacker",
                        predicate: {
                            flags: {
                                is_flying: 0b
                            },
                            movement: {
                                fall_distance: {
                                    min: 1.5f
                                }
                            }
                        }
                    }
                }
            ]
        },
        max_cost: {
            base: 65b,
            per_level_above_first: 9b
        },
        max_level: 3b,
        min_cost: {
            base: 15b,
            per_level_above_first: 9b
        },
        slots: [
            "mainhand"
        ],
        supported_items: "#minecraft:enchantable/mace",
        weight: 2b
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy