So...
I tried to fix the ModItems.java but I feel like I just more screwed it up... Here is a result:
public class ModItems {
public static Item vapestick;
public static void init() {
vapestick = new ItemVapeStick();
}
public static void register() {
GameRegistry.register(vapestick);
}
public static void registerRenders() {
registerRender(vapestick);
}
private static void registerRender(Item item) {
System.out.println(item.getRegistryName());
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
public class EventHandler {
@SubscribeEvent
public void pickupItem(EntityItemPickupEvent event) {
System.out.println("Item picked up!");
}
public void registerBlocks(RegistryEvent.Register<Block> event) {
event.getRegistry().registerAll();
}
}
}
Then in resources, there was pack.mcmeta file already so I edited it (in nope pad) and NoBrainly changed the code to that one you wrote above and lost the original code. After that, I couldn´t run the game, so I was forced to delete the file.
I am a real beginner in MC modding and I just feel like I´m not able to do it. Would you be so kind and explain to me how to Register that item. I´m super confused off that article. I just wanted to learn something new.