Skip to content

Instantly share code, notes, and snippets.

@andrewsf
andrewsf / gist:174b127798ba80b5130750a97b994d73
Created June 2, 2026 19:11
SFM Brewing Stand automation
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
#!/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;