Paste #69001: Untitled Paste

Date: 2020/05/15 00:38:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


repairgem:
    type: item
    material: paper
    display name: "<blue>Repair Gem"
    lore:
        - "<aqua>Used to repair items"

airItem:
    type: item
    material: air
    display name: " "
    lore:
        - " "

RepairGem_Logic:
    type: world
    debug: true
    events:
        on player clicks in inventory with repairgem:
            - if <context.item.repairable>:
                - inventory adjust slot:<context.slot> durability:0
                # Insert something here to remove the item that is on the cursor
                - determine cancelled