- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2015/10/18 05:14:57 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
4300
Backpack Script:
    type: world
    events:
        on player right clicks with Backpack:
        - determine cancelled passively
        - if <player.has_flag[Backpack_Noted]>
            {
            - inventory open d:in@<player.name>_backpack
            - queue clear
            }
            else
            {
            - note in@Backpack_inventory as:<player.name>_backpack
            - inventory open d:in@<player.name>_backpack
            - flag <player> Backpack_Noted
            - queue clear
            }
        on player clicks backpack in inventory:
        - if <c.inventory.title> == <gold>Backpack
            {
            - narrate "<red>You cannot move your backpack while using it.."
            - inventory close d:in@<player.name>_backpack
            - determine cancelled
            }
            
Backpack_inventory:
    type: inventory
    inventory: chest
    title<gold>Backpack
    size: 36
    slots:
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
Backpack:
    type: item
    material: saddle
    display name<gold>Backpack
    lore:
    - <blue>The backpack will help 
    - <blue>you carry more stuff!



RawRaw



Pastes made: 79782