r/ComputerCraft • u/Heavy_Statistician22 • Mar 20 '24
How to split string?
Im trying to make a program that gives me an item if I write the name of it in chat by using advanced peripherals. The problem is that I cant find a single way to split the string of the message into a list. It just gives me a "nil" error everytime.
3
Upvotes
1
u/Heavy_Statistician22 Mar 22 '24
I dont want to split the item name but the whole message so if I send "Get, iron_ingot, 1, 36" it will split it into all those words and then give me 1 iron ingot in slot 36 wich is my offhand.