Facebook
From Bistre Shama, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 257
  1. # Przy załadowaniu skryptu wczytuje crafting:
  2. on script load:
  3.     # Generator Kamienia
  4.     register new shaped recipe for emerald ore named "&aGenerator Kamienia" using stone, stone, stone, stone, emerald block, stone, stone, stone, stone
  5.     # Generator Obsydianu
  6.     register new shaped recipe for diamond ore named "&9Generator Obsydianu" using obsidian, obsidian, obsidian, obsidian, diamond block, obsidian, obsidian, obsidian, obsidian
  7.     # BoyFarmer
  8.     register new shaped recipe for end portal frame named "&6BoyFarmer" using obsidian, obsidian, obsidian, obsidian, golden apple, obsidian, obsidian, obsidian, obsidian
  9.     # SandFarmer
  10.     register new shaped recipe for sand named "&bSandFarmer" using sand, sand, sand, sand, golden apple, sand, sand, sand, sand
  11.     # AutoFosa
  12.     register new shaped recipe for end stone named "&5AutoFosa" using stone, stone, stone, stone, stone stone, stone, stone, obsidian, stone
  13.  
  14. # Opcja do ustalenia logo skryptu
  15. options:
  16.     logo: &f&lMega&c&lGUI
  17.  
  18. # Komenda otwierająca GUI Craftingów
  19. command /crafting:
  20.     trigger:
  21.         execute console command "mgui %player% craftingi"
  22.  
  23. # Komenda uruchamiana przez konsole, GUI
  24. command /mgui [<player>] [<text>]:
  25.     executable by: console
  26.     trigger:
  27.         # Otwiera GUI graczowi z wyborem craftingu
  28.         if arg 2 is "craftingi":
  29.             wait 2 tick
  30.             open chest with 1 rows named "&cCraftingi" to player-arg
  31.             wait 2 tick
  32.             format slot 0 of player-arg with 1 of emerald ore named "&aGenerator Kamienia" to run "mgui %player-arg% generatorkamienia"
  33.             format slot 1 of player-arg with 1 of diamond ore named "&9Generator Obsydianu" to run "mgui %player-arg% generatorobsydianu"
  34.             format slot 2 of player-arg with 1 of end portal frame named "&6BoyFarmer" to run "mgui %player-arg% boyfarmer"
  35.             format slot 3 of player-arg with 1 of sand named "&bSandFarmer" to run "mgui %player-arg% sandfarmer"
  36.             format slot 4 of player-arg with 1 of end stone named "&5AutoFosa" to run "mgui %player-arg% autofosa"
  37.             format slot 8 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  38.         # GUI dla Generator Kamienia
  39.         if arg 2 is "generatorkamienia":
  40.             wait 2 tick
  41.             open chest with 3 rows named "&aGenerator Kamienia" to player-arg
  42.             wait 2 tick
  43.             format slot 0 of player-arg with 1 of stone to be unstealable
  44.             format slot 1 of player-arg with 1 of stone to be unstealable
  45.             format slot 2 of player-arg with 1 of stone to be unstealable
  46.             format slot 9 of player-arg with 1 of stone to be unstealable
  47.             format slot 10 of player-arg with 1 of diamond to be unstealable
  48.             format slot 11 of player-arg with 1 of stone to be unstealable
  49.             format slot 12 of player-arg with 1 of sponge named "&ke&6STONIARKA&ke" to be unstealable
  50.             format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "amenu %player-arg% generatorkamienia"
  51.             format slot 18 of player-arg with 1 of stone to be unstealable
  52.             format slot 19 of player-arg with 1 of stone to be unstealable
  53.             format slot 20 of player-arg with 1 of stone to be unstealable
  54.             format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  55.             format slot 26 of player-arg with 1 of iron door item named "&c&lWyjdz" to close
  56.         # GUI dla Generator Obsydianu
  57.         if arg 2 is "generatorobsydianu":
  58.             wait 2 tick
  59.             open chest with 3 rows named "&9Generator Obsydianu &4&lOFF" to player-arg
  60.             wait 2 tick
  61.         # GUI dla BoyFarmer
  62.         if arg 2 is "boyfarmer":
  63.             wait 2 tick
  64.             open chest with 3 rows named "&6BoyFarmer" to player-arg
  65.             wait 2 tick
  66.             format slot 0 of player-arg with 1 of obsidian to be unstealable
  67.             format slot 1 of player-arg with 1 of obsidian to be unstealable
  68.             format slot 2 of player-arg with 1 of obsidian to be unstealable
  69.             format slot 9 of player-arg with 1 of obsidian to be unstealable
  70.             format slot 10 of player-arg with 1 of diamond to be unstealable
  71.             format slot 11 of player-arg with 1 of obsidian to be unstealable
  72.             format slot 12 of player-arg with 1 of end portal frame named "&6BoyFarmer" to be unstealable
  73.             format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% boyfarmer"
  74.             format slot 18 of player-arg with 1 of obsidian to be unstealable
  75.             format slot 19 of player-arg with 1 of obsidian to be unstealable
  76.             format slot 20 of player-arg with 1 of obsidian to be unstealable
  77.             format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  78.             format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  79.         # GUI dla SandFarmer
  80.         if arg 2 is "sandfarmer":
  81.             wait 2 tick
  82.             open chest with 3 rows named "&bSandFarmer" to player-arg
  83.             wait 2 tick
  84.             format slot 0 of player-arg with 1 of sand to be unstealable
  85.             format slot 1 of player-arg with 1 of sand to be unstealable
  86.             format slot 2 of player-arg with 1 of sand to be unstealable
  87.             format slot 9 of player-arg with 1 of sand to be unstealable
  88.             format slot 10 of player-arg with 1 of diamond to be unstealable
  89.             format slot 11 of player-arg with 1 of sand to be unstealable
  90.             format slot 12 of player-arg with 1 of sand named "&bSandFarmer" to be unstealable
  91.             format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% sandfarmer"
  92.             format slot 18 of player-arg with 1 of sand to be unstealable
  93.             format slot 19 of player-arg with 1 of sand to be unstealable
  94.             format slot 20 of player-arg with 1 of sand to be unstealable
  95.             format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  96.             format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  97.         # GUI dla AutoFosa
  98.         if arg 2 is "autofosa":
  99.             wait 2 tick
  100.             open chest with 3 rows named "&5AutoFosa" to player-arg
  101.             wait 2 tick
  102.             format slot 0 of player-arg with 1 of stone to be unstealable
  103.             format slot 1 of player-arg with 1 of stone to be unstealable
  104.             format slot 2 of player-arg with 1 of stone to be unstealable
  105.             format slot 9 of player-arg with 1 of stone to be unstealable
  106.             format slot 10 of player-arg with 1 of stone to be unstealable
  107.             format slot 11 of player-arg with 1 of stone to be unstealable
  108.             format slot 12 of player-arg with 2 of Enchantment Table named "&5AutoFosa" to be unstealable
  109.             format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% autofosa"
  110.             format slot 18 of player-arg with 1 of stone to be unstealable
  111.             format slot 19 of player-arg with 1 of stone to be unstealable
  112.             format slot 20 of player-arg with 1 of stone to be unstealable
  113.             format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  114.             format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  115.  
  116. # Komenda uruchamiana przez konsole, AutocCafting
  117. command /agui [<player>] [<text>]:
  118.     executable by: console
  119.     trigger:
  120.         # AutoCrafting: Generator Kamienia
  121.         if arg 2 is "generatorkamienia":
  122.             if player-arg has 8 stone and 1 emerald block:
  123.                 send "{@logo}: &r&aZaakceptowano!"
  124.                 remove 8 stone and 1 emerald block from player-arg's inventory
  125.                 if player-arg can hold 1 emerald ore named "&aGenerator Kamienia":
  126.                     give 1 emerald ore named "&aGenerator Kamienia" to the player-arg
  127.                     send "{@logo}: &r&eOtrzymales &aGenerator Kamienia"
  128.                 else:
  129.                     give 8 stone and 1 emerald block to the player-arg
  130.                     send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  131.             else:
  132.                 send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  133.         # AutoCrafting: Generator Obsydianu
  134.         if arg 2 is "generatorobsydianu":
  135.             if player-arg has 8 obsidian and 1 diamond block:
  136.                 send "{@logo}: &r&aZaakceptowano!"
  137.                 remove 8 obsidian and 1 diamond block from player-arg's inventory
  138.                 if player-arg can hold 1 diamond ore named "&9Generator Obsydianu":
  139.                     give 1 diamond ore named "&9Generator Obsydianu" to the player-arg
  140.                     send "{@logo}: &r&eOtrzymales &9Generator Obsydianu"
  141.                 else:
  142.                     give 8 obsidian and 1 diamond block to the player-arg
  143.                     send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  144.             else:
  145.                 send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  146.         # AutoCrafting: BoyFarmer
  147.         if arg 2 is "boyfarmer":
  148.             if player-arg has 8 obsidian and 1 golden apple:
  149.                 send "{@logo}: &r&aZaakceptowano!"
  150.                 remove 8 obsidian and 1 golden apple from player-arg's inventory
  151.                 if player-arg can hold 1 end portal frame named "&6BoyFarmer":
  152.                     give 1 end portal frame named "&6BoyFarmer" to the player-arg
  153.                     send "{@logo}: &r&eOtrzymales &6BoyFarmer"
  154.                 else:
  155.                     give 8 obsidian and 1 golden apple to the player-arg
  156.                     send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  157.             else:
  158.                 send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  159.         # AutoCrafting: SandFarmer
  160.         if arg 2 is "sandfarmer":
  161.             if player-arg has 8 sand and 1 golden apple:
  162.                 send "{@logo}: &r&aZaakceptowano!"
  163.                 remove 8 sand and 1 golden apple from player-arg's inventory
  164.                 if player-arg can hold 1 sand named "&bSandFarmer":
  165.                     give 1 sand named "&bSandFarmer" to the player-arg
  166.                     send "{@logo}: &r&eOtrzymales &bSandFarmer"
  167.                 else:
  168.                     give 8 sand and 1 golden apple to the player-arg
  169.                     send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  170.             else:
  171.                 send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  172.         # AutoCrafting: AutoFosa
  173.         if arg 2 is "autofosa":
  174.             if player-arg has 2 lava bucket and 1 water bucket and 6 obsidian:
  175.                 send "{@logo}: &r&aZaakceptowano!"
  176.                 remove 2 lava bucket and 1 water bucket and 6 obsidian from player-arg's inventory
  177.                 if player-arg can hold 2 end stone named "&5AutoFosa":
  178.                     give 2 end stone named "&5AutoFosa" to the player-arg
  179.                     give 3 bucket to the player-arg
  180.                     send "{@logo}: &r&eOtrzymales &5AutoFose"
  181.                 else:
  182.                     give 2 lava bucket and 1 water bucket and 6 obsidian to the player-arg
  183.                     send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  184.             else:
  185.                 send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  186.