MinoCraft72

Power Monitor [RFTools Control]

Apr 1st, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. [
  2. {
  3. "pos": {
  4. "x": 1,
  5. "y": 1
  6. },
  7. "opcode": {
  8. "id": "eval_getrf",
  9. "primary": "D",
  10. "parameters": [
  11. {
  12. "type": "inventory",
  13. "value": {
  14. "side": "up"
  15. }
  16. }
  17. ]
  18. }
  19. },
  20. {
  21. "pos": {
  22. "x": 2,
  23. "y": 2
  24. },
  25. "opcode": {
  26. "id": "eval_getmaxrf",
  27. "primary": "U",
  28. "parameters": [
  29. {
  30. "type": "inventory",
  31. "value": {
  32. "side": "up"
  33. }
  34. }
  35. ]
  36. }
  37. },
  38. {
  39. "pos": {
  40. "x": 0,
  41. "y": 1
  42. },
  43. "opcode": {
  44. "id": "ev_timer",
  45. "primary": "R",
  46. "parameters": [
  47. {
  48. "type": "integer",
  49. "value": {
  50. "v": 40
  51. }
  52. },
  53. {
  54. "type": "boolean",
  55. "value": {
  56. "null": true
  57. }
  58. }
  59. ]
  60. }
  61. },
  62. {
  63. "pos": {
  64. "x": 1,
  65. "y": 2
  66. },
  67. "opcode": {
  68. "id": "do_setvar",
  69. "primary": "R",
  70. "parameters": [
  71. {
  72. "type": "integer",
  73. "value": {
  74. "v": 0
  75. }
  76. }
  77. ]
  78. }
  79. },
  80. {
  81. "pos": {
  82. "x": 7,
  83. "y": 1
  84. },
  85. "opcode": {
  86. "id": "test_gt_number",
  87. "primary": "D",
  88. "secondary": "d",
  89. "parameters": [
  90. {
  91. "type": "number",
  92. "value": {
  93. "var": 0
  94. }
  95. },
  96. {
  97. "type": "number",
  98. "value": {
  99. "var": 2
  100. }
  101. }
  102. ]
  103. }
  104. },
  105. {
  106. "pos": {
  107. "x": 5,
  108. "y": 0
  109. },
  110. "opcode": {
  111. "id": "do_log",
  112. "primary": "D",
  113. "parameters": [
  114. {
  115. "type": "string",
  116. "value": {
  117. "var": 3
  118. }
  119. }
  120. ]
  121. }
  122. },
  123. {
  124. "pos": {
  125. "x": 6,
  126. "y": 1
  127. },
  128. "opcode": {
  129. "id": "test_gt_number",
  130. "primary": "R",
  131. "secondary": "d",
  132. "parameters": [
  133. {
  134. "type": "number",
  135. "value": {
  136. "var": 0
  137. }
  138. },
  139. {
  140. "type": "number",
  141. "value": {
  142. "var": 3
  143. }
  144. }
  145. ]
  146. }
  147. },
  148. {
  149. "pos": {
  150. "x": 7,
  151. "y": 2
  152. },
  153. "opcode": {
  154. "id": "do_log",
  155. "primary": "D",
  156. "parameters": [
  157. {
  158. "type": "string",
  159. "value": {
  160. "v": "bat full"
  161. }
  162. }
  163. ]
  164. }
  165. },
  166. {
  167. "pos": {
  168. "x": 4,
  169. "y": 0
  170. },
  171. "opcode": {
  172. "id": "do_setvar",
  173. "primary": "R",
  174. "parameters": [
  175. {
  176. "type": "integer",
  177. "value": {
  178. "v": 3
  179. }
  180. }
  181. ]
  182. }
  183. },
  184. {
  185. "pos": {
  186. "x": 5,
  187. "y": 1
  188. },
  189. "opcode": {
  190. "id": "do_log",
  191. "primary": "R",
  192. "parameters": [
  193. {
  194. "type": "string",
  195. "value": {
  196. "var": 0
  197. }
  198. }
  199. ]
  200. }
  201. },
  202. {
  203. "pos": {
  204. "x": 6,
  205. "y": 2
  206. },
  207. "opcode": {
  208. "id": "do_log",
  209. "primary": "D",
  210. "parameters": [
  211. {
  212. "type": "string",
  213. "value": {
  214. "v": "need energy"
  215. }
  216. }
  217. ]
  218. }
  219. },
  220. {
  221. "pos": {
  222. "x": 7,
  223. "y": 3
  224. },
  225. "opcode": {
  226. "id": "do_rs",
  227. "parameters": [
  228. {
  229. "type": "side",
  230. "value": {
  231. "side": "south"
  232. }
  233. },
  234. {
  235. "type": "integer",
  236. "value": {
  237. "v": 0
  238. }
  239. }
  240. ]
  241. }
  242. },
  243. {
  244. "pos": {
  245. "x": 3,
  246. "y": 0
  247. },
  248. "opcode": {
  249. "id": "do_subtract_numbers",
  250. "primary": "D",
  251. "parameters": [
  252. {
  253. "type": "number",
  254. "value": {
  255. "var": 1
  256. }
  257. },
  258. {
  259. "type": "number",
  260. "value": {
  261. "v": 1000
  262. }
  263. }
  264. ]
  265. }
  266. },
  267. {
  268. "pos": {
  269. "x": 4,
  270. "y": 1
  271. },
  272. "opcode": {
  273. "id": "do_divide_numbers",
  274. "primary": "U",
  275. "parameters": [
  276. {
  277. "type": "number",
  278. "value": {
  279. "fun": "last_number"
  280. }
  281. },
  282. {
  283. "type": "number",
  284. "value": {
  285. "v": 100
  286. }
  287. }
  288. ]
  289. }
  290. },
  291. {
  292. "pos": {
  293. "x": 6,
  294. "y": 3
  295. },
  296. "opcode": {
  297. "id": "do_rs",
  298. "parameters": [
  299. {
  300. "type": "side",
  301. "value": {
  302. "side": "south"
  303. }
  304. },
  305. {
  306. "type": "integer",
  307. "value": {
  308. "v": 15
  309. }
  310. }
  311. ]
  312. }
  313. },
  314. {
  315. "pos": {
  316. "x": 2,
  317. "y": 0
  318. },
  319. "opcode": {
  320. "id": "do_log",
  321. "primary": "R",
  322. "parameters": [
  323. {
  324. "type": "string",
  325. "value": {
  326. "var": 1
  327. }
  328. }
  329. ]
  330. }
  331. },
  332. {
  333. "pos": {
  334. "x": 3,
  335. "y": 1
  336. },
  337. "opcode": {
  338. "id": "do_setvar",
  339. "primary": "D",
  340. "parameters": [
  341. {
  342. "type": "integer",
  343. "value": {
  344. "v": 2
  345. }
  346. }
  347. ]
  348. }
  349. },
  350. {
  351. "pos": {
  352. "x": 4,
  353. "y": 2
  354. },
  355. "opcode": {
  356. "id": "do_multiply_long",
  357. "primary": "U",
  358. "parameters": [
  359. {
  360. "type": "number",
  361. "value": {
  362. "var": 1
  363. }
  364. },
  365. {
  366. "type": "number",
  367. "value": {
  368. "v": 30
  369. }
  370. }
  371. ]
  372. }
  373. },
  374. {
  375. "pos": {
  376. "x": 2,
  377. "y": 1
  378. },
  379. "opcode": {
  380. "id": "do_setvar",
  381. "primary": "U",
  382. "parameters": [
  383. {
  384. "type": "integer",
  385. "value": {
  386. "v": 1
  387. }
  388. }
  389. ]
  390. }
  391. },
  392. {
  393. "pos": {
  394. "x": 3,
  395. "y": 2
  396. },
  397. "opcode": {
  398. "id": "do_log",
  399. "primary": "R",
  400. "parameters": [
  401. {
  402. "type": "string",
  403. "value": {
  404. "var": 2
  405. }
  406. }
  407. ]
  408. }
  409. }
  410. ]
Advertisement
Add Comment
Please, Sign In to add comment