I've been stuck on this for a while but I think it's finally time to use the forums usually, I don't like forums due to how much time it takes and I really don't like wasting people's time, please keep in mind that I am 13 and very much a rookie.
So, I've been following this book called, Minecraft Modding with Forge by Arun & Aditya Gupta, and it's a bit old but it works occasionally, so I have been using YouTube as a substitute, https://www.youtube.com/watch?v=rmWBP5ifDlw. My number one problem is actually running Minecraft itself because in the book it states that you have to click the green play button in the toolbar but it gives me an error saying, "The selection cannot be launched, and there are no recent launches.", I've looked around and people have said to use a run command in Command Prompt but the command will not take my mods and place them in the game. Second, I am having trouble with importing a small piece of code, (shown down below.) that will not let me import, (Ctrl+Shift+O). In the book, it shows the correct icon but will not let me import for some reason. The java file is called, "BlockBreakMessage".
package org.devoxx4kids.forge.mods;
import net.minecraftforge.event.world.BlockEvent.BreakEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class BlockBreakMessage {
@SubscribeEvent
public void sendMessage(BreakEvent event){
event
.getPlayer()
.addChatMessage(
new ChatComponentText(
EnumChatFormatting.GOLD +
"You broke a block!"));
{
}
}
"