You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227

Diff note for paste #21597
Diff
2015/10/26 00:01:07 UTC-07:00
Guest
Click here to view this paste as a raw text file | Or download the script


 # Author Seq 
 # LuckyBlocks v1.7
 # Denizen Script to create LuckyBlock plugin
 LuckyBlockLoad:
   type: world
   events:
     on server start:
     - flag server "LuckyBlockStatus:false"
 LuckyBlocks_Commands:
   type: command
   name: luckyblock
   description: Commands for LuckyBlocks.
-  usage: /luckyblock
+  usage: /luckyblock <&lt>action<&gt> <&lt>player<&gt> <&lt>Quantity<&gt>
   permission: luckyblock.command
   script:
     - define arg_size <context.args.size>
     - if %arg_size% == 0 {
       - run LuckyBlockInfo
       - determine fulfilled
       }
       else { 
-      - if <context.args.get[1]> != ver && <context.args.get[1]> != help && <context.args.get[1]> != give && <context.args.get[1]> != stop && <context.args.get[1]> != start {
+      - if <context.args.get[1]> != ver && <context.args.get[1]> != give && <context.args.get[1]> != stop && <context.args.get[1]> != start {
         - narrate '<red>Unknown Argument(s)!'
         - determine fulfilled
         }
         else if <context.args.get[1]> == "stop" {
         - if <flag.server[LuckyBlockStatus]> == false {
           - narrate '<gold>LuckyBlocks is already <dark_red>false<gold>!'
           - determine fulfilled
           }
           else { 
           - narrate '<red>Stopping LuckyBlock.'
           - flag server "LuckyBlockStatus:false"
           - determine fulfilled
         }
       }
         else if <context.args.get[1]> == "start" {
         - if <flag.server[LuckyBlockStatus]> == true {
           - narrate '<gold>LuckyBlocks is already <green>true<gold>!'
           - determine fulfilled
           }
           else {
           - narrate '<green>Starting LuckyBlock.'
           - flag server "LuckyBlockStatus:true"
           - run BlockListener
           - determine fulfilled  
         } 
       }        
-        else if <context.args.get[1]> == "help" {
-        - narrate '<white>Command Usage:'
-        - narrate '<gold>/luckyblock <yellow><&lt>Arguments<&gt>' 
-        - narrate '<gold>/luckyblock<white> Basic instructions for using LuckyBlocks in game.'
-        - narrate '<gold>/luckyblock <yellow>ver<white> Diplays current version of dLuckyBlock.'
-        - narrate '<gold>/luckyblock <yellow>give <&lt>Player<&gt> <&lt>Qty<&gt><white> Gives LuckyBlock(s).'
-        - determine fulfilled
-        }
         else if <context.args.get[1]> == "ver" {
         - narrate '<gold>LuckyBlock v1.7<yellow> by SeqSEE'
         - determine fulfilled
         }
         else if <context.args.get[1]> == "give" {
         - define Player <server.match_player[<context.args.get[2]>]||null>
         - if <def[Player]> == null {              
-          - give i@sponge qty:1
+          - give i@sponge quantity:1
           - determine fulfilled
           }
           else {
           - if <context.args.get[3].length> == 0 {
-            - give i@sponge qty:1 player:<def[Player]>
+            - give i@sponge quantity:1 player:<def[Player]>
             - determine fulfilled
             }
             else {
             - if <context.args.get[3]> == null {
-              - give i@sponge qty:1 player:<def[Player]>
+              - give i@sponge quantity:1 player:<def[Player]>
               - determine fulfilled
               }
               else if <context.args.get[3]> matches number {
-              - give i@sponge qty:<context.args.get[3]> player:<def[Player]>
+              - give i@sponge quantity:<context.args.get[3]> player:<def[Player]>
               - determine fulfilled
               }
               else {
               - narrate "<red><context.args.get[3]> is not a valid quantity!"
               - determine fulfilled
               }
             }
                 
           } 
         }
 
         }
 
 LuckyBlockInfo:
   type: task
   debug: false
   script:
     - narrate "<gold>LuckyBlocks Active:<white> <server.flag[LuckyBlockStatus]>"
     - wait 1
     - narrate "<yellow>Place LuckyBlocks and break them for surprises!"
     - wait 1 
     - narrate "<yellow>Wet LuckyBlocks are more potent, so to speak."   
 BlockListener:
   type: world 
   debug: false
   events:
     on player breaks block:
     - if <server.flag[LuckyBlockStatus]> == true {
       - flag "BlockLocation:<context.location>"
       - if <context.material> == m@sponge {
         - run 'DryBroken'
         - determine passively "NOTHING"        
         }
         else if <context.material> == m@sponge,1 {
         - run 'WetBroken'
         - determine passively "NOTHING"
         }
       }        
       else if <server.flag[LuckyBlockStatus]> == false {
       }
 DryBroken:
   type: task
   debug: false
   script:
   - random 8
   - run Popcorn
-  - drop i@gold_ingot <player.flag[BlockLocation]> qty:32
+  - drop i@gold_ingot <player.flag[BlockLocation]> quantity:32
   - spawn zombie|zombie|zombie <player.flag[BlockLocation]>
-  - drop i@iron_sword|i@iron_chestplate|i@iron_leggings|i@iron_helmet| <player.flag[BlockLocation]> qty:1
+  - drop i@iron_sword|i@iron_chestplate|i@iron_leggings|i@iron_helmet| <player.flag[BlockLocation]> quantity:1
   - run SkeleBats
   - explode power:5 <player.flag[BlockLocation]> fire breakblocks
-  - drop i@iron_ingot <player.flag[BlockLocation]> qty:64
-  - drop i@diamond <player.flag[BlockLocation]> qty:16
+  - drop i@iron_ingot <player.flag[BlockLocation]> quantity:64
+  - drop i@diamond <player.flag[BlockLocation]> quantity:16
 WetBroken:
   type: task
   debug: false
   script:
   - random 9
   - run ZombiesOnChickens
   - run BombBats 
-  - drop i@diamond_block <player.flag[BlockLocation]> qty:1
-  - drop i@gold_block <player.flag[BlockLocation]> qty:5
+  - drop i@diamond_block <player.flag[BlockLocation]> quantity:1
+  - drop i@gold_block <player.flag[BlockLocation]> quantity:5
   - spawn creeper|creeper|creeper|creeper|creeper <player.flag[BlockLocation]> persistent
   - drop i@diamond_sword|i@diamond_chestplate|i@diamond_leggings|i@diamond_helmet| <player.flag[BlockLocation]>
   - run SpiderJokeys
   - run Skelombie
   - run BurriedAlive
 GiveLightDamage:
   type: task
   debug: false
   script:
   # Gives player light damage.
   - hurt 2.5 <player> 
 GiveMediumDamage:
   type: task
   debug: false
   script:
   # Gives player medium damage.
   - hurt 5 <player> 
 GiveHeavyDamage:
   type: task
   debug: false
   script:
   # Gives player heavy damage.
   - hurt 10 <player> 
 BombBats:
   type: task
   debug: false
   script:
   - repeat 6 {
     - mount e@primed_tnt|bat <player.flag[BlockLocation]>
     }
 SkeleBats:
   type: task
   debug: false
   script:
   - repeat 6 {
     - mount e@Skeleton|bat <player.flag[BlockLocation]>
     }
 SpiderJokeys:
   type: task
   debug: false
   script:
   - repeat 6 {
     - mount e@Skeleton|Spider <player.flag[BlockLocation]>
   }
 ZombiesOnChickens:
   type: task
   debug: false
   script:
   - repeat 6 {
     - mount e@Zombie|chicken <player.flag[BlockLocation]>
     }
 Skelombie:
   type: task
   debug: false
   script:
   - repeat 6 {
     - mount e@Skeleton|zombie <player.flag[BlockLocation]>
     }
 Popcorn:
   type: task
   debug: false
   script:
   - shoot <player> origin:<player.location> destination:<player.location.add[0,20,0]> script:GiveMediumDamage
   - narrate "Popcorn!"
 BurriedAlive:
   type: task
   debug: false
   script:
   - teleport <player> <player.location.sub[0,4,0]> 
   - run GiveHeavyDamage
   - narrate "Burried Alive!"
-