From fa6c682fd2dba1abf0755f7a29b0b69630854690 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Mon, 16 Mar 2026 00:17:47 -0400 Subject: [PATCH] Add support for custom dropper/barrel names in inventoryClient --- inventoryClient.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/inventoryClient.lua b/inventoryClient.lua index 8624eb9..9b7eb1a 100644 --- a/inventoryClient.lua +++ b/inventoryClient.lua @@ -13,6 +13,11 @@ local CLIENT_CHANNEL = 4202 -- client listens for replies here local MONITOR_SIDE = "left" local SMELTER_MONITOR_SIDE = "top" +-- Remote station: set these to use a different dropper/barrel than the master. +-- Leave empty ("") to use the master's default dropper/barrel. +local CLIENT_DROPPER_NAME = "" -- e.g. "minecraft:dropper_5" +local CLIENT_BARREL_NAME = "" -- e.g. "minecraft:barrel_3" + ------------------------------------------------- -- State (received from master) ------------------------------------------------- @@ -1101,9 +1106,10 @@ local function handleTouch(x, y) needsRedraw = true -- Send order to master sendToMaster({ - type = "order", - itemName = itemName, - amount = selectedAmount, + type = "order", + itemName = itemName, + amount = selectedAmount, + dropperName = CLIENT_DROPPER_NAME ~= "" and CLIENT_DROPPER_NAME or nil, }) print(string.format("[ORDER] Sent to master: %s x%d", itemName, selectedAmount)) end