-
-
Save P4xil/ed3895ef98797bde5d625d776efca722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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