Advertisement
Guest User

VOID Command Autofiller Mark I

a guest
Nov 15th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set empty to ""
  2. set PresetType to ¬
  3.     choose from list {"Crate 5:2", "Cosmetic - Shield", "Cosmetic - Hat", "Cosmetic - Head", "Magical - Hat", "Magical - Head"} ¬
  4.         with title ¬
  5.         "PIFCG" with prompt ¬
  6.         "Select a Preset" OK button name ¬
  7.         "Proceed" cancel button name ¬
  8.         "Exit" without multiple selections allowed
  9.  
  10. if PresetType is false then
  11.     error number -128
  12. else
  13.     tell application "System Events"
  14.         set ItemName to text returned of (display dialog "Item Name" default answer "NAME")
  15.         set CTag to text returned of (display dialog "CTags" default answer "not inclusive of PID and effect")
  16.         set Description1 to the text returned of (display dialog "Description Line 1" default answer "")
  17.         set Description2 to the text returned of (display dialog "Description Line 2" default answer "")
  18.         set Description3 to the text returned of (display dialog "Description Line 3" default answer "")
  19.         set Description4 to the text returned of (display dialog "Description Line 4" default answer "")
  20.         set Description5 to the text returned of (display dialog "Description Line 5" default answer "")
  21.         set CTags to CTag & ","
  22.         if Description2 is not empty then
  23.             set NDesc1 to "\"§7" & Description1 & "\","
  24.         else
  25.             set NDesc1 to "\"§7" & Description1 & "\""
  26.         end if
  27.         if Description3 is not empty then
  28.             if Description2 is not empty then
  29.                 set NDesc2 to "\"§7" & Description2 & "\","
  30.             else
  31.                 set NDesc2 to ""
  32.             end if
  33.         else
  34.             if Description2 is not empty then
  35.                 set NDesc2 to "\"§7" & Description2 & "\""
  36.             else
  37.                 set NDesc2 to ""
  38.             end if
  39.         end if
  40.         if Description4 is not empty then
  41.             if Description3 is not empty then
  42.                 set NDesc3 to "\"§7" & Description3 & "\","
  43.             else
  44.                 set NDesc3 to ""
  45.             end if
  46.         else
  47.             if Description3 is not empty then
  48.                 set NDesc3 to "\"§7" & Description3 & "\""
  49.             else
  50.                 set NDesc3 to ""
  51.             end if
  52.         end if
  53.         if Description5 is not empty then
  54.             if Description4 is not empty then
  55.                 set NDesc4 to "\"§7" & Description4 & "\","
  56.             else
  57.                 set NDesc4 to ""
  58.             end if
  59.         else
  60.             if Description4 is not empty then
  61.                 set NDesc4 to "\"§7" & Description4 & "\""
  62.             else
  63.                 set NDesc4 to ""
  64.             end if
  65.         end if
  66.         if Description5 is not empty then
  67.             set NDesc5 to "\"§7" & Description5 & "\""
  68.         else
  69.             set NDesc5 to ""
  70.         end if
  71.         set FullDesc to NDesc1 & NDesc2 & NDesc3 & NDesc4 & NDesc5
  72.     end tell
  73.    
  74.     set genericCmdStart to "execute Lord_Pundus ~ ~ ~ /setblock ~ ~ ~ minecraft:command_block 0 replace {Command:/give @a[tag="
  75.     set typeShield to "minecraft:shield"
  76.     set typePlrHead to "minecraft:skull"
  77.     set typeCusModel to "minecraft:diamond_hoe"
  78.     set displayTag to "display:{Name:\""
  79.     set starsymbol to "⭑"
  80.     set ccCosmetic to "§e"
  81.     set ccMagical to "§d"
  82.     set ccNormal to "§f"
  83.     set prefixMagical to "Magical "
  84. end if
  85. if PresetType contains "Cosmetic - Shield" then
  86.     tell application "System Events"
  87.         set ItemID to text returned of (display dialog "Item ID" default answer "DecShield")
  88.         set ItemLevel to the text returned of (display dialog "Item Level" default answer "Level")
  89.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  90.         set ItemDmg to the text returned of (display dialog "Item Damage" default answer "Dmg")
  91.         set BlockEntityTag to the text returned of (display dialog "BlockEntityTag" default answer "{Base:15,Patterns:[{Patt...r:15}]}")
  92.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  93.         set compID to ItemID & "] "
  94.         set compName to ccCosmetic & ItemName
  95.         set FullCMD to genericCmdStart & compID & typeShield & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\",BlockEntityTag:" & BlockEntityTag & "," & displayTag & compName & "\",Lore:[\"§7Level " & ItemLevel & " Decorative Shield\"," & FullDesc & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  96.         delay 3
  97.         keystroke FullCMD
  98.     end tell
  99. else if PresetType contains "Cosmetic - Hat" then
  100.     tell application "System Events"
  101.         set FauxType to the text returned of (display dialog "Item Type" default answer "Hat")
  102.         set ItemID to text returned of (display dialog "Item ID" default answer "HatHat")
  103.         set ItemLevel to the text returned of (display dialog "Item Level" default answer "Level")
  104.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  105.         set ItemDmg to the text returned of (display dialog "Item Model ID" default answer "1")
  106.         set Bonus to the text returned of (display dialog "Hat Bonus" default answer "Wearer Never...")
  107.         set ATB to the text returned of (display dialog "Attributes" default answer "AttributeMo...ost:813675,Slot:\"head\"}]")
  108.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  109.         set compID to ItemID & "] "
  110.         set BonusFin to ",\"§3" & Bonus & "\""
  111.         set compName to ccCosmetic & ItemName
  112.         if ATB is not empty then
  113.             set CompAttrib to ATB & ","
  114.         else
  115.             set CompAttrib to ""
  116.         end if
  117.         set FullCMD to genericCmdStart & compID & typeCusModel & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & CompAttrib & displayTag & compName & "\",Lore:[\"§7Level " & ItemLevel & " " & FauxType & "\"," & FullDesc & BonusFin & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  118.         delay 3
  119.         keystroke FullCMD
  120.     end tell
  121. else if PresetType contains "Cosmetic - Head" then
  122.     tell application "System Events"
  123.         set FauxType to the text returned of (display dialog "Item Type" default answer "Head")
  124.         set ItemID to text returned of (display dialog "Item ID" default answer "HeadHead")
  125.         set ItemLevel to the text returned of (display dialog "Item Level" default answer "Level")
  126.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  127.         set ItemDmg to 3
  128.         set textures to the text returned of (display dialog "SkullOwner" default answer "SkullOwner:{Id:\"61e9f...zVlZjkxYyJ9fX0=\"}]}}")
  129.         set ATB to the text returned of (display dialog "Attributes" default answer "AttributeMo...ost:813675,Slot:\"head\"}]")
  130.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  131.         set compID to ItemID & "] "
  132.         set compName to ccCosmetic & ItemName
  133.         if ATB is not empty then
  134.             set CompAttrib to ATB & ","
  135.         else
  136.             set CompAttrib to ""
  137.         end if
  138.         set FullCMD to genericCmdStart & compID & typePlrHead & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & CompAttrib & textures & "," & displayTag & compName & "\",Lore:[\"§7Level " & ItemLevel & " " & FauxType & "\"," & FullDesc & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  139.         delay 3
  140.         keystroke FullCMD
  141.     end tell
  142. else if PresetType contains "Magical - Hat" then
  143.     tell application "System Events"
  144.         set FauxType to the text returned of (display dialog "Item Type" default answer "Hat")
  145.         set ItemID to text returned of (display dialog "Item ID" default answer "MagHat")
  146.         set ItemEffect to the text returned of (display dialog "Particle Effect" default answer "Rainbow Sparkles")
  147.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  148.         set ItemDmg to the text returned of (display dialog "Item Model ID" default answer "1")
  149.         set Bonus to the text returned of (display dialog "Hat Bonus" default answer "Wearer Never...")
  150.         set ATB to the text returned of (display dialog "Attributes" default answer "AttributeMo...ost:813675,Slot:\"head\"}]")
  151.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  152.         set compID to ItemID & "] "
  153.         set BonusFin to ",\"§3" & Bonus & "\""
  154.         set compName to ccMagical & prefixMagical & starsymbol & " " & ItemName
  155.         if ATB is not empty then
  156.             set CompAttrib to ATB & ","
  157.         else
  158.             set CompAttrib to ""
  159.         end if
  160.         set FullCMD to genericCmdStart & compID & typeCusModel & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & CompAttrib & displayTag & compName & "\",Lore:[\"§5Effect: " & starsymbol & " " & ItemEffect & "\"," & FullDesc & BonusFin & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  161.         delay 3
  162.         keystroke FullCMD
  163.     end tell
  164. else if PresetType contains "Magical - Head" then
  165.     tell application "System Events"
  166.         set FauxType to the text returned of (display dialog "Item Type" default answer "Head")
  167.         set ItemID to text returned of (display dialog "Item ID" default answer "MagHead")
  168.         set ItemEffect to the text returned of (display dialog "Particle Effect" default answer "Rainbow Sparkles")
  169.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  170.         set ItemDmg to 3
  171.         set textures to the text returned of (display dialog "SkullOwner" default answer "SkullOwner:{Id:\"61e9f...zVlZjkxYyJ9fX0=\"}]}}")
  172.         set ATB to the text returned of (display dialog "Attributes" default answer "AttributeMo...ost:813675,Slot:\"head\"}]")
  173.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  174.         set compID to ItemID & "] "
  175.         set compName to ccMagical & prefixMagical & starsymbol & " " & ItemName
  176.         if ATB is not empty then
  177.             set CompAttrib to ATB & ","
  178.         else
  179.             set CompAttrib to ""
  180.         end if
  181.         set FullCMD to genericCmdStart & compID & typePlrHead & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & CompAttrib & textures & "," & displayTag & compName & "\",Lore:[\"§5Effect: " & starsymbol & " " & ItemEffect & "\"," & FullDesc & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  182.         delay 3
  183.         keystroke FullCMD
  184.     end tell
  185.     (*else if PresetType contains "Weapon" then
  186.     tell application "System Events"
  187.         set FauxType to the text returned of (display dialog "Item Type" default answer "Weapon")
  188.         set ItemID to text returned of (display dialog "Item ID" default answer "WepWeapon")
  189.         set ItemLevel to the text returned of (display dialog "Item Level" default answer "Level")
  190.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  191.         set ItemDmg to the text returned of (display dialog "Item Model ID or Item Damage" default answer "1")
  192.         set Bonus to the text returned of (display dialog "Hat Bonus" default answer "Wearer Never...")
  193.         set ATB to the text returned of (display dialog "Attributes" default answer "AttributeMo...ost:813675,Slot:\"head\"}]")
  194.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  195.         set compID to ItemID & "] "
  196.         set BonusFin to ",\"§3" & Bonus & "\""
  197.         set compName to ccCosmetic & ItemName
  198.         if ATB is not empty then
  199.             set CompAttrib to ATB & ","
  200.         else
  201.             set CompAttrib to ""
  202.         end if
  203.         set FullCMD to genericCmdStart & compID & typeCusModel & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & CompAttrib & displayTag & compName & "\",Lore:[\"§7Level " & ItemLevel & " " & FauxType & "\"," & FullDesc & BonusFin & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  204.         delay 3
  205.         keystroke FullCMD
  206.     end tell*)
  207. else if PresetType contains "Crate 5:2" then
  208.     tell application "System Events"
  209.         set FauxType to the text returned of (display dialog "Item Type" default answer "Crate")
  210.         set MCID to the text returned of (display dialog "Minecraft ID" default answer "minecraft:")
  211.         set Series to the text returned of (display dialog "Crate Series" default answer "1")
  212.         set ItemID to text returned of (display dialog "Item ID" default answer "Crate1")
  213.         set ItemLevel to the text returned of (display dialog "Item Level" default answer "Level")
  214.         set ItemQty to the text returned of (display dialog "Item Quantity" default answer "Qty")
  215.         set ItemDmg to the text returned of (display dialog "Item Damage" default answer "1")
  216.         set Cosmetic1 to the text returned of (display dialog "Cosmetic Item 1" default answer "")
  217.         set Cosmetic2 to the text returned of (display dialog "Cosmetic Item 2" default answer "")
  218.         set Cosmetic3 to the text returned of (display dialog "Cosmetic Item 3" default answer "")
  219.         set Cosmetic4 to the text returned of (display dialog "Cosmetic Item 4" default answer "")
  220.         set Cosmetic5 to the text returned of (display dialog "Cosmetic Item 5" default answer "")
  221.         set Weapon1 to the text returned of (display dialog "Weapon Item 1" default answer "")
  222.         set Weapon2 to the text returned of (display dialog "Weapon Item 2" default answer "")
  223.         set QtyDmg to " " & ItemQty & " " & ItemDmg & " "
  224.         set compID to ItemID & "] "
  225.         set compName to ccNormal & ItemName
  226.         set Item1 to "\"§e" & Cosmetic1 & "\","
  227.         set Item2 to "\"§e" & Cosmetic2 & "\","
  228.         set Item3 to "\"§e" & Cosmetic3 & "\","
  229.         set Item4 to "\"§e" & Cosmetic4 & "\","
  230.         set Item5 to "\"§e" & Cosmetic5 & "\","
  231.         set Item6 to "\"§c" & Weapon1 & "\","
  232.         set Item7 to "\"§c" & Weapon2 & "\","
  233.         set ItemList to Item1 & Item2 & Item3 & Item4 & Item5 & Item6 & Item7
  234.         set FullCMD to genericCmdStart & compID & MCID & QtyDmg & "{" & CTags & "PID:\"" & ItemID & "\"," & displayTag & compName & "\",Lore:[\"§7Level " & ItemLevel & " " & FauxType & "\"," & "\"§7Crate Series #" & Series & "\",\"\",\"§7This " & FauxType & " may contain:\"" & ItemList & "\"§d...or a rare special item!\"" & "]},RepairCost:9999,HideFlags:63},TrackOutput:0}"
  235.         delay 3
  236.         keystroke FullCMD
  237.     end tell
  238. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement