Skip to content

Instantly share code, notes, and snippets.

@P4xil P4xil/My code Secret

Created May 10, 2020
Embed
What would you like to do?
modLoader="javafml" #mandatory
loaderVersion="[31,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
issueTrackerURL="http://my.issue.tracker/" #optional
[[mods]] #mandatory
modId="P4M11" #mandatory
version="1.15.2-1.0.0" #mandatory
displayName="P4xil Mod" #mandatory
updateJSONURL="http://myurl.me/" #optional
displayURL="http://example.com/" #optional
logoFile="P4xilMod.png" #optional
credits="By P4xil" #optional
authors="P4xil" #optional
description='''
This is a Mod That Adds Cool Things To Minecraft
'''
[[dependencies.P4xilMod]] #optional
modId="forge" #mandatory
mandatory=true #mandatory
versionRange="[31,)" #mandatory
ordering="NONE"
side="BOTH"
[[dependencies.P4xilMod]]
modId="minecraft"
mandatory=true
versionRange="[1.15.2]"
ordering="NONE"
side="BOTH"
package P4xil;
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;
@Mod("P4M")
public class P4xilMod
{
private static final Logger LOGGER = LogManager.getLogger();
public P4xilMod() {
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) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.