Advertisement
FrostedWeFall

Genbuckets

Oct 22nd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. #
  2. # Skript made by Torciv
  3. # Suscribe to https://www.youtube.com/channel/UChv-5Sdg58mW_s4D32fHmkg
  4. #
  5. # Looking for a cool factions server! Join pvp.overclaims.com
  6. # Start of the world will be 3/12/2016
  7. #
  8. # Options config:
  9. #
  10. # Item(1,2,3,4,5,6,7,8,9) is the item you want to put on the custom craft
  11. #
  12. # ---------- Craft view format ------------
  13. #
  14. # item1 item2 item3
  15. # item4 item5 item6
  16. # item7 item8 item9
  17. #
  18. # -----------------------------------------
  19. #
  20. # permission if you want to add a permission to only make players with that permission craft the item and use it.
  21. # Do not change the permission! - Just add it to your permission plugin
  22. #
  23. # Craft: genwall.craft -- This is the permission to craft
  24. # Use: genwall.use -- This is the permission to use the item and gen walls
  25. # Command: genwall.admin -- This is the permission to use the command /gengive <player> <amount>
  26. #
  27. # noperm >> is the message sned to all players on craft if they don't have permission to craft it
  28. # Lore >> is the lore you want to add to your custom item
  29. # Block >> is the block you want gen
  30. # Time >> is the time frame to gen a new block
  31. # Timetype >> is what you want to use seconds or ticks
  32. #
  33. # IMPORTANT! If you put 1 in time you must put on timetype -- 'second' or 'tick' without 's'
  34. #
  35. # BlockPlaced >> is the block type you want them to place to gen the wall
  36. # Holding! >> You must change this to the type of block placed.
  37. # For instance, if you change BlockPlaced: 'lava' to 'dirt' You must change also Holding to 'dirt'.
  38. # It is also the item to craft
  39. #
  40. # name >> is the name you want the GenWall Bucket to be
  41. # prefix >> prefix of the skript that will be shown at the start of the given message! (Player will see it)
  42. # sound >> Sound that player will hear when they are given a GenWall Bucket
  43.  
  44. # All sounds of minecraft: page >> http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571574-all-minecraft-playsound-file-names-1-9
  45.  
  46. options:
  47. item1: air
  48. item2: empty bucket
  49. item3: air
  50. item4: lapis block
  51. item5: lava bucket
  52. item6: magma cream
  53. item7: obsidian
  54. item8: obsidian
  55. item9: obsidian
  56. noperm: &c&l(!) &cYou don't have permission to craft that.
  57. name: &9&l&ko&6&lGen&e&lBucket&9&l&ko
  58. lore: &cWall generator
  59. block: obsidian
  60. time: 46
  61. timetype: ticks
  62. blockplaced: lava
  63. holding: lava bucket
  64. prefix: &7&l[&a&lGen&b&lWall&7&l]
  65. sound: random.levelup
  66.  
  67. # CraftItem
  68. on script load:
  69. register new shaped recipe for {@holding} named "{@name}" with lore "{@lore}" using {@item1}, {@item2}, {@item3}, {@item4}, {@item5}, {@item6}, {@item7}, {@item8}, {@item9}
  70.  
  71. on craft of {@holding}:
  72. player does not have permission "genwall.craft"
  73. cancel event
  74. send "{@noperm}" to the player
  75.  
  76.  
  77. # Command
  78.  
  79. command /gengive <player> <number>:
  80. usage: /gengive <player> <amount>
  81. description: &eGive to a player an amount of X GenWall Buckets!
  82. executable by: players
  83. permission: genwall.admin
  84. permission message: &eYou don't have permission to do that!
  85. trigger:
  86. if arg 1 is a player:
  87. if arg 2 is a number:
  88. set {_player} to arg 1
  89. set {_amount} to arg 2
  90. set {_item} to {@holding} named "{@name}" with lore "{@lore}"
  91. loop {_amount} times:
  92. add {_item} to {_player}'s inventory
  93. play raw sound "{@sound}" at {_player} with pitch 1 volume 1
  94. send "{@prefix} You have been given %arg 2% GenWall Buckets" to {_player}
  95.  
  96.  
  97. command /gengiveall <number>:
  98. usage: /gengiveall <amount>
  99. description: &eGive to all online players an amount of X GenWall Buckets!
  100. executable by: players
  101. permission: genwall.admin
  102. permission message: &eYou don't have permission to do that!
  103. trigger:
  104. if arg 1 is a number:
  105. set {_amount} to arg 1
  106. set {_item} to {@holding} named "{@name}" with lore "{@lore}"
  107. loop {_amount} times:
  108. add {_item} to all players
  109. play raw sound "{@sound}" at players with pitch 1 volume 1
  110. broadcast "{@prefix} You have been given %arg 1% GenWall Buckets"
  111. send "{@prefix} All online players have been given %arg 1% GenWall Buckets" to player
  112.  
  113.  
  114. # GENWALL
  115.  
  116. on place of {@blockplaced}:
  117. player has permission "genwall.use"
  118. if player is holding a {@holding} named "{@name}" with lore "{@lore}":
  119. set block to {@block}
  120. Loop 256 times:
  121. if block loop-number below event-block is air:
  122. wait {@time} {@timetype}
  123. set block loop-number below event-block to {@block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement