Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pushIngredient (ingredientName)
- for i,v in ipairs(chest.list()) do
- print("Index=",i," Value=",v)
- if v.name==ingredientName then
- basin.pullItems("bottom",i,1)
- return
- end
- end
- print("Try restocking, couldn't find ",ingredientName,"!")
- end
- function pullPotion ()
- end
- function makePotion (potionName, extension, type)
- if potionName=="fire resistance" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:magma_cream")
- sleep(mixerSpeed)
- end
- if potionName=="speed" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:sugar")
- sleep(mixerSpeed)
- end
- if potionName=="strength" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:blaze_powder")
- sleep(mixerSpeed)
- end
- if potionName=="regeneration" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:ghast_tear")
- sleep(mixerSpeed)
- end
- if potionName=="healing" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:glistering_melon_slice")
- sleep(mixerSpeed)
- end
- if potionName=="night vision" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:golden_carrot")
- sleep(mixerSpeed)
- end
- if potionName=="jump boost" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:rabbit_foot")
- sleep(mixerSpeed)
- end
- if potionName=="water breathing" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:pufferfish")
- sleep(mixerSpeed)
- end
- if potionName=="turtle master" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:turtle_shell")
- sleep(mixerSpeed)
- end
- if potionName=="slow falling" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:phantom_membrane")
- sleep(mixerSpeed)
- end
- if potionName=="poison" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:spider_eye")
- sleep(mixerSpeed)
- end
- if potionName=="slowness" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:sugar")
- sleep(mixerSpeed)
- pushIngredient("minecraft:fermented_spider_eye")
- sleep(mixerSpeed)
- end
- if potionName=="harming" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:spider_eye")
- sleep(mixerSpeed)
- pushIngredient("minecraft:fermented_spider_eye")
- sleep(mixerSpeed)
- end
- if potionName=="invisibility" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- pushIngredient("minecraft:golden_carrot")
- sleep(mixerSpeed)
- pushIngredient("minecraft:fermented_spider_eye")
- sleep(mixerSpeed)
- end
- if potionName=="weakness" then
- pushIngredient("minecraft:fermented_spider_eye")
- sleep(mixerSpeed)
- end
- if potionName=="akward" then
- pushIngredient("minecraft:nether_wart")
- sleep(mixerSpeed)
- end
- if potionName=="mundane" then
- pushIngredient("minecraft:sugar")
- sleep(mixerSpeed)
- end
- if potionName=="thick" then
- pushIngredient("minecraft:glow_stone")
- sleep(mixerSpeed)
- end
- if extension=="+" then
- pushIngredient("minecraft:redstone_dust")
- sleep(mixerSpeed)
- end
- if extension=="2" then
- pushIngredient("minecraft:glowstone_dust")
- sleep(mixerSpeed)
- end
- if type=="splash" then
- pushIngredient("minecraft:gunpowder")
- sleep(mixerSpeed)
- end
- if type=="lingering" then
- pushIngredient("minecraft:dragon_breath")
- sleep(mixerSpeed)
- end
- print("finished brewing! Pulling it into spout now..")
- end
- chest=peripheral.wrap("bottom")
- basin=peripheral.wrap("front")
- mixerSpeed=3
- while true do
- redstone.setOutput("left", true)
- redstone.setOutput("right", true)
- 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.")
- makePotion(read(), read(), read())
- redstone.setOutput("right", false)
- sleep(1.5)
- redstone.setOutput("right", true)
- redstone.setOutput("left", false)
- sleep(1.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement