thephoenixlodge

Untitled

Oct 11th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. ////Imports
  2. import crafttweaker.item.IItemStack;
  3.  
  4. //Arrays
  5. //Add a block/item to an array to set its stack size to the stated number
  6. //make sure every item except the last one in each array has a comma
  7. //If wanting to do bigger than 8192, need to increase the limit in stackup.cfg too
  8.  
  9. val stack256 = [
  10. <minecraft:bookshelf>
  11. ] as IItemStack[];
  12.  
  13. val stack512 = [
  14. <minecraft:gold_ore>,
  15. <minecraft:iron_ore>,
  16. <minecraft:coal_ore>,
  17. <minecraft:diamond_ore>,
  18. <minecraft:emerald_ore>,
  19. <minecraft:quartz_ore>,
  20. <minecraft:redstone_ore>,
  21. <minecraft:lapis_ore>,
  22. <minecraft:lapis_block>,
  23. <minecraft:gold_block>,
  24. <minecraft:iron_block>,
  25. <minecraft:pumpkin>,
  26. <minecraft:lit_pumpkin>,
  27. <minecraft:melon_block>
  28. ] as IItemStack[];
  29.  
  30. val stack1024 = [
  31. <minecraft:grass>,
  32. <minecraft:dirt:2>,
  33. <minecraft:log:*>,
  34. <minecraft:log2:*>,
  35. <minecraft:wool:*>,
  36. <minecraft:ice>,
  37. <minecraft:mycelium>
  38. ] as IItemStack[];
  39.  
  40. val stack2048 = [
  41. <minecraft:glass>,
  42. <minecraft:stained_glass>,
  43. <minecraft:brick_block>,
  44. <minecraft:clay>,
  45. <minecraft:snow>,
  46. <minecraft:glowstone>
  47. ] as IItemStack[];
  48.  
  49. val stack4096 = [
  50. <minecraft:stone:4>,
  51. <minecraft:stone:2>,
  52. <minecraft:stone:6>,
  53. <minecraft:planks:*>,
  54. <minecraft:sandstone:*>,
  55. <minecraft:stone_slab:*>,
  56. <minecraft:oak_stairs>,
  57. <minecraft:stone_stairs>,
  58. <minecraft:stonebrick:*>,
  59. <minecraft:brick_stairs>,
  60. <minecraft:stone_brick_stairs>,
  61. <minecraft:nether_brick>,
  62. <minecraft:nether_brick_stairs>,
  63. <minecraft:wooden_slab:*>
  64. ] as IItemStack[];
  65.  
  66. val stack8192 = [
  67. <minecraft:stone>,
  68. <minecraft:stone:1>,
  69. <minecraft:stone:3>,
  70. <minecraft:stone:5>,
  71. <minecraft:dirt>,
  72. <minecraft:cobblestone>,
  73. <minecraft:sand:*>,
  74. <minecraft:gravel>,
  75. <minecraft:mossy_cobblestone>,
  76. <minecraft:netherrack>,
  77. <minecraft:soul_sand>,
  78. <minecraft:end_stone>
  79. ] as IItemStack[];
  80.  
  81.  
  82.  
  83.  
  84. //The magic, don't touch this
  85. for i in stack256 {
  86. i.maxStackSize = 256;
  87. }
  88.  
  89. for j in stack512 {
  90. j.maxStackSize = 512;
  91. }
  92.  
  93. for k in stack1024 {
  94. k.maxStackSize = 1024;
  95. }
  96.  
  97. for l in stack2048 {
  98. l.maxStackSize = 2048;
  99. }
  100.  
  101. for m in stack4096 {
  102. m.maxStackSize = 4096;
  103. }
  104.  
  105. for n in stack8192 {
  106. n.maxStackSize = 8192;
  107. }
Advertisement
Add Comment
Please, Sign In to add comment