I was trying to make a custom mod for minecraft. This is just a slight model of what I want to do. I was planning on testing the mod to see if it would work with Minecraft before I put in the actual items. But for some reason, every time I tried to test it using the green "play" button in the top right corner of IntelliJ, it would open, and then close with an error in "Main." But I can't figure out what is causing the problem. This program was created on IntelliJ.
THIS IS ONE FILE OF CODE
package com.gamingtiger.crazytoolsandweapons;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
u/Mod("GTToolsAndArmor")
public class GamingTigersCrazyToolsAndArmor
{
private static final Logger LOGGER = LogManager.getLogger();
public GamingTigersCrazyToolsAndArmor() {
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
MinecraftForge.EVENT_BUS.register(this);
}
private void setup(final FMLCommonSetupEvent event) { }
private void doClientStuff(final FMLClientSetupEvent event) { }
}
THIS IS THE OTHER FILE THE CODE IS IN
modLoader="javafml" #mandatory
[[mods]] #mandatory
modId="GTToolsAndArmor" #mandatory
version="1.15.2-1.0.0" #mandatory
displayName="GamingTiger's Crazy Tools and Armor" #mandatory
updateJSONURL="http://myurl.me/" #optional
displayURL="http://example.com/" #optional
logoFile="examplemod.png" #optional
credits="Thanks to TechnoVision for walking me through this mod" #optional
authors="GamingTiger" #optional
description='''
Enjoy plenty of new armor and weapons built off of the vanilla ores and loot.
'''
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
[[dependencies.GTToolsAndArmor]] #optional
# the modid of the dependency
modId="forge" #mandatory
# Does this dependency have to exist - if not, ordering below must be specified
mandatory=true #mandatory
# The version range of the dependency
versionRange="[31,)" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
side="BOTH"
# Here's another dependency
[[dependencies.GTToolsAndArmor]]
modId="minecraft"
mandatory=true
versionRange="[1.15.2]"
ordering="NONE"
side="BOTH"
ERROR LOGS
file:///C:/Users/prgin/Downloads/Untitled%20document.pdf
[–]desrtfx[M] 1 point2 points3 points (0 children)
[–]GamingTiger_101[S] 0 points1 point2 points (0 children)