pewax

MineCode 0.2

Apr 20th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.41 KB | None | 0 0
  1. #
  2. # Learn To Code In Minecraft Plugin ;)
  3. #
  4.  
  5. on join:
  6. set {compass} to a compass named "&a&lCoding Compass!"
  7. set the 1st line of {compass} to "&3Right Click To Open The Menu"
  8. set slot 4 of player to {compass}
  9.  
  10. on drop:
  11. cancel event
  12.  
  13. on rightclick:
  14. player is holding a compass named "&a&lCoding Compass!":
  15. open chest with 6 rows named "Coding Menu" to player
  16. wait 3 ticks
  17. format slot 0 of player with a stained glass pane:5 named "&f&lSkript &a&lEasy" to close then run "say The first item was clicked! Menu Closed!"
  18. format slot 1 of player with a stained glass pane:7 named " " to close
  19. format slot 2 of player with a stained glass pane:5 named "&a&lIntroduction" with lore "&aEasy, Lesson 1" to close then run [make player execute "/easy1"]
  20. format slot 3 of player with a stained glass pane:5 named "&a&lHello World" with lore "&aEasy, Lesson 2" to close then run [make player execute "/easy2"]
  21. format slot 4 of player with a stained glass pane:5 named "&a&lEvents" with lore "&aEasy, Lesson 3" to close then run [make player execute "/easy3"]
  22. format slot 5 of player with a stained glass pane:5 named "&a&lConditions" with lore "&aEasy, Lesson 4" to close then run [make player execute "/easy4"]
  23. format slot 6 of player with a stained glass pane:5 named "&f&lSkript &a&lEasy" to close then run "say The first item was clicked! Menu Closed!"
  24. format slot 7 of player with a stained glass pane:5 named "&f&lSkript &a&lEasy" to close then run "say The first item was clicked! Menu Closed!"
  25. format slot 8 of player with a stained glass pane:5 named "&f&lSkript &a&lEasy" to close then run "say The first item was clicked! Menu Closed!"
  26. format slot 9 of player with a stained glass pane:7 named " " to close
  27. format slot 10 of player with a stained glass pane:7 named " " to close
  28. format slot 11 of player with a stained glass pane:7 named " " to close
  29. format slot 12 of player with a stained glass pane:7 named " " to close
  30. format slot 13 of player with a stained glass pane:7 named " " to close
  31. format slot 14 of player with a stained glass pane:7 named " " to close
  32. format slot 15 of player with a stained glass pane:7 named " " to close
  33. format slot 16 of player with a stained glass pane:7 named " " to close
  34. format slot 17 of player with a stained glass pane:7 named " " to close
  35. format slot 18 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  36. format slot 19 of player with a stained glass pane:7 named " " to close
  37. format slot 20 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  38. format slot 21 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  39. format slot 22 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  40. format slot 23 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  41. format slot 24 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  42. format slot 25 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  43. format slot 26 of player with a stained glass pane:1 named "&f&lSkript &6&lMeduim" to close then run "say The first item was clicked! Menu Closed!"
  44. format slot 27 of player with a stained glass pane:7 named " " to close
  45. format slot 28 of player with a stained glass pane:7 named " " to close
  46. format slot 29 of player with a stained glass pane:7 named " " to close
  47. format slot 30 of player with a stained glass pane:7 named " " to close
  48. format slot 31 of player with a stained glass pane:7 named " " to close
  49. format slot 32 of player with a stained glass pane:7 named " " to close
  50. format slot 33 of player with a stained glass pane:7 named " " to close
  51. format slot 34 of player with a stained glass pane:7 named " " to close
  52. format slot 35 of player with a stained glass pane:7 named " " to close
  53. format slot 36 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  54. format slot 37 of player with a stained glass pane:7 named " " to close
  55. format slot 38 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  56. format slot 39 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  57. format slot 40 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  58. format slot 41 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  59. format slot 42 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  60. format slot 43 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  61. format slot 44 of player with a stained glass pane:14 named "&f&lSkript &4&lHard" to close then run "say The first item was clicked! Menu Closed!"
  62. format slot 49 of player with a nether star named "&6&lAchivements" to close then run "say The first item was clicked! Menu Closed!"
  63.  
  64. command /easy1:
  65. trigger:
  66. send "&f[&6MineCode&f] Welcome To MineCode!"
  67. wait 5 seconds
  68. send "&f[&6MineCode&f] My Name Is Pewax And I'll Be Teaching You To Code"
  69. wait 5 seconds
  70. send "&f[&6MineCode&f] You'll Be Able To Make Plugins In No Time :)"
  71. wait 5 seconds
  72. send "&f[&6MineCode&f] In These Tutorials I Will Be Teaching You Skript"
  73. wait 5 seconds
  74. send "&f[&6MineCode&f] Skript You May Ask? Why? What Is Skript?"
  75. wait 5 seconds
  76. send "&f[&6MineCode&f] Skript Is An Alternate Coding Language To Java"
  77. wait 5 seconds
  78. send "&f[&6MineCode&f] You Can Use It To Make Bukkit Plugins Easily"
  79. wait 5 seconds
  80. send "&f[&6MineCode&f] With Not A Very Steep Learning Curve"
  81. wait 5 seconds
  82. send "&f[&6MineCode&f] It Can Only Be Used In Minecraft"
  83. wait 5 seconds
  84. send "&f[&6MineCode&f] So Don't Expect To See Much Of It On The Internet"
  85. wait 5 seconds
  86. send "&f[&6MineCode&f] Despite This It's Still REALLY Easy To Learn"
  87. wait 5 seconds
  88. send "&f[&6MineCode&f] And Everything Is Writen Like An English Essay"
  89. wait 5 seconds
  90. send "&f[&6MineCode&f] So NO Need For brackets On Every Line"
  91. wait 5 seconds
  92. send "&f[&6MineCode&f] Here Is An Example Of Some Code From Skript:"
  93. wait 3 seconds
  94. send "&3on rightclick:"
  95. send " &3player is holding a fish:"
  96. send " &3send 'You Just Right Clicked With A Fish!'"
  97. wait 5 seconds
  98. send "&f[&6MineCode&f] I'll Teach You All About How The Code Works Later"
  99. wait 5 seconds
  100. send "&f[&6MineCode&f] For Now Though I Will Just Give You Some Tips"
  101. wait 5 seconds
  102. send "&f[&6MineCode&f] Before We Begin Our Journey Of Learning Together"
  103. wait 5 seconds
  104. send "&f[&6MineCode&f] The First Thing I Would Like To Tell You Is,"
  105. wait 5 seconds
  106. send "&f[&6MineCode&f] When I Do This <T> It Means I Am Using A Tab"
  107. wait 5 seconds
  108. send "&f[&6MineCode&f] When I Do This <T2> It Means 2 Tabs, ECT"
  109. wait 5 seconds
  110. send "&f[&6MineCode&f] I'll Give You A Quick Example:"
  111. wait 3 seconds
  112. send "&3command /example:"
  113. send "<T>&3trigger:"
  114. send "<T2>&3send '&aThis Is An Example!&3'"
  115. wait 5 seconds
  116. send "[&6MineCode&f] Instead Of:"
  117. send "&3command /example:"
  118. send " &3trigger:"
  119. send " &3send '&aThis Is An Example!&3'"
  120. wait 5 seconds
  121. send "&f[&6MineCode&f] Oh And I Will Replace Speech Marks With '"
  122. wait 5 seconds
  123. send "&f[&6MineCode&f] No This Isn't Because I Hate Speech Marks"
  124. wait 5 seconds
  125. send "&f[&6MineCode&f] It's Because Skript Won't Let You Use Them"
  126. wait 5 seconds
  127. send "&f[&6MineCode&f] For Sending A Message To The Player :("
  128. wait 5 seconds
  129. send "&f[&6MineCode&f] Anyway Now Thats Done I Can Finish"
  130. wait 5 seconds
  131. send "&f[&6MineCode&f] With The Introduction And Teach You How"
  132. wait 5 seconds
  133. send "&f[&6MineCode&f] To Write Your First Bit Of Real Code!"
  134. wait 3 seconds
  135. send "&f[&6MineCode&f] &aYou Have Completed Easy Lesson 1!"
  136. #make player execute "/pex user (give player permission minecode.easy.2)"
  137.  
  138. command /easy2:
  139. permission: minecode.easy.2
  140. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 1' First!
  141. trigger:
  142. send "&f[&6MineCode&f] Hello Again I'm Glade Your Still Here :)"
  143. wait 5 seconds
  144. send "&f[&6MineCode&f] As I Said Before In This Level We Will Make"
  145. wait 5 seconds
  146. send "&f[&6MineCode&f] A Simple Hello World Plugin"
  147. wait 5 seconds
  148. send "&f[&6MineCode&f] For This I Am Going To Use Notepad++"
  149. wait 5 seconds
  150. send "&f[&6MineCode&f] Here Is The Download Link For It:"
  151. wait 5 seconds
  152. send "&f[&6MineCode&f] https://notepad-plus-plus.org/download/v6.9.1.html"
  153. wait 5 seconds
  154. send "&f[&6MineCode&f] But Before We Start Coding I'm Going To Tell You"
  155. wait 5 seconds
  156. send "&f[&6MineCode&f] How To Load Skript Plugins Onto Your Server"
  157. wait 5 seconds
  158. send "&f[&6MineCode&f] Because It's A Little Different Than With Java Ones"
  159. wait 5 seconds
  160. send "&f[&6MineCode&f] Here Is A Step By Step Guide:"
  161. wait 5 seconds
  162. send "&f[&6MineCode&f] 1. Make Your Plugin (In Notepad++)"
  163. wait 3 seconds
  164. send "&f[&6MineCode&f] 2. Save It As A .sk File On Your Desktop"
  165. wait 3 seconds
  166. send "&f[&6MineCode&f] 3. Go Into Your Plugins Folder"
  167. wait 3 seconds
  168. send "&f[&6MineCode&f] 4. Go Into The Folder That Says 'Skript'"
  169. wait 3 seconds
  170. send "&f[&6MineCode&f] 5. Open The Folder That Says 'scripts'"
  171. wait 3 seconds
  172. send "&f[&6MineCode&f] 6. Drop Your Plugin (Notepad++ File) In That Folder"
  173. wait 3 seconds
  174. send "&f[&6MineCode&f] 7. Restart The Server And Enjoy Your Plugin"
  175. wait 5 seconds
  176. send "&f[&6MineCode&f] Ok So Now You Can Load Plugins Onto Your Server"
  177. wait 5 seconds
  178. send "&f[&6MineCode&f] All We Need Now Is An Amazing Plugin!"
  179. wait 5 seconds
  180. send "&f[&6MineCode&f] Lets Get Started By Showing You A Hello World Plugin:"
  181. wait 3 seconds
  182. send "&3on rightclick"
  183. send "<T>&3send 'Hello World'"
  184. wait 5 seconds
  185. send "&f[&6MineCode&f] As You Can See It's REALLY Simple"
  186. wait 5 seconds
  187. send "&f[&6MineCode&f] NOTE: 'on rightclick' Can Be Changed For Any Event"
  188. wait 5 seconds
  189. send "&f[&6MineCode&f] NOTE: I'll Talk About Events In Level 3!"
  190. wait 5 seconds
  191. send "&f[&6MineCode&f] You Can Send Anything To A Player With The Send Command"
  192. wait 5 seconds
  193. send "&f[&6MineCode&f] You Can Even Send Players A Variable/Value"
  194. wait 5 seconds
  195. send "&f[&6MineCode&f] I'll Explain Variables Later On In The Tutorials"
  196. wait 5 seconds
  197. send "&f[&6MineCode&f] This Was Pretty A Simple Tutorial But It Will Help"
  198. wait 5 seconds
  199. send "&f[&6MineCode&f] In The Long Run!"
  200. wait 5 seconds
  201. send "&f[&6MineCode&f] Anyway I'm Going To End It Off Here"
  202. wait 5 seconds
  203. send "&f[&6MineCode&f] I Hope You Enjoyed And Are Ready For The Next One"
  204. wait 5 seconds
  205. send "&f[&6MineCode&f] We Will Be Covering Events!"
  206. wait 5 seconds
  207. send "&f[&6MineCode&f] Events Will Be Way More Fun Than This :)"
  208. wait 5 seconds
  209. send "&f[&6MineCode&f] &aYou Have Completed Easy Lesson 2!"
  210.  
  211. command /easy3:
  212. permission: minecode.easy.3
  213. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 2' First!
  214. trigger:
  215. send "&f[&6MineCode&f] So You've Made It This Far? Congratz And Thank You"
  216. wait 5 seconds
  217. send "&f[&6MineCode&f] For This Lesson We Will Be Doing Events"
  218. wait 5 seconds
  219. send "&f[&6MineCode&f] Events Are Things That Are Triggered By An Entity!"
  220. wait 5 seconds
  221. send "&f[&6MineCode&f] Earlyer On In Lesson 2 We Did A Hello World Command"
  222. wait 5 seconds
  223. send "&f[&6MineCode&f] Above Where It Said: send 'Hello World'"
  224. wait 5 seconds
  225. send "&f[&6MineCode&f] There Was A Trigger: on rightclick"
  226. wait 5 seconds
  227. send "&f[&6MineCode&f] As You Could Probaly Tell When The Player"
  228. wait 5 seconds
  229. send "&f[&6MineCode&f] Right Clicked It Would Print In The Players Chat"
  230. wait 5 seconds
  231. send "&f[&6MineCode&f] 'Hello World', But We Can Do More Than This"
  232. wait 5 seconds
  233. send "&f[&6MineCode&f] With Events, Here Is An Example:"
  234. wait 3 seconds
  235. send "&3on portal enter:"
  236. send "<T>&3send 'You Traveled Through A Portal!'"
  237. wait 5 seconds
  238. send "&f[&6MineCode&f] There Is A List Of: on <something> Events"
  239. wait 5 seconds
  240. send "&f[&6MineCode&f] On The Skript Developers Website:"
  241. wait 3 seconds
  242. send "&f[&6MineCode&f] http://njol.ch/projects/skript/doc/events/"
  243. wait 5 seconds
  244. send "&f[&6MineCode&f] So It Should Be Fairly Easy To Make Changes To"
  245. wait 5 seconds
  246. send "&f[&6MineCode&f] Any Code You Have Or See In My Tutorials :)"
  247. wait 5 seconds
  248. send "&f[&6MineCode&f] I Guess You Know What I'm Talking About now But"
  249. wait 5 seconds
  250. send "&f[&6MineCode&f] Lets Give You Another Example Just So You Can"
  251. wait 5 seconds
  252. send "&f[&6MineCode&f] See It's Power And How Simple It Is:"
  253. wait 3 seconds
  254. send "&3on grow:"
  255. send "<T>&3player is holding a diamond hoe:"
  256. send "<T2>&3give diamond to the player"
  257. send "<T2>&3send 'One of your crops has risen from the earth!'"
  258. wait 5 seconds
  259. send "&f[&6MineCode&f] See It's Not So Hard Huh?"
  260. wait 5 seconds
  261. send "&f[&6MineCode&f] One Thing I'm Going To Mention Is That"
  262. wait 5 seconds
  263. send "&f[&6MineCode&f] You NEED An : After An Event Or After"
  264. wait 5 seconds
  265. send "&f[&6MineCode&f] Your Testing If An Entity Has Something!"
  266. wait 5 seconds
  267. send "&f[&6MineCode&f] I Recommend You Try This Out For Yourself Before"
  268. wait 5 seconds
  269. send "&f[&6MineCode&f] Moving On To The Next Lesson Because It Can"
  270. wait 5 seconds
  271. send "&f[&6MineCode&f] Be Hard To Understand!"
  272. wait 5 seconds
  273. send "&f[&6MineCode&f] But To Get This Far I Guess Your Doing Really Well"
  274. wait 5 seconds
  275. send "&f[&6MineCode&f] So Thats It For This Tutorial I Hope You Will Stay"
  276. wait 5 seconds
  277. send "&f[&6MineCode&f] For Our Next Topic That Will Be Using Conditions"
  278. wait 5 seconds
  279. send "&f[&6MineCode&f] I Hope You Are All Hyped Because This Is Where"
  280. wait 5 seconds
  281. send "&f[&6MineCode&f] You Start To Really Get Into Coding :)"
  282. wait 5 seconds
  283. send "&f[&6MineCode&f] Anyway Have A Great Day And I'll Catch You Later!"
  284. wait 5 seconds
  285. send "&f[&6MineCode&f] I Hope xD"
  286. wait 5 seconds
  287. send "&f[&6MineCode&f] &aYou Have Completed Easy Lesson 3!"
  288.  
  289. command /easy4:
  290. permission: minecode.easy.4
  291. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 3' First!
  292. trigger:
  293. send "&f[&6MineCode&f] Welcome Back Patreon"
  294. wait 5 seconds
  295. send "&f[&6MineCode&f] Today We Will Be Doing Conditions!"
  296. wait 5 seconds
  297. send "&f[&6MineCode&f] Conditions Are Testing If The Player"
  298. wait 5 seconds
  299. send "&f[&6MineCode&f] Is Doing Something For Example:"
  300. wait 3 seconds
  301. send "&3on rightclick:"
  302. send "<T>&6player is sprinting:"
  303. send "<T2>&3effect apply Speed 1 to the player for 10 seconds"
  304. send "&f[&6MineCode&f] I've Highlighted The Condition In Orange!"
  305. wait 5 seconds
  306. send "&f[&6MineCode&f] As You Can See It's Used With The Format:"
  307. wait 5 seconds
  308. send "&f[&6MineCode&f] <player> is <something>"
  309. wait 5 seconds
  310. Send "&f[&6MineCode&f] So We Could Have: player is riding <something>"
  311. wait 5 seconds
  312. send "&f[&6MineCode&f] Or: player is holding <something>"
  313. wait 5 seconds
  314. send "&f[&6MineCode&f] There Is A Big List Of These Made By The"
  315. wait 5 seconds
  316. send "&f[&6MineCode&f] Developer, Here Is The Link:"
  317. wait 5 seconds
  318. send "&f[&6MineCode&f] http://njol.ch/projects/skript/doc/conditions/"
  319. wait 5 seconds
  320. send "&f[&6MineCode&f] Oh And Also You Need An : After A Condition"
  321. wait 5 seconds
  322. send "&f[&6MineCode&f] I Have Already Gone Through : But I'll Talk"
  323. wait 5 seconds
  324. send "&f[&6MineCode&f] About It Later As Well Because It's Important!"
  325. wait 5 seconds
  326. send "&f[&6MineCode&f] Although This Tutorial Has Been Pretty Quick"
  327. wait 5 seconds
  328. send "&f[&6MineCode&f] (Quicker Than The Others) It Has Hopefully"
  329. wait 5 seconds
  330. send "&f[&6MineCode&f] Helped You In Writing Better Bits Of Code"
  331. wait 5 seconds
  332. send "&f[&6MineCode&f] And Also If You Practice You Will Become"
  333. wait 5 seconds
  334. send "&f[&6MineCode&f] Better So I Suggest Doing That Before Moving"
  335. wait 5 seconds
  336. send "&f[&6MineCode&f] On To The Next Lesson That Will Be On"
  337. wait 5 seconds
  338. send "&f[&6MineCode&f] Expressions! :D"
  339. wait 5 seconds
  340. send "&f[&6MineCode&f] Anyway That's It For Now! Goodbye :)"
  341. wait 5 seconds
  342. send "&f[&6MineCode&f] &aYou Have Completed Easy Lesson 4!"
  343.  
  344. command /easy5:
  345. permission: minecode.easy.5
  346. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 4' First!
  347. trigger:
  348. send "Expressions"
  349.  
  350. command /easy6:
  351. permission: minecode.easy.6
  352. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 5' First!
  353. trigger:
  354. send "If-Else"
  355.  
  356. command /easy7:
  357. permission: minecode.easy.7
  358. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Lesson 6' First!
  359. trigger:
  360. send "Making A Gun :D"
Advertisement
Add Comment
Please, Sign In to add comment