This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAME "Brewing Stand" | |
| EVERY 20 TICKS DO | |
| -- Dragon's Breath leaves an empty bottle | |
| FROM brew INPUT glass_bottle | |
| TO interface OUTPUT | |
| FORGET | |
| IF EACH brew SLOT 3 HAS EQ 0 AND EACH hopper HAS EQ 0 | |
| THEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| // to run install: nodejs and the module "websocket" | |
| // npm install websocket | |
| // then execute | |
| // node tester.js _NUMBER_OF_CLIENTS_ | |
| var WebSocketClient = require('websocket').client; | |
| var HOST = 'ws://localhost:8449/ws/endpoint'; | |
| var PING_TIME_MS = 20000; |