Luca_S, on 10 June 2020 - 09:07 PM, said:
qwerty, on 10 June 2020 - 06:25 PM, said:
There have been 35 items by qwerty (Search limited from 30-March 23)
Posted by qwerty on 10 June 2020 - 09:33 PM in Ask a Pro
Luca_S, on 10 June 2020 - 09:07 PM, said:
qwerty, on 10 June 2020 - 06:25 PM, said:
Posted by qwerty on 10 June 2020 - 06:25 PM in Ask a Pro
Luca_S, on 29 May 2020 - 02:02 PM, said:
tProcess.bInteracted = trueto a
corutine.yield()Now I'm not an expert by any stretch of the word and am even less antiquated with the various bugs with the event system but my monkey brain believes this to be possible...
Posted by qwerty on 19 March 2020 - 12:43 PM in Ask a Pro
periphlist = peripheral.getNames() desired = { "inset peripheral name here" } peripherals = {} for p=1,#periphlist do for t=1,#desired do if string.find(periphlist[p],desired[t]) then peripherals[#peripherals+1] = periphlist[p] end end end
Posted by qwerty on 19 March 2020 - 11:30 AM in Ask a Pro
list = { "immersiveengineering:storage_crate", "minecraft:chest", "thermalexpansion:storage_cache" }and here's a table that has the peripherals attached;
periph = { "right", "top", "immersiveengineering:storage_crate_1", "minecraft:chest_3" }
Posted by qwerty on 17 March 2020 - 08:54 AM in Ask a Pro
{ [3] = { count = 32, name = "minecraft:cobblestone", damage = 0, }, }
Posted by qwerty on 16 March 2020 - 04:04 PM in Ask a Pro
Posted by qwerty on 25 February 2020 - 12:44 PM in Ask a Pro
Lupus590, on 25 February 2020 - 11:12 AM, said:
Lupus590, on 25 February 2020 - 11:12 AM, said:
Lupus590, on 25 February 2020 - 11:12 AM, said:
Stekeblad, on 25 February 2020 - 11:16 AM, said:
Posted by qwerty on 25 February 2020 - 10:50 AM in Ask a Pro
Luca_S, on 25 February 2020 - 10:05 AM, said:
function selec(tRecipe) for k, v in pairs(tRecipe) do turtle.select(k) -- The item name is now stored in v end end
Posted by qwerty on 25 February 2020 - 10:46 AM in Ask a Pro
function index() if index ~= nil then index = nil index = inventory.list() else inventory.list() end endwhy is that?
Posted by qwerty on 25 February 2020 - 09:12 AM in Ask a Pro
Luca_S, on 25 February 2020 - 08:49 AM, said:
Posted by qwerty on 25 February 2020 - 08:24 AM in Ask a Pro
Lupus590, on 25 February 2020 - 07:55 AM, said:
Local X = f() --# function f() return true end Local t = {} F(t) --# function f(tab) tab.x = true end Local up F() --# function f() up = true end
Posted by qwerty on 25 February 2020 - 08:20 AM in Ask a Pro
Luca_S, on 25 February 2020 - 08:02 AM, said:
furnace = { sh.cbl, sh.cbl, sh.cbl, nil, sh.cbl, nil, sh.cbl, nil, sh.cbl, sh.cbl, sh.cbl, nil, } function selec(table) for i=1,#table do turtle.select(i) --rest of code
Posted by qwerty on 25 February 2020 - 08:01 AM in Ask a Pro
sh = {} --[[sh stands for shorthand because I'm making a turtle crafting interface]] sh["cbl"]="minecraft:cobblestone" furnace = { sh:cbl, sh:cbl, sh:cbl, nil, sh:cbl, nil, sh:cbl, nil, sh:cbl, sh:cbl, sh:cbl, nil, }however you might notice that this doesn't work.
Posted by qwerty on 25 February 2020 - 02:06 AM in Ask a Pro
Lyqyd, on 25 February 2020 - 01:18 AM, said:
Lyqyd, on 25 February 2020 - 01:18 AM, said:
Lyqyd, on 25 February 2020 - 01:18 AM, said:
Posted by qwerty on 24 February 2020 - 11:53 PM in Ask a Pro
reference = {chest, crate, cache} List = peripheral.getNames() --code I have no idea on how to construct-- pointer = peripheral.wrap(*inventory from list*) reference_id** = pointer -- ** > the reference and id are to be used as pointers to selected inventory --
Posted by qwerty on 24 February 2020 - 10:55 PM in Ask a Pro
Lupus590, on 24 February 2020 - 02:35 PM, said:
var, temp = wrapID(crate,0,"crt")and that worked, but it's also counter productive since I wanted all that to happen inside the function.
Posted by qwerty on 24 February 2020 - 09:33 AM in Ask a Pro
Lupus590, on 23 February 2020 - 09:35 PM, said:
--#setting global variables for referance#-- crate = "immersiveengineering:woodencrate" cache = "thermalexpansion:storage_cache" chest = "minecraft:chest" Qchest = "quark:quark_chest"
--#wraping the inventory with apropreate id#-- function wrapID( name , id , nickname ) handle = tostring( name .. "_" .. id ) nickname = peripheral.wrap(handle) end
Posted by qwerty on 23 February 2020 - 08:35 PM in Ask a Pro
Posted by qwerty on 23 February 2020 - 11:43 AM in Ask a Pro
textutils.unserialize()works, how ever my issue is that, not only do I not know how to pass commands to the lua prompt, but also the problem that when calling
tempvar()it trhows a nill error,
--[[irrelevant code local function clear() term.clear() term.setCursorPos(1,1) end clear() --]] local chat = peripheral.wrap("right") while true do --message catching local _, player, message, uuid = os.pullEvent("chat_message") --message parsing local tempmsg = string.sub(message,2) tempvar = textutils.unserialize(tempmsg) --debug print(message) print(tempmsg) print(tempvar) --pre edit: print(tempmsg) --atempted function call tempvar() end