I used to script a little back in the day and I am trying to get back into it.
I have a script that searches for value in this case 1048 (which is dirt In this game) then it uses gg.editAll to change the diet value into any other block.
what I am having trouble with is I want to make a system where the user of the script can type what they want that 1048 value to turn into to. As in they could type stone and the script would search through a list for stone and find a paired integer corresponding to stone. Then it uses the stones integer to gg.editAll of the dirt (1048) into the stone.
all I am having trouble with is the list part
I have some knowledge of python and it would be pretty easy to do in python is their a similar way to do it in gg code?