Advertisement
toastonrye

RFTools Control - Yrdeen AE2 Autocraft

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