Advertisement
SolarFlare123

Create CC Potion

Jun 20th, 2025 (edited)
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.04 KB | None | 0 0
  1. function pushIngredient (ingredientName)
  2.     for i,v in ipairs(chest.list()) do
  3.         print("Index=",i," Value=",v)
  4.         if v.name==ingredientName then
  5.             basin.pullItems("bottom",i,1)
  6.             return
  7.         end
  8.     end
  9.     print("Try restocking, couldn't find ",ingredientName,"!")
  10. end
  11.  
  12. function pullPotion ()
  13.  
  14. end
  15.  
  16. function makePotion (potionName, extension, type)
  17.     if potionName=="fire resistance" then
  18.         pushIngredient("minecraft:nether_wart")
  19.         sleep(mixerSpeed)
  20.         pushIngredient("minecraft:magma_cream")
  21.         sleep(mixerSpeed)
  22.     end
  23.     if potionName=="speed" then
  24.         pushIngredient("minecraft:nether_wart")
  25.         sleep(mixerSpeed)
  26.         pushIngredient("minecraft:sugar")
  27.         sleep(mixerSpeed)
  28.     end
  29.     if potionName=="strength" then
  30.         pushIngredient("minecraft:nether_wart")
  31.         sleep(mixerSpeed)
  32.         pushIngredient("minecraft:blaze_powder")
  33.         sleep(mixerSpeed)
  34.     end
  35.     if potionName=="regeneration" then
  36.         pushIngredient("minecraft:nether_wart")
  37.         sleep(mixerSpeed)
  38.         pushIngredient("minecraft:ghast_tear")
  39.         sleep(mixerSpeed)
  40.     end
  41.     if potionName=="healing" then
  42.         pushIngredient("minecraft:nether_wart")
  43.         sleep(mixerSpeed)
  44.         pushIngredient("minecraft:glistering_melon_slice")
  45.         sleep(mixerSpeed)
  46.     end
  47.     if potionName=="night vision" then
  48.         pushIngredient("minecraft:nether_wart")
  49.         sleep(mixerSpeed)
  50.         pushIngredient("minecraft:golden_carrot")
  51.         sleep(mixerSpeed)
  52.     end
  53.     if potionName=="jump boost" then
  54.         pushIngredient("minecraft:nether_wart")
  55.         sleep(mixerSpeed)
  56.         pushIngredient("minecraft:rabbit_foot")
  57.         sleep(mixerSpeed)
  58.     end
  59.     if potionName=="water breathing" then
  60.         pushIngredient("minecraft:nether_wart")
  61.         sleep(mixerSpeed)
  62.         pushIngredient("minecraft:pufferfish")
  63.         sleep(mixerSpeed)
  64.     end
  65.     if potionName=="turtle master" then
  66.         pushIngredient("minecraft:nether_wart")
  67.         sleep(mixerSpeed)
  68.         pushIngredient("minecraft:turtle_shell")
  69.         sleep(mixerSpeed)
  70.     end
  71.     if potionName=="slow falling" then
  72.         pushIngredient("minecraft:nether_wart")
  73.         sleep(mixerSpeed)
  74.         pushIngredient("minecraft:phantom_membrane")
  75.         sleep(mixerSpeed)
  76.     end
  77.     if potionName=="poison" then
  78.         pushIngredient("minecraft:nether_wart")
  79.         sleep(mixerSpeed)
  80.         pushIngredient("minecraft:spider_eye")
  81.         sleep(mixerSpeed)
  82.     end
  83.     if potionName=="slowness" then
  84.         pushIngredient("minecraft:nether_wart")
  85.         sleep(mixerSpeed)
  86.         pushIngredient("minecraft:sugar")
  87.         sleep(mixerSpeed)
  88.         pushIngredient("minecraft:fermented_spider_eye")
  89.         sleep(mixerSpeed)
  90.     end
  91.     if potionName=="harming" then
  92.         pushIngredient("minecraft:nether_wart")
  93.         sleep(mixerSpeed)
  94.         pushIngredient("minecraft:spider_eye")
  95.         sleep(mixerSpeed)
  96.         pushIngredient("minecraft:fermented_spider_eye")
  97.         sleep(mixerSpeed)
  98.     end
  99.     if potionName=="invisibility" then
  100.         pushIngredient("minecraft:nether_wart")
  101.         sleep(mixerSpeed)
  102.         pushIngredient("minecraft:golden_carrot")
  103.         sleep(mixerSpeed)
  104.         pushIngredient("minecraft:fermented_spider_eye")
  105.         sleep(mixerSpeed)
  106.     end
  107.     if potionName=="weakness" then
  108.         pushIngredient("minecraft:fermented_spider_eye")
  109.         sleep(mixerSpeed)
  110.     end
  111.     if potionName=="akward" then
  112.         pushIngredient("minecraft:nether_wart")
  113.         sleep(mixerSpeed)
  114.     end
  115.     if potionName=="mundane" then
  116.         pushIngredient("minecraft:sugar")
  117.         sleep(mixerSpeed)
  118.     end
  119.     if potionName=="thick" then
  120.         pushIngredient("minecraft:glow_stone")
  121.         sleep(mixerSpeed)
  122.     end
  123.     if extension=="+" then
  124.         pushIngredient("minecraft:redstone_dust")
  125.         sleep(mixerSpeed)
  126.     end
  127.     if extension=="2" then
  128.         pushIngredient("minecraft:glowstone_dust")
  129.         sleep(mixerSpeed)
  130.     end
  131.     if type=="splash" then
  132.         pushIngredient("minecraft:gunpowder")
  133.         sleep(mixerSpeed)
  134.     end
  135.     if type=="lingering" then
  136.         pushIngredient("minecraft:dragon_breath")
  137.         sleep(mixerSpeed)
  138.     end
  139.     print("finished brewing! Pulling it into spout now..")
  140. end
  141.  
  142. chest=peripheral.wrap("bottom")
  143. basin=peripheral.wrap("front")
  144. mixerSpeed=3
  145.  
  146. while true do
  147.     redstone.setOutput("left", true)
  148.     redstone.setOutput("right", true)
  149.     print("the first read is type of potion. Write the name of the effect, or mundane, thick, or akward. Put anything else for it to stay as water. The second one is extension, type +, 2, or anything else if you dont want any extension. The third is the type. Put splash, lingering, or anything else for no special type. No capital letters.")
  150.     makePotion(read(), read(), read())
  151.     redstone.setOutput("right", false)
  152.     sleep(1.5)
  153.     redstone.setOutput("right", true)
  154.     redstone.setOutput("left", false)
  155.     sleep(1.5)
  156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement