Posted 28 January 2018 - 07:50 PM
Hello CC Community ^^
I wanted to make an CC Programm for requesting Items over Logistic Pipes and i found something on the Internet what would Need me to always Change the itemID via an Editor and i wanted to make it to an Programm which lets me Input the ItemID (minecraft:stone) and Amount.
Now I am getting an
"Java Exception Thrown: Java.lang.NullPointerException" Error
I using CraftOS 1.7 on MC 1.7.10
Am I doing something wrong with the variables? Or is it just an completely wrong coded Programm.
I wanted to make an CC Programm for requesting Items over Logistic Pipes and i found something on the Internet what would Need me to always Change the itemID via an Editor and i wanted to make it to an Programm which lets me Input the ItemID (minecraft:stone) and Amount.
Now I am getting an
"Java Exception Thrown: Java.lang.NullPointerException" Error
I using CraftOS 1.7 on MC 1.7.10
textutils.slowPrint("Was wird gebraucht?")
print("Item:")
input = read(itemID)
print("Amount:")
imput = read(amount)
lp = peripheral.wrap("left")
local function packager ( itemID, amount )
local result = lp.getLP().getItemIdentifierBuilder()
result.setItemID( itemID )
lp.makeRequest( result.build(), amount )
end
packager( itemID , amount )
Am I doing something wrong with the variables? Or is it just an completely wrong coded Programm.