Advertisement
Guest User

Spigot 2.8 Cheerful Giraffe fixes

a guest
Nov 7th, 2016
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. //
  2. //-- Part 1: Recipe fixes
  3. //
  4.  
  5. //-- Step 1: move recipes to new folder
  6. //-- This step isn't completely necessary because I just found that the working files were still in the root
  7. //-- the spout.recipe file is still invalid in the /mechanics/ directory (my bad there), but the original placed files work fine (They both have updated/corrected code).
  8. //-- I just did it this way because the author of MoreAlarms did (that's how I figured out what to replace the error lines with)
  9.  
  10. - Move /Spigot/recipes/wirestation/spigot.recipe to /Spigot/recipes/wirestation/mechanics/spigot.recipe
  11. - Move /Spigot/recipes/wirestation/spout.recipe to /Spigot/recipes/wirestation/mechanics/spout.recipe
  12.  
  13. //-- Step 2: changes to spigot.recipe
  14.  
  15. - Line 7, change
  16.  
  17. "groups" : [ "wiringstation", "all" ]
  18.  
  19. to
  20.  
  21. "groups" : [ "craftingwiring", "mechanics", "all" ]
  22.  
  23. //-- Step 3: changes to spout.recipe
  24.  
  25. - Line 7, change
  26.  
  27. "groups" : [ "wiringstation", "all" ]
  28.  
  29. to
  30.  
  31. "groups" : [ "craftingwiring", "mechanics", "all" ]
  32.  
  33. //
  34. //-- Part 2: Object fixes
  35. //
  36.  
  37. //-- Step 1: changes to spigot.object
  38.  
  39. - Line 73, change
  40.  
  41. "inboundNodes" : [ [0, 0] ],
  42.  
  43. to
  44.  
  45. "inputNodes" : [ [0, 0] ],
  46.  
  47. //-- Step 2: changes to spout.object
  48.  
  49. - Line 84, change
  50.  
  51. "inboundNodes" : [ [0, 0] ],
  52.  
  53. to
  54.  
  55. "inputNodes" : [ [0, 0] ],
  56.  
  57. //
  58. //-- Part 3: LUA changes
  59. //
  60.  
  61. //-- Step 1: changes to spigot.lua
  62.  
  63. - Line 4, change
  64.  
  65. self.outflowOff = entity.configParameter("outflow")
  66.  
  67. to
  68.  
  69. self.outflowOff = config.getParameter("outflow")
  70.  
  71. - Line 20, change
  72.  
  73. entity.setAnimationState("spigotState", "on")
  74.  
  75. to
  76.  
  77. animator.setAnimationState("spigotState", "on")
  78.  
  79. - Line 22, change
  80.  
  81. entity.setAnimationState("spigotState", "off")
  82.  
  83. to
  84.  
  85. animator.setAnimationState("spigotState", "off")
  86.  
  87. - Line 66, change
  88.  
  89. if entity.getInboundNodeLevel(0) then
  90.  
  91. to
  92.  
  93. if object.getInputNodeLevel(0) then
  94.  
  95. - Line 90, change
  96.  
  97. return entity.toAbsolutePosition(self.outflowOff)
  98.  
  99. to
  100.  
  101. return object.toAbsolutePosition(self.outflowOff)
  102.  
  103. //-- Step 2: changes to spout.lua
  104.  
  105. - Line 4, change
  106.  
  107. self.outflowOff = entity.configParameter("outflow")
  108.  
  109. to
  110.  
  111. self.outflowOff = config.getParameter("outflow")
  112.  
  113. - Line 18, change
  114.  
  115. entity.setAnimationState("spoutState", "on")
  116.  
  117. to
  118.  
  119. animator.setAnimationState("spoutState", "on")
  120.  
  121. - Line 20, change
  122.  
  123. entity.setAnimationState("spoutState", "off")
  124.  
  125. to
  126.  
  127. animator.setAnimationState("spoutState", "off")
  128.  
  129. - Line 51, change
  130.  
  131. if entity.getInboundNodeLevel(0) then
  132.  
  133. to
  134.  
  135. if object.getInputNodeLevel(0) then
  136.  
  137. - Line 73, change
  138.  
  139. return entity.toAbsolutePosition(self.outflowOff)
  140.  
  141. to
  142.  
  143. return object.toAbsolutePosition(self.outflowOff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement