As I said, I am very new to modding. What is the create method? I tried searching for" java create method", no luck, could you elaborate on what you mean?
I am sorry, I'm very new to this, but where should "DeferredRegister#create" be placed, right now It's here
public static final DeferredRegister<Block> BLOCKS = new DeferredRegister#create<>(ForgeRegistries.BLOCKS, VanligMod.MOD_ID);
I am guessing that's wrong becuase it gives a error telling "Invalid Character". Thanks for the quick reply!
How did you fix it?
This is my code:
public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, VanligMod.MOD_ID);
And it gives this error:
Cannot infer type arguments for DeferredRegister<>