Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.04 KB | None | 0 0
  1. import crafttweaker.item.IIngredient;
  2. import crafttweaker.item.IItemStack;
  3. import crafttweaker.oredict.IOreDict;
  4. import crafttweaker.oredict.IOreDictEntry;
  5.  
  6. #packmode normal simplified
  7. #modloaded akashictome
  8.  
  9.  
  10. print(" =================== Akashic Tome =================== ");
  11. print(" ==================================================== ");
  12. /*
  13. Script just for the "all books included" tome to make it easier
  14. to see/find/edit/organize things related to just this tome
  15. */
  16.  
  17.  
  18. //====== Ahashic Tome ======
  19. //
  20. var completeTome = <akashictome:tome>.withTag(
  21.  
  22. {
  23. "akashictome:is_morphing": 1 as byte,
  24. "akashictome:data": {
  25. tconstruct: {
  26. id: "tconstruct:book",
  27. Count: 1 as byte,
  28. tag: {
  29. "akashictome:definedMod": "tconstruct"
  30. },
  31. Damage: 0 as short
  32. },
  33. industrialforegoing: {
  34. id: "industrialforegoing:book_manual",
  35. Count: 1 as byte,
  36. tag: {
  37. "akashictome:definedMod": "industrialforegoing"
  38. },
  39. Damage: 0 as short
  40. },
  41. astralsorcery: {
  42. id: "astralsorcery:itemjournal",
  43. Count: 1 as byte,
  44. tag: {
  45. "akashictome:definedMod": "astralsorcery"
  46. },
  47. Damage: 0 as short
  48. },
  49. immersiveengineering: {
  50. id: "immersiveengineering:tool",
  51. Count: 1 as byte,
  52. tag: {
  53. "akashictome:definedMod": "immersiveengineering"
  54. },
  55. Damage: 3 as short
  56. },
  57. rftools: {
  58. id: "rftools:rftools_manual",
  59. Count: 1 as byte,
  60. tag: {
  61. "akashictome:definedMod": "rftools"
  62. },
  63. Damage: 0 as short
  64. },
  65. rustic: {
  66. id: "rustic:book",
  67. Count: 1 as byte,
  68. tag: {
  69. "akashictome:definedMod": "rustic"
  70. },
  71. Damage: 0 as short
  72. },
  73. cyclicmagic: {
  74. id: "guideapi:cyclicmagic-guide",
  75. Count: 1 as byte,
  76. tag: {
  77. "akashictome:definedMod": "cyclicmagic"
  78. },
  79. Damage: 0 as short
  80. },
  81. botania: {
  82. id: "botania:lexicon",
  83. Count: 1 as byte,
  84. tag: {
  85. "akashictome:definedMod": "botania"
  86. },
  87. Damage: 0 as short
  88. },
  89. draconicevolution: {
  90. id: "draconicevolution:info_tablet",
  91. Count: 1 as byte,
  92. tag: {
  93. "akashictome:definedMod": "draconicevolution"
  94. },
  95. Damage: 0 as short
  96. },
  97. extrautils2: {
  98. id: "extrautils2:book",
  99. Count: 1 as byte,
  100. tag: {
  101. "akashictome:definedMod": "extrautils2"
  102. },
  103. Damage: 0 as short
  104. },
  105. thermalfoundation: {
  106. id: "thermalfoundation:tome_lexicon",
  107. Count: 1 as byte,
  108. tag: {
  109. "akashictome:definedMod": "thermalfoundation"
  110. },
  111. Damage: 0 as short
  112. },
  113. bloodmagic: {
  114. id: "guideapi:bloodmagic-guide",
  115. Count: 1 as byte,
  116. tag: {
  117. "akashictome:definedMod": "bloodmagic"
  118. },
  119. Damage: 0 as short
  120. },
  121. actuallyadditions: {
  122. id: "actuallyadditions:item_booklet",
  123. Count: 1 as byte,
  124. tag: {
  125. "akashictome:definedMod": "actuallyadditions"
  126. },
  127. Damage: 0 as short
  128. },
  129. opencomputers: {
  130. id: "opencomputers:tool",
  131. Count: 1 as byte,
  132. tag: {
  133. "akashictome:definedMod": "opencomputers"
  134. },
  135. Damage: 4 as short
  136. },
  137. cookingforblockheads: {
  138. id: "cookingforblockheads:recipe_book",
  139. Count: 1 as byte,
  140. tag: {
  141. "akashictome:definedMod": "cookingforblockheads"
  142. },
  143. Damage: 1 as short
  144. },
  145. xnet: {
  146. id: "xnet:xnet_manual",
  147. Count: 1 as byte,
  148. tag: {
  149. "akashictome:definedMod": "xnet"
  150. },
  151. Damage: 0 as short
  152. },
  153. rftoolscontrol: {
  154. id: "rftoolscontrol:rftoolscontrol_manual",
  155. Count: 1 as byte,
  156. tag: {
  157. "akashictome:definedMod": "rftoolscontrol"
  158. },
  159. Damage: 0 as short
  160. },
  161. integratedtunnels: {
  162. id: "integrateddynamics:on_the_dynamics_of_integration",
  163. Count: 1 as byte,
  164. tag: {
  165. "akashictome:definedMod": "integratedtunnels"
  166. },
  167. Damage: 0 as short
  168. },
  169. wizardry: {
  170. id: "wizardry:book",
  171. Count: 1 as byte,
  172. tag: {
  173. "akashictome:definedMod": "wizardry"
  174. },
  175. Damage: 0 as short
  176. },
  177. rftoolsdim: {
  178. id: "rftoolsdim:rftoolsdim_manual",
  179. Count: 1 as byte,
  180. tag: {
  181. "akashictome:definedMod": "rftoolsdim"
  182. },
  183. Damage: 0 as short
  184. },
  185. embers: {
  186. id: "embers:codex",
  187. Count: 1 as byte,
  188. tag: {
  189. "akashictome:definedMod": "embers"
  190. },
  191. Damage: 0 as short
  192. },
  193. rftools1: {
  194. id: "rftools:rftools_shape_manual",
  195. Count: 1 as byte,
  196. tag: {
  197. "akashictome:definedMod": "rftools1"
  198. },
  199. Damage: 0 as short
  200. },
  201. mobtotems: {
  202. id: "guideapi:mobtotems-mobtotems_guide",
  203. Count: 1 as byte,
  204. tag: {
  205. "akashictome:definedMod": "mobtotems"
  206. },
  207. Damage: 0 as short
  208. },
  209. woot: {
  210. id: "guideapi:woot-guide",
  211. Count: 1 as byte,
  212. tag: {
  213. "akashictome:definedMod": "woot"
  214. },
  215. Damage: 0 as short
  216. },
  217. forestry: {
  218. id: "forestry:book_forester",
  219. Count: 1 as byte,
  220. tag: {
  221. "akashictome:definedMod": "forestry"
  222. },
  223. Damage: 0 as short
  224. },
  225. openblocks: {
  226. id: "openblocks:info_book",
  227. Count: 1 as byte,
  228. tag: {
  229. "akashictome:definedMod": "openblocks"
  230. },
  231. Damage: 0 as short
  232. },
  233. ebwizardry: {
  234. id: "ebwizardry:wizard_handbook",
  235. Count: 1 as byte,
  236. tag: {
  237. "akashictome:definedMod": "ebwizardry"
  238. },
  239. Damage: 0 as short
  240. },
  241. conarm: {
  242. id: "conarm:book",
  243. Count: 1 as byte,
  244. tag: {
  245. "akashictome:definedMod": "conarm"
  246. },
  247. Damage: 0 as short
  248. },
  249. thebetweenlands: {
  250. id: "thebetweenlands:manual_hl",
  251. Count: 1 as byte,
  252. tag: {
  253. "akashictome:definedMod": "thebetweenlands"
  254. },
  255. Damage: 0 as short
  256. },
  257. guideapi: {
  258. id: "guideapi:inventorygenerators-guide_book",
  259. Count: 1 as byte,
  260. tag: {
  261. "akashictome:definedMod": "guideapi"
  262. },
  263. Damage: 0 as short
  264. },
  265. envtech: {
  266. id: "valkyrielib:guide",
  267. Count: 1 as byte,
  268. tag: {
  269. "akashictome:definedMod": "envtech"
  270. },
  271. Damage: 0 as short
  272. },
  273. deepresonance: {
  274. id: "deepresonance:dr_manual",
  275. Count: 1 as byte,
  276. tag: {
  277. "akashictome:definedMod": "deepresonance"
  278. },
  279. Damage: 0 as short
  280. },
  281. roots: {
  282. id: "patchouli:guide_book",
  283. Count: 1 as byte,
  284. tag: {
  285. "patchouli:book": "roots:roots_guide"
  286. },
  287. Damage: 0 as short
  288. },
  289. pneumaticcraft: {
  290. id: "patchouli:guide_book",
  291. Count: 1 as byte,
  292. tag: {
  293. "patchouli:book": "pneumaticcraft:book"
  294. },
  295. Damage: 0 as short
  296. },
  297. modcurrency: {
  298. id: "modcurrency:guidebook",
  299. Count: 1 as byte,
  300. tag: {
  301. "akashictome:definedMod": "modcurrency"
  302. },
  303. Damage: 0 as short
  304. },
  305. a_allthemods: {
  306. id: "patchouli:guide_book",
  307. Count: 1 as byte,
  308. tag: {
  309. "patchouli:book": "patchouli:atm"
  310. },
  311. Damage: 0 as short
  312. }
  313. }
  314. }
  315. );
  316.  
  317. //metadata to item
  318. completeTome.addTooltip(format.aqua("Contains all basic mod manuals/guides already included"));
  319. mods.jei.JEI.addDescription(completeTome, "The Akashic tome is a book for your books...",
  320. "This recipe of 1 dirt = full book is added by All The Mods to ALREADY contain most/all modded manuals as a convenience for our players");
  321.  
  322. //add the full book to JEI as it's own entry
  323. mods.jei.JEI.addItem(completeTome);
  324.  
  325. //1 dirt = book
  326. recipes.addShapeless(completeTome, [<minecraft:dirt>]);
  327.  
  328. // Starting item
  329. mods.initialinventory.InvHandler.addStartingItem(completeTome);
  330.  
  331.  
  332. //====== Tooltip for added books ======
  333. //
  334. var addedBooks = [
  335. <tconstruct:book>,
  336. <industrialforegoing:book_manual>,
  337. <astralsorcery:itemjournal>,
  338. <immersiveengineering:tool:3>,
  339. <rftools:rftools_manual>,
  340. <rustic:book>,
  341. <guideapi:cyclicmagic-guide>,
  342. <botania:lexicon>,
  343. <draconicevolution:info_tablet>,
  344. <extrautils2:book>,
  345. <thermalfoundation:tome_lexicon>,
  346. <guideapi:bloodmagic-guide>,
  347. <actuallyadditions:item_booklet>,
  348. <opencomputers:tool:4>,
  349. <cookingforblockheads:recipe_book:1>,
  350. <xnet:xnet_manual>,
  351. <rftoolscontrol:rftoolscontrol_manual>,
  352. <integrateddynamics:on_the_dynamics_of_integration>,
  353. <wizardry:book>,
  354. <rftoolsdim:rftoolsdim_manual>,
  355. <embers:codex>,
  356. <rftools:rftools_shape_manual>,
  357. <guideapi:mobtotems-mobtotems_guide>,
  358. <openblocks:info_book>,
  359. <forestry:book_forester>,
  360. <guideapi:woot-guide>,
  361. <ebwizardry:wizard_handbook>,
  362. //<practicallogistics2:plguide>,
  363. <conarm:book>,
  364. <thebetweenlands:manual_hl>,
  365. <guideapi:inventorygenerators-guide_book>,
  366. <valkyrielib:guide>,
  367. <deepresonance:dr_manual>,
  368. <patchouli:guide_book>.withTag({"patchouli:book": "roots:roots_guide"}),
  369. <patchouli:guide_book>.withTag({"patchouli:book": "pneumaticcraft:book"}),
  370. <modcurrency:guidebook>,
  371. <patchouli:guide_book>.withTag({"patchouli:book": "patchouli:atm"})
  372. ] as IItemStack[];
  373.  
  374. for itemBook in addedBooks {
  375. itemBook.addTooltip(format.aqua("Included within the \"default\" Akashic Tome"));
  376. }
  377.  
  378. //====== DE/Enderio Tooltip ======
  379. //
  380.  
  381. <draconicevolution:info_tablet>.addTooltip(format.aqua("Includes knowledge of Enderio"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement