Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.62 KB | None | 0 0
  1. #SpaceScape
  2.  
  3. command /craft:
  4. trigger:
  5. open chest inventory named "Crafting" to player
  6.  
  7. on inventory click:
  8. name of event-inventory is "Crafting"
  9. send "test" to player
  10.  
  11. on join:
  12. wait 1 second
  13. execute console command "speed walk %{speed::%uuid of player%}% %player%"
  14. execute console command "effect give %player% minecraft:strength 100000 %rounded down ({strength::%uuid of player%} / 10) - 1% true"
  15.  
  16. on respawn:
  17. wait 1 second
  18. execute console command "skript:spawn2 %player%"
  19. execute console command "speed walk %{speed::%uuid of player%}% %player%"
  20. execute console command "effect give %player% minecraft:strength 100000 %rounded down ({strength::%uuid of player%} / 10) - 1% true"
  21.  
  22. on break of iron bar:
  23. player doesn't have permission "ironbar.sk"
  24. wait 10 seconds
  25. execute console command "execute in minecraft:the_end run setblock %rounded down block's x coordinate% %rounded down block's y coordinate% %rounded down block's z coordinate% iron_bars[north=true,south=true]"
  26.  
  27. on rightclick:
  28. target block's x coordinate is 849.5
  29. target block's y coordinate is 77.5
  30. target block's z coordinate is -3285.5
  31. execute console command "execute in minecraft:the_end run fill 845 77 -3283 845 76 -3283 air"
  32. wait 15 seconds
  33. execute console command "execute in minecraft:the_end run fill 845 77 -3283 845 76 -3283 cyan_terracotta"
  34.  
  35. command /resettime:
  36. permission: resettime.sk
  37. permission message: &cSorry, Prisoner!
  38. trigger:
  39. set {mhour} to 6
  40. set {hour} to 6
  41. set {ap} to "AM"
  42. set {minute} to 0
  43. clear {activity}
  44.  
  45. command /clearc:
  46. permission: clearc.sk
  47. permission message: &cSorry, Prisoner!
  48. trigger:
  49. clear {c::*}
  50. clear {ct}
  51. loop all players:
  52. loop-player's z coordinate > -3305:
  53. {c::%uuid of loop-player%} is not set
  54. loop-player's y coordinate > 49
  55. loop-player's x coordinate > 871
  56. loop-player's x coordinate < 875
  57. loop-player's y coordinate < 53
  58. loop-player's z coordinate < -3299
  59. execute console command "execute in minecraft:the_end run tp %loop-player% 873 50 -3307 90 0"
  60.  
  61. every 10 minutes:
  62. execute console command "a Buy the new Prisoner+ rank now with /buy!"
  63.  
  64. on drop:
  65. player does not have permission "bypassIllegalDrop.sk"
  66. item's lore contains "Illegal":
  67. cancel event
  68. send "&cIllegal items may not be dropped!" to the player
  69. item is a dye:
  70. cancel event
  71. send "&cDyes and Punching Gloves may not be dropped!" to the player
  72. item is a banner:
  73. cancel event
  74. send "&cYou may not drop that!" to the player
  75.  
  76. on mine:
  77. player's gamemode is adventure:
  78. event-block is stone brick wall:
  79. cancel event
  80. damage player's tool by 1
  81. set block to water
  82. wait 10 seconds
  83. execute console command "execute in minecraft:the_end run setblock 13 142 -33 minecraft:stone_brick_wall[waterlogged=true,west=true,east=true]"
  84. event-block is granite:
  85. cancel event
  86. damage player's tool by 1
  87. set block to air
  88. wait 10 seconds
  89. set block to granite
  90.  
  91. on craft:
  92. player doesn't have permission "craft.sk"
  93. cancel event
  94. send "&cNormal crafting is not allowed!"
  95.  
  96. every 0.5 seconds:
  97. loop all players:
  98. if {minute} < 10:
  99. if {activity} is set:
  100. show an actionbar from "&6%{hour}%:0%{minute}% %{ap}% &8/ &6%{mhour}%:0%{minute}%: &8%{activity}%" to loop-player
  101. else:
  102. show an actionbar from "&6%{hour}%:0%{minute}% %{ap}% &8/ &6%{mhour}%:0%{minute}%" to loop-player
  103. else:
  104. if {activity} is set:
  105. show an actionbar from "&6%{hour}%:%{minute}% %{ap}% &8/ &6%{mhour}%:%{minute}%: &8%{activity}%" to loop-player
  106. else:
  107. show an actionbar from "&6%{hour}%:%{minute}% %{ap}% &8/ &6%{mhour}%:%{minute}%" to loop-player
  108.  
  109. every 1 second:
  110. {mhour} < 16:
  111. loop all players:
  112. loop-player does not have permission "bypassGym.sk"
  113. loop-player's x coordinate > 61
  114. loop-player's y coordinate < 160
  115. loop-player's z coordinate > -23
  116. loop-player's x coordinate < 77
  117. loop-player's y coordinate > 155
  118. loop-player's z coordinate < -3
  119. execute console command "execute in minecraft:the_end run tp %loop-player% 63 152 -5"
  120. {mhour} >= 18:
  121. loop all players:
  122. loop-player does not have permission "bypassGym.sk"
  123. loop-player's x coordinate > 61
  124. loop-player's y coordinate < 160
  125. loop-player's z coordinate > -23
  126. loop-player's x coordinate < 77
  127. loop-player's y coordinate > 155
  128. loop-player's z coordinate < -3
  129. execute console command "execute in minecraft:the_end run tp %loop-player% 63 152 -5"
  130. loop all players:
  131. loop-player's z coordinate > -3305:
  132. {c::%uuid of loop-player%} is not set
  133. loop-player's y coordinate > 49
  134. loop-player's x coordinate > 871
  135. loop-player's x coordinate < 875
  136. loop-player's y coordinate < 53
  137. loop-player's z coordinate < -3299
  138. set {c::%uuid of loop-player%} to true
  139. add 1 to {ct}
  140. {ct} > 1:
  141. execute console command "clearc"
  142. exit
  143. else:
  144. {c::%uuid of loop-player%} is true:
  145. clear {c::%uuid of loop-player%}
  146. {ct} > 0
  147. remove 1 from {ct}
  148.  
  149. loop all players:
  150. loop all items in the inventory of loop-player:
  151. loop-player does not have permission "arrow.sk"
  152. loop-value-2 is Arrow
  153. remove loop-value-2 from loop-player's inventory
  154. {b::%uuid of loop-player%} != loop-player's balance:
  155. execute console command "updatesidebar %loop-player% yes"
  156. set {b::%uuid of loop-player%} to loop-player's balance
  157. if loop-player's world is "earth":
  158. if loop-player's gamemode is adventure:
  159. if {escaped::%loop-player%} is not set:
  160. if {rcells::%loop-player%} is set:
  161. execute console command "as unrent %{rcells::%loop-player%}%"
  162. clear {rcells::%loop-player%}
  163. set {escaped::%loop-player%} to true
  164. execute console command "a %loop-player% has just escaped!"
  165. execute console command "scoreboard players add %loop-player% Escapes 1"
  166. clear loop-player's inventory
  167. add 1 to {escapes::%uuid of loop-player%}
  168. execute console command "updatesidebar %loop-player% no"
  169. {escapes::%uuid of loop-player%} >= 15:
  170. wait 5 seconds
  171. execute console command "minecraft:give %loop-player% minecraft:light_blue_banner{display:{Name:""{\""text\"":\""Light Blue Keycard\"",\""italic\"":false,\""color\"":\""aqua\""}""}}"
  172. loop-player's group contains "Helper":
  173. execute console command "pex user %loop-player% add essentials.kits.escapee"
  174. loop-player's group contains "Moderator":
  175. execute console command "pex user %loop-player% add essentials.kits.escapee"
  176. loop-player's group contains "Prisoner+":
  177. execute console command "pex user %loop-player% add essentials.kits.escapee"
  178. loop-player's group does not contain "Escapee"
  179. loop-player's group does not contain "Prisoner+"
  180. loop-player's group does not contain "Helper"
  181. loop-player's group does not contain "Moderator"
  182. execute console command "pex user %loop-player% group add Escapee"
  183. else:
  184. clear {escaped::%loop-player%}
  185.  
  186. if {restartvotes} = 8:
  187. set {restartvotes} to 0
  188. broadcast "&1&lServer restarting in..."
  189. broadcast "&1&l3"
  190. wait 1 second
  191. broadcast "&1&l2"
  192. wait 1 second
  193. broadcast "&1&l1"
  194. execute console command "stop"
  195.  
  196. every 2 seconds:
  197. if {mhour} < 6:
  198. add 5 to {minute}
  199. else if {mhour} > 22:
  200. add 5 to {minute}
  201. else:
  202. add 1 to {minute}
  203. if {minute} >= 60:
  204. set {minute} to 0
  205. add 1 to {hour}
  206. add 1 to {mhour}
  207.  
  208. if {mhour} = 13:
  209. set {hour} to 1
  210. if {mhour} = 12:
  211. set {ap} to "PM"
  212. if {mhour} = 24:
  213. set {mhour} to 0
  214. set {ap} to "AM"
  215. if {mhour} = 1:
  216. set {hour} to 1
  217.  
  218. if {hour} = 4:
  219. if {ap} is "PM":
  220. if {minute} = 0:
  221. set {activity} to "Gym"
  222. execute console command "title @a subtitle {""text"": ""It's 4 PM, time to go to the Gym!"",""color"":""aqua""}"
  223. execute console command "title @a title {""text"": ""Gym"",""color"":""blue""}"
  224. execute console command "execute in minecraft:the_end run fill 65 154 -6 65 155 -4 air"
  225.  
  226. if {hour} = 9:
  227. if {ap} is "PM":
  228. if {minute} = 0:
  229. set {activity} to "Head to cells"
  230. execute console command "a WARNING: If you are found outside a cell between 10 PM and 6 AM, you WILL be killed!"
  231. execute console command "title @a subtitle {""text"": ""It's 9 PM, start heading to your cells!"",""color"":""aqua""}"
  232. execute console command "title @a title {""text"": ""Cells"",""color"":""blue""}"
  233. if {hour} = 6:
  234. if {ap} is "PM":
  235. if {minute} = 0:
  236. execute console command "execute in minecraft:the_end run fill 65 154 -6 65 155 -4 nether_brick_fence[north=true,south=true]"
  237. set {activity} to "Showers"
  238. execute console command "title @a subtitle {""text"": ""6 PM, It's shower time!"",""color"":""aqua""}"
  239. execute console command "title @a title {""text"": ""Showers"",""color"":""blue""}"
  240. wait 2 minutes
  241. clear {activity}
  242.  
  243. if {hour} = 11:
  244. if {ap} is "PM":
  245. if {minute} = 0:
  246. execute console command "pex group default remove essentials.spawn"
  247. execute console command "pex group default remove spawn.sk"
  248. loop all players:
  249. loop-player does not have permission "cellSpawnBypass.sk"
  250. execute console command "pex user %loop-player% remove spawn.sk"
  251.  
  252. if {hour} = 10:
  253. if {ap} is "PM":
  254. if {minute} = 0:
  255. set {activity} to "Sleep Time"
  256. execute console command "execute in minecraft:the_end run setblock 76 148 -33 air"
  257.  
  258. execute console command "title @a subtitle {""text"": ""10 PM, the cells are closing."",""color"":""aqua""}"
  259. execute console command "title @a title {""text"": ""Cells"",""color"":""blue""}"
  260. if {hour} = 10:
  261. if {ap} is "AM":
  262. if {minute} = 0:
  263. loop all players:
  264. loop-player's group contains "Prisoner+":
  265. give loop-player 5 gold ingots
  266. send "&6The prison has gifted you 5 gold bars! Spend them wisely!" to loop-player
  267. else:
  268. give loop-player 2 gold ingots
  269. send "&6The prison has gifted you 2 gold bars! Spend them wisely!" to loop-player
  270. if {hour} = 6:
  271. if {ap} is "AM":
  272. if {minute} = 0:
  273. clear {activity}
  274. execute console command "execute in minecraft:the_end run setblock 76 148 -33 redstone_block"
  275. execute console command "title @a subtitle {""text"": ""6 AM, Cells Opening."",""color"":""aqua""}"
  276. execute console command "title @a title {""text"": ""Cells"",""color"":""blue""}"
  277. execute console command "pex group default add spawn.sk"
  278. wait 1 second
  279. loop all players:
  280. loop-player does not have permission "cellSpawnBypass.sk"
  281. execute console command "pex user %loop-player% remove -spawn.sk"
  282. execute console command "pex user %loop-player% add spawn.sk"
  283. if {hour} = 12:
  284. if {ap} is "PM":
  285. if {minute} = 0:
  286. set {activity} to "Lunch"
  287. execute console command "title @a subtitle {""text"": ""12 PM, It's time for lunch!"",""color"":""aqua""}"
  288. execute console command "title @a title {""text"": ""Cafetaria"",""color"":""blue""}"
  289. wait 5 seconds
  290. execute console command "minecraft:give @a minecraft:baked_potato 4"
  291. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 air"
  292. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 minecraft:redstone_block"
  293. wait 2 minutes
  294. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 air"
  295. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 minecraft:white_stained_glass_pane[south=true,north=true]"
  296. clear {activity}
  297. if {hour} = 8:
  298. if {ap} is "AM":
  299. if {minute} = 0:
  300. set {activity} to "Breakfast"
  301. execute console command "title @a subtitle {""text"": ""8 AM, time for breakfast!"",""color"":""aqua""}"
  302. execute console command "title @a title {""text"": ""Cafetaria"",""color"":""blue""}"
  303. wait 5 seconds
  304. execute console command "minecraft:give @a minecraft:bread 5"
  305. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 air"
  306. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 minecraft:redstone_block"
  307. wait 2 minutes
  308. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 air"
  309. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 minecraft:white_stained_glass_pane[south=true,north=true]"
  310. clear {activity}
  311.  
  312. if {hour} = 7:
  313. if {ap} is "PM":
  314. if {minute} = 0:
  315. set {activity} to "Dinner"
  316. execute console command "title @a subtitle {""text"": ""7 PM, dinner time!"",""color"":""aqua""}"
  317. execute console command "title @a title {""text"": ""Cafetaria"",""color"":""blue""}"
  318. wait 5 seconds
  319. execute console command "minecraft:give @a minecraft:cooked_beef 4"
  320. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 air"
  321. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 minecraft:redstone_block"
  322. wait 2 minutes
  323. execute console command "execute in minecraft:the_end run fill -62 156 -44 -62 156 -32 air"
  324. execute console command "execute in minecraft:the_end run fill -61 152 -33 -61 152 -43 minecraft:white_stained_glass_pane[south=true,north=true]"
  325. clear {activity}
  326.  
  327. on mine:
  328. {iron::%uuid of player%} is not set:
  329. set {iron::%uuid of player%} to 0
  330. player's gamemode is adventure
  331. if event-block is coal ore:
  332. cancel event
  333. add 2 to player's balance
  334. damage player's tool by 1
  335. if event-block is iron ore:
  336. cancel event
  337. add 7 to player's balance
  338. damage player's tool by 1
  339. add 1 to {iron::%uuid of player%}
  340. if {iron::%uuid of player%} is 100:
  341. set {iron::%uuid of player%} to 0
  342. give 1 iron ingot to player
  343. if event-block is gold ore:
  344. cancel event
  345. add 14 to player's balance
  346. damage player's tool by 1
  347. if event-block is diamond ore:
  348. cancel event
  349. add 20 to player's balance
  350. damage player's tool by 1
  351.  
  352. on first join:
  353. set {_p} to player
  354. set {_r} to "Curse of Vanishing"
  355. set {_i} to a leather helmet
  356. enchant {_i} with ({_r} parsed as enchantment)
  357. set {_p}'s helmet to {_i}
  358. set {_d} to a leather leggings
  359. enchant {_d} with ({_r} parsed as enchantment)
  360. set {_p}'s leggings to {_d}
  361. set {_x} to a leather chestplate
  362. enchant {_x} with ({_r} parsed as enchantment)
  363. set {_p}'s chestplate to {_x}
  364. set {_k} to a leather boots
  365. enchant {_k} with ({_r} parsed as enchantment)
  366. set {_p}'s boots to {_k}
  367. dye {_p}'s helmet orange
  368. dye {_p}'s leggings orange
  369. dye {_p}'s chestplate orange
  370. dye {_p}'s boots orange
  371.  
  372. player's world is "earth":
  373. player does not have permission "spawnBypass.sk":
  374. wait 0.5 seconds
  375. execute console command "sudo %player% spawn"
  376. execute console command "scoreboard players remove %player% Escapes 1"
  377. on death:
  378. make victim unglow
  379.  
  380. command /a [<text>]:
  381. permission: announce.sk
  382. permission message: &cSorry, Prisoner!
  383. trigger:
  384. if arg is set:
  385. set {_a} to arg
  386. broadcast "&1&lSpaceScape &8» &b%{_a}%"
  387. else:
  388. send "&bUsage » /a (message)"
  389. command /poll [<text>]:
  390. permission: poll.sk
  391. permission message: &4Sorry, prisoner!
  392. trigger:
  393. if arg-1 is set:
  394. if {current::poll} is true:
  395. if {voted::%player%} is false:
  396. if arg is "no":
  397. add 1 to {no::poll}
  398. set {voted::%player%} to true
  399. else if arg is "yes":
  400. add 1 to {yes::poll}
  401. set {voted::%player%} to true
  402. else:
  403. send "&cInvalid Answer!"
  404. else:
  405. send "&cYou've already voted!"
  406. else:
  407. send "&cThere is no current poll!"
  408. else:
  409. if {current::poll} is true:
  410. send "&bCurrent Poll: &1%{poll}% &bYes Votes: &1%{yes::poll}% /poll yes. &bNo Votes: &1%{no::poll}% /poll no."
  411. else:
  412. send "&cThere is no poll currently!"
  413.  
  414. command /pollstart <text>:
  415. permission: pollstart.sk
  416. permission message: &cNo permissions!
  417. trigger:
  418. if {current::poll} is true:
  419. send "&cThere is already a current poll!"
  420. else:
  421. loop all players:
  422. set {voted::%loop-player%} to false
  423. set {current::poll} to true
  424. set {yes::poll} to 0
  425. set {no::poll} to 0
  426. set {poll} to arg
  427. broadcast "&1&lSpaceScape &8» &b%player% has created a poll! %arg%. 5 minutes left!"
  428. wait 5 minutes
  429. set {current::poll} to false
  430. if {yes::poll} > {no::poll}:
  431. broadcast "&1&lSpaceScape &8» &bMost People Voted For Yes! The Poll Has Ended!"
  432. if {no::poll} > {yes::poll}:
  433. broadcast "&1&lSpaceScape &8» &bMost People Voted For No! The Poll Has Ended"
  434. if {no::poll} = {yes::poll}:
  435. broadcast "&1&lSpaceScape &8» &bThe vote is a tie! This still means the poll won't be added!"
  436.  
  437. command /gangs:
  438. trigger:
  439. send "&4&lPotterz copied it from me without asking so I am deleting it -DeltaRays (bad Potterz don't do again)%nl%You won't lose your already made clans you will just not be able to modify them"
  440.  
  441.  
  442. command /pollstop:
  443. permission: pollstop.sk
  444. permission message: &4No permissions!
  445. trigger:
  446. if {current::poll} is false:
  447. send "&cThere is no poll currently!"
  448. else:
  449. set {current::poll} to false
  450. if {yes::poll} > {no::poll}:
  451. broadcast "&1&lSpaceScape &8» &bMost People Voted For Yes! The Poll Has Ended!"
  452. if {no::poll} > {yes::poll}:
  453. broadcast "&1&lSpaceScape &8» &bMost People Voted For No! The Poll Has Ended"
  454. if {no::poll} = {yes::poll}:
  455. broadcast "&1&lSpaceScape &8» &bThe vote is a tie! This still means the poll won't be added!"
  456.  
  457.  
  458. command /target [<player>]:
  459. permission: guard.sk
  460. permission message: &cYou do not have permission!
  461. trigger:
  462. make arg glow
  463. broadcast "&1&lSpaceScape &8» &bGuards! %arg% has been targeted! Go get them!"
  464.  
  465. command /chatmute:
  466. permission: chatmute.sk
  467. permission message: &cInsufficient Permissions!
  468. trigger:
  469. if {chatmute} is true:
  470. set {chatmute} to false
  471. broadcast "&1&lSpaceScape &8» &bChat has been unmuted!"
  472. else:
  473. set {chatmute} to true
  474. broadcast "&1&lSpaceScape &8» &bChat has been muted!"
  475.  
  476. on chat:
  477. if {chatmute} is true:
  478. if player has permission "chatmutebypass.sk":
  479. cancel event
  480. broadcast "%player's display name%&f: %message%"
  481. else:
  482. cancel event
  483. send "&7You may not speak while chat is muted!"
  484.  
  485. command /inter [<text>]:
  486. aliases: /in
  487. permission: intercom.sk
  488. permission message: &cInsufficient Permissions!
  489. trigger:
  490. if arg is set:
  491. broadcast "&1&lIntercom &8» &b%arg%"
  492. else:
  493. send "&bUsage » /inter (or /in) (message)"
  494.  
  495. command /wanted [<player>] [<number>]:
  496. aliases: /bounty
  497. trigger:
  498. if arg-1 is set:
  499. if player has permission "wanted.sk":
  500. if arg-2 is set:
  501. if arg-1 is "%player%":
  502. send "&cYou may not bounty yourself!"
  503. if {wanted::players::*} contains "%arg-1%":
  504. send "&cThat Player Is Already Wanted!"
  505. else:
  506. if arg-2 < 151:
  507. if arg-2 > 0:
  508. broadcast "&1&lSpaceScape &8» &b%arg-1% is now a wanted player! Kill them for $%arg-2%!"
  509. set {wanted::%uuid of arg-1%} to true
  510. set {wanted::money::%uuid of arg-1%} to arg-2
  511. add arg-1 to {wanted::players::*}
  512. else:
  513. send "&cThe money must be more than 0!"
  514. else:
  515. send "&cThe Money Must Not Be Over 150!"
  516. else:
  517. send "&bUsage » /wanted (player) (amount of money)"
  518. else:
  519. send "&cWanted Players: %{wanted::players::*}%"
  520.  
  521. on death of player:
  522. if attacker is a player:
  523. if {wanted::%uuid of victim%} is true:
  524. execute console command "eco give %attacker% %{wanted::money::%uuid of victim%}%"
  525. set {wanted::money::%uuid of victim%} to 0
  526. set {wanted::%uuid of victim%} to false
  527. remove player from {wanted::players::*}
  528.  
  529. command /wantedclear:
  530. permission: wantedclear.sk
  531. trigger:
  532. delete {wanted::players::*}
  533. loop all players:
  534. if {wanted::%uuid of loop-player%} is true:
  535. set {wanted::%uuid of loop-player%} to false
  536. set {wanted::money::%uuid of loop-player%} to 0
  537.  
  538. command /s:
  539. trigger:
  540. if {cooldown::%uuid of player%} <= 0:
  541. broadcast "&1&lSpaceScape &8» &b%player% surrenders! Do not attack!"
  542. set {cooldown::%uuid of player%} to 120
  543. while {cooldown::%uuid of player%} > 0:
  544. wait 1 second
  545. remove 1 from {cooldown::%uuid of player%}
  546. else if {cooldown::%uuid of player%} is not set:
  547. broadcast "&1&lSpaceScape &8» &b%player% surrenders! Do not attack!"
  548. set {cooldown::%uuid of player%} to 120
  549. while {cooldown::%uuid of player%} > 0:
  550. wait 1 second
  551. remove 1 from {cooldown::%uuid of player%}
  552. else:
  553. send "&cCooldown! (%{cooldown::%uuid of player%}% seconds)"
  554.  
  555. command /switch [<player>]:
  556. permission: switch.sk
  557. permission message: &cSorry, prisoner!
  558. trigger:
  559. if arg-1 is not set:
  560. if {guard::%uuid of player%} is not set:
  561. set {guard::%uuid of player%} to true
  562. execute console command "pex user %player% group add Guard"
  563. execute console command "pex user %player% remove switch.sk"
  564. else:
  565. clear {guard::%uuid of player%}
  566. execute console command "pex user %player% group remove Guard"
  567. execute console command "spawn %player%"
  568. execute console command "pex user %player% add switch.sk"
  569. clear player's inventory
  570. else:
  571. if {guard::%uuid of arg%} is not set:
  572. set {guard::%uuid of arg%} to true
  573. execute console command "pex user %arg% group add Guard"
  574. execute console command "pex user %arg% remove switch.sk"
  575. else:
  576. clear {guard::%uuid of arg%}
  577. execute console command "pex user %arg% group remove Guard"
  578. execute console command "spawn %arg%"
  579. execute console command "pex user %arg% add switch.sk"
  580. clear arg-1's inventory
  581.  
  582. on death:
  583. attacker is a player
  584. victim is a player
  585. victim does not have permission "lose.sk"
  586. attacker has permission "lose.sk"
  587. loop victim's inventory:
  588. if loop-value's lore contains "Illegal":
  589. add loop-value to {_illegal::*}
  590. give {_illegal::*} to attacker
  591. remove {_illegal::*} from victim's inventory
  592.  
  593. on damage:
  594. attacker's tool is a wooden pickaxe:
  595. cancel event
  596. send "&cPvP with a pickaxe is not allowed!" to the attacker
  597. attacker's tool is a stone pickaxe:
  598. cancel event
  599. send "&cPvP with a pickaxe is not allowed!" to the attacker
  600. attacker's tool is an iron pickaxe:
  601. cancel event
  602. send "&cPvP with a pickaxe is not allowed!" to the attacker
  603. attacker's tool is a diamond pickaxe:
  604. cancel event
  605. send "&cPvP with a pickaxe is not allowed!" to the attacker
  606.  
  607.  
  608. on left click with stick:
  609. if player's tool's name contains "Potterz's Wand":
  610. loop {autodoor::*}:
  611. set block at loop-value to air
  612.  
  613. on right click with stick:
  614. if player's tool's name contains "Potterz's Wand":
  615. loop {autodoor::*}:
  616. set block at loop-value to chiseled quartz block
  617.  
  618. on left click with golden axe:
  619. cancel event
  620. add location of clicked block to {autodoor::*}
  621.  
  622. command /clearad:
  623. trigger:
  624. delete {autodoor::*}
  625.  
  626. command /adlist:
  627. trigger:
  628. send "%{autodoor::*}%"
  629.  
  630. command /addrcell:
  631. permission: ar.sk
  632. permission message: &cSorry, Prisoner!
  633. trigger:
  634. if targeted block is sign:
  635. line 2 of targeted block contains "cell0":
  636. set {rcells::%line 3 of targeted block%} to line 2 of targeted block
  637. send {rcells::*}
  638.  
  639. command /listrcells:
  640. trigger:
  641. send {rcells::%player%}
  642.  
  643. command /voterestart:
  644. trigger:
  645. if {vote::%uuid of player%} is true:
  646. send "&cYou have already voted!"
  647. else:
  648. set {vote::%uuid of player%} to true
  649. add 1 to {restartvotes}
  650. broadcast "&1%player% voted to restart! (%{restartvotes}%/8)"
  651.  
  652. every 5 minutes:
  653. if {restartvotes} is not 0:
  654. loop all players:
  655. set {vote::%uuid of loop-player%} to false
  656. set {restartvotes} to 0
  657. broadcast "&cRestart Canceled."
  658.  
  659. loop all players:
  660. {speed::%uuid of loop-player%} > 1:
  661. remove 0.1 from {speed::%uuid of loop-player%}
  662.  
  663. {speed::%uuid of loop-player%} < 1:
  664. set {speed::%uuid of loop-player%} to 1
  665. execute console command "speed walk %{speed::%uuid of loop-player%}% %loop-player%"
  666. {strength::%uuid of loop-player%} > 1:
  667. remove 5 from {strength::%uuid of loop-player%}
  668. {strength::%uuid of loop-player%} < 1:
  669. set {strength::%uuid of loop-player%} to 1
  670. execute console command "effect clear %loop-player%"
  671. execute console command "effect give %loop-player% minecraft:strength 100000 %rounded down ({strength::%uuid of loop-player%} / 10) - 1% true"
  672.  
  673. execute console command "updatesidebar %loop-player%"
  674.  
  675. command /addrcell2 <region> <player>:
  676. permission: ar2.sk
  677. permission message: &cSorry, prisoner!
  678. trigger:
  679. set {rcells::%arg-2%} to arg-1
  680. send {rcells::%arg-2%} to arg-2
  681.  
  682. command /untarget <player>:
  683. permission: untarget.sk
  684. permission message: Sorry, Prisoner!
  685. trigger:
  686. make arg-1 unglow
  687.  
  688. command /prefixcolor <text>:
  689. permission: prefixcolor+.sk
  690. permission message: &cYou need Prisoner+ for this command.
  691. trigger:
  692. if arg-1 = "white":
  693. set {_color} to "&f"
  694. else if arg-1 = "black":
  695. set {_color} to "&0"
  696. else if arg-1 = "dark_blue":
  697. set {_color} to "&1"
  698. else if arg-1 = "dark_green":
  699. set {_color} to "&2"
  700. else if arg-1 = "dark_aqua":
  701. set {_color} to "&3"
  702. else if arg-1 = "dark_red":
  703. set {_color} to "&4"
  704. else if arg-1 = "dark_purple":
  705. set {_color} to "&5"
  706. else if arg-1 = "gold":
  707. set {_color} to "&6"
  708. else if arg-1 = "gray":
  709. set {_color} to "&7"
  710. else if arg-1 = "grey":
  711. set {_color} to "&7"
  712. else if arg-1 = "dark_gray":
  713. set {_color} to "&8"
  714. else if arg-1 = "dark_grey":
  715. set {_color} to "&8"
  716. else if arg-1 = "blue":
  717. set {_color} to "&9"
  718. else if arg-1 = "green":
  719. set {_color} to "&a"
  720. else if arg-1 = "aqua":
  721. set {_color} to "&b"
  722. else if arg-1 = "red":
  723. set {_color} to "&c"
  724. else if arg-1 = "light_purple":
  725. set {_color} to "&d"
  726. else if arg-1 = "yellow":
  727. set {_color} to "&e"
  728. else:
  729. send "&cUnknown color!"
  730. if {_color} is set:
  731. execute console command "pex user %player% prefix ""&6&lPrisoner%{_color}%&l+ &f&l> &r"""
  732.  
  733. on step on dark gray carpet:
  734. rounded down player's x coordinate is 73:
  735. rounded down player's y coordinate is 157:
  736. rounded down player's z coordinate is -19:
  737. execute console command "execute in minecraft:the_end run tp %player% 72 157.6250 -19"
  738. execute console command "addspeed %player%"
  739.  
  740. rounded down player's x coordinate is 65:
  741. rounded down player's y coordinate is 157:
  742. rounded down player's z coordinate is -19:
  743. execute console command "execute in minecraft:the_end run tp %player% 66 157.6250 -19"
  744. execute console command "addspeed %player%"
  745.  
  746. rounded down player's x coordinate is 71:
  747. rounded down player's y coordinate is 175:
  748. rounded down player's z coordinate is -13:
  749. execute console command "execute in minecraft:the_end run tp %player% 70 157.6250 -13"
  750. execute console command "addspeed %player%"
  751.  
  752. command /resetspeed [<player>]:
  753. permission: resetspeed.sk
  754. permission message: &cSorry, Prisoner!
  755. trigger:
  756. arg-1 is not set:
  757. execute console command "speed walk 1 %player%"
  758. set {speed::%uuid of player%} to 1
  759. send "&aYour speed has been reset"
  760. execute console command "updatesidebar %player%"
  761. else:
  762. execute console command "speed walk 1 %arg-1%"
  763. set {speed::%uuid of arg-1%} to 1
  764. send "&a%arg-1%'s speed has been reset"
  765. execute console command "updatesidebar %arg-1%"
  766.  
  767. command /addspeed [<player>]:
  768. permission: setspeed.sk
  769. permission message: &cSorry, Prisoner!
  770. trigger:
  771. arg-1 is not set:
  772. {speed::%uuid of player%} is not set:
  773. set {speed::%uuid of player%} to 1
  774. if {speed::%uuid of player%} < 4:
  775. add 0.005 to {speed::%uuid of player%}
  776. execute console command "speed walk %{speed::%uuid of player%}% %player%"
  777. send "&aSpeed set to %{speed::%uuid of player%} * 100 - 99%"
  778. else:
  779. send "&cYou've reached maximum speed!"
  780. execute console command "updatesidebar %player% yes"
  781. else:
  782. {speed::%uuid of arg-1%} is not set:
  783. set {speed::%uuid of arg-1%} to 1
  784. if {speed::%uuid of arg-1%} < 4:
  785. add 0.005 to {speed::%uuid of arg-1%}
  786. execute console command "speed walk %{speed::%uuid of arg-1%}% %arg-1%"
  787. send "&aSpeed of %arg-1% set to %{speed::%uuid of arg-1%} * 100 - 99%"
  788. else:
  789. send "&c%arg-1% has reached maximum speed!"
  790. send "&cYou've reached maximum speed!" to arg-1
  791. execute console command "updatesidebar %arg-1% yes"
  792.  
  793. command /myspeed [<offline player>]:
  794. trigger:
  795. arg-1 is not set:
  796. {speed::%uuid of player%} is not set:
  797. set {speed::%uuid of player%} to 1
  798. send "&aYour speed is %{speed::%uuid of player%} * 100 - 99%"
  799. else:
  800. {speed::%uuid of arg-1%} is not set:
  801. set {speed::%uuid of arg-1%} to 1
  802. send "&a%arg-1%'s speed is %{speed::%uuid of arg-1%} * 100 - 99%"
  803.  
  804. on join:
  805. {speed::%uuid of player%} is not set:
  806. set {speed::%uuid of player%} to 1
  807. {escapes::%uuid of player%} is not set:
  808. set {escapes::%uuid of player%} to 0
  809. {strength::%uuid of player%} is not set:
  810. set {strength::%uuid of player%} to 1
  811. set {players} to 0
  812. loop all players:
  813. add 1 to {players}
  814. loop all players:
  815. execute console command "updatesidebar %loop-player%"
  816.  
  817. on quit:
  818. wait 0.5 seconds
  819. set {players} to 0
  820. loop all players:
  821. add 1 to {players}
  822. loop all players:
  823. execute console command "updatesidebar %loop-player%"
  824.  
  825.  
  826. command /updatesidebar <player> [<boolean>]:
  827. permission: updatesidebar.sk
  828. permission message: &cSorry, Prisoner!
  829. trigger:
  830. arg-2 is not set:
  831. wait 1 second
  832. else if arg-2 is false:
  833. wait 1 second
  834. else if arg-2 is no:
  835. wait 1 second
  836. wipe arg-1's sidebar
  837. set name of sidebar of arg-1 to "&1&lWelcome to SpaceScape!"
  838. set score "&8-----------------------" in sidebar of arg-1 to 13
  839. set score "&b%arg-1%" in sidebar of arg-1 to 12
  840. set score "&bPlayers: &a%{players}%" in sidebar of arg-1 to 11
  841. set score " " in sidebar of arg-1 to 10
  842. set score "&bYour Speed: &a%{speed::%uuid of arg-1%} * 100 - 99%" in sidebar of arg-1 to 9
  843. set score "&bYour Strength: &a%{strength::%uuid of arg-1%}%" in sidebar of arg-1 to 8
  844. set score "" in sidebar of arg-1 to 7
  845. set score "&bJoin our Discord:" in sidebar of arg-1 to 6
  846. set score "&ahttps://discord.gg/KsujHzG" in sidebar of arg-1 to 5
  847. set score " " in sidebar of arg-1 to 4
  848. set score "&bYour Escapes: &a%{escapes::%uuid of arg-1%}%" in sidebar of arg-1 to 3
  849. set score "&bYour Balance: &a%balance of arg-1%" in sidebar of arg-1 to 2
  850. set score "&r&8-----------------------" in sidebar of arg-1 to 1
  851.  
  852.  
  853. on mine of red wool:
  854. cancel event
  855. {strength::%uuid of player%} < 50:
  856. add 0.2 to {strength::%uuid of player%}
  857. execute console command "effect clear %player%"
  858. execute console command "effect give %player% minecraft:strength 100000 %rounded down ({strength::%uuid of player%} / 10) - 1% true"
  859. execute console command "updatesidebar %player% yes"
  860. else:
  861. send "&cYou've reached maximum strength!"
  862.  
  863.  
  864. command /resetescapes [<offline player>]:
  865. permission: resetescapes.sk
  866. permission message: Sorry, Prisoner!
  867. trigger:
  868. arg-1 is set:
  869. arg-1 is "*":
  870. loop {escapes::*}:
  871. set {escapes::%loop-index%} to 0
  872. execute console command "scoreboard players reset * Escapes"
  873. loop all players:
  874. execute console command "updatesidebar %loop-player% yes"
  875. send "&aEveryone's escapes have been reset!"
  876. else:
  877. set {escapes::%uuid of arg-1%} to 0
  878. execute console command "scoreboard players reset %arg-1% Escapes"
  879. execute console command "updatesidebar %arg-1% yes"
  880. send "&a%arg-1%'s escapes have been reset!"
  881. else:
  882. set {escapes::%uuid of player%} to 0
  883. execute console command "scoreboard players reset %player% Escapes"
  884. execute console command "updatesidebar %player% yes"
  885. send "&aYour escapes have been reset!"
  886.  
  887. command /letdrop [<player>]:
  888. permission: letdrop.sk
  889. permission message: &cSorry, Prisoner!
  890. trigger:
  891. arg-1 is set:
  892. execute console command "pex user %arg-1% add bypassIllegalDrop.sk"
  893. send "&a%arg-1% can now drop illegal items for 10 seconds"
  894. wait 10 seconds
  895. execute console command "pex user %arg-1% remove bypassIllegalDrop.sk"
  896. send "&a%arg-1% can no longer drop illegal items"
  897. else:
  898. send "&cUsage: /letdrop (player)"
  899.  
  900. on death:
  901. execute console command "eco take %victim% %victim's balance / 10%"
  902. victim's balance < 0:
  903. set victim's balance to 0
  904. execute console command "updatesidebar %victim% yes"
  905.  
  906. command /clearwait:
  907. permission: clearwait.sk
  908. permission message: Sorry, Prisoner!
  909. trigger:
  910. loop {wait::*}:
  911. clear {wait::%loop-index%}
  912.  
  913. on chat:
  914. replace all "@" in message with " "
  915.  
  916. command /minecraft:me [<text>]:
  917. aliases: /me
  918. trigger:
  919. send "nerd"
  920. command /me [<text>]:
  921. aliases: /me
  922. trigger:
  923. send "nerd"
  924.  
  925. command /eval <text>:
  926. Trigger:
  927. "%sender%" = "console" or "DeltaRays"
  928. evaluate arg
  929. send "evaluating..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement