Advertisement
Guest User

s

a guest
Jul 2nd, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.89 KB | None | 0 0
  1. -- Sapphire mod created by Detective_Smith
  2. -- Feel free to change this completley to your
  3. -- likings, as this serves as a template mod.
  4. -- You do not have to credit me.
  5.  
  6. -- Drop this in your (MiniatureCraft Directory)/MiniMods folder to use it.
  7.  
  8. local moddedAssets = {
  9.     [30] = {name = "Sapphire Ore", health = 25, drop = 230, type = "rock", bgT = colors.lightGray, fgT = colors.blue, fgS = "+"},
  10.     [31] = {name = "Sapphire Block", health = 35, drop = 230, type = "rock", bgT = colors.blue, fgT = colors.white, fgS = "L"},
  11.     [260] = {name = "Sapphire", type = "item", Tex = colors.blue, Sym = "@"},
  12.     [125] = {name = "Sapph. Sword", durability = 768, damage = 4.5, type = "sword", Tex = colors.blue, Sym = "/"},
  13.   [126] = {name = "Sapph. Pickaxe", durability = 768, damage = 4.5, type = "pickaxe", Tex = colors.blue, Sym = "T"},
  14.   [127] = {name = "Sapph. Axe", durability = 768, damage = 4.5, type = "axe", Tex = colors.blue, Sym = "P"},
  15.   [128] = {name = "Sapph. Shovel", durability = 768, damage = 4.5, type = "shovel", Tex = colors.blue, Sym = "!"},
  16.   [129] = {name = "Sapph. Hoe", durability = 768, damage = 4.5, type = "hoe", Tex = colors.blue, Sym = "j"},
  17.   [320] = {name = "Sapph. Helmet", durability = 768, protection = 4.5, type = "helmet", Tex = colors.blue, Sym = "Q"},
  18.     [321] = {name = "Sapph. Chestplate", durability = 768, protection = 4.5, type = "chestplate", Tex = colors.blue, Sym = "&"},
  19.     [322] = {name = "Sapph. Leggings", durability = 768, protection = 4.5, type = "leggings", Tex = colors.blue, Sym = "H"},
  20.     [323] = {name = "Sapph. Boots", durability = 768, protection = 4.5, type = "boots", Tex = colors.blue, Sym = "V"}
  21. }
  22.  
  23. function genSapphire(map,mx,mx2)
  24.     local Assets = LoadAPI.getAssets()
  25.     for i = mx, mx2 do
  26.     for j = mx, mx2 do
  27.         if map[-1][2][i][j] == Assets[1] then
  28.         map[-1][2][i][j] = Assets[LevelAPI.basicGeneration(1,30,99,100)]
  29.       end
  30.     end
  31.   end
  32.   return map
  33. end
  34.  
  35. function setRecipes()
  36.   CraftingAPI.setRecipe(19, 125, 1, {200, 2, 260, 1}) -- Sapphire Sword
  37.   CraftingAPI.setRecipe(19, 126, 1, {200, 3, 260, 2}) -- Sapphire Pickaxe
  38.   CraftingAPI.setRecipe(19, 127, 1, {200, 3, 260, 2}) -- Sapphire Axe
  39.   CraftingAPI.setRecipe(19, 128, 1, {200, 1, 260, 2}) -- Sapphire Shovel
  40.   CraftingAPI.setRecipe(19, 129, 1, {200, 2, 260, 2}) -- Sapphire Hoe
  41.  
  42.   CraftingAPI.setRecipe(19, 320, 1, {260, 5}) -- Sapphire Helmet
  43.   CraftingAPI.setRecipe(19, 321, 1, {260, 8}) -- Sapphire Chestplate
  44.   CraftingAPI.setRecipe(19, 322, 1, {260, 7}) -- Sapphire Leggings
  45.   CraftingAPI.setRecipe(19, 323, 1, {260, 4}) -- Sapphire Boots
  46. end
  47.  
  48. LoadAPI.addMod("SapphireBlocksAndItems", "asset", moddedAssets, "Sets the data for sapphire stuff.")
  49. LoadAPI.addMod("SapphireGen", "generation", genSapphire, "Brings sapphires into the world!")
  50. LoadAPI.addMod("SapphireRecipes", "load", setRecipes, "Adds in recipes to create sapphire stuff.") -- Will re-enable when scrolling is fixed for menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement