- 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
Date2018/11/02 03:27:21 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
3000
    on player right clicks with cookie:  
      - if "<player.inventory.contains.display[<&b><&l>xxx]>" { 
        - if <player.location.world> == w@DvZ_Lobby {
          - flag server currentPlayer:<player.name>
          - inject itemy1
        } else { 
          - narrate "<&e>                           <&l><&lb><&6>xxxx!" 
          - determine fulfilled 
        
        }
      }




itemy1:  
    type: task 
    script:  
    - wait 5 
    - if !<server.flag[currentPlayer].as_player.has_flag[limit]> {  
      - flag <server.flag[currentPlayer].as_player> limit:60s  
        - if !<server.flag[currentPlayer].as_player.has_effect[NIGHT_VISION]> { 
          - if <server.flag[currentPlayer].as_player.location.world> == w@DvZ_Main0 { 
            - if <server.flag[currentPlayer].as_player.has_permission[denizen.dragon]> { 
              - execute as_server 'give <server.flag[currentPlayer].as_player.name> 278 1 sharpness:5 fireaspect:1 efficiency:2 durability:10 fortune:3 name:&4&lxxx!' 
            }
          }
        }
      }



RawRaw



Pastes made: 57255