Advertisement
ozozx235

AltUtil.lua

Dec 5th, 2022 (edited)
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.16 KB | Gaming | 0 0
  1. os.loadAPI("./TUtil.lua")
  2. function recList ()
  3.     return {
  4.         {ingredient={name="minecraft:stone",count=1},blood=1000,product={name="bloodmagic:blankslate",count=1}},
  5.         {ingredient={name="bloodmagic:blankslate",count=1},blood=2000,product={name="bloodmagic:reinforcedslate",count=1}},
  6.         {ingredient={name="bloodmagic:reinforcedslate",count=1},blood=5000,product={name="bloodmagic:infusedslate",count=1}},
  7.         {ingredient={name="bloodmagic:infusedslate",count=1},blood=15000,product={name="bloodmagic:demonslate",count=1}},
  8.         {ingredient={name="bloodmagic:demonslate",count=1},blood=30000,product={name="bloodmagic:etherealslate",count=1}},
  9.         {ingredient={name="minecraft:diamond",count=1},blood=2000,product={name="bloodmagic:weakbloodorb",count=1}},
  10.         {ingredient={name="minecraft:redstone_block",count=1},blood=5000,product={name="bloodmagic:apprenticebloodorb",count=1}},
  11.         {ingredient={name="minecraft:gold_block",count=1},blood=25000,product={name="bloodmagic:magicianbloodorb",count=1}},
  12.         {ingredient={name="minecraft:weakbloodshard",count=1},blood=40000,product={name="bloodmagic:masterbloodorb",count=1}},
  13.         {ingredient={name="minecraft:dungeon_metal",count=1},blood=80000,product={name="bloodmagic:archmagebloodorb",count=1}},
  14.         {ingredient={name="minecraft:bucket",count=1},blood=1000,product={name="bloodmagic:life_essence_bucket",count=1}},
  15.         {ingredient={name="minecraft:string",count=1},blood=500,product={name="bloodmagic:soulsnare",count=1}},
  16.         {ingredient={name="minecraft:ender_pearl",count=1},blood=2000,product={name="bloodmagic:teleposerfocus",count=1}},
  17.         {ingredient={name="bloodmagic:teleposerfocus",count=1},blood=10000,product={name="bloodmagic:enhancedteleposerfocus",count=1}},
  18.         {ingredient={name="minecraft:lapis_block",count=1},blood=1000,product={name="bloodmagic:waterscribetool",count=1}},
  19.         {ingredient={name="minecraft:magma_cream",count=1},blood=1000,product={name="bloodmagic:firescribetool",count=1}},
  20.         {ingredient={name="minecraft:ghast_tear",count=1},blood=1000,product={name="bloodmagic:airscribetool",count=1}},
  21.         {ingredient={name="minecraft:obsidian",count=1},blood=1000,product={name="bloodmagic:earthscribetool",count=1}},
  22.         {ingredient={name="minecraft:coal_block",count=1},blood=2000,product={name="bloodmagic:duskscribetool",count=1}},
  23.         {ingredient={name="minecraft:iron_sword",count=1},blood=3000,product={name="bloodmagic:daggerofsacrifice",count=1}},
  24.         {ingredient={name="minecraft:glass_bottle",count=1},blood=4000,product={name="bloodmagic:alchemy_flask",count=1}},
  25.         {ingredient={name="bloodmagic:lavacrystal",count=1},blood=10000,product={name="bloodmagic:activationcrystalweak",count=1}},
  26.         {ingredient={name="bloodmagic:rawdemoniteblock",count=1},blood=10000,product={name="bloodmagic:bleedingedge",count=1}},
  27.     }
  28. end
  29. function getBlood(alt)
  30.     return alt.tanks()[1].amount
  31. end
  32. function recItr()
  33.     return TUtil.mkItr(recList())
  34. end
  35. function findRec(item)
  36.     for rec in recItr() do
  37.         if item.name == rec.ingredient.name then
  38.             return rec
  39.         end
  40.     end
  41.     return false
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement