Advertisement
Guest User

RFTools Control - Craft script

a guest
May 22nd, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 KB | None | 0 0
  1. [
  2. {
  3. "pos": {
  4. "x": 1,
  5. "y": 1
  6. },
  7. "opcode": {
  8. "id": "do_lock",
  9. "primary": "R",
  10. "parameters": [
  11. {
  12. "type": "string",
  13. "value": {
  14. "v": "2"
  15. }
  16. }
  17. ]
  18. }
  19. },
  20. {
  21. "pos": {
  22. "x": 3,
  23. "y": 3
  24. },
  25. "opcode": {
  26. "id": "do_craftfail",
  27. "parameters": []
  28. }
  29. },
  30. {
  31. "pos": {
  32. "x": 0,
  33. "y": 1
  34. },
  35. "opcode": {
  36. "id": "ev_craft",
  37. "primary": "R",
  38. "parameters": [
  39. {
  40. "type": "item",
  41. "value": {
  42. "null": true
  43. }
  44. },
  45. {
  46. "type": "inventory",
  47. "value": {
  48. "side": "south",
  49. "node": "card"
  50. }
  51. },
  52. {
  53. "type": "boolean",
  54. "value": {
  55. "null": true
  56. }
  57. }
  58. ]
  59. }
  60. },
  61. {
  62. "pos": {
  63. "x": 10,
  64. "y": 1
  65. },
  66. "opcode": {
  67. "id": "do_pushitems",
  68. "primary": "R",
  69. "parameters": [
  70. {
  71. "type": "inventory",
  72. "value": {
  73. "null": true
  74. }
  75. },
  76. {
  77. "type": "integer",
  78. "value": {
  79. "null": true
  80. }
  81. },
  82. {
  83. "type": "integer",
  84. "value": {
  85. "null": true
  86. }
  87. },
  88. {
  89. "type": "integer",
  90. "value": {
  91. "v": 10
  92. }
  93. }
  94. ]
  95. }
  96. },
  97. {
  98. "pos": {
  99. "x": 9,
  100. "y": 1
  101. },
  102. "opcode": {
  103. "id": "do_fetchitems",
  104. "primary": "R",
  105. "parameters": [
  106. {
  107. "type": "inventory",
  108. "value": {
  109. "side": "up",
  110. "node": "station"
  111. }
  112. },
  113. {
  114. "type": "integer",
  115. "value": {
  116. "null": true
  117. }
  118. },
  119. {
  120. "type": "item",
  121. "value": {
  122. "null": true
  123. }
  124. },
  125. {
  126. "type": "integer",
  127. "value": {
  128. "null": true
  129. }
  130. },
  131. {
  132. "type": "integer",
  133. "value": {
  134. "v": 10
  135. }
  136. },
  137. {
  138. "type": "boolean",
  139. "value": {
  140. "null": true
  141. }
  142. },
  143. {
  144. "type": "boolean",
  145. "value": {
  146. "null": true
  147. }
  148. }
  149. ]
  150. }
  151. },
  152. {
  153. "pos": {
  154. "x": 8,
  155. "y": 1
  156. },
  157. "opcode": {
  158. "id": "do_craftok",
  159. "primary": "R",
  160. "parameters": [
  161. {
  162. "type": "integer",
  163. "value": {
  164. "v": 9
  165. }
  166. }
  167. ]
  168. }
  169. },
  170. {
  171. "pos": {
  172. "x": 7,
  173. "y": 1
  174. },
  175. "opcode": {
  176. "id": "do_releaselock",
  177. "primary": "R",
  178. "parameters": [
  179. {
  180. "type": "string",
  181. "value": {
  182. "v": "2"
  183. }
  184. }
  185. ]
  186. }
  187. },
  188. {
  189. "pos": {
  190. "x": 6,
  191. "y": 1
  192. },
  193. "opcode": {
  194. "id": "do_fetchitems",
  195. "primary": "D",
  196. "parameters": [
  197. {
  198. "type": "inventory",
  199. "value": {
  200. "side": "up",
  201. "intside": "down",
  202. "node": "craft"
  203. }
  204. },
  205. {
  206. "type": "integer",
  207. "value": {
  208. "v": 0
  209. }
  210. },
  211. {
  212. "type": "item",
  213. "value": {
  214. "null": true
  215. }
  216. },
  217. {
  218. "type": "integer",
  219. "value": {
  220. "v": 64
  221. }
  222. },
  223. {
  224. "type": "integer",
  225. "value": {
  226. "v": 9
  227. }
  228. },
  229. {
  230. "type": "boolean",
  231. "value": {
  232. "null": true
  233. }
  234. },
  235. {
  236. "type": "boolean",
  237. "value": {
  238. "null": true
  239. }
  240. }
  241. ]
  242. }
  243. },
  244. {
  245. "pos": {
  246. "x": 7,
  247. "y": 2
  248. },
  249. "opcode": {
  250. "id": "do_wire",
  251. "primary": "U",
  252. "parameters": []
  253. }
  254. },
  255. {
  256. "pos": {
  257. "x": 4,
  258. "y": 0
  259. },
  260. "opcode": {
  261. "id": "do_releaselock",
  262. "primary": "L",
  263. "parameters": [
  264. {
  265. "type": "string",
  266. "value": {
  267. "v": "2"
  268. }
  269. }
  270. ]
  271. }
  272. },
  273. {
  274. "pos": {
  275. "x": 5,
  276. "y": 1
  277. },
  278. "opcode": {
  279. "id": "do_pushmulti",
  280. "primary": "R",
  281. "parameters": [
  282. {
  283. "type": "inventory",
  284. "value": {
  285. "side": "up",
  286. "intside": "up",
  287. "node": "craft"
  288. }
  289. },
  290. {
  291. "type": "integer",
  292. "value": {
  293. "v": 0
  294. }
  295. },
  296. {
  297. "type": "integer",
  298. "value": {
  299. "v": 8
  300. }
  301. },
  302. {
  303. "type": "integer",
  304. "value": {
  305. "v": 0
  306. }
  307. }
  308. ]
  309. }
  310. },
  311. {
  312. "pos": {
  313. "x": 6,
  314. "y": 2
  315. },
  316. "opcode": {
  317. "id": "eval_countinv",
  318. "primary": "D",
  319. "parameters": [
  320. {
  321. "type": "inventory",
  322. "value": {
  323. "side": "up",
  324. "intside": "up",
  325. "node": "craft"
  326. }
  327. },
  328. {
  329. "type": "integer",
  330. "value": {
  331. "null": true
  332. }
  333. },
  334. {
  335. "type": "item",
  336. "value": {
  337. "null": true
  338. }
  339. },
  340. {
  341. "type": "boolean",
  342. "value": {
  343. "null": true
  344. }
  345. },
  346. {
  347. "type": "boolean",
  348. "value": {
  349. "null": true
  350. }
  351. }
  352. ]
  353. }
  354. },
  355. {
  356. "pos": {
  357. "x": 7,
  358. "y": 3
  359. },
  360. "opcode": {
  361. "id": "do_wire",
  362. "primary": "U",
  363. "parameters": []
  364. }
  365. },
  366. {
  367. "pos": {
  368. "x": 3,
  369. "y": 0
  370. },
  371. "opcode": {
  372. "id": "do_delay",
  373. "primary": "L",
  374. "parameters": [
  375. {
  376. "type": "integer",
  377. "value": {
  378. "v": 20
  379. }
  380. }
  381. ]
  382. }
  383. },
  384. {
  385. "pos": {
  386. "x": 4,
  387. "y": 1
  388. },
  389. "opcode": {
  390. "id": "test_eq",
  391. "primary": "R",
  392. "secondary": "u",
  393. "parameters": [
  394. {
  395. "type": "integer",
  396. "value": {
  397. "fun": "last_int"
  398. }
  399. },
  400. {
  401. "type": "integer",
  402. "value": {
  403. "v": 0
  404. }
  405. }
  406. ]
  407. }
  408. },
  409. {
  410. "pos": {
  411. "x": 5,
  412. "y": 2
  413. },
  414. "opcode": {
  415. "id": "do_wire",
  416. "primary": "R",
  417. "parameters": []
  418. }
  419. },
  420. {
  421. "pos": {
  422. "x": 6,
  423. "y": 3
  424. },
  425. "opcode": {
  426. "id": "test_gt",
  427. "primary": "D",
  428. "secondary": "r",
  429. "parameters": [
  430. {
  431. "type": "integer",
  432. "value": {
  433. "fun": "last_int"
  434. }
  435. },
  436. {
  437. "type": "integer",
  438. "value": {
  439. "v": 0
  440. }
  441. }
  442. ]
  443. }
  444. },
  445. {
  446. "pos": {
  447. "x": 2,
  448. "y": 0
  449. },
  450. "opcode": {
  451. "id": "do_lock",
  452. "primary": "D",
  453. "parameters": [
  454. {
  455. "type": "string",
  456. "value": {
  457. "v": "2"
  458. }
  459. }
  460. ]
  461. }
  462. },
  463. {
  464. "pos": {
  465. "x": 3,
  466. "y": 1
  467. },
  468. "opcode": {
  469. "id": "test_eq",
  470. "primary": "D",
  471. "secondary": "r",
  472. "parameters": [
  473. {
  474. "type": "integer",
  475. "value": {
  476. "fun": "last_int"
  477. }
  478. },
  479. {
  480. "type": "integer",
  481. "value": {
  482. "v": -1
  483. }
  484. }
  485. ]
  486. }
  487. },
  488. {
  489. "pos": {
  490. "x": 5,
  491. "y": 3
  492. },
  493. "opcode": {
  494. "id": "do_wire",
  495. "primary": "U",
  496. "parameters": []
  497. }
  498. },
  499. {
  500. "pos": {
  501. "x": 6,
  502. "y": 4
  503. },
  504. "opcode": {
  505. "id": "do_fetchitems",
  506. "primary": "L",
  507. "parameters": [
  508. {
  509. "type": "inventory",
  510. "value": {
  511. "side": "up",
  512. "intside": "up",
  513. "node": "craft"
  514. }
  515. },
  516. {
  517. "type": "integer",
  518. "value": {
  519. "null": true
  520. }
  521. },
  522. {
  523. "type": "item",
  524. "value": {
  525. "null": true
  526. }
  527. },
  528. {
  529. "type": "integer",
  530. "value": {
  531. "null": true
  532. }
  533. },
  534. {
  535. "type": "integer",
  536. "value": {
  537. "v": 11
  538. }
  539. },
  540. {
  541. "type": "boolean",
  542. "value": {
  543. "null": true
  544. }
  545. },
  546. {
  547. "type": "boolean",
  548. "value": {
  549. "null": true
  550. }
  551. }
  552. ]
  553. }
  554. },
  555. {
  556. "pos": {
  557. "x": 2,
  558. "y": 1
  559. },
  560. "opcode": {
  561. "id": "do_getingredients_smart",
  562. "primary": "R",
  563. "parameters": [
  564. {
  565. "type": "inventory",
  566. "value": {
  567. "null": true
  568. }
  569. },
  570. {
  571. "type": "inventory",
  572. "value": {
  573. "side": "south",
  574. "node": "card"
  575. }
  576. },
  577. {
  578. "type": "item",
  579. "value": {
  580. "null": true
  581. }
  582. },
  583. {
  584. "type": "integer",
  585. "value": {
  586. "v": 0
  587. }
  588. },
  589. {
  590. "type": "integer",
  591. "value": {
  592. "v": 8
  593. }
  594. },
  595. {
  596. "type": "inventory",
  597. "value": {
  598. "side": "up",
  599. "node": "dump"
  600. }
  601. }
  602. ]
  603. }
  604. },
  605. {
  606. "pos": {
  607. "x": 3,
  608. "y": 2
  609. },
  610. "opcode": {
  611. "id": "do_releaselock",
  612. "primary": "D",
  613. "parameters": [
  614. {
  615. "type": "string",
  616. "value": {
  617. "v": "2"
  618. }
  619. }
  620. ]
  621. }
  622. },
  623. {
  624. "pos": {
  625. "x": 5,
  626. "y": 4
  627. },
  628. "opcode": {
  629. "id": "do_pushitems",
  630. "primary": "U",
  631. "parameters": [
  632. {
  633. "type": "inventory",
  634. "value": {
  635. "side": "up",
  636. "intside": "up",
  637. "node": "dump"
  638. }
  639. },
  640. {
  641. "type": "integer",
  642. "value": {
  643. "null": true
  644. }
  645. },
  646. {
  647. "type": "integer",
  648. "value": {
  649. "null": true
  650. }
  651. },
  652. {
  653. "type": "integer",
  654. "value": {
  655. "v": 11
  656. }
  657. }
  658. ]
  659. }
  660. }
  661. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement