Paste #122665: Custom Enchant Stuff

Date: 2024/05/12 14:07:46 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Enchantment_Table_Changes:
    type: world
    debug: false
    events:
        on player prepares item enchant:
        - define offers <context.offers>
        - define offers <[offers].set[<map[cost=19;enchantment=funko_pop;enchantment_type=<enchantment[funko_pop]>;level=5;flag_enchantment=true]>].at[2]>
        - flag <player> data.enchantmentTable:<[offers]>
        - inventory update destination:<player.inventory>
        - determine OFFERS:<[offers]>

funko_pop:
    type: enchantment
    debug: false
    id: funko_pop
    slots:
    - mainhand
    rarity: common
    category: weapon
    full_name: Funko Pop <context.level>
    max_level: 3
    min_cost: <context.level>
    max_cost: <context.level.mul[1.5].round>
    is_tradable: false