Paste #57069: Edit of P#57054 - Edit of P#57053 - Edit of P#57052 - Edit of P#57051 - Edit of P#57050 - test

Date: 2019/08/18 15:32:52 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


enchant_menu:
    type: inventory
    debug: true
    title: Commands
    size: 27
    slots:
    - "[] [] [] [] [] [] [] [] []"
    - "[i@enchant_menu_slot10] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"

enchant_menu_slot10:
    type: item
    debug: true
    material: furnance
    display name: Set Home
    lore:
    -'Buy Access To Set 3x Homes.'

enchant_menu_handler:
    type: world
    debug: true
    events:
        on player clicks in enchant_menu:
            - determine cancelled
        on player drags in enchant_menu:
            - determine cancelled
        on player clicks enchant_menu_slot10 in enchant_menu:
            - if <player.money> >= 40000:
                - if PlayerTag.has_permission[essentials.sethome]:
                    - inventory set d:<context.inventory> o:i@red_stained_glass_pane[display_name=Already<&sp>bought.] slot:10
                - else:
                    - execute [as_server] <manuaddp essentials.sethome> (silent)
                    - take money quantity:40000
                    - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP
            - else:
                - inventory set d:<context.inventory> o:i@red_stained_glass_pane[display_name=Insufficient<&sp>funds.] slot:10

commandstobuy_command:
    type: command
    debug: true
    name: commandstobuy
    usage: /commands
    description: Open's Commands.
    script:
        - note in@enchant_menu as:EnchantInv
        - inventory open d:in@EnchantInv