pewax

MineCode 0.1

Apr 11th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 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, Level 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, Level 2" to close then run [make player execute "/easy2"]
  21. format slot 4 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!"
  22. format slot 5 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!"
  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. wait 3 seconds
  67. send "&f[&6MineCode&f] Welcome To MineCode!"
  68. wait 5 seconds
  69. send "&f[&6MineCode&f] My Name Is Pewax And I'll Be Teaching You To Code"
  70. wait 5 seconds
  71. send "&f[&6MineCode&f] You'll Be Able To Make Plugins In No Time :)"
  72. wait 5 seconds
  73. send "&f[&6MineCode&f] In These Tutorials I Will Be Teaching You Skript"
  74. wait 5 seconds
  75. send "&f[&6MineCode&f] Skript You May Ask? Why? What Is Skript?"
  76. wait 5 seconds
  77. send "&f[&6MineCode&f] Skript Is An Alternate Coding Language To Java"
  78. wait 5 seconds
  79. send "&f[&6MineCode&f] You Can Use It To Make Bukkit Plugins Easily"
  80. wait 5 seconds
  81. send "&f[&6MineCode&f] With Not A Very Steep Learning Curve"
  82. wait 5 seconds
  83. send "&f[&6MineCode&f] It Can Only Be Used In Minecraft"
  84. wait 5 seconds
  85. send "&f[&6MineCode&f] So Don't Expect To See Much Of It On The Internet"
  86. wait 5 seconds
  87. send "&f[&6MineCode&f] Despite This It's Still REALLY Easy To Learn"
  88. wait 5 seconds
  89. send "&f[&6MineCode&f] And Everything Is Writen Like An English Essay"
  90. wait 5 seconds
  91. send "&f[&6MineCode&f] So NO Need For brackets On Every Line"
  92. wait 5 seconds
  93. send "&f[&6MineCode&f] Here Is An Example Of Some Code From Skript:"
  94. wait 3 seconds
  95. send "&3on rightclick:"
  96. send " &3player is holding a fish:"
  97. send " &3send 'You Just Right Clicked With A Fish!'"
  98. wait 5 seconds
  99. send "&f[&6MineCode&f] I'll Teach You All About How The Code Works Later"
  100. wait 5 seconds
  101. send "&f[&6MineCode&f] For Now Though I Will Just Give You Some Tips"
  102. wait 5 seconds
  103. send "&f[&6MineCode&f] Before We Begin Our Journey Of Learning Together"
  104. wait 5 seconds
  105. send "&f[&6MineCode&f] The First Thing I Would Like To Tell You Is,"
  106. wait 5 seconds
  107. send "&f[&6MineCode&f] When I Do This <T> It Means I Am Using A Tab"
  108. wait 5 seconds
  109. send "&f[&6MineCode&f] When I Do This <T2> It's Means 2 Tabs, ECT"
  110. wait 5 seconds
  111. send "&f[&6MineCode&f] <T2> Means 2 Tabs But <T> Is Only Equal To 1 Tab"
  112. wait 5 seconds
  113. send "&f[&6MineCode&f] I'll Give You A Quick Example:"
  114. wait 3 seconds
  115. send "&3command /example:"
  116. send "<T>&3trigger:"
  117. send "<T2>&3send '&aThis Is An Example!&3'"
  118. wait 5 seconds
  119. send "[&6MineCode&f] Instead Of:"
  120. send "&3command /example:"
  121. send " &3trigger:"
  122. send " &3send '&aThis Is An Example!&3'"
  123. wait 5 seconds
  124. send "&f[&6MineCode&f] Oh And I Will Replace Speech Marks With '"
  125. wait 5 seconds
  126. send "&f[&6MineCode&f] No This Isn't Because I Hate Speech Marks"
  127. wait 5 seconds
  128. send "&f[&6MineCode&f] It's Because Skript Won't Let You Use Them"
  129. wait 5 seconds
  130. send "&f[&6MineCode&f] For Sending A Message To The Player :("
  131. wait 5 seconds
  132. send "&f[&6MineCode&f] Anyway Now Thats Done I Can Finish"
  133. wait 5 seconds
  134. send "&f[&6MineCode&f] With The Introduction And Teach You How"
  135. wait 5 seconds
  136. send "&f[&6MineCode&f] To Write Your First Bit Of Real Code!"
  137. wait 3 seconds
  138. send "&f[&6MineCode&f] &aYou Have Completed Easy Level 1!"
  139. #make player execute "/pex user (give player permission minecode.easy.2)"
  140.  
  141. command /easy2:
  142. permission: minecode.easy.2
  143. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 1' First!
  144. trigger:
  145. send "&f[&6MineCode&f] Hello Again I'm Glade Your Still Here :)"
  146. send "&f[&6MineCode&f] As I Said Before In This Level We Will Make"
  147. send "&f[&6MineCode&f] A Simple Hello World Plugin"
  148. send "&f[&6MineCode&f] For This I Am Going To Use Notepad++"
  149. send "&f[&6MineCode&f] Here Is The Download Link For It:"
  150. send "&f[&6MineCode&f] https://notepad-plus-plus.org/download/v6.9.1.html"
  151. send "&f[&6MineCode&f] But Before We start coding I'm Going To Tell You"
  152. send "&f[&6MineCode&f] How To Load Skript Plugins Onto Your Server"
  153. send "&f[&6MineCode&f] Because It's A Little Different Than With Java Ones"
  154. send "&f[&6MineCode&f] Here Is A Step By Step Guide:"
  155. send "&f[&6MineCode&f] 1. Make Your Plugin (In Notepad++)"
  156. send "&f[&6MineCode&f] 2. Save It As A .sk File On Your Desktop"
  157. send "&f[&6MineCode&f] 1. Go Into Your Plugins Folder"
  158. send "&f[&6MineCode&f] 2. Go Into The Folder That Says 'Skript'"
  159. send "&f[&6MineCode&f] 3. Open The Folder That Says 'scripts'"
  160. send "&f[&6MineCode&f] 4. Drop Your Plugin (Notepad++ File) In That Folder"
  161. send "&f[&6MineCode&f] 5. Restart The Server And Enjoy Your Plugin"
  162. send "&f[&6MineCode&f] "
  163.  
  164. command /easy3:
  165. permission: minecode.easy.3
  166. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 2' First!
  167. trigger:
  168. send "Events"
  169.  
  170. command /easy4:
  171. permission: minecode.easy.4
  172. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 3' First!
  173. trigger:
  174. send "Conditions"
  175.  
  176. command /easy5:
  177. permission: minecode.easy.5
  178. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 4' First!
  179. trigger:
  180. send "Expressions"
  181.  
  182. command /easy6:
  183. permission: minecode.easy.6
  184. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 5' First!
  185. trigger:
  186. send "If-Else"
  187.  
  188. command /easy7:
  189. permission: minecode.easy.7
  190. permission message: &f[&6MineCode&f] You Must Complete 'Easy, Level 6' First!
  191. trigger:
  192. send "Making A Gun :D"
Advertisement
Add Comment
Please, Sign In to add comment