Advertisement
AdamLam

Untitled

Jan 31st, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. function GuiFill(p: player,s: number,m: material):
  2. set {_times} to {_s}
  3. set {_slot} to 0
  4. loop {_times} times:
  5. create gui slot {_slot} of {_p} with {_m} named " " with lore " " to do nothing
  6. set {_slot} to {_slot}+1
  7. if {_m} is red stained glass pane:
  8. create gui slot {_s}-5 of {_p} with barrier block named "&4&lEXIT" with lore " " to run:
  9. close player's inventory
  10. on craft:
  11. if event-item is helmet or chestplate or leggings or boots or sword or pickaxe or axe or shovel:
  12. cancel event
  13. on click on anvil:
  14. if block below event-block is sea lantern:
  15. cancel event
  16. open virtual chest with size 4 named "Forge" to player
  17. wait 2 ticks
  18. GuiFill(player,36,red stained glass pane)
  19. wait 2 ticks
  20. GuiFill(player,27,black stained glass pane)
  21. wait 2 ticks
  22. create gui slot 11 of player with iron ingot named "Forge Iron Items" with lore "Click to forge iron items" to run:
  23. close player's inventory
  24. wait 2 ticks
  25. open virtual chest with size 5 named "Forge Iron Items" to player
  26. wait 2 ticks
  27. GuiFill(player,45,red stained glass pane)
  28. GuiFill(player,36,black stained glass pane)
  29. wait 2 ticks
  30. create gui slot 1 of player with iron helmet named "Helmet" with lore "Price:" to run:
  31. close player's inventory
  32. create gui slot 10 of player with iron chestplate named "Chestplate" with lore "Price" to run:
  33. close player's inventory
  34. create gui slot 19 of player with iron Leggings named "Leggings" with lore "Price" to run:
  35. close player's inventory
  36. create gui slot 28 of player with iron boots named "Boots" with lore "Price" to run:
  37. close player's inventory
  38. create gui slot 7 of player with iron sword named "Sword" with lore "Price:" to run:
  39. close player's inventory
  40. create gui slot 16 of player with iron pickaxe named "Pickaxe" with lore "Price:" to run:
  41. close player's inventory
  42. create gui slot 25 of player with iron shovel named "Shovel" with lore "Price:" to run:
  43. close player's inventory
  44. create gui slot 15 of event-player with diamond named "&c&lForge Diamond Items" with lore "Click to forge diamond items" to run:
  45. close player's inventory
  46. wait 2 ticks
  47. open virtual chest with size 5 named "Forge Diamond Items" to player
  48. wait 2 ticks
  49. GuiFill(player,45,red stained glass pane)
  50. GuiFill(player,36,black stained glass pane)
  51. wait 2 ticks
  52. create gui slot 1 of player with diamond helmet named "Helmet" with lore "Price:" to run:
  53. close player's inventory
  54. create gui slot 10 of player with diamond chestplate named "Chestplate" with lore "Price" to run:
  55. close player's inventory
  56. create gui slot 19 of player with diamond Leggings named "Leggings" with lore "Price" to run:
  57. close player's inventory
  58. create gui slot 28 of player with diamond boots named "Boots" with lore "Price" to run:
  59. close player's inventory
  60. create gui slot 7 of player with diamond sword named "Sword" with lore "Price:" to run:
  61. close player's inventory
  62. create gui slot 16 of player with diamond pickaxe named "Pickaxe" with lore "Price:" to run:
  63. close player's inventory
  64. create gui slot 25 of player with diamond shovel named "Shovel" with lore "Price:" to run:
  65. close player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement