· 10 years ago · Sep 16, 2016, 10:08 PM
1# ____ _ _____ ____ _ _ ____ _
2# | _ \ _ _ ___ | |_ |__ / / ___| _ _ _ __ __ __ (_) __ __ __ _ | | / ___| __ _ _ __ ___ ___ _ __ ___ ___ __| | ___
3# | |_) | | | | | / __| | __| / / \___ \ | | | | | '__| \ \ / / | | \ \ / / / _` | | | | | _ / _` | | '_ ` _ \ / _ \ | '_ ` _ \ / _ \ / _` | / _ \
4# | _ < | |_| | \__ \ | |_ / /_ ___) | | |_| | | | \ V / | | \ V / | (_| | | | | |_| | | (_| | | | | | | | | __/ | | | | | | | (_) | | (_| | | __/
5# |_| \_\ \__,_| |___/ \__| /____| |____/ \__,_| |_| \_/ |_| \_/ \__,_| |_| \____| \__,_| |_| |_| |_| \___| |_| |_| |_| \___/ \__,_| \___|
6#
7
8#============================================================
9# YOU CAN'T EDIT THIS SCRIPT | AUTHOR: Edoboss99/YoshYz
10#============================================================
11options:
12 version: 5.9 #DON'T CHANGE THIS
13 Cooldown.zombies: 2 minutes
14 Cooldown.pigs: 1 minute
15 Cooldown.airdrops: 5 minutes
16
17#============================================================
18#Create|Load Config File |Save|Edit|Change Value of Config
19#============================================================
20
21on skript load:
22#Config Create
23 if folder "plugins/Rust" doesn't exists:
24 create folder "plugins/Rust"
25 if file "plugins/Rust/Config.yml" doesn't exists:
26 create file "plugins/Rust/Config.yml"
27 set "Prefix" to "Rust" in yaml file "plugins/Rust/Config.yml"
28 set "Recipes.Name" to "Recipes" in yaml file "plugins/Rust/Config.yml"
29 set "Recipes.Drop" to "false" in yaml file "plugins/Rust/Config.yml"
30 set "Scoreboard" to "true" in yaml file "plugins/Rust/Config.yml"
31 if file "plugins/Rust/Messages.yml" doesn't exists:
32 create file "plugins/Rust/Messages.yml"
33 set "Messages.NoPermissions" to "You dont have any permissions for use this command !" in yaml file "plugins/Rust/Messages.yml"
34 set "Messages.SpawnSet" to "You have set spawn." in yaml file "plugins/Rust/Messages.yml"
35 set "Messages.FirstJoin" to "Welcome to the RustZ Network !" in yaml file "plugins/Rust/Messages.yml"
36 if file "plugins/Rust/CustomEntities.yml" doesn't exists:
37 create file "plugins/Rust/CustomEntities.yml"
38 set "Mobs.Zombies" to "true" in yaml file "plugins/Rust/CustomEntities.yml"
39 set "Mobs.Pigs" to "True" in yaml file "plugins/Rust/CustomEntities.yml"
40 set "Cooldown.Zombies" to "Set the time in the skript options" in yaml file "plugins/Rust/CustomEntities.yml"
41 set "Cooldown.Pigs" to "Set the time in the skript options" in yaml file "plugins/Rust/CustomEntities.yml"
42 set "Cooldown.Airdrops" to "Set the time in the skript options" in yaml file "plugins/Rust/CustomEntities.yml"
43 set "Name.Pigs" to "&ePig" in yaml file "plugins/Rust/CustomEntities.yml"
44 set "Name.Zombies" to "&eZombie" in yaml file "plugins/Rust/CustomEntities.yml"
45 if file "plugins/Rust/World.yml" doesn't exists:
46 create file "plugins/Rust/World.yml"
47 set "World" to "world" in yaml file "plugins/Rust/World.yml"
48 if file "plugins/Rust/Scoreboard.yml" doesn't exists:
49 create file "plugins/Rust/Scoreboard.yml"
50 set "Scoreboard.Title" to "RustZ" in yaml file "plugins/Rust/Scoreboard.yml"
51 set "Scoreboard.Kills" to "Kills:" in yaml file "plugins/Rust/Scoreboard.yml"
52 set "Scoreboard.Deaths" to "Deaths:" in yaml file "plugins/Rust/Scoreboard.yml"
53 set "Scoreboard.Mobs" to "Mobs:" in yaml file "plugins/Rust/Scoreboard.yml"
54 set "Scoreboard.Resources" to "Resources:" in yaml file "plugins/Rust/Scoreboard.yml"
55 set "Scoreboard.Ratio" to "Ratio:" in yaml file "plugins/Rust/Scoreboard.yml"
56 if file "plugins/Rust/Tablist.yml" doesn't exists:
57 create file "plugins/Rust/Tablist.yml"
58 set "Tablist.Header" to "RustZ" in yaml file "plugins/Rust/Tablist.yml"
59 set "Tablist.Footer" to "Official Server" in yaml file "plugins/Rust/Tablist.yml"
60#Internal
61#Config.yml
62 set {prefix} to single value "Prefix" get of "plugins/Rust/Config.yml"
63 set {recipes.name} to single value "Recipes.Name" get of "plugins/Rust/Config.yml"
64 set {recipes.drop} to single value "Recipes.Drop" get of "plugins/Rust/Config.yml"
65 set {scoreboard} to single value "Scoreboard" get of "plugins/Rust/Config.yml"
66#Messages.yml
67 set {message.nopermissions} to single value "Messages.NoPermissions" get of "plugins/Rust/Messages.yml"
68 set {message.spawnset} to single value "Messages.SpawnSet" get of "plugins/Rust/Messages.yml"
69 set {message.firstjoin} to single value "Messages.FirstJoin" get of "plugins/Rust/Messages.yml"
70#CustomEntities.yml
71 set {mobs.zombies} to single value "Mobs.Zombies" get of "plugins/Rust/CustomEntities.yml"
72 set {mobs.pigs} to single value "Mobs.Pigs" get of "plugins/Rust/CustomEntities.yml"
73 set {cooldown.zombies} to single value "Cooldown.Zombies" get of "plugins/Rust/CustomEntities.yml"
74 set {cooldown.pigs} to single value "Cooldown.Pigs" get of "plugins/Rust/CustomEntities.yml"
75 set {cooldown.airdrops} to single value "Cooldown.Airdrops" get of "plugins/Rust/CustomEntities.yml"
76 set {name.zombies} to single value "Name.Zombies" get of "plugins/Rust/CustomEntities.yml"
77 set {name.pigs} to single value "Name.Pigs" get of "plugins/Rust/CustomEntities.yml"
78#World.yml
79 set {world} to single value "World" get of "plugins/Rust/World.yml"
80#Scoreboard.yml
81 set {scoreboard.title} to single value "Scoreboard.Title" get of "plugins/Rust/Scoreboard.yml"
82 set {scoreboard.kills} to single value "Scoreboard.Kills" get of "plugins/Rust/Scoreboard.yml"
83 set {scoreboard.deaths} to single value "Scoreboard.Deaths" get of "plugins/Rust/Scoreboard.yml"
84 set {scoreboard.mobs} to single value "Scoreboard.Mobs" get of "plugins/Rust/Scoreboard.yml"
85 set {scoreboard.resources} to single value "Scoreboard.Resources" get of "plugins/Rust/Scoreboard.yml"
86 set {scoreboard.ratio} to single value "Scoreboard.Ratio" get of "plugins/Rust/Scoreboard.yml"
87#Tablist.yml
88 set {header} to single value "Tablist.Header" get of "plugins/Rust/Tablist.yml"
89 set {footer} to single value "Tablist.Footer" get of "plugins/Rust/Tablist.yml"
90
91#============================================================
92#Commands
93#============================================================
94
95command /rustz [<text>] [<text>] [<number>]:
96 aliases: /rustz,/rust,/ru
97 usage: /rustz [command]
98 trigger:
99 if argument 1 isn't set:
100 make player execute command "/rustz info"
101 if argument 1 is "info":
102 message "&c&l&m------------------------------"
103 message ""
104 message " &6RυšтZ SÏ…Ñνıναł Gαмeмøđe"
105 message ""
106 message "&7ID Version: &e{@version}"
107 message "&7Author: &6edoboss99/&9Dr_YoshYz" #DON'T CHANGE THIS
108 message "&7Report &8any &7bug or issue!"
109 message "&aMain command: &6/rustz help"
110 message ""
111 message "&c&l&m------------------------------"
112 if argument 2 is "resources":
113 message "&c&l&m------------------------------"
114 message ""
115 message "&6Resources:"
116 message "&cResources class: &aAnimal - Natural - Minerals"
117 message ""
118 message "&eAnimal: &7You can earn &aanimal &7resources by killing mobs or players."
119 message "&eNatural: &7You can earn &anatural &7resources by break wood [SPRUCE WOOD]."
120 message "&eMinerals: &7You can earn &aminerals &7resources by break resource block (coal-block)."
121 message ""
122 message "&7After a period of time the resource will be relocated automatically."
123 if player is op:
124 message "&7With pex &erustz.resources.bypass &7you can break all blocks without the relocation of them."
125 message "&c&l&m------------------------------"
126 if argument 2 is "lock":
127 message "&c&l&m------------------------------"
128 message ""
129 message "&6Lock Commands:"
130 message "&c/lock"
131 message "&c/lock add [member]"
132 message "&c/lock remove [member]"
133 message "&c/lock unset"
134 message "&7You need to target the door !"
135 message "&7You can break enemies doors only with Iron Axe or TNT."
136 message ""
137 message "&c&l&m------------------------------"
138 if argument 1 is "set":
139 player's world is "%{world}%":
140 if player has permission "rustz.set":
141 if argument 2 isn't set:
142 message "&c&l&m------------------------------"
143 message "&6RυѕтƵ Sєттιηgѕ"
144 message ""
145 if {rustz.spawn} is set:
146 message "&6Spawn &7| &aAlready set"
147 if {rustz.spawn} isn't set:
148 message "&6Spawn &7| &cNever set | /rustz set spawn"
149 message ""
150 message "&7You can set the airdrops points with command >"
151 message "&c/rustz set airdrop &6[1-100] &7."
152 message ""
153 message "&7You can set the spawnpoints points with command >"
154 message "&c/rustz set spawnpoint &6[1-100] &7."
155 message ""
156 message "&c&l&m------------------------------"
157 if argument 2 is "airdrop":
158 if argument 3 is set:
159 if player has permission "rustz.set.airdrops":
160 remove {rustz.airdrop.%arg-3%} from {airdrops::*}
161 delete {rustz.airdrop.%arg-3%}
162 set {rustz.airdrop.%arg-3%} to location of player
163 add {rustz.airdrop.%arg-3%} to {airdrops::*}
164 message "&7[&6%{prefix}%&7] &6You have set &cairdrop N.%arg-3%"
165 send player title "&6You have set" with subtitle "&cAirdrop N.%arg-3%" for 2 seconds
166 else:
167 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
168 set action bar of player to "&c&l%{message.nopermissions}%"
169 stop
170 else:
171 message "&7[&6%{prefix}%&7] &cYou need to set the number of airdrop point."
172 set action bar of player to "&c&lYou need to set the number of airdrop point."
173 stop
174 if argument 2 is "spawnpoint":
175 if argument 3 is set:
176 if player has permission "rustz.set.spawnpoints":
177 remove {rustz.spawnpoint.%arg-3%} from {spawnpoints::*}
178 delete {rustz.spawnpoint.%arg-3%}
179 set {rustz.spawnpoint.%arg-3%} to location of player
180 add {rustz.spawnpoint.%arg-3%} to {spawnpoints::*}
181 message "&7[&6%{prefix}%&7] &6You have set &cspawnpoint N.%arg-3%"
182 send player title "&6You have set" with subtitle "&cSpawnpoint N.%arg-3%" for 2 seconds
183 else:
184 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
185 set action bar of player to "&c&l%{message.nopermissions}%"
186 stop
187 else:
188 message "&7[&6%{prefix}%&7] &cYou need to set the number of spawnpoint."
189 set action bar of player to "&c&lYou need to set the number of spawnpoint."
190 stop
191 if argument 2 is "spawn":
192 if player has permission "rustz.set.spawn":
193 set {rustz.spawn} to location of player
194 message "&7[&6%{prefix}%&7] &7%{message.spawnset}%"
195 send player title "&6You have set" with subtitle "&c&lThe Spawn" for 2 seconds
196 else:
197 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
198 set action bar of player to "&c&l%{message.nopermissions}%"
199 stop
200 else:
201 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
202 set action bar of player to "&c&l%{message.nopermissions}%"
203 stop
204 if argument 1 is "reload":
205 if player has permission "rustz.reload":
206 message "%{prefix}% &aReload Completed !"
207 set action bar of player to "&a&lReload Completed !"
208 make console execute command "/skript reload all"
209 make console execute command "/reload"
210 else:
211 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
212 set action bar of player to "&c&l%{message.nopermissions}%"
213 stop
214 if argument 1 is "permissions" or "help":
215 if player has permission "rustz.help":
216 message "&c&l&m------------------------------"
217 message "&6RυƨтZ HεʟÏ"
218 message ""
219 message "&7/RustZ help | &erustz.help"
220 message "&7/RustZ info"
221 message "&7/RustZ info resources/lock"
222 message "&7/RustZ set | &erustz.set"
223 message "&7/RustZ set airdrop [Value] | &erustz.set.airdrops"
224 message "&7/RustZ set spawnpoint [Value] | &erustz.set.spawnpoints"
225 message "&7/RustZ set spawn | &erustz.set.spawn"
226 message "&7/RustZ reload | &erustz.reload"
227 message "&7/RustZ scoreboard toggle | &erustz.scoreboard"
228 message "&7/RustZ reset stats | &erustz.resetstats"
229 message "&7/RustZ cp/controlpannel | &erustz.controlpannel | &6Coming soon."
230 message ""
231 message "&7/Stats"
232 message "&7/Stats [<player>]"
233 message "&7/Stats [<player>] Reset | &erustz.resetstats"
234 message "&7/Rspawn"
235 message "&c&l&m------------------------------"
236 else:
237 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
238 set action bar of player to "&c&l%{message.nopermissions}%"
239 stop
240 if argument 1 is "scoreboard":
241 if argument 2 is "toggle":
242 if player has permission "rustz.scoreboard":
243 if {scoreboard} is "true":
244 set {scoreboard} to "false"
245 message "&7[&6%{prefix}%&7] &7You have &cdisabled &7the scoreboard."
246 set "Scoreboard" to "false" in yaml file "plugins/Rust/Config.yml"
247 make console execute command "/reload"
248 set action bar of player to "&7&lYou have &c&ldisabled &7<he scoreboard."
249 loop all players:
250 display board named "" to loop-player
251 stop
252 if {scoreboard} is "false":
253 set {scoreboard} to "true"
254 message "&7[&6%{prefix}%&7] &7You have &eenabled &7the scoreboard."
255 set action bar of player to "&7&lYou have &e&lenabled &7<he scoreboard."
256 set "Scoreboard" to "true" in yaml file "plugins/Rust/Config.yml"
257 make console execute command "/reload"
258 loop all players:
259 display board named "&6&l%{scoreboard.title}%" to loop-player
260 move display of loop-player to sidebar
261 set score "&9 " in sidebar of loop-player to 10
262 set score "&c%{scoreboard.kills}% &e%{rustz.kills.%loop-player%}%" in sidebar of loop-player to 9
263 set score "&c%{scoreboard.deaths}% &e%{rustz.deaths.%loop-player%}%" in sidebar of loop-player to 8
264 set score "&c%{scoreboard.ratio}% &e%{rustz.kills.%loop-player%}%&c/&e%{rustz.deaths.%loop-player%}%" in sidebar of loop-player to 7
265 set score "&8 " in sidebar of loop-player to 6
266 set score "&7 " in sidebar of loop-player to 5
267 set score "&c%{scoreboard.resources}% &e%{rustz.resources.%loop-player%}%" in sidebar of loop-player to 4
268 set score "&c%{scoreboard.mobs}% &e%{rustz.mobs.%loop-player%}%" in sidebar of loop-player to 3
269 set score "&6 " in sidebar of loop-player to 2
270 set score "&e/stats &7[&6player&7]" in sidebar of loop-player to 1
271 stop
272 else:
273 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
274 set action bar of player to "&c&l%{message.nopermissions}%"
275 stop
276 if argument 1 is "reset":
277 if argument 2 is "stats":
278 if player has permission "rustz.resetstats":
279 loop all players:
280 set {rustz.kills.%loop-player%} to 0
281 set {rustz.deaths.%loop-player%} to 0
282 set {rustz.mobs.%loop-player%} to 0
283 set {rustz.resources.%loop-player%} to 0
284 set action bar of player to "&c&lThe stats are resetted !"
285 else:
286 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
287 set action bar of player to "&c&l%{message.nopermissions}%"
288 stop
289
290#Stats
291command /stats [<player>] [<text>]:
292 usage: &6/stats [player] [<text>]
293 trigger:
294 if argument 1 isn't set:
295 if argument 2 isn't set:
296 message "&c&l&m------------------------------"
297 message ""
298 message "&6My Sтαтѕ"
299 message ""
300 message "&7Resources taken&c: &e%{rustz.resources.%player%}%"
301 message "&7Mobs killed&c: &e%{rustz.mobs.%player%}%"
302 message "&7Kills&c: &e%{rustz.kills.%player%}%"
303 message "&7Deaths&c: &e%{rustz.deaths.%player%}%"
304 message "&7Ratio&c: &e%{rustz.kills.%player%}%&c/&e%{rustz.deaths.%player%}%"
305 message ""
306 message "&c&l&m------------------------------"
307 stop
308 if argument 1 is set:
309 if argument 2 isn't set:
310 message "&c&l&m------------------------------"
311 message ""
312 message "&e%arg-1% &6Sтαтѕ"
313 message ""
314 message "&7Resources taken&c: &e%{rustz.resources.%arg-1%}%"
315 message "&7Mobs killed&c: &e%{rustz.mobs.%arg-1%}%"
316 message "&7Kills&c: &e%{rustz.kills.%arg-1%}%"
317 message "&7Deaths&c: &e%{rustz.deaths.%arg-1%}%"
318 message "&7Ratio&c: &e%{rustz.kills.%arg-1%}%&c/&e%{rustz.deaths.%arg-1%}%"
319 message ""
320 message "&c&l&m------------------------------"
321 stop
322 if argument 1 is set:
323 if argument 2 is "reset":
324 if player has permission "rustz.resetstats":
325 set {rustz.kills.%arg-1%} to 0
326 set {rustz.deaths.%arg-1%} to 0
327 set {rustz.mobs.%arg-1%} to 0
328 set {rustz.resources.%arg-1%} to 0
329 set action bar of player to "&cThe stats of &e%arg-1% &care resetted."
330 else:
331 message "&7[&6%{prefix}%&7] &c%{message.nopermissions}%"
332 set action bar of player to "&c&l%{message.nopermissions}%"
333 stop
334
335
336#Spawn
337command /rspawn:
338 trigger:
339 if {rustz.spawn} isn't set:
340 message "&cContact an Administrator ! The rustz spawn isn't set."
341 else:
342 set action bar of player to "&c&lTIMER > &e&l3"
343 wait 1 second
344 set action bar of player to "&c&lTIMER > &e&l2"
345 wait 1 second
346 set action bar of player to "&c&lTIMER > &e&l1"
347 wait 1 second
348 teleport player to {rustz.spawn}
349 send player title "&6Returned to the" with subtitle "&c&lSPAWN" for 2 seconds
350 set {rustz.%player%.protect} to true
351 clear {icooldown.%player%}
352
353#============================================================
354#Join System | Quit System | First Join | Always Day
355#============================================================
356
357at 10:00:
358 set time to 7:00
359
360on join:
361 set {cauldron.%player%} to "2"
362 clear {icooldown.%player%}
363 set join message to ""
364 if {rustz.kills.%player%} isn't set:
365 set {rustz.kills.%player%} to 0
366 if {rustz.deaths.%player%} isn't set:
367 set {rustz.deaths.%player%} to 0
368 if {rustz.mobs.%player%} isn't set:
369 set {rustz.mobs.%player%} to 0
370 if {rustz.resources.%player%} isn't set:
371 set {rustz.resources.%player%} to 0
372 if {rustz.spawn} is set:
373 stop
374 else:
375 message "&cContact an Administrator ! The rustz spawn isn't set."
376
377on first join:
378 event-world is "%{world}%"
379 set {rustz.%player%.protect} to true
380 teleport player to {rustz.spawn}
381 message "&a%{message.firstjoin}%"
382 give 1 Wood Pickaxe named "&7Wood Pickaxe" to player
383 give 1 Wood Axe named "&7Wood Axe" to player
384 give 2 Raw Porkchop named "&7Raw Porkchop" to player
385
386on quit:
387 event-world is "%{world}%"
388 set quit message to ""
389
390#============================================================
391#PvP Events | AntiCombatLogout | Weapons
392#============================================================
393
394#AntiPvP Logout
395
396on damage of player:
397 add 1 to {logout.%victim%}
398 while {logout.%victim%} is more than 1:
399 subtract 1 from {logout.%victim%}
400 wait 1 second
401
402on death of player:
403 clear {logout.%victim%}
404
405on command:
406 if player has permission "rustz.bypass":
407 stop
408 else:
409 if {logout.%player%} is more than 1:
410 message "&cYou're in combat ! You can't use any command."
411 set action bar of player to "&c&lYou're in combat ! You can't use any command"
412 cancel event
413
414on quit:
415 if player has permission "rustz.bypass":
416 stop
417 else:
418 if {logout.%player%} is more than 1:
419 kill the player
420 broadcast "&c%player% &7left the fighting."
421
422#other
423
424on damage of player:
425 {rustz.%victim%.protect} is true:
426 cancel event
427 {rustz.%attacker%.protect} is true:
428 cancel event
429
430on click:
431 world is "%{world}%":
432 if {rustz.%player%.protect} is true:
433 player isn't op:
434 player is holding any hoe:
435 message "&cYou can not use any weapon during the period of invincibility."
436 set action bar of player to "&c&lYou can not use any weapon during the period of invincibility"
437
438#============================================================
439#Signs | Signs System
440#============================================================
441
442on sign change:
443 if line 1 of event-block is "[Rust]" or "[Ru]" or "[RustZ]" or "[Rustz]":
444 if line 2 of event-block is "join" or "Join":
445 set line 1 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
446 set line 2 of event-block to "%{prefix}%"
447 set line 3 of event-block to "&6Join"
448 set line 4 of event-block to "&c&l&m-----&6&l&m-----&c&l&m--*--"
449 if line 1 of event-block is "[Rust]" or "[Ru]" or "[RustZ]" or "[Rustz]":
450 if line 2 of event-block is "Recipes" or "recipes":
451 set line 1 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
452 set line 2 of event-block to "%{prefix}%"
453 set line 3 of event-block to "&6Recipes"
454 set line 4 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
455 if line 1 of event-block is "[Rust]" or "[Ru]" or "[RustZ]" or "[Rustz]":
456 if line 2 of event-block is "spawn" or "Spawn":
457 set line 1 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
458 set line 2 of event-block to "%{prefix}%"
459 set line 3 of event-block to "&6Spawn"
460 set line 4 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
461 if line 1 of event-block is "[Rust]" or "[Ru]" or "[RustZ]" or "[Rustz]":
462 if line 2 of event-block is "stats" or "Stats":
463 set line 1 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
464 set line 2 of event-block to "%{prefix}%"
465 set line 3 of event-block to "&6Statistics"
466 set line 4 of event-block to "&c&l&m-----&6&l&m-----&c&l&m-----"
467
468on rightclick on sign:
469 line 3 of event-block is "&6Join":
470 teleport player to a random location out of {spawnpoints::*}
471 send player title "&c&lTHE WORLD" with subtitle "&c&lOF RUSTZ" for 3 seconds
472 set {icooldown.%player%} to 60
473 while {icooldown.%player%} is more than 0:
474 wait 1 second
475 set action bar of player to "&c&lInvincibility &7&l> &6&l%{icooldown.%player%}%"
476 remove 1 from {icooldown.%player%}
477 set {rustz.%player%.protect} to false
478 send player title "&6&lGOOD LUCK" with subtitle "" for 2 seconds
479 line 3 of event-block is "&6Recipes":
480 wait 3 ticks
481 set slot 8 of player to Book named "%{recipes.name}%" with lore "&7Rightclick to open the recipes book"
482 line 3 of event-block is "&6Spawn":
483 make player execute command "/rspawn"
484 line 3 of event-block is "&6Statistics":
485 make player execute command "/stats"
486 set action bar of player to "&7&lResources taken&c&l: &e&l%{rustz.resources.%player%}%"
487 wait 1 second
488 set action bar of player to "&7&lMobs killed&c&l: &e&l%{rustz.mobs.%player%}%"
489 wait 1 second
490 set action bar of player to "&7&lKills&c&l: &e&l%{rustz.kills.%player%}%"
491 wait 1 second
492 set action bar of player to "&7&lDeaths&c&l: &e&l%{rustz.deaths.%player%}%"
493 wait 1 second
494 set action bar of player to "&7&lRatio&c&l: &e&l%{rustz.kills.%player%}%&c/&e&l%{rustz.deaths.%player%}%"
495
496#============================================================
497#Scoreboard
498#============================================================
499
500every 15 real seconds:
501 if {scoreboard} is "true":
502 loop all players:
503 loop-player's world is "%{world}%"
504 display board named "&6&l%{scoreboard.title}%" to loop-player
505 move display of loop-player to sidebar
506 set score "&9 " in sidebar of loop-player to 10
507 set score "&c%{scoreboard.kills}% &e%{rustz.kills.%loop-player%}%" in sidebar of loop-player to 9
508 set score "&c%{scoreboard.deaths}% &e%{rustz.deaths.%loop-player%}%" in sidebar of loop-player to 8
509 set score "&c%{scoreboard.ratio}% &e%{rustz.kills.%loop-player%}%&c/&e%{rustz.deaths.%loop-player%}%" in sidebar of loop-player to 7
510 set score "&8 " in sidebar of loop-player to 6
511 set score "&7 " in sidebar of loop-player to 5
512 set score "&c%{scoreboard.resources}% &e%{rustz.resources.%loop-player%}%" in sidebar of loop-player to 4
513 set score "&c%{scoreboard.mobs}% &e%{rustz.mobs.%loop-player%}%" in sidebar of loop-player to 3
514 set score "&6 " in sidebar of loop-player to 2
515 set score "&e/stats &7[&6player&7]" in sidebar of loop-player to 1
516
517on join:
518 event-world is "%{world}%"
519 if {scoreboard} is "true":
520 display board named "&6&l%{scoreboard.title}%" to player
521 move display of player to sidebar
522 set score "&9 " in sidebar of player to 10
523 set score "&c%{scoreboard.kills}% &e%{rustz.kills.%player%}%" in sidebar of player to 9
524 set score "&c%{scoreboard.deaths}% &e%{rustz.deaths.%player%}%" in sidebar of player to 8
525 set score "&c%{scoreboard.ratio}% &e%{rustz.kills.%player%}%&c/&e%{rustz.deaths.%player%}%" in sidebar of player to 7
526 set score "&8 " in sidebar of player to 6
527 set score "&7 " in sidebar of player to 5
528 set score "&c%{scoreboard.resources}% &e%{rustz.resources.%player%}%" in sidebar of player to 4
529 set score "&c%{scoreboard.mobs}% &e%{rustz.mobs.%player%}%" in sidebar of player to 3
530 set score "&6 " in sidebar of player to 2
531 set score "&e/stats &7[&6player&7]" in sidebar of player to 1
532
533#============================================================
534#Tab
535#============================================================
536
537on join:
538 set tab header to "&6&l%{header}%" and footer to "&c&l%{footer}%" for player
539
540#============================================================
541#Resources
542#============================================================
543
544on break of coal block:
545 player's world is "%{world}%":
546 if player has permission "rustz.resources.bypass":
547 set action bar of player to "&cResource &c> &6Bypass"
548 stop
549 else:
550 set block at event-block to air
551 chance of 60%:
552 drop 1 stone named "&7Stone" with lore "&7Class: &cMinerals" at event-block
553 wait 30 seconds
554 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
555 set block at event-block to coal block
556 stop
557 chance of 45%:
558 drop 1 coal named "&7Coal" with lore "&7Class: &cMinerals" at event-block
559 set action bar of player to "&7You found a piece of coal !"
560 wait 30 seconds
561 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
562 set block at event-block to coal block
563 stop
564 chance of 45%:
565 drop 1 gold ingot named "&7Gold" with lore "&7Class: &cMinerals" at event-block
566 set action bar of player to "&7You found an ingot of gold !"
567 wait 30 seconds
568 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
569 set block at event-block to coal block
570 stop
571 chance of 40%:
572 drop 1 iron ingot named "&7Iron" with lore "&7Class: &cMinerals" at event-block
573 set action bar of player to "&7You found an ingot of iron !"
574 wait 30 seconds
575 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
576 set block at event-block to coal block
577 stop
578 else:
579 set action bar of player to "&7You didn't found anything !"
580 wait 30 seconds
581 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
582 set block at event-block to coal block
583 stop
584
585on break of tall grass:
586 player' world is "%{world}%":
587 if player has permission "rustz.resources.bypass":
588 set action bar of player to "&cResource &c> &6Bypass"
589 stop
590 else:
591 set block at event-block to air
592 drop 1 tall grass named "&7Tall Grass" with lore "&7Class: &cNatural" at event-block
593 wait 30 seconds
594 if block 1 blocks below event-block is grass, stone, dirt or cobblestone:
595 set block at event-block to Tall grass
596
597on break of any wood:
598 player's world is "%{world}%":
599 if player has permission "rustz.resources.bypass":
600 set action bar of player to "&c&lResource &c&l> &6&lBypass"
601 stop
602 else:
603 set block at event-block to air
604 drop 1 Oak Wood Plank named "&7Wood" with lore "&7Class: &cNatural" at event-block
605 wait 15 seconds
606 set block at event-block to spruce wood
607
608on leaves decay:
609 event-world is "%{world}%":
610 cancel event
611
612#============================================================
613#Statistics System | Counter
614#============================================================
615
616on death of player:
617 event-world is "%{world}%":
618 add 1 to {rustz.deaths.%player%}
619 add 1 to {rustz.kills.%attacker%}
620 add 1 to {rustz.kills.%shooter%}
621
622on break:
623 event-world is "%{world}%":
624 if player's gamemode is survival:
625 add 1 to {rustz.resources.%event-entity%}
626
627on death of zombie or pig or wolf:
628 event-world is "%{world}%":
629 attacker is a player
630 add 1 to {rustz.mobs.%attacker%}
631 shooter is a player
632 add 1 to {rustz.mobs.%shooter%}
633
634#============================================================
635#Recipes Menu | System
636#============================================================
637
638on join:
639 event-world is "%{world}%"
640 wait 3 ticks
641 set slot 8 of player to Book named "%{recipes.name}%" with lore "&7Rightclick to open the recipes book"
642
643on drop of book:
644 if event-world is "%{world}%":
645 if name of event-item is "%{recipes.name}%":
646 if {recipes.drop} is "false":
647 cancel event
648
649on rightclick holding a book:
650 if event-world is "%{world}%":
651 if "%name of player's held item%" is "%{recipes.name}%":
652 make player execute command "/recipes %player%"
653
654command /recipes <player>:
655 trigger:
656 wait 3 ticks
657 open chest with 1 rows named " &9&lGeneral Menu" to the arg-1
658 if arg-1 has 40 Oak Wood Plank:
659 if arg-1 has 10 Stone:
660 format slot 0 of arg-1 with Crafting Table named "&7(&a-Tools Bench-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x40 &9Wood||||&aIt's used to craft some tools." to run "craft %arg-1% toolsbench"
661 else:
662 format slot 0 of arg-1 with Crafting Table named "&7(&c-Tools Bench-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x40 &9Wood||||&aIt's used to craft some tools." to be unstealable
663 else:
664 format slot 0 of arg-1 with Crafting Table named "&7(&c-Tools Bench-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x40 &9Wood||||&aIt's used to craft some tools." to be unstealable
665 if arg-1 has 20 Coal:
666 if arg-1 has 100 Stone:
667 if arg-1 has 10 Gold Ingot:
668 if arg-1 has 5 Iron Ingot:
669 format slot 1 of arg-1 with non-burning Furnace named "&7(&a-Furnace-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x20 &9Coal||&6» &7x100 &9Stone||&6» &7x10 &9Gold||&6» &7x5 &9Iron||||&aIt's used to cook the raw food.||&cWarning: &7You need to use the coal." to run "craft %arg-1% furnace"
670 else:
671 format slot 1 of arg-1 with non-burning Furnace named "&7(&c-Furnace-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x20 &9Coal||&6» &7x100 &9Stone||&6» &7x10 &9Gold||&6» &7x5 &9Iron||||&aIt's used to cook the raw food.||&cWarning: &7You need to use the coal." to be unstealable
672 else:
673 format slot 1 of arg-1 with non-burning Furnace named "&7(&c-Furnace-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x20 &9Coal||&6» &7x100 &9Stone||&6» &7x10 &9Gold||&6» &7x5 &9Iron||||&aIt's used to cook the raw food.||&cWarning: &7You need to use the coal." to be unstealable
674 else:
675 format slot 1 of arg-1 with non-burning Furnace named "&7(&c-Furnace-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x20 &9Coal||&6» &7x100 &9Stone||&6» &7x10 &9Gold||&6» &7x5 &9Iron||||&aIt's used to cook the raw food.||&cWarning: &7You need to use the coal." to be unstealable
676 else:
677 format slot 1 of arg-1 with non-burning Furnace named "&7(&c-Furnace-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x20 &9Coal||&6» &7x100 &9Stone||&6» &7x10 &9Gold||&6» &7x5 &9Iron||||&aIt's used to cook the raw food.||&cWarning: &7You need to use the coal." to be unstealable
678 if arg-1 has 10 Coal:
679 if arg-1 has 10 Tall Grass:
680 if arg-1 has 50 Oak Wood Plank:
681 if arg-1 has 40 Stone:
682 format slot 2 of arg-1 with Cauldron item named "&7(&a-Campfire-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x10 &9Coal||&6» &7x10 &9Grass||&6» &7x50 &9Wood||&6» &7x40 &9Stone||||&aIt's used to cook the raw food.||&cWarning: &7It disappear after 1 hour." to run "craft %arg-1% campfire"
683 else:
684 format slot 2 of arg-1 with Cauldron item named "&7(&c-Campfire-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Coal||&6» &7x10 &9Grass||&6» &7x50 &9Wood||&6» &7x40 &9Stone||||&aIt's used to cook the raw food.||&cWarning: &7It disappear after 1 hour." to be unstealable
685 else:
686 format slot 2 of arg-1 with Cauldron item named "&7(&c-Campfire-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Coal||&6» &7x10 &9Grass||&6» &7x50 &9Wood||&6» &7x40 &9Stone||||&aIt's used to cook the raw food.||&cWarning: &7It disappear after 1 hour." to be unstealable
687 else:
688 format slot 2 of arg-1 with Cauldron item named "&7(&c-Campfire-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Coal||&6» &7x10 &9Grass||&6» &7x50 &9Wood||&6» &7x40 &9Stone||||&aIt's used to cook the raw food.||&cWarning: &7It disappear after 1 hour." to be unstealable
689 else:
690 format slot 2 of arg-1 with Cauldron item named "&7(&c-Campfire-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Coal||&6» &7x10 &9Grass||&6» &7x50 &9Wood||&6» &7x40 &9Stone||||&aIt's used to cook the raw food.||&cWarning: &7It disappear after 1 hour." to be unstealable
691 if arg-1 has 300 Stone:
692 if arg-1 has 100 Iron Ingot:
693 if arg-1 has 20 Gold Ingot:
694 format slot 3 of arg-1 with Anvil named "&7(&a-Smith-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x300 &9Stone||&6» &7x100 &9Iron||&6» &7x20 &9Gold||||&aIt's used to craft powerfull items." to run "craft %arg-1% smith"
695 else:
696 format slot 3 of arg-1 with Anvil named "&7(&c-Smith-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x300 &9Stone||&6» &7x100 &9Iron||&6» &7x20 &9Gold||||&aIt's used to craft powerfull items." to be unstealable
697 else:
698 format slot 3 of arg-1 with Anvil named "&7(&c-Smith-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x300 &9Stone||&6» &7x100 &9Iron||&6» &7x20 &9Gold||||&aIt's used to craft powerfull items." to be unstealable
699 else:
700 format slot 3 of arg-1 with Anvil named "&7(&c-Smith-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x300 &9Stone||&6» &7x100 &9Iron||&6» &7x20 &9Gold||||&aIt's used to craft powerfull items." to be unstealable
701 if arg-1 has 150 Stone:
702 if arg-1 has 300 Oak Wood Plank:
703 if arg-1 has 20 Iron Ingot:
704 format slot 4 of arg-1 with Bookshelf named "&7(&a-House-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x150 &9Stone||&6» &7x300 &9Wood||&6» &7x20 &9Iron||||&aIt's your house!" to run "craft %arg-1% house"
705 else:
706 format slot 4 of arg-1 with Bookshelf named "&7(&c-House-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x150 &9Stone||&6» &7x300 &9Wood||&6» &7x20 &9Iron||||&aIt's your house!" to be unstealable
707 else:
708 format slot 4 of arg-1 with Bookshelf named "&7(&c-House-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x150 &9Stone||&6» &7x300 &9Wood||&6» &7x20 &9Iron||||&aIt's your house!" to be unstealable
709 else:
710 format slot 4 of arg-1 with Bookshelf named "&7(&c-House-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x150 &9Stone||&6» &7x300 &9Wood||&6» &7x20 &9Iron||||&aIt's your house!" to be unstealable
711 format slot 8 of arg-1 with glow Paper named "&7-&eGeneral Informations&7-" with lore "&bBluePrints: &7Many items need blueprints||&7to be unlocked.||&7You can find &eblueprints &7in||&7the airdrops chest loot." to be unstealable
712
713#============================================================
714#Tools Bench 1)
715#============================================================
716
717command /toolsbench <player>:
718 trigger:
719 wait 3 ticks
720 open chest with 4 rows named " &9&lTools Bench" to the arg-1
721#LEATHER ARMOR
722 if arg-1 has 5 Leather:
723 if arg-1 has 5 Tall Grass:
724 format slot 0 of arg-1 with Leather Helmet named "&7(&a-Leather Helmet-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x5 &9Leather||&6» &7x5 &9Grass" to run "craft %arg-1% leatherhelmet"
725 else:
726 format slot 0 of arg-1 with Leather Helmet named "&7(&c-Leather Helmet-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x5 &9Leather||&6» &7x5 &9Grass" to be unstealable
727 else:
728 format slot 0 of arg-1 with Leather Helmet named "&7(&c-Leather Helmet-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x5 &9Leather||&6» &7x5 &9Grass" to be unstealable
729 if arg-1 has 8 Leather:
730 if arg-1 has 8 Tall Grass:
731 format slot 9 of arg-1 with Leather Chestplate named "&7(&a-Leather Chestplate-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x8 &9Leather||&6» &7x8 &9Grass" to run "craft %arg-1% leatherchestplate"
732 else:
733 format slot 9 of arg-1 with Leather Chestplate named "&7(&c-Leather Chestplate-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Leather||&6» &7x8 &9Grass" to be unstealable
734 else:
735 format slot 9 of arg-1 with Leather Chestplate named "&7(&c-Leather Chestplate-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Leather||&6» &7x8 &9Grass" to be unstealable
736 if arg-1 has 7 Leather:
737 if arg-1 has 7 Tall Grass:
738 format slot 18 of arg-1 with Leather Leggings named "&7(&a-Leather Leggings-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x7 &9Leather||&6» &7x7 &9Grass" to run "craft %arg-1% leatherleggings"
739 else:
740 format slot 18 of arg-1 with Leather Leggings named "&7(&c-Leather Leggings-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x7 &9Leather||&6» &7x7 &9Grass" to be unstealable
741 else:
742 format slot 18 of arg-1 with Leather Leggings named "&7(&c-Leather Leggings-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x7 &9Leather||&6» &7x7 &9Grass" to be unstealable
743 if arg-1 has 4 Leather:
744 if arg-1 has 4 Tall Grass:
745 format slot 27 of arg-1 with Leather Boots named "&7(&a-Leather Boots-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x4 &9Leather||&6» &7x4 &9Grass" to run "craft %arg-1% leatherboots"
746 else:
747 format slot 27 of arg-1 with Leather Boots named "&7(&c-Leather Boots-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x4 &9Leather||&6» &7x4 &9Grass" to be unstealable
748 else:
749 format slot 27 of arg-1 with Leather Boots named "&7(&c-Leather Boots-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x4 &9Leather||&6» &7x4 &9Grass" to be unstealable
750#SEPARATOR
751 format slot 1 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
752 format slot 10 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
753 format slot 19 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
754 format slot 28 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
755#WOOD ITEMS
756 if arg-1 has 10 Oak Wood Plank:
757 if arg-1 has 2 Stick:
758 format slot 2 of arg-1 with Wood Pickaxe named "&7(&a-Wood Pickaxe-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x10 &9Wood||&6» &7x2 &9Stick" to run "craft %arg-1% woodpickaxe"
759 else:
760 format slot 2 of arg-1 with Wood Pickaxe named "&7(&c-Wood Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Wood||&6» &7x2 &9Stick" to be unstealable
761 else:
762 format slot 2 of arg-1 with Wood Pickaxe named "&7(&c-Wood Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Wood||&6» &7x2 &9Stick" to be unstealable
763 if arg-1 has 15 Oak Wood Plank:
764 if arg-1 has 2 Stick:
765 format slot 3 of arg-1 with Wood Sword named "&7(&a-Wood Sword-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x15 &9Wood||&6» &7x2 &9Stick" to run "craft %arg-1% woodsword"
766 else:
767 format slot 3 of arg-1 with Wood Sword named "&7(&c-Wood Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x15 &9Wood||&6» &7x2 &9Stick" to be unstealable
768 else:
769 format slot 3 of arg-1 with Wood Sword named "&7(&c-Wood Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x15 &9Wood||&6» &7x2 &9Stick" to be unstealable
770 if arg-1 has 8 Oak Wood Plank:
771 if arg-1 has 2 Stick:
772 format slot 4 of arg-1 with Wood Axe named "&7(&a-Wood Axe-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x8 &9Wood||&6» &7x2 &9Stick" to run "craft %arg-1% woodaxe"
773 else:
774 format slot 4 of arg-1 with Wood Axe named "&7(&c-Wood Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Wood||&6» &7x2 &9Stick" to be unstealable
775 else:
776 format slot 4 of arg-1 with Wood Axe named "&7(&c-Wood Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Wood||&6» &7x2 &9Stick" to be unstealable
777#STONE ITEMS
778 if arg-1 has 10 Stone:
779 if arg-1 has 2 Stick:
780 format slot 29 of arg-1 with Stone Pickaxe named "&7(&a-Stone Pickaxe-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x2 &9Stick" to run "craft %arg-1% stonepickaxe"
781 else:
782 format slot 29 of arg-1 with Stone Pickaxe named "&7(&c-Stone Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x2 &9Stick" to be unstealable
783 else:
784 format slot 29 of player with Stone Pickaxe named "&7(&c-Stone Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Stone||&6» &7x2 &9Stick" to be unstealable
785 if arg-1 has 15 Stone:
786 if arg-1 has 2 Stick:
787 format slot 30 of arg-1 with Stone Sword named "&7(&a-Stone Sword-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x15 &9Stone||&6» &7x2 &9Stick" to run "craft %arg-1% stonesword"
788 else:
789 format slot 30 of arg-1 with Stone Sword named "&7(&c-Stone Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x15 &9Stone||&6» &7x2 &9Stick" to be unstealable
790 else:
791 format slot 30 of arg-1 with Stone Sword named "&7(&c-Stone Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x15 &9Stone||&6» &7x2 &9Stick" to be unstealable
792 if arg-1 has 8 Stone:
793 if arg-1 has 2 Stick:
794 format slot 31 of arg-1 with Stone Axe named "&7(&a-Stone Axe-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x8 &9Stone||&6» &7x2 &9Stick" to run "craft %arg-1% stoneaxe"
795 else:
796 format slot 31 of arg-1 with Stone Axe named "&7(&c-Stone Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Stone||&6» &7x2 &9Stick" to be unstealable
797 else:
798 format slot 31 of arg-1 with Stone Axe named "&7(&c-Stone Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Stone||&6» &7x2 &9Stick" to be unstealable
799#STICKS & TORCHS
800 if arg-1 has 2 Oak Wood Plank:
801 format slot 11 of arg-1 with Stick named "&7(&a-Stick&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x2 Wood" to run "craft %arg-1% stick"
802 else:
803 format slot 11 of arg-1 with Stick named "&7(&c-Stick&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x2 Wood" to be unstealable
804 if arg-1 has 2 Stick:
805 if arg-1 has 2 Coal:
806 format slot 20 of arg-1 with Torch named "&7(&a-Torch-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x2 &9Stick||&6» &7x2 &9Coal||||&cWarnining: &7Every 2 hours it will disappear." to run "craft %arg-1% torch"
807 else:
808 format slot 20 of arg-1 with Torch named "&7(&c-Torch-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x2 &9Stick||&6» &7x2 &9Coal||||&cWarnining: &7Every 2 hours it will disappear." to be unstealable
809 else:
810 format slot 20 of arg-1 with Torch named "&7(&c-Torch-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x2 &9Stick||&6» &7x2 &9Coal||||&cWarnining: &7Every 2 hours it will disappear." to be unstealable
811#DOOR
812 if arg-1 has 30 Oak Wood Plank:
813 if arg-1 has 12 Stick:
814 format slot 12 of arg-1 with Wooden Door Item named "&7(&a-Door-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x30 Wood||&6» &7x12 Stick||||&aPlace it in your house!||&aYou can lock your door!||&eCommands: /ru info lock" to run "craft %arg-1% woodendoor"
815 else:
816 format slot 12 of arg-1 with Wooden Door Item named "&7(&c-Door-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 Wood||&6» &7x12 Stick||||&aPlace it in your house!||&aYou can lock your door!||&eCommands: /ru info lock" to be unstealable
817 else:
818 format slot 12 of arg-1 with Wooden Door Item named "&7(&c-Door-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 Wood||&6» &7x12 Stick||||&aPlace it in your house!||&aYou can lock your door!||&eCommands: /ru info lock" to be unstealable
819#STORAGE
820 if arg-1 has 30 Oak Wood Plank:
821 if arg-1 has 10 Leather:
822 if arg-1 has 10 Iron Ingot:
823 if arg-1 has 10 Stick:
824 format slot 21 of arg-1 with Chest named "&7(&a-Storage-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x30 &9Wood||&6» &7x10 &9Leather||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place here all your things." to run "craft %arg-1% chest"
825 else:
826 format slot 21 of arg-1 with Chest named "&7(&c-Storage-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 &9Wood||&6» &7x10 &9Leather||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place here all your things." to be unstealable
827 else:
828 format slot 21 of arg-1 with Chest named "&7(&c-Storage-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 &9Wood||&6» &7x10 &9Leather||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place here all your things." to be unstealable
829 else:
830 format slot 21 of arg-1 with Chest named "&7(&c-Storage-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 &9Wood||&6» &7x10 &9Leather||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place here all your things." to be unstealable
831 else:
832 format slot 21 of arg-1 with Chest named "&7(&c-Storage-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x30 &9Wood||&6» &7x10 &9Leather||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place here all your things." to be unstealable
833#TNT
834 if {blueprints.%argument 1%.tnt} is "Unlocked":
835 if arg-1 has 30 Coal:
836 if arg-1 has 40 Stone:
837 if arg-1 has 10 Iron Ingot:
838 if arg-1 has 10 Stick:
839 format slot 13 of arg-1 with TNT named "&7(&a-TNT-&7)" with lore "&7Craftable: [&a✔&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to run "craft %arg-1% tnt"
840 else:
841 format slot 13 of arg-1 with TNT named "&7(&c-TNT-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to be unstealable
842 else:
843 format slot 13 of arg-1 with TNT named "&7(&c-TNT-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to be unstealable
844 else:
845 format slot 13 of arg-1 with TNT named "&7(&c-TNT-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to be unstealable
846 else:
847 format slot 13 of arg-1 with TNT named "&7(&c-TNT-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to be unstealable
848 else:
849 format slot 13 of arg-1 with TNT named "&7(&c-TNT-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&c✘&7]||||&7Recipe:||||&6» &7x30 &9Coal||&6» &7x40 &9Stone||&6» &7x10 &9Iron||&6» &7x10 &9Stick||||&aYou can place this for break||&aall door in 2x2 of radius." to be unstealable
850#BANDAGE
851 if {blueprints.%argument 1%.bandage} is "Unlocked":
852 if arg-1 has 10 Leather:
853 if arg-1 has 2 Redstone:
854 if arg-1 has 2 Tall Grass:
855 format slot 8 of arg-1 with PAPER named "&7(&a-Bandage-&7)" with lore "&7Craftable: [&a✔&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x10 &9Leather||&6» &7x2 &9Blood||&6» &7x2 &9Grass||||&aYou need heal?||&aThis is what you need!" to run "craft %arg-1% bandage"
856 else:
857 format slot 8 of arg-1 with PAPER named "&7(&c-Bandage-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x10 &9Leather||&6» &7x2 &9Blood||&6» &7x2 &9Grass||||&aYou need heal?||&aThis is what you need!" to be unstealable
858 else:
859 format slot 8 of arg-1 with PAPER named "&7(&c-Bandage-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x10 &9Leather||&6» &7x2 &9Blood||&6» &7x2 &9Grass||||&aYou need heal?||&aThis is what you need!" to be unstealable
860 else:
861 format slot 8 of arg-1 with PAPER named "&7(&c-Bandage-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x10 &9Leather||&6» &7x2 &9Blood||&6» &7x2 &9Grass||||&aYou need heal?||&aThis is what you need!" to be unstealable
862 else:
863 format slot 8 of arg-1 with PAPER named "&7(&c-Bandage-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&c✘&7]||||&7Recipe:||||&6» &7x10 &9Leather||&6» &7x2 &9Blood||&6» &7x2 &9Grass||||&aYou need heal?||&aThis is what you need!" to be unstealable
864#SEPARATOR
865 format slot 7 of arg-1 with Gray Stained Glass Pane named " " to be unstealable
866 format slot 16 of arg-1 with Gray Stained Glass Pane named " " to be unstealable
867 format slot 25 of arg-1 with Gray Stained Glass Pane named " " to be unstealable
868 format slot 34 of arg-1 with Gray Stained Glass Pane named " " to be unstealable
869
870on rightclick on crafting table:
871 event-world is "%{world}%"
872 cancel event
873 make player execute command "/toolsbench %player%"
874
875#============================================================
876#Furnace 2)
877#============================================================
878
879command /furnace <player>:
880 trigger:
881 wait 3 ticks
882 open chest with 1 rows named " &9&lFurnace" to the arg-1
883 format slot 7 of arg-1 with Cooked Porkchop named "&c1x Coal" to be unstealable
884 if argument-1 has 1 Coal:
885 format slot 8 of arg-1 with Coal item named "&7(&a-Fuel-&7)" with lore "&7[&a✔&7]" to be unstealable
886 format slot 7 of arg-1 with Green Glass Pane named "&7(&a-Fuel-&7)" with lore "&7[&a✔&7]" to be unstealable
887 else:
888 format slot 8 of arg-1 with Coal item named "&7(&c-Fuel-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x coal" to be unstealable
889 format slot 7 of arg-1 with Red Glass Pane named "&7(&c-Fuel-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x coal" to be unstealable
890 if arg-1 has 1 Raw Porkchop:
891 format slot 0 of arg-1 with Raw Porkchop named "&7(&a-Raw Porkchop-&7)" with lore "&7[&a✔&7]" to be unstealable
892 format slot 1 of arg-1 with Green Glass Pane named "&7(&a-Raw Porkchop-&7)" with lore "&7[&a✔&7]" to be unstealable
893 if arg-1 has 1 Coal:
894 format slot 4 of arg-1 with non-burning Furnace named "&7(&e-Cook It-&7)" with lore "|| &b-Click-" to run "craft %arg-1% rawporkchop"
895 else:
896 format slot 0 of arg-1 with Raw Porkchop named "&7(&c-Raw Porkchop-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x porkchop" to be unstealable
897 format slot 1 of arg-1 with Red Glass Pane named "&7(&c-Raw Porkchop-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x porkchop" to be unstealable
898
899on rightclick on furnace:
900 event-world is "%{world}%"
901 cancel event
902 make player execute command "/furnace %player%"
903
904#============================================================
905#Campfire 3)
906#============================================================
907
908command /campfire <player>:
909 trigger:
910 wait 3 ticks
911 open chest with 1 rows named " &c&lCampfire" to the arg-1
912 format slot 8 of arg-1 with Coal item named "&7(&a-Fuel-&7)" with lore "&7[&a✔&7]" to be unstealable
913 format slot 7 of arg-1 with Green Glass Pane named "&7(&a-Fuel-&7)" with lore "&7[&a✔&7]" to be unstealable
914 if arg-1 has 1 Raw Porkchop:
915 format slot 0 of arg-1 with Raw Porkchop named "&7(&a-Raw Porkchop-&7)" with lore "&7[&a✔&7]" to be unstealable
916 format slot 1 of arg-1 with Green Glass Pane named "&7(&a-Raw Porkchop-&7)" with lore "&7[&a✔&7]" to be unstealable
917 format slot 4 of arg-1 with non-burning Furnace named "&7(&e-Cook It-&7)" with lore "|| &b-Click-" to run "craft %arg-1% rawporkchopfire"
918 else:
919 format slot 0 of arg-1 with Raw Porkchop named "&7(&c-Raw Porkchop-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x porkchop" to be unstealable
920 format slot 1 of arg-1 with Red Glass Pane named "&7(&c-Raw Porkchop-&7)" with lore "&7[&c✘&7]||||&cWarning: &7You need at least 1x porkchop" to be unstealable
921 format slot 4 of arg-1 with Red Glass Pane named "&7(&c-Cook It-&7)" with lore "||||&cYou don't have any food to cook!" to be unstealable
922
923on rightclick on Netherrack:
924 event-world is "%{world}%"
925 cancel event
926 make player execute command "/campfire %player%"
927
928#============================================================
929#Smith 4)
930#============================================================
931
932command /smith <player>:
933 trigger:
934 wait 3 ticks
935 open chest with 4 rows named " &9&lSmith" to the arg-1
936#GOLD ARMOR
937 if player has 5 Gold Ingot:
938 format slot 0 of argument 1 with Gold Helmet named "&7(&a-Gold Helmet-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x5 &9Gold" to run "craft %arg-1% goldhelmet"
939 else:
940 format slot 0 of argument 1 with Gold Helmet named "&7(&c-Gold Helmet-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x5 &9Gold" to be unstealable
941 if player has 8 Gold Ingot:
942 format slot 9 of argument 1 with Gold Chestplate named "&7(&a-Gold Chesplate-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x8 &9Gold" to run "craft %arg-1% goldchestplate"
943 else:
944 format slot 9 of argument 1 with Gold Chestplate named "&7(&c-Gold Chesplate-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Gold" to be unstealable
945 if player has 7 Gold Ingot:
946 format slot 18 of argument 1 with Gold Leggings named "&7(&a-Gold Leggings-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x7 &9Gold" to run "craft %arg-1% goldleggings"
947 else:
948 format slot 18 of argument 1 with Gold Leggings named "&7(&c-Gold Leggings-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x7 &9Gold" to be unstealable
949 if player has 4 Gold Ingot:
950 format slot 27 of argument 1 with Gold Boots named "&7[&a-Gold Boots-&7]" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x4 &9Gold" to run "craft %arg-1% goldboots"
951 else:
952 format slot 27 of argument 1 with Gold Boots named "&7[&c-Gold Boots-&7]" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x4 &9Gold" to be unstealable
953#IRON ARMOR
954 if player has 5 Iron Ingot:
955 format slot 1 of argument 1 with Iron Helmet named "&7(&a-Iron Helmet-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x5 &9Iron" to run "craft %arg-1% ironhelmet"
956 else:
957 format slot 1 of argument 1 with Iron Helmet named "&7(&c-Iron Helmet-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x5 &9Iron" to be unstealable
958 if player has 8 Iron Ingot:
959 format slot 10 of argument 1 with Iron Chestplate named "&7(&a-Iron Chestplate-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x8 &9Iron" to run "craft %arg-1% ironchestplate"
960 else:
961 format slot 10 of argument 1 with Iron Chestplate named "&7(&c-Iron Chestplate-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x8 &9Iron" to be unstealable
962 if player has 7 Iron Ingot:
963 format slot 19 of argument 1 with Iron Leggings named "&7(&a-Iron Leggings-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x7 &9Iron" to run "craft %arg-1% ironleggings"
964 else:
965 format slot 19 of argument 1 with Iron Leggings named "&7(&c-Iron Leggings-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x7 &9Iron" to be unstealable
966 if player has 4 Iron Ingot:
967 format slot 28 of argument 1 with Iron Boots named "&7(&a-Iron Boots-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x4 &9Iron" to run "craft %arg-1% ironboots"
968 else:
969 format slot 28 of argument 1 with Iron Boots named "&7(&c-Iron Boots-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x4 &9Iron" to be unstealable
970#SEPARATOR
971 format slot 2 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
972 format slot 11 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
973 format slot 20 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
974 format slot 29 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
975#IRON SWORD
976 if {blueprints.%argument 1%.ironsword} is "Unlocked":
977 if argument 1 has 20 Iron Ingot:
978 if argument 1 has 5 Coal:
979 if argument 1 has 2 Stick:
980 format slot 3 of argument 1 with Iron Sword named "&7(&a-Iron Sword-&7)" with lore "&7Craftable: [&a✔&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x20 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick" to run "craft %arg-1% ironsword"
981 else:
982 format slot 3 of argument 1 with Iron Sword named "&7(&c-Iron Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x20 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick" to be unstealable
983 else:
984 format slot 3 of argument 1 with Iron Sword named "&7(&c-Iron Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x20 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick" to be unstealable
985 else:
986 format slot 3 of argument 1 with Iron Sword named "&7(&c-Iron Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x20 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick" to be unstealable
987 if {blueprints.%argument 1%.ironsword} isn't set:
988 format slot 3 of argument 1 with Iron Sword named "&7(&c-Iron Sword-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&c✘&7]||||&7Recipe:||||&6» &7x20 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick" to be unstealable
989#IRON AXE
990 if {blueprints.%argument 1%.ironaxe} is "Unlocked":
991 if argument 1 has 25 Iron Ingot:
992 if argument 1 has 5 Coal:
993 if argument 1 has 2 Stick:
994 format slot 4 of argument 1 with Iron Axe named "&7(&a-Iron Axe-&7)" with lore "&7Craftable: [&a✔&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x25 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick||||&aYou can use this to||&abreak enemy's doors." to run "craft %arg-1% ironaxe"
995 else:
996 format slot 4 of argument 1 with Iron Axe named "&7(&c-Iron Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x25 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick||||&aYou can use this to||&abreak enemy's doors." to be unstealable
997 else:
998 format slot 4 of argument 1 with Iron Axe named "&7(&c-Iron Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x25 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick||||&aYou can use this to||&abreak enemy's doors." to be unstealable
999 else:
1000 format slot 4 of argument 1 with Iron Axe named "&7(&c-Iron Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&a✔&7]||||&7Recipe:||||&6» &7x25 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick||||&aYou can use this to||&abreak enemy's doors." to be unstealable
1001 if {blueprints.%argument 1%.ironaxe} isn't set:
1002 format slot 4 of argument 1 with Iron Axe named "&7(&c-Iron Axe-&7)" with lore "&7Craftable: [&c✘&7]||||&bBluePrint: &7[&c✘&7]||||&7Recipe:||||&6» &7x25 Iron||&6» &7x5 &9Coal||&6» &7x2 &9Stick||||&aYou can use this to||&abreak enemy's doors." to be unstealable
1003#IRON PICKAXE
1004 if arg-1 has 10 Iron Ingot:
1005 if arg-1 has 2 Stick:
1006 format slot 12 of argument 1 with Iron Pickaxe named "&7(&a-Iron Pickaxe-&7)" with lore "&7Craftable: [&a✔&7]||||&7Recipe:||||&6» &7x10 &9Iron||&6» &7x2 &9Stick" to run "craft %arg-1% ironpickaxe"
1007 else:
1008 format slot 12 of argument 1 with Iron Pickaxe named "&7(&c-Iron Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Iron||&6» &7x2 &9Stick" to be unstealable
1009 else:
1010 format slot 12 of argument 1 with Iron Pickaxe named "&7(&c-Iron Pickaxe-&7)" with lore "&7Craftable: [&c✘&7]||||&7Recipe:||||&6» &7x10 &9Iron||&6» &7x2 &9Stick" to be unstealable
1011
1012on rightclick on anvil:
1013 event-world is "%{world}%"
1014 cancel event
1015 make player execute command "/smith %player%"
1016
1017#============================================================
1018#Craft Commands
1019#============================================================
1020
1021command /craft <player> <text>:
1022 trigger:
1023 if argument 1 is set:
1024 if argument 2 is "toolsbench":
1025 if arg-1 has 40 Oak Wood Plank:
1026 if arg-1 has 10 Stone:
1027 remove 40 Oak Wood Plank from arg-1
1028 remove 10 Stone from arg-1
1029 give 1 of crafting table named "&7Tools Bench" to argument-1
1030 if argument 2 is "furnace":
1031 if arg-1 has 20 Coal:
1032 if arg-1 has 100 Stone:
1033 if arg-1 has 10 Gold ingot:
1034 if arg-1 has 5 Iron Ingot:
1035 remove 20 Coal from arg-1
1036 remove 100 Stone from arg-1
1037 remove 10 Gold Ingot from arg-1
1038 remove 5 Iron Ingot from arg-1
1039 give 1 of non-burning furnace named "&7Furnace" to argument-1
1040 if argument 2 is "smith":
1041 if arg-1 has 300 Stone:
1042 if arg-1 has 100 Iron Ingot:
1043 if arg-1 has 20 Gold Ingot:
1044 remove 300 Stone from arg-1
1045 remove 100 Iron Ingot from arg-1
1046 remove 20 Gold Ingot from arg-1
1047 give 1 of anvil named "&7Smith" to argument-1
1048 if argument 2 is "house":
1049 if arg-1 has 150 Stone:
1050 if arg-1 has 300 Oak Wood Plank:
1051 if arg-1 has 20 Iron Ingot:
1052 remove 150 Stone from arg-1
1053 remove 300 Oak Wood Plank from arg-1
1054 remove 20 Iron Ingot from arg-1
1055 give 1 of ender chest named "&7House" to argument-1
1056 if argument 2 is "woodpickaxe":
1057 if arg-1 has 10 Oak Wood Plank:
1058 if arg-1 has 2 Stick:
1059 remove 10 Oak Wood Plank from arg-1
1060 remove 2 Stick from arg-1
1061 give 1 of wood pickaxe named "&7Wood Pickaxe" to argument-1
1062 if argument 2 is "woodsword":
1063 if arg-1 has 15 Oak Wood Plank:
1064 if arg-1 has 2 Stick:
1065 remove 15 Oak Wood Plank from arg-1
1066 remove 2 Stick from arg-1
1067 give 1 of wood sword named "&7Wood Sword" to argument-1
1068 if argument 2 is "woodaxe":
1069 if arg-1 has 8 Oak Wood Plank:
1070 if arg-1 has 2 Stick:
1071 remove 8 Oak Wood Plank from arg-1
1072 remove 2 Stick from arg-1
1073 give 1 of wood axe named "&7Wood Axe" to argument-1
1074 if argument 2 is "stonepickaxe":
1075 if arg-1 has 10 Stone:
1076 if arg-1 has 2 Stick:
1077 remove 10 Stone from arg-1
1078 remove 2 Stick from arg-1
1079 give 1 of stone pickaxe named "&7Stone Pickaxe" to argument-1
1080 if argument 2 is "stonesword":
1081 if arg-1 has 15 Stone:
1082 if arg-1 has 2 Stick:
1083 remove 15 Stone from arg-1
1084 remove 2 Stick from arg-1
1085 give 1 of stone sword named "&7Stone Sword" to argument-1
1086 if argument 2 is "stoneaxe":
1087 if arg-1 has 8 Stone:
1088 if arg-1 has 2 Stick:
1089 remove 8 Stone from arg-1
1090 remove 2 Stick from arg-1
1091 give 1 of stone axe named "&7Stone Axe" to argument-1
1092 if argument 2 is "leatherhelmet":
1093 if arg-1 has 5 leather:
1094 if arg-1 has 5 tall grass:
1095 remove 5 Leather from arg-1
1096 remove 5 tall Grass from arg-1
1097 give 1 of leather helmet named "&7Leather Helmet" to argument-1
1098 if argument 2 is "leatherchestplate":
1099 if arg-1 has 8 leather:
1100 if arg-1 has 8 tall grass:
1101 remove 8 Leather from arg-1
1102 remove 8 tall Grass from arg-1
1103 give 1 of leather chestplate named "&7Leather Chestplate" to argument-1
1104 if argument 2 is "leatherleggings":
1105 if arg-1 has 7 leather:
1106 if arg-1 has 7 tall grass:
1107 remove 7 Leather from arg-1
1108 remove 7 tall Grass from arg-1
1109 give 1 of leather leggings named "&7Leather Leggings" to argument-1
1110 if argument 2 is "leatherboots":
1111 if arg-1 has 4 leather:
1112 if arg-1 has 4 tall grass:
1113 remove 4 Leather from arg-1
1114 remove 4 tall Grass from arg-1
1115 give 1 of leather boots named "&7Leather Boots" to argument-1
1116 if argument 2 is "campfire":
1117 if arg-1 has 10 tall grass:
1118 if arg-1 has 10 coal:
1119 if arg-1 has 50 Oak Wood Plank:
1120 if arg-1 has 40 Stone:
1121 remove 10 tall grass from arg-1
1122 remove 10 coal from arg-1
1123 remove 50 Oak Wood Plank from arg-1
1124 remove 40 Stone from arg-1
1125 give 1 of Cauldron item named "&7Campfire" to argument-1
1126 if argument 2 is "stick":
1127 if arg-1 has 2 Oak Wood Plank:
1128 remove 2 Oak Wood Plank from arg-1
1129 give 1 of stick named "&7Stick" to argument-1
1130 if argument 2 is "torch":
1131 if arg-1 has 2 Stick:
1132 if arg-1 has 2 Coal:
1133 remove 2 Stick from arg-1
1134 remove 2 Coal from arg-1
1135 give 1 of torch named "&7Torch" to argument-1
1136 if argument 2 is "chest":
1137 if arg-1 has 30 Oak Wood Plank:
1138 if arg-1 has 10 Leather:
1139 if arg-1 has 2 Iron Ingot:
1140 if arg-1 has 4 Stick:
1141 remove 30 Oak Wood Plank from arg-1
1142 remove 10 Leather from arg-1
1143 remove 2 Iron Ingot from arg-1
1144 remove 4 Stick from arg-1
1145 give 1 of chest named "&9Storage" to arg-1
1146 if argument 2 is "tnt":
1147 if arg-1 has 30 Coal:
1148 if arg-1 has 40 Stone:
1149 if arg-1 has 10 Iron Ingot:
1150 if arg-1 has 10 Stick:
1151 remove 30 Coal from arg-1
1152 remove 40 Stone from arg-1
1153 remove 10 Iron Ingot from arg-1
1154 remove 10 Stick from arg-1
1155 give 1 of tnt named "&9TNT" to arg-1
1156 if argument 2 is "woodendoor":
1157 if arg-1 has 20 Oak Wood Plank:
1158 if arg-1 has 12 Stick:
1159 remove 20 Oak Wood Plank from arg-1
1160 remove 12 Stick from arg-1
1161 give 1 of Wooden Door named "&7Door" to arg-1
1162 if argument 2 is "bandage":
1163 if arg-1 has 10 Leather:
1164 if arg-1 has 2 Redstone:
1165 if arg-1 has 2 Grass:
1166 remove 10 Leather from arg-1
1167 remove 2 Redstone from arg-1
1168 remove 2 Grass from arg-1
1169 give 1 paper named "&9Bandage" to arg-1
1170 if argument 2 is "rawporkchop":
1171 if arg-1 has 1 raw porkchop:
1172 if arg-1 has 1 Coal:
1173 remove 1 raw porkchop from arg-1
1174 remove 1 Coal from arg-1
1175 give 1 Cooked porkchop named "&7Cooked Porkchop" to arg-1
1176 if argument 2 is "rawporkchopfire":
1177 if arg-1 has 1 raw porkchop:
1178 remove 1 raw porkchop from arg-1
1179 give 1 Cooked porkchop named "&7Cooked Porkchop" to arg-1
1180 if argument 2 is "goldhelmet":
1181 if arg-1 has 5 Gold Ingot:
1182 remove 5 Gold Ingot from arg-1
1183 give 1 Gold helmet named "&7Gold Helmet" to arg-1
1184 if argument 2 is "goldchestplate":
1185 if arg-1 has 8 Gold Ingot:
1186 remove 8 Gold Ingot from arg-1
1187 give 1 Gold chestplate named "&7Gold Chestplate" to arg-1
1188 if argument 2 is "goldleggings":
1189 if arg-1 has 7 Gold Ingot:
1190 remove 7 Gold Ingot from arg-1
1191 give 1 Gold leggings named "&7Gold Leggings" to arg-1
1192 if argument 2 is "goldboots":
1193 if arg-1 has 4 Gold Ingot:
1194 remove 4 Gold Ingot from arg-1
1195 give 1 Gold boots named "&7Gold Boots" to arg-1
1196 if argument 2 is "ironhelmet":
1197 if arg-1 has 5 Iron Ingot:
1198 remove 5 Iron Ingot from arg-1
1199 give 1 Iron Helmet named "&7Iron Helmet" to arg-1
1200 if argument 2 is "ironchestplate":
1201 if arg-1 has 8 Iron Ingot:
1202 remove 8 Iron Ingot from arg-1
1203 give 1 Iron Chestplate named "&7Iron Chestplate" to arg-1
1204 if argument 2 is "ironleggings":
1205 if arg-1 has 7 Iron Ingot:
1206 remove 7 Iron Ingot from arg-1
1207 give 1 Iron Leggings named "&7Iron Leggings" to arg-1
1208 if argument 2 is "ironboots":
1209 if arg-1 has 4 Iron Ingot:
1210 remove 4 Iron Ingot from arg-1
1211 give 1 Iron Boots named "&7Iron Boots" to arg-1
1212 if argument 2 is "ironsword":
1213 if arg-1 has 20 Iron Ingot:
1214 if arg-1 has 5 Coal:
1215 if arg-1 has 2 Stick:
1216 remove 20 Iron Ingot from arg-1
1217 remove 5 Coal from arg-1
1218 remove 2 Stick from arg-1
1219 give 1 Iron Sword named "&9Iron Sword" to arg-1
1220 if argument 2 is "ironaxe":
1221 if arg-1 has 25 Iron Ingot:
1222 if arg-1 has 5 Coal:
1223 if arg-1 has 2 Stick:
1224 remove 25 Iron Ingot from arg-1
1225 remove 5 Coal from arg-1
1226 remove 2 Stick from arg-1
1227 give 1 Iron Axe named "&9Iron Axe" to arg-1
1228 if argument 2 is "ironpickaxe":
1229 if arg-1 has 10 Iron Ingot:
1230 if arg-1 has 2 Stick:
1231 remove 10 Iron Ingot from arg-1
1232 remove 2 Stick from arg-1
1233 give 1 Iron Pickaxe named "&6Iron Pickaxe" to arg-1
1234
1235#============================================================
1236#Custom Mobs | Airdrops
1237#============================================================
1238
1239#Cooldown
1240
1241every 20 minutes:
1242 set {clear.mobs} to "true"
1243 kill all zombies
1244 kill all wolves
1245 kill all pigs
1246 set {clear.mobs} to "false"
1247
1248every {@Cooldown.zombies}:
1249 if {mobs.zombies} is "true":
1250 loop all players:
1251 loop-player's world is "%{world}%":
1252 chance of 20%:
1253 set {_loc} to location 20 blocks forwards loop-player
1254 chance of 20%:
1255 set {_loc} to location 25 blocks left loop-player
1256 chance of 20%:
1257 set {_loc} to location 25 blocks forwards loop-player
1258 chance of 20%:
1259 set {_loc} to location 25 blocks right loop-player
1260 chance of 20%:
1261 set {_loc} to location 20 blocks left loop-player
1262 chance of 50%:
1263 set {_loc} to location 30 blocks forwards loop-player
1264 if block 1 blocks below {_loc} isn't air or water:
1265 if block 2 blocks below {_loc} isn't air or water:
1266 if block 3 blocks below {_loc} isn't air or water:
1267 if block 4 blocks below {_loc} isn't air or water:
1268 if block 5 blocks below {_loc} isn't air or water:
1269 spawn 1 zombie at location 1 blocks above {_loc}
1270
1271every {@Cooldown.pigs}:
1272 if {mobs.pigs} is "true":
1273 loop all players:
1274 loop-player's world is "%{world}%":
1275 chance of 50%:
1276 set {_loc} to location 20 blocks forwards loop-player
1277 chance of 50%:
1278 set {_loc} to location 25 blocks forwards loop-player
1279 chance of 20%:
1280 set {_loc} to location 20 blocks left loop-player
1281 chance of 20%:
1282 set {_loc} to location 25 blocks right loop-player
1283 if block 1 blocks below {_loc} isn't air or water:
1284 if block 2 blocks below {_loc} isn't air or water:
1285 if block 3 blocks below {_loc} isn't air or water:
1286 if block 4 blocks below {_loc} isn't air or water:
1287 if block 5 blocks below {_loc} isn't air or water:
1288 spawn 1 pig at location 1 blocks above {_loc}
1289
1290every {@Cooldown.airdrops}:
1291 if {rustz.airdrop.1} is set:
1292 set {loc} to a random element out of {airdrops::*}
1293 set {x.loc} to the x coord of {loc}
1294 set {y.loc} to the y coord of {loc}
1295 set {z.loc} to the z coord of {loc}
1296 set {loc1} to location 1 blocks above {loc}
1297 set {loc2} to location 2 blocks above {loc}
1298 set {loc3} to location 3 blocks above {loc}
1299 set {loc15} to location 15 blocks above {loc}
1300 set block at {loc} to air
1301 set block at {loc1} to air
1302 set block at {loc2} to air
1303 set block at {loc3} to air
1304 strike lightning at {loc}
1305 set block at {loc} to Cauldron
1306 wait 2 ticks
1307 set block at {loc1} to Chest
1308 set block at {loc2} to Light Gray Stained Glass
1309 create a fake explosion at {loc}
1310 create a fake explosion at {loc3}
1311 loop players:
1312 if loop-player's world is "%{world}%":
1313 message "&6&l&m------------------&r&4&l|&6&l+&4&l|&r&6&l&m------------------" to the loop-player
1314 message " &e*&7An airdrop fell&e*" to the loop-player
1315 message "&cLocation Info:" to the loop-player
1316 message "" to the loop-player
1317 message "&cX &7= &9%{x.loc}%" to the loop-player
1318 message "&cY &7= &9%{y.loc}%" to the loop-player
1319 message "&cZ &7= &9%{z.loc}%" to the loop-player
1320 message "" to the loop-player
1321 message "&6&l&m------------------&r&4&l|&6&l+&4&l|&r&6&l&m------------------" to the loop-player
1322
1323#Equip
1324
1325on spawn of zombie:
1326 if {mobs.zombies} is "true":
1327 world is "%{world}%":
1328 chance of 100%:
1329 wait 2 ticks
1330 set helmet slot of zombie to leather helmet
1331 set chestplate slot of zombie to leather chestplate
1332 set leggings slot of zombie to leather leggings
1333 set boots slot of zombie to leather boots
1334 set zombie's tool to stone sword
1335 set name of zombie to "%{name.zombies}%"
1336 apply speed 1 to zombie for 99999 days
1337 chance of 10%:
1338 spawn 1 zombie at event-entity
1339 wait 2 ticks
1340 set helmet slot of zombie to chainmail helmet
1341 set chestplate slot of zombie to chainmail chestplate
1342 set leggings slot of zombie to chainmail leggings
1343 set boots slot of zombie to chainmail boots
1344 set zombie's tool to iron sword
1345 set name of zombie to "%{name.zombies}%"
1346 apply speed 3 to zombie for 99999 days
1347 stop
1348
1349on spawn of pig:
1350 if {mobs.pigs} is "true":
1351 world is "%{world}%":
1352 set name of pig to "%{name.pigs}%"
1353 apply speed 3 to pig for 99999 days
1354
1355#Deaths
1356
1357on death of zombie:
1358 world is "%{world}%":
1359 remove all leather helmet from drops
1360 remove all leather chestplate from drops
1361 remove all leather leggings from drops
1362 remove all leather boots from drops
1363 remove all diamond helmet from drops
1364 remove all diamond chestplate from drops
1365 remove all diamond leggings from drops
1366 remove all diamond boots from drops
1367 remove all stone sword from drops
1368 remove all diamond sword from drops
1369 remove all potato from drops
1370 remove all poisonous potato from drops
1371 remove all chainmail helmet from drops
1372 remove all chainmail chestplate from drops
1373 remove all chainmail leggings from drops
1374 remove all chainmail boots from drops
1375 remove all iron sword from drops
1376 remove all Rotten Flesh from drops
1377 set {_loc} to victim
1378 chance of 45%:
1379 drop 1 Redstone named "&7Blood" with lore "&7Class: &cAnimal" at {_loc}
1380 set {_loc} to victim
1381 chance of 15%:
1382 drop 1 Iron Axe named "&9Iron Axe" at {_loc}
1383 if {clear.mobs} is "true":
1384 remove all Redstone from drops
1385 remove all Iron Axe from drops
1386 remove all Rotten Flesh from drops
1387 chance of 30%:
1388 set {_loc} to victim
1389 if attacker is online:
1390 if {mobs.zombies} is "true":
1391 loop all players in radius 5 of {_loc}:
1392 spawn 3 aggressive wolf at {_loc}
1393 loop entities in radius 2 of event-location:
1394 loop-entity is a wolf:
1395 if shooter exists:
1396 set loop-entity's target to shooter
1397 else:
1398 set loop-entity's target to attacker
1399
1400on death of wolf:
1401 world is "%{world}%":
1402 remove all bone from drops
1403 set {_loc} to victim
1404 chance of 45%:
1405 drop Leather named "&7Leather" with lore "&7Class: &cAnimal" at {_loc}
1406 if {clear.mobs} is "true":
1407 remove all Leather from drops
1408
1409on death of pig:
1410 world is "%{world}%":
1411 remove all raw porkchop from drops
1412 set {_loc} to victim
1413 drop raw porkchop named "&7Raw Porkchop" with lore "&7Class: &cFood" at {_loc}
1414 if {clear.mobs} is "true":
1415 remove all raw porkchop from drops
1416
1417#other
1418
1419on death of player:
1420 event-world is "%{world}%":
1421 remove all book from drops
1422 set death message to ""
1423
1424on xp spawn:
1425 cancel event
1426
1427on level change:
1428 event-world is "%{world}%":
1429 set the player's level to 0
1430
1431on spawn:
1432 event-world is "%{world}%":
1433 event-entity isn't pig or zombie or wolf:
1434 cancel event
1435
1436on combust:
1437 event-world is "%{world}%":
1438 event-entity is zombie:
1439 cancel event
1440
1441on respawn:
1442 event-world is "%{world}%":
1443 set slot 8 of player to book named "%{recipes.name}%"
1444 if {house.%player%} is set:
1445 teleport player to {house.%player%}
1446 else:
1447 teleport player to {rustz.spawn}
1448 set {rustz.%player%.protect} to true
1449
1450#============================================================
1451#Chest Loot
1452#============================================================
1453
1454on rightclick on chest:
1455 event-world is "%{world}%":
1456 if block 1 blocks below event-block is a Cauldron:
1457 set block 1 blocks above event-block to air
1458 set block 2 blocks above event-block to air
1459 set block 1 blocks below event-block to air
1460 create a fake explosion at event-block
1461 show 6 "flame" particles at event-block for player offset by 1, 1, 1
1462 set block at event-block to air
1463 chance of 40%:
1464 add 1 Wood Pickaxe named "&7Wood Pickaxe" to the player
1465 chance of 15%:
1466 add 1 Gold Pickaxe named "&7Gold Pickaxe" to the player
1467 chance of 10%:
1468 add 1 Iron Pickaxe named "&7Iron Pickaxe" to the player
1469 chance of 30%:
1470 add 1 Wood Sword named "&7Wood Sword" to the player
1471 chance of 20%:
1472 add 1 Stone Sword named "&7Stone Sword" to the player
1473 chance of 30%:
1474 add 1 Iron Sword named "&9Iron Sword" to the player
1475 chance of 30%:
1476 add 1 Wood Axe named "&7Wood Axe" to the player
1477 chance of 15%:
1478 add 1 Stone Axe named "&7Stone Axe" to the player
1479 chance of 8%:
1480 add 1 Iron Axe named "&9Iron Axe" to the player
1481 chance of 70%:
1482 add 1 Raw porkchop named "&7Raw Porkchop" to the player
1483 chance of 60%:
1484 add 1 Cooked porkchop named "&7Cooked Porkchop" to the player
1485 chance of 35%:
1486 add 1 Leather Helmet named "&7Leather Helmet" to the player
1487 chance of 35%:
1488 add 1 Leather Chestplate named "&7Leather Chestplate" to the player
1489 chance of 35%:
1490 add 1 Leather Leggings named "&7Leather Leggings" to the player
1491 chance of 35%:
1492 add 1 Leather Boots named "&7Leather Boots" to the player
1493 chance of 15%:
1494 add 1 Gold Helmet named "&7Gold Helmet" to the player
1495 chance of 15%:
1496 add 1 Gold Chestplate named "&7Gold Chestplate" to the player
1497 chance of 15%:
1498 add 1 Gold Leggings named "&7Gold Leggings" to the player
1499 chance of 15%:
1500 add 1 Gold Boots named "&7Gold Boots" to the player
1501 chance of 7%:
1502 add 1 Iron Helmet named "&7Iron Helmet" to the player
1503 chance of 9%:
1504 add 1 Iron Chestplate named "&7Iron Chestplate" to the player
1505 chance of 10%:
1506 add 1 Iron Leggings named "&7Iron Leggings" to the player
1507 chance of 10%:
1508 add 1 Iron Boots named "&7Iron Boots" to the player
1509 chance of 30%:
1510 add 3 Coal named "&7Coal" with lore "&7Class: &cMinerals" to the player
1511 chance of 20%:
1512 add 1 Iron Ingot named "&7Iron" with lore "&7Class: &cMinerals" to the player
1513 chance of 40%:
1514 add 5 Stone named "&7Stone" with lore "&7Class: &cMinerals" to the player
1515 chance of 40%:
1516 add 5 Oak Wood Plank named "&7Wood" with lore "&7Class: &cNatural" to the player
1517 chance of 8%:
1518 add 1 tnt named "&9TNT" to the player
1519 chance of 30%:
1520 add 1 paper named "&9Bandage" to the player
1521#BluePrints
1522 if {blueprints.%player%.ironaxe} isn't set:
1523 chance of 5%:
1524 set {blueprints.%player%.ironaxe} to "Unlocked"
1525 message "&6-------------------------"
1526 message " &9BluePrint of Iron Axe"
1527 message " &eUnlocked "
1528 message "&6-------------------------"
1529 if {blueprints.%player%.tnt} isn't set:
1530 chance of 5%:
1531 set {blueprints.%player%.tnt} to "Unlocked"
1532 message "&6-------------------------"
1533 message " &9BluePrint of TNT"
1534 message " &eUnlocked "
1535 message "&6-------------------------"
1536 if {blueprints.%player%.ironsword} isn't set:
1537 chance of 5%:
1538 set {blueprints.%player%.ironsword} to "Unlocked"
1539 message "&6-------------------------"
1540 message " &9BluePrint of Iron Sword"
1541 message " &eUnlocked "
1542 message "&6-------------------------"
1543 if {blueprints.%player%.bandage} isn't set:
1544 chance of 5%:
1545 set {blueprints.%player%.bandage} to "Unlocked"
1546 message "&6-------------------------"
1547 message " &9BluePrint of Bandage"
1548 message " &eUnlocked "
1549 message "&6-------------------------"
1550
1551#============================================================
1552#Items Events | Rightclick | Click | Place | Break
1553#============================================================
1554
1555on block damage:
1556 event-world is "%{world}%":
1557 if event-player has permission "rustz.break.bypass":
1558 stop
1559 else:
1560 if event-block isn't Torch, Crafting Table, Furnace, Chest, Anvil, Wooden Door, Spruce Wood, Oak Wood, Coal Block or Tall Grass:
1561 cancel event
1562 if event-block is Torch:
1563 if distance between player and event-block is more than 2:
1564 message "&7You can not interact at this distance."
1565 cancel event
1566 else:
1567 stop
1568 if event-block is an Anvil:
1569 if distance between player and event-block is more than 2:
1570 message "&7You can not interact at this distance."
1571 cancel event
1572 if event-block is an Crafting Table:
1573 if distance between player and event-block is more than 2:
1574 message "&7You can not interact at this distance."
1575 cancel event
1576 else:
1577 stop
1578 if event-block is a Furnace:
1579 if distance between player and event-block is more than 2:
1580 message "&7You can not interact at this distance."
1581 cancel event
1582 else:
1583 stop
1584 if event-block is a Chest:
1585 if distance between player and event-block is more than 2:
1586 message "&7You can not interact at this distance."
1587 cancel event
1588 if event-block is Wooden Door:
1589 if distance between player and event-block is more than 2:
1590 message "&7You can not interact at this distance."
1591 cancel event
1592 else:
1593 if player is holding a iron axe:
1594 set event-block to air
1595 remove 1 Iron Axe from player
1596 else:
1597 message "&7You can break this Door only with iron axe."
1598 cancel event
1599
1600on inventory click:
1601 event-world is "%{world}%":
1602 event-item is book:
1603 cancel event
1604
1605on craft:
1606 event-world is "%{world}%":
1607 cancel event
1608
1609on weather change to rain or thunder:
1610 world is "%{world}%":
1611 set weather in event-world to sunny
1612
1613on rightclick holding a Paper:
1614 if event-world is "%{world}%":
1615 if "%name of player's held item%" is "&9Bandage":
1616 if target block is a chest:
1617 stop
1618 if target block is a furnace:
1619 stop
1620 if target block is a sign:
1621 stop
1622 if target block is a ender chest:
1623 stop
1624 if target block is a crafting table:
1625 stop
1626 if target block is a dispenser:
1627 stop
1628 if player's health is 10:
1629 message "&7Your health is already complete !"
1630 stop
1631 apply regeneration to player for 10 seconds
1632 remove 1 paper from player
1633
1634on place of tnt:
1635 if event-world is "%{world}%":
1636 set event-block to air
1637 loop blocks in radius 2 of event-block:
1638 if loop-block is Wooden Door:
1639 set loop-block to air
1640 create a fake explosion at event-block
1641 show 3 "flame" particles at event-block for player offset by 0.4, 0.7, 0.4
1642 show 5 "crit" particles at event-block for player offset by 1, 1, 1
1643 show 10 "flame" particles at event-block for player offset by 1, 0.7, 1
1644
1645#============================================================
1646#Place Events | House System
1647#============================================================
1648
1649on place:
1650 event-world is "%{world}%":
1651 if event-player has permission "rustz.place.bypass":
1652 stop
1653 else:
1654 if event-block isn't Torch, Furnace, Cauldron item, Anvil, Ender Chest, Chest, Wooden Door, Crafting Table or tnt:
1655 cancel event
1656 if event-block is Torch:
1657 wait 120 minutes
1658 if block at event-block isn't air:
1659 set event-block to air
1660 if event-block is a Cauldron:
1661 cancel event
1662 if block under event-block isn't grass or sand or cobblestone or stone:
1663 message "&cYou can't place the campfire here."
1664 stop
1665 if block under event-block is grass or sand or cobblestone or stone:
1666 if block under event-block is grass:
1667 set {_grass} to "1"
1668 if block under event-block is sand:
1669 set {_sand} to "1"
1670 if block under event-block is cobblestone:
1671 set {_cobblestone} to "1"
1672 if block under event-block is stone:
1673 set {_stone} to "1"
1674 if block 1 blocks above event-block is air:
1675 {cauldron.%player%} is "2"
1676 set {_block} to location 1 blocks below event-block
1677 block 2 blocks above event-block is air
1678 block 3 blocks above event-block is air
1679 block 1 blocks forwards event-block is air
1680 block 2 blocks forwards event-block is air
1681 block 3 blocks forwards event-block is air
1682 block 1 blocks backwards event-block is air
1683 block 2 blocks backwards event-block is air
1684 block 3 blocks backwards event-block is air
1685 block 1 blocks left event-block is air
1686 block 2 blocks left event-block is air
1687 block 3 blocks left event-block is air
1688 block 1 blocks right event-block is air
1689 block 2 blocks right event-block is air
1690 block 3 blocks right event-block is air
1691 block 1 blocks forwards {_block} isn't air
1692 block 2 blocks forwards {_block} isn't air
1693 block 3 blocks forwards {_block} isn't air
1694 block 1 blocks backwards {_block} isn't air
1695 block 2 blocks backwards {_block} isn't air
1696 block 3 blocks backwards {_block} isn't air
1697 block 1 blocks left {_block} isn't air
1698 block 2 blocks left {_block} isn't air
1699 block 3 blocks left {_block} isn't air
1700 block 1 blocks right {_block} isn't air
1701 block 2 blocks right {_block} isn't air
1702 block 3 blocks right {_block} isn't air
1703 remove 1 Cauldron from player
1704 set {cauldron.%player%} to "1"
1705 set {_block} to event-block
1706 set block at event-block to air
1707 set {_loc} to location 1 blocks below {_block}
1708 set {_loc1} to location 1 blocks above {_loc}
1709 set {_loc2} to location 1 blocks forwards {_loc1}
1710 set {_loc3} to location 1 blocks backwards {_loc1}
1711 set {_loc4} to location 1 blocks right {_loc1}
1712 set {_loc5} to location 1 blocks left {_loc1}
1713 set block at {_loc} to Netherrack
1714 show 5 "flame" particles at event-block for player offset by 1, 1, 1
1715 show 5 "crit" particles at event-block for player offset by 1, 1, 1
1716 wait 8 ticks
1717 set block at {_loc5} to Cobblestone Slab
1718 set block at {_loc3} to Cobblestone Slab
1719 set block at {_loc4} to Cobblestone Slab
1720 set block at {_loc2} to Cobblestone Slab
1721 show 5 "crit" particles at event-block for player offset by 1, 1, 1
1722 wait 8 ticks
1723 set block at {_loc1} to Fire
1724 show 10 "crit" particles at event-block for player offset by 1, 0.7, 1
1725 show 7 "redstone" particles at event-block for player offset by 1, 0.7, 1
1726 set {cauldron.%player%} to "2"
1727 wait 1 hour
1728 if {_stone} is "1":
1729 set block at {_loc} to stone
1730 if {_sand} is "1":
1731 set block at {_loc} to sand
1732 if {_cobblestone} is "1":
1733 set block at {_loc} to cobblestone
1734 if {_grass} is "1":
1735 set block at {_loc} to grass
1736 set block at {_loc1} to air
1737 set block at {_loc2} to air
1738 set block at {_loc3} to air
1739 set block at {_loc4} to air
1740 set block at {_loc5} to air
1741 stop
1742 else:
1743 message "&cYou can't place the campfire here."
1744 stop
1745 if event-block is a Ender Chest:
1746 cancel event
1747 if block 1 blocks below event-block is grass, stone or dirt:
1748 set {_block} to event-block
1749 set {_block1} to location 1 blocks below event-block
1750 if block 1 blocks below {_block1} isn't air:
1751 block 2 blocks below {_block1} isn't air
1752 block 1 blocks forwards {_block1} isn't air
1753 block 2 blocks forwards {_block1} isn't air
1754 block 3 blocks forwards {_block1} isn't air
1755 block 4 blocks forwards {_block1} isn't air
1756 block 5 blocks forwards {_block1} isn't air
1757 block 6 blocks forwards {_block1} isn't air
1758 block 7 blocks forwards {_block1} isn't air
1759 block 8 blocks forwards {_block1} isn't air
1760 block 9 blocks forwards {_block1} isn't air
1761 block 10 blocks forwards {_block1} isn't air
1762 block 1 blocks backwards {_block1} isn't air
1763 block 2 blocks backwards {_block1} isn't air
1764 block 3 blocks backwards {_block1} isn't air
1765 block 4 blocks backwards {_block1} isn't air
1766 block 5 blocks backwards {_block1} isn't air
1767 block 6 blocks backwards {_block1} isn't air
1768 block 7 blocks backwards {_block1} isn't air
1769 block 8 blocks backwards {_block1} isn't air
1770 block 9 blocks backwards {_block1} isn't air
1771 block 10 blocks backwards {_block1} isn't air
1772 block 1 blocks right {_block1} isn't air
1773 block 2 blocks right {_block1} isn't air
1774 block 3 blocks right {_block1} isn't air
1775 block 4 blocks right {_block1} isn't air
1776 block 5 blocks right {_block1} isn't air
1777 block 6 blocks right {_block1} isn't air
1778 block 7 blocks right {_block1} isn't air
1779 block 8 blocks right {_block1} isn't air
1780 block 9 blocks right {_block1} isn't air
1781 block 10 blocks right {_block1} isn't air
1782 block 1 blocks left {_block1} isn't air
1783 block 2 blocks left {_block1} isn't air
1784 block 3 blocks left {_block1} isn't air
1785 block 4 blocks left {_block1} isn't air
1786 block 5 blocks left {_block1} isn't air
1787 block 6 blocks left {_block1} isn't air
1788 block 7 blocks left {_block1} isn't air
1789 block 8 blocks left {_block1} isn't air
1790 block 9 blocks left {_block1} isn't air
1791 block 10 blocks left {_block1} isn't air
1792 block 1 blocks above {_block} is air
1793 block 2 blocks above {_block} is air
1794 block 3 blocks above {_block} is air
1795 block 4 blocks above {_block} is air
1796 block 5 blocks above {_block} is air
1797 block 6 blocks above {_block} is air
1798 block 7 blocks above {_block} is air
1799 block 8 blocks above {_block} is air
1800 block 9 blocks above {_block} is air
1801 block 10 blocks above {_block} is air
1802 block 1 blocks forwards {_block} is air
1803 block 2 blocks forwards {_block} is air
1804 block 3 blocks forwards {_block} is air
1805 block 4 blocks forwards {_block} is air
1806 block 5 blocks forwards {_block} is air
1807 block 6 blocks forwards {_block} is air
1808 block 7 blocks forwards {_block} is air
1809 block 8 blocks forwards {_block} is air
1810 block 9 blocks forwards {_block} is air
1811 block 10 blocks forwards {_block} is air
1812 block 1 blocks backwards {_block} is air
1813 block 2 blocks backwards {_block} is air
1814 block 3 blocks backwards {_block} is air
1815 block 4 blocks backwards {_block} is air
1816 block 5 blocks backwards {_block} is air
1817 block 6 blocks backwards {_block} is air
1818 block 7 blocks backwards {_block} is air
1819 block 8 blocks backwards {_block} is air
1820 block 9 blocks backwards {_block} is air
1821 block 10 blocks backwards {_block} is air
1822 block 1 blocks right {_block} is air
1823 block 2 blocks right {_block} is air
1824 block 3 blocks right {_block} is air
1825 block 4 blocks right {_block} is air
1826 block 5 blocks right {_block} is air
1827 block 6 blocks right {_block} is air
1828 block 7 blocks right {_block} is air
1829 block 8 blocks right {_block} is air
1830 block 9 blocks right {_block} is air
1831 block 10 blocks right {_block} is air
1832 block 1 blocks left {_block} is air
1833 block 2 blocks left {_block} is air
1834 block 3 blocks left {_block} is air
1835 block 4 blocks left {_block} is air
1836 block 5 blocks left {_block} is air
1837 block 6 blocks left {_block} is air
1838 block 7 blocks left {_block} is air
1839 block 8 blocks left {_block} is air
1840 block 9 blocks left {_block} is air
1841 block 10 blocks left {_block} is air
1842 set {_block} to event-block
1843 set block at event-block to air
1844 set {_loc} to location 1 blocks below {_block}
1845 set {_loc1} to location 1 blocks forwards {_loc}
1846 set {_loc2} to location 1 blocks forwards {_loc1}
1847 set {_loc3} to location 1 blocks forwards {_loc2}
1848 set {_loc4} to location 1 blocks forwards {_loc3}
1849 set {_loc5} to location 1 blocks forwards {_loc4}
1850 set {_loc6} to location 1 blocks left {_loc3}
1851 set {_loc7} to location 1 blocks right {_loc3}
1852 set {_loc8} to location 1 blocks left {_loc1}
1853 set {_loc9} to location 1 blocks right {_loc1}
1854 set {_loc10} to location 1 blocks right {_loc2}
1855 set {_loc11} to location 2 blocks right {_loc2}
1856 set {_loc12} to location 1 blocks left {_loc2}
1857 set {_loc13} to location 2 blocks left {_loc2}
1858 set {_loc14} to location 1 blocks forwards {_loc11}
1859 set {_loc15} to location 1 blocks forwards {_loc13}
1860 set {_loc16} to location 1 blocks right {_loc4}
1861 set {_loc17} to location 2 blocks right {_loc4}
1862 set {_loc18} to location 1 blocks left {_loc4}
1863 set {_loc19} to location 2 blocks left {_loc4}
1864 set {_loc20} to location 1 blocks right {_loc5}
1865 set {_loc21} to location 1 blocks left {_loc5}
1866 set {_locA} to location 1 blocks right {_loc}
1867 set {_loc22} to location 1 blocks above {_locA}
1868 set {_loc23} to location 1 blocks above {_loc22}
1869 set {_loc24} to location 1 blocks above {_loc23}
1870 set {_locB} to location 1 blocks left {_loc}
1871 set {_loc25} to location 1 blocks above {_locB}
1872 set {_loc26} to location 1 blocks above {_loc25}
1873 set {_loc27} to location 1 blocks above {_loc26}
1874 set {_locC} to location 1 blocks right {_loc9}
1875 set {_loc28} to location 1 blocks above {_locC}
1876 set {_loc29} to location 1 blocks above {_loc28}
1877 set {_loc30} to location 1 blocks above {_loc29}
1878 set {_locD} to location 1 blocks left {_loc8}
1879 set {_loc31} to location 1 blocks above {_locD}
1880 set {_loc32} to location 1 blocks above {_loc31}
1881 set {_loc33} to location 1 blocks above {_loc32}
1882 set {_locE} to location 1 blocks right {_loc11}
1883 set {_loc34} to location 1 blocks above {_locE}
1884 set {_loc35} to location 1 blocks above {_loc34}
1885 set {_loc36} to location 1 blocks above {_loc35}
1886 set {_locF} to location 1 blocks left {_loc13}
1887 set {_loc37} to location 1 blocks above {_locF}
1888 set {_loc38} to location 1 blocks above {_loc37}
1889 set {_loc39} to location 1 blocks above {_loc38}
1890 set {_loc40} to location 1 blocks forwards {_loc34}
1891 set {_loc41} to location 1 blocks forwards {_loc35}
1892 set {_loc42} to location 1 blocks forwards {_loc36}
1893 set {_loc43} to location 1 blocks forwards {_loc37}
1894 set {_loc44} to location 1 blocks forwards {_loc38}
1895 set {_loc45} to location 1 blocks forwards {_loc39}
1896 set {_loc46} to location 1 blocks forwards {_loc43}
1897 set {_loc47} to location 1 blocks forwards {_loc44}
1898 set {_loc48} to location 1 blocks forwards {_loc45}
1899 set {_loc49} to location 1 blocks forwards {_loc40}
1900 set {_loc50} to location 1 blocks forwards {_loc41}
1901 set {_loc51} to location 1 blocks forwards {_loc42}
1902 set {_locG} to location 1 blocks right {_loc20}
1903 set {_loc52} to location 1 blocks above {_locG}
1904 set {_loc53} to location 1 blocks above {_loc52}
1905 set {_loc54} to location 1 blocks above {_loc53}
1906 set {_locH} to location 1 blocks left {_loc21}
1907 set {_loc55} to location 1 blocks above {_locH}
1908 set {_loc56} to location 1 blocks above {_loc55}
1909 set {_loc57} to location 1 blocks above {_loc56}
1910 set {_locI} to location 1 blocks forwards {_loc5}
1911 set {_loc58} to location 1 blocks above {_locI}
1912 set {_loc59} to location 1 blocks above {_loc58}
1913 set {_loc60} to location 1 blocks above {_loc59}
1914 set {_locL} to location 1 blocks forwards {_loc20}
1915 set {_loc61} to location 1 blocks above {_locL}
1916 set {_loc62} to location 1 blocks above {_loc61}
1917 set {_loc63} to location 1 blocks above {_loc62}
1918 set {_locM} to location 1 blocks forwards {_loc21}
1919 set {_loc64} to location 1 blocks above {_locM}
1920 set {_loc65} to location 1 blocks above {_loc64}
1921 set {_loc66} to location 1 blocks above {_loc65}
1922 set {_loc67} to location 3 blocks above {_loc}
1923 set {_loc68} to location 4 blocks above {_loc1}
1924 set {_loc69} to location 4 blocks above {_loc2}
1925 set {_loc70} to location 4 blocks above {_loc3}
1926 set {_loc71} to location 4 blocks above {_loc4}
1927 set {_loc72} to location 4 blocks above {_loc5}
1928 set {_loc73} to location 4 blocks above {_loc6}
1929 set {_loc74} to location 4 blocks above {_loc7}
1930 set {_loc75} to location 4 blocks above {_loc8}
1931 set {_loc76} to location 4 blocks above {_loc9}
1932 set {_loc77} to location 4 blocks above {_loc10}
1933 set {_loc78} to location 4 blocks above {_loc11}
1934 set {_loc79} to location 4 blocks above {_loc12}
1935 set {_loc80} to location 4 blocks above {_loc13}
1936 set {_loc81} to location 4 blocks above {_loc14}
1937 set {_loc82} to location 4 blocks above {_loc15}
1938 set {_loc83} to location 4 blocks above {_loc16}
1939 set {_loc84} to location 4 blocks above {_loc17}
1940 set {_loc85} to location 4 blocks above {_loc18}
1941 set {_loc86} to location 4 blocks above {_loc19}
1942 set {_loc87} to location 4 blocks above {_loc20}
1943 set {_loc88} to location 4 blocks above {_loc21}
1944 set block at {_loc} to oak wood plank
1945 set block at {_loc1} to oak wood plank
1946 set block at {_loc2} to Dark Oak Wood
1947 set block at {_loc3} to Bookshelf
1948 set block at {_loc4} to Dark Oak Wood
1949 set block at {_loc5} to oak wood plank
1950 set block at {_loc6} to Dark Oak Wood
1951 set block at {_loc7} to Dark Oak Wood
1952 set block at {_loc8} to oak wood plank
1953 set block at {_loc9} to oak wood plank
1954 set block at {_loc10} to oak wood plank
1955 set block at {_loc11} to oak wood plank
1956 set block at {_loc12} to oak wood plank
1957 set block at {_loc13} to oak wood plank
1958 set block at {_loc14} to oak wood plank
1959 set block at {_loc15} to oak wood plank
1960 set block at {_loc16} to oak wood plank
1961 set block at {_loc17} to oak wood plank
1962 set block at {_loc18} to oak wood plank
1963 set block at {_loc19} to oak wood plank
1964 set block at {_loc20} to oak wood plank
1965 set block at {_loc21} to oak wood plank
1966 set block at {_loc22} to Dark Oak Wood
1967 set block at {_loc23} to oak wood plank
1968 set block at {_loc24} to Dark Oak Wood
1969 set block at {_loc25} to Dark Oak Wood
1970 set block at {_loc26} to oak wood plank
1971 set block at {_loc27} to Dark Oak Wood
1972 set block at {_loc28} to Dark Oak Wood
1973 set block at {_loc29} to oak wood plank
1974 set block at {_loc30} to Dark Oak Wood
1975 set block at {_loc31} to Dark Oak Wood
1976 set block at {_loc32} to oak wood plank
1977 set block at {_loc33} to Dark Oak Wood
1978 set block at {_loc34} to Dark Oak Wood
1979 set block at {_loc35} to oak wood plank
1980 set block at {_loc36} to Dark Oak Wood
1981 set block at {_loc37} to Dark Oak Wood
1982 set block at {_loc38} to oak wood plank
1983 set block at {_loc39} to Dark Oak Wood
1984 set block at {_loc40} to oak wood plank
1985 set block at {_loc41} to bars
1986 set block at {_loc42} to oak wood plank
1987 set block at {_loc43} to oak wood plank
1988 set block at {_loc44} to bars
1989 set block at {_loc45} to oak wood plank
1990 set block at {_loc46} to Dark Oak Wood
1991 set block at {_loc47} to oak wood plank
1992 set block at {_loc48} to Dark Oak Wood
1993 set block at {_loc49} to Dark Oak Wood
1994 set block at {_loc50} to oak wood plank
1995 set block at {_loc51} to Dark Oak Wood
1996 set block at {_loc52} to Dark Oak Wood
1997 set block at {_loc53} to oak wood plank
1998 set block at {_loc54} to Dark Oak Wood
1999 set block at {_loc55} to Dark Oak Wood
2000 set block at {_loc56} to oak wood plank
2001 set block at {_loc57} to Dark Oak Wood
2002 set block at {_loc58} to oak wood plank
2003 set block at {_loc59} to bars
2004 set block at {_loc60} to oak wood plank
2005 set block at {_loc61} to Dark Oak Wood
2006 set block at {_loc62} to oak wood plank
2007 set block at {_loc63} to Dark Oak Wood
2008 set block at {_loc64} to Dark Oak Wood
2009 set block at {_loc65} to oak wood plank
2010 set block at {_loc66} to Dark Oak Wood
2011 set block at {_loc67} to oak wood plank
2012 set block at {_loc68} to Oak Wood Plank
2013 set block at {_loc69} to Oak Wood Plank
2014 set block at {_loc70} to Oak Wood Plank
2015 set block at {_loc71} to Oak Wood Plank
2016 set block at {_loc72} to Oak Wood Plank
2017 set block at {_loc73} to Oak Wood Plank
2018 set block at {_loc74} to Oak Wood Plank
2019 set block at {_loc75} to Oak Wood Plank
2020 set block at {_loc76} to Oak Wood Plank
2021 set block at {_loc77} to Oak Wood Plank
2022 set block at {_loc78} to Oak Wood Plank
2023 set block at {_loc79} to Oak Wood Plank
2024 set block at {_loc80} to Oak Wood Plank
2025 set block at {_loc81} to Oak Wood Plank
2026 set block at {_loc82} to Oak Wood Plank
2027 set block at {_loc83} to Oak Wood Plank
2028 set block at {_loc84} to Oak Wood Plank
2029 set block at {_loc85} to Oak Wood Plank
2030 set block at {_loc86} to Oak Wood Plank
2031 set block at {_loc87} to Oak Wood Plank
2032 set block at {_loc88} to Oak Wood Plank
2033 remove 1 Ender Chest from player
2034 set {house.%player%} to location of player
2035 stop
2036 else:
2037 message "&cYou can't place your house here! You need a free zone of &e9x9&c."
2038 stop
2039 else:
2040 message "&cYou can't place your house here! Place it on other blocks."
2041 if event-block is a Chest:
2042 if block 1 blocks below event-block is Oak Wood Plank or Spruce Wood Plank:
2043 stop
2044 else:
2045 message "&7You can place this only in your house."
2046 cancel event
2047 if event-block is Wooden Door:
2048 if block 1 blocks below event-block is Oak Wood Plank or Spruce Wood Plank:
2049 loop blocks in radius 2 around event-block:
2050 stop
2051 else:
2052 message "&7You can place this only in your house."
2053 cancel event
2054 if event-block is an Anvil:
2055 if block 1 blocks below event-block is Oak Wood Plank or Spruce Wood Plank:
2056 stop
2057 else:
2058 message "&7You can place this only in your house."
2059 cancel event
2060
2061#============================================================
2062#Lock Commands
2063#============================================================
2064
2065command /lock <text = "set"> [<player>]:
2066 trigger:
2067 arg 1 is "set":
2068 targeted block is a wooden door:
2069 {lock::%location of targeted block%} is set:
2070 message "&cLock already set!"
2071 stop
2072 loop blocks in radius 2 around targeted block:
2073 loop-block is a wooden door
2074 set {lock::%location of loop-block%} to player
2075 set {lock.allowed.%player%::%location of loop-block%} to true
2076 set {_msg} to true
2077 {_msg} is true:
2078 message "&aLocked!"
2079 stop
2080 else:
2081 message "&cTargeted is not lockable."
2082 stop
2083 arg 1 is "unset":
2084 targeted block is a wooden door:
2085 {lock::%location of targeted block%} is player:
2086 loop blocks in radius 2 around targeted block:
2087 {lock::%location of loop-block%} is set
2088 delete {lock::%location of loop-block%}
2089 loop all players:
2090 {lock.allowed.%loop-player%::%location of loop-block%} is set
2091 delete {lock.allowed.%loop-player%::%location of loop-block%}
2092 set {_msg} to true
2093 {_msg} is true:
2094 message "&aUnlocked!"
2095 stop
2096 else:
2097 send "&cThis lock is not set, or is not yours."
2098 else:
2099 message "&cTargeted is not a wooden door."
2100 stop
2101
2102 arg 1 is "add":
2103 targeted block is a wooden door:
2104 {lock::%location of targeted block%} is player:
2105 loop blocks in radius 2 around targeted block:
2106 loop-block is a wooden door
2107 set {lock.allowed.%arg 2%::%location of loop-block%} to true
2108 set {_msg} to true
2109 {_msg} is true:
2110 message "&a%arg 2% is now allowed!"
2111 stop
2112 else:
2113 send "&cThis lock is not set, or is not yours."
2114 stop
2115 else:
2116 message "&cTargeted is not a wooden door."
2117 stop
2118
2119 arg 1 is "remove":
2120 targeted block is a wooden door:
2121 {lock::%location of targeted block%} is player:
2122 loop blocks in radius 2 around targeted block:
2123 loop-block is a wooden door
2124 delete {lock.allowed.%arg 2%::%location of loop-block%}
2125 set {_msg} to true
2126 {_msg} is true:
2127 message "&a%arg 2% is no longer allowed!"
2128 stop
2129 else:
2130 send "&cThis lock is not set, or is not yours"
2131 else:
2132 message "&cTarget is not a wooden door."
2133 stop
2134
2135on rightclick:
2136 targeted block is a wooden door:
2137 {lock::%location of targeted block%} is set
2138 {lock.allowed.%player%::%location of targeted block%} is not set
2139 cancel event
2140
2141#============================================================
2142#Admins Gui's | CONTROL PANNEL
2143#============================================================
2144
2145#command /cp [<text>]:
2146# trigger:
2147# loop all players:
2148# if {normal::%loop-player%} is true:
2149# add 1 to {_players}
2150# set {_rows} to {_players}/9
2151# {_rows} is less than 1:
2152# set {_rows} to 1
2153# {_rows} is more than 6:
2154# set {_rows} to 6
2155# open chest with {_rows} rows named "&6Online Player's" to player
2156# wait 1 tick
2157# set {_slot} to -1
2158# loop all players:
2159# if {normal::%loop-player%} is true:
2160# add 1 to {_slot}
2161# format slot {_slot} of player with loop-player's skull named "&a%loop-player%" with lore "&7Press for reset the stats of &e%loop-player%&7." to be unstealable
2162
2163#on join:
2164# set {normal::%player%} to true
2165#on quit:
2166# delete {normal::%player%}