soo recently i’m making mod for minecraft, and i decided to sort items in arrays to later use them in assignment, soo i made this:
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import org.lwjgl.system.windows.MONITORINFOEX;
import java.lang.reflect.Array;
import java.util.ArrayList;
public interface CreativeTabsItems {
String[] tutorialTabItems = new String[1];
tutorialTabItems[0] = "tutorial:rock";
}
when i’m trying to run this, it gives me ‘]’ expected error and points 0 index, anyone knows how to fix that?
i searched on reddit, also on forums and stackoverflow but nothing
New contributor
Danonek 07 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.