Entities

Untitled

Sep 29th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.78 KB | None | 0 0
  1. on mine of iron ore:
  2. cancel event
  3. set event-block to bedrock
  4. give player a iron ingot
  5. wait 120 ticks
  6. set event-block to iron ore
  7.  
  8. on mine of diamond ore:
  9. cancel event
  10. set event-block to bedrock
  11. give player a diamond
  12. wait 120 ticks
  13. set event-block to diamond ore
  14.  
  15. on mine of emerald ore:
  16. cancel event
  17. set event-block to bedrock
  18. give player a emerald
  19. wait 120 ticks
  20. set event-block to emerald ore
  21.  
  22. on mine of coal ore:
  23. cancel event
  24. set event-block to bedrock
  25. give player a coal
  26. wait 120 ticks
  27. set event-block to coal ore
  28.  
  29. on mine of lapis ore:
  30. cancel event
  31. set event-block to bedrock
  32. give player a lapis
  33. wait 120 ticks
  34. set event-block to lapis ore
  35.  
  36. on mine of gold ore:
  37. cancel event
  38. set event-block to bedrock
  39. give player a gold ingot
  40. wait 120 ticks
  41. set event-block to gold ore
  42.  
  43. on mine of oak log:
  44. cancel event
  45. set event-block to bedrock
  46. give player a oak log
  47. wait 120 ticks
  48. set event-block to oak log
  49.  
  50. on mine of redstone ore:
  51. cancel event
  52. set event-block to bedrock
  53. give player a redstone
  54. wait 120 ticks
  55. set event-block to redstone ore
  56.  
  57. on mine of nether quartz ore:
  58. cancel event
  59. set event-block to bedrock
  60. give player a nether quartz
  61. wait 120 ticks
  62. set event-block to nether quartz ore
  63.  
  64. command /broadcast <string>:
  65. aliases: /bc
  66. permission: chat.broadcast
  67. permission message: &7Sorry &c%player% &7you must have &6chat.broadcast&7 to run this command!
  68. trigger:
  69. broadcast "&r&r&r&r&r&r&r&r&r&"
  70. broadcast "&cBLOCKED &7%arg-1%"
  71. broadcast "&r&r&r&r&r&r&r&r&r&"
  72.  
  73. command /bc <string>:
  74. aliases: /broadcast
  75. permission: chat.broadcast
  76. permission message: &7Sorry &c%player% &7you must have &6chat.broadcast&7 to run this command!
  77. trigger:
  78. broadcast " "
  79. broadcast "&cBLOCKED &7%arg-1%"
  80. broadcast " "
  81.  
  82. on chat:
  83. replace all "fuck" with "****" in the message
  84. replace all "cunt" with "****" in the message
  85. replace all "bitch" with "*****" in the message
  86. replace all "nigger" with "******" in the message
  87. replace all "pussy" with "*****" in the message
  88. replace all "kys" with "Hope you live long" in the message
  89.  
  90. command /warn [<offline player>] [<text>]:
  91. permission: chat.warn
  92. trigger:
  93. if arg-1 is set:
  94. if arg-2 is set:
  95. add 1 to {warn.%arg-1%}
  96. broadcast "&e&m*------------------------------------------*"
  97. broadcast "&7%arg-1% &rhas been warned by &7%player%"
  98. broadcast "&7Reason &7» &r%arg-2%"
  99. broadcast "&e&m*------------------------------------------*"
  100.  
  101. else:
  102. message "&7Incorrect usage, &r/warn [player] [reason]"
  103. else:
  104. message "&7Incorrect usage, &r/warn [player] [reason]"
  105.  
  106. command /clearchat:
  107. aliases: /cc
  108. permission: chat.clearchat
  109. trigger:
  110. loop 300 times:
  111. broadcast " "
  112. broadcast "&cBLOCKED &8» &7Chat has been cleared by &e%player%"
  113.  
  114.  
  115. command /unban [<offline player>] [<text>]:
  116. permission: chat.ban
  117. trigger:
  118. if arg-1 is set:
  119. if arg-2 is set:
  120. if {banned.%arg-1%} is false:
  121. message "&7%arg-1% is currently not banned"
  122. else if {banned.%arg-1%} is not set:
  123. message "&7%arg-1% is currently not banned"
  124. else if {banned.%arg-1%} is true:
  125. add 1 to {unban.%arg-1%}
  126. set {banned.%arg-1%} to false
  127. unban arg-1
  128. broadcast "&e&m*------------------------------------------*"
  129. broadcast "&7%arg-1%'s suspension has been revoked by &7%player%"
  130. broadcast "&7Reason &7» &r%arg-2%"
  131. broadcast "&e&m*------------------------------------------*"
  132.  
  133. else:
  134. message "&7Incorrect usage, &r/unban [player] [reason]"
  135. else:
  136. message "&7Incorrect usage, &r/unban [player] [reason]"
  137.  
  138. command /ban [<offline player>] [<text>]:
  139. permission: chat.ban
  140. trigger:
  141. if arg-1 is set:
  142. if arg-2 is set:
  143. if {banned.%arg-1%} is true:
  144. message "&7%arg-1% is currently banned for &r%{banned.reason.%arg-1%}% &7and was banned on &r%{banned.time.%arg-1%}%"
  145. else if {banned.%arg-1%} is false:
  146. add 1 to {ban.%arg-1%}
  147. kick arg-1 due to "&7Reason &7» &r%arg-2%"
  148. ban arg-1 due to "&7Reason &7» &r%arg-2%"
  149. set {banned.%arg-1%} to true
  150. set {banned.reason.%arg-1%} to arg-2
  151. set {banned.time.%arg-1%} to now
  152. broadcast "&e&m*------------------------------------------*"
  153. broadcast "&7%arg-1% &rhas been suspended by &7%player%"
  154. broadcast "&7Reason &7» &r%arg-2%"
  155. broadcast "&e&m*------------------------------------------*"
  156. else if {banned.%arg-1%} is not set:
  157. add 1 to {ban.%arg-1%}
  158. kick arg-1 due to "&7Reason &7» &r%arg-2%"
  159. ban arg-1 due to "&7Reason &7» &r%arg-2%"
  160. set {banned.%arg-1%} to true
  161. set {banned.reason.%arg-1%} to arg-2
  162. set {banned.time.%arg-1%} to now
  163. broadcast "&e&m*------------------------------------------*"
  164. broadcast "&7%arg-1% &rhas been suspended by &7%player%"
  165. broadcast "&7Reason &7» &r%arg-2%"
  166. broadcast "&e&m*------------------------------------------*"
  167.  
  168. else:
  169. message "&7Incorrect usage, &r/ban [player] [reason]"
  170. else:
  171. message "&7Incorrect usage, &r/ban [player] [reason]"
  172.  
  173. command /kick [<offline player>] [<text>]:
  174. permission: chat.kick
  175. trigger:
  176. if arg-1 is set:
  177. if arg-2 is set:
  178. add 1 to {kick.%arg-1%}
  179. kick arg-1 due to "&7Reason &7» &r%arg-2%"
  180. broadcast "&e&m*------------------------------------------*"
  181. broadcast "&7%arg-1% &rhas been kicked by &7%player%"
  182. broadcast "&7Reason &7» &r%arg-2%"
  183. broadcast "&e&m*------------------------------------------*"
  184. else:
  185. message "&7Incorrect usage, &r/kick [player] [reason]"
  186. else:
  187. message "&7Incorrect usage, &r/kick [player] [reason]"
  188.  
  189.  
  190. command /gm [<text>] [<player>]:
  191. description: Change your gamemode
  192. permission: chat.gamemode
  193. permission message: &cYou do not have the required permissions to execute this command.
  194. executable by: players
  195. trigger:
  196. if arg-1 is set:
  197. if arg-2 is set:
  198. if arg-1 is "C", "1" or "Creative":
  199. set gamemode of arg-2 to creative
  200. message "&eSet the gamemode of %arg-2% to &6&lCreative" to player
  201. message "&eGamemode changed to &6&lCreative&e by %player%" to arg-2
  202. else if arg-1 is "S", "0" or "Survival":
  203. set gamemode of arg-2 to survival
  204. message "&eSet the gamemode of %arg-2% to &6&lSurvival" to player
  205. message "&eGamemode changed to &6&lSurvival&e by %player%" to arg-2
  206. else if arg-1 is "A", "2" or "Adventure":
  207. set gamemode of arg-2 to adventure
  208. message "&eSet the gamemode of %arg-2% to &6&lAdventure" to player
  209. message "&eGamemode changed to &6&lAdventure&e by %player%" to arg-2
  210. else if arg-2 isn't set:
  211. if arg-1 is "C", "1" or "Creative":
  212. set gamemode of player to creative
  213. message "&eSet your gamemode to &6&lCreative" to player
  214. else if arg-1 is "S", "0" or "Survival":
  215. set gamemode of player to survival
  216. message "&eSet your gamemode to &6&lSurvival" to player
  217. else if arg-1 is "A", "2" or "Adventure":
  218. set gamemode of player to adventure
  219. message "&eSet your gamemode to &6&lAdventure" to player
  220. else if arg-2 isn't "A", "2", "Adventure", "S", "0", "Survival", "C", "1" or "Creative":
  221. message "&cUnexpected error! gamemode.Type = false"
  222. message "&cPlease choose a valid gamemode!"
  223. message ""
  224. message "&4If you feel that this is incorrect, please contact your server developer."
  225. else:
  226. message "&cIncorrect usage format, /gm <gamemode> [player]"
  227.  
  228.  
  229. Variables:
  230. {level.%player%} = 0
  231.  
  232. on mine:
  233. if player is holding a pickaxe:
  234. add 1 to {level.%player%}
  235. if {level.%player%} is equal to 100:
  236. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 1!"
  237. if {level.%player%} is equal to 200:
  238. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 2!"
  239. if {level.%player%} is equal to 350:
  240. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 3!"
  241. if {level.%player%} is equal to 500:
  242. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 4!"
  243. if {level.%player%} is equal to 700:
  244. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 5!"
  245. if {level.%player%} is equal to 2000:
  246. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 6!"
  247. if {level.%player%} is equal to 2500:
  248. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 7!"
  249. if {level.%player%} is equal to 3250:
  250. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 8!"
  251. if {level.%player%} is equal to 5000:
  252. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 9!"
  253. if {level.%player%} is equal to 6700:
  254. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 10!"
  255. if {level.%player%} is equal to 8000:
  256. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 11!"
  257. if {level.%player%} is equal to 9000:
  258. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 12!"
  259. if {level.%player%} is equal to 10500:
  260. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 13!"
  261. if {level.%player%} is equal to 12000:
  262. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 14!"
  263. if {level.%player%} is equal to 12500:
  264. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 15!"
  265. if {level.%player%} is equal to 14000:
  266. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 16!"
  267. if {level.%player%} is equal to 16000:
  268. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 17!"
  269. if {level.%player%} is equal to 18000:
  270. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 18!"
  271. if {level.%player%} is equal to 20000:
  272. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 19!"
  273. if {level.%player%} is equal to 25000:
  274. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 20!"
  275. if {level.%player%} is equal to 30000:
  276. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 21!"
  277. if {level.%player%} is equal to 35000:
  278. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 22!"
  279. if {level.%player%} is equal to 40000:
  280. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 23!"
  281. if {level.%player%} is equal to 45000:
  282. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 24!"
  283. if {level.%player%} is equal to 50000:
  284. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 25!"
  285. if {level.%player%} is equal to 55000:
  286. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 26!"
  287. if {level.%player%} is equal to 60000:
  288. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 27!"
  289. if {level.%player%} is equal to 65000:
  290. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 28!"
  291. if {level.%player%} is equal to 70000:
  292. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 29!"
  293. if {level.%player%} is equal to 80000:
  294. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 30!"
  295. if {level.%player%} is equal to 90000:
  296. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 31!"
  297. if {level.%player%} is equal to 100000:
  298. broadcast "&b&lLEVELUP &c%player% &7has leveled up! They are level 32!"
  299.  
  300. command /level:
  301. trigger:
  302. wait 1 tick
  303. message "&e&m*------------------------------------------*"
  304. message "&7Your xp is &b{level.%player%}"
  305. wait 1 tick
  306. message "&e&m*------------------------------------------*"
  307.  
  308. on join:
  309. set {ip.%player%} to IP of player
  310. command /checkip <text>:
  311. permission: core.checkip
  312. permission message: &7Sorry &c%player% &7you must have permission &7 to run this command!
  313. trigger:
  314. send "&7last ip of %arg 1% was &8%{ip.%arg 1%}%"
  315.  
  316. command /lagkill:
  317. permission: lagkill.use
  318. permission message: &7Sorry &c%player% &7you must have permission &7 to run this command!
  319. trigger:
  320. make player execute command "/minecraft:kill @e[type=!player]"
  321.  
  322. options:
  323. noperm: &7Sorry &c%player% &7you must have permission &7 to run this command!
  324.  
  325. command /lockchat:
  326. permission: chat.lock
  327. trigger:
  328. broadcast "&c%player% &7locked chat"
  329. if {chat.set} is not set:
  330. set {chat.set} true
  331.  
  332. on chat:
  333. if {chat.set} is set:
  334. cancel event
  335. else:
  336. if player has permission "bypass permission":
  337. stop
  338.  
  339.  
  340. command /unlockchat:
  341. permission: chat.lock
  342. trigger:
  343. broadcast "&c%player% &7Unlocked chat"
  344. if {chat.set} is set:
  345. set {chat.set} false
Add Comment
Please, Sign In to add comment