Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is an example mods.toml file. It contains the data relating to the loading mods.
- # There are several mandatory fields (#mandatory), and many more that are optional (#optional).
- # The overall format is standard TOML format, v0.5.0.
- # Note that there are a couple of TOML lists in this file.
- # Find more information on toml format here: https://github.com/toml-lang/toml
- # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
- modLoader="javafml" #mandatory
- # A version range to match for said mod loader - for regular FML @Mod it will be the forge version
- loaderVersion="[31,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
- # A URL to refer people to when problems occur with this mod
- issueTrackerURL="http://my.issue.tracker/" #optional
- # A list of mods - how many allowed here is determined by the individual mod loader
- [[mods]] #mandatory
- # The modid of the mod
- modId="podwojnian" #mandatory
- # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
- version="1.15.2" #mandatory
- # A display name for the mod
- displayName="Customizable Discs" #mandatory
- # A URL to query for updates for this mod. See the JSON update specification <here>
- updateJSONURL="http://myurl.me/" #optional
- # A URL for the "homepage" for this mod, displayed in the mod UI
- displayURL="http://example.com/" #optional
- # A file name (in the root of the mod JAR) containing a logo for display
- logoFile="examplemod.png" #optional
- # A text field displayed in the mod UI
- credits="JYP" #optional
- # A text field displayed in the mod UI
- authors="lil meow meow" #optional
- # The description text for the mod (multi line!) (#mandatory)
- description='Suck my dick pozdrawiam cieplutko '
- This is a long form description of the mod. You can write whatever you want here
- Have some lorem ipsum.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sagittis luctus odio eu tempus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque volutpat ligula eget lacus auctor sagittis. In hac habitasse platea dictumst. Nunc gravida elit vitae sem vehicula efficitur. Donec mattis ipsum et arcu lobortis, eleifend sagittis sem rutrum. Cras pharetra quam eget posuere fermentum. Sed id tincidunt justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- '''
- # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
- [[dependencies.podwojnian]] #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.podwojnian]]
- modId="minecraft"
- mandatory=true
- versionRange="[1.15.2]"
- ordering="NONE"
- side="BOTH"
- buildscript {
- repositories {
- maven { url = 'https://files.minecraftforge.net/maven' }
- jcenter()
- mavenCentral()
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
- apply plugin: 'eclipse'
- apply plugin: 'maven-publish'
- version = '1.15.2'
- group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = 'Customizable Discs'
- sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
- minecraft {
- // The mappings can be changed at any time, and must be in the following format.
- // snapshot_YYYYMMDD Snapshot are built nightly.
- // stable_# Stables are built at the discretion of the MCP team.
- // Use non-default mappings at your own risk. they may not always work.
- // Simply re-run your setup task after changing the mappings to update your workspace.
- mappings channel: 'snapshot', version: '20200514-1.15.1'
- // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
- // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- // Default run configurations.
- // These can be tweaked, removed, or duplicated as needed.
- runs {
- client {
- workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
- property 'forge.logging.console.level', 'debug'
- mods {
- examplemod {
- source sourceSets.main
- }
- }
- }
- server {
- workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
- property 'forge.logging.console.level', 'debug'
- mods {
- examplemod {
- source sourceSets.main
- }
- }
- }
- data {
- workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
- property 'forge.logging.console.level', 'debug'
- args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
- mods {
- examplemod {
- source sourceSets.main
- }
- }
- }
- }
- }
- dependencies {
- // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
- // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
- // The userdev artifact is a special name and will get all sorts of transformations applied to it.
- minecraft 'net.minecraftforge:forge:1.15.2-31.2.5'
- // You may put jars on which you depend on in ./libs or you may define them like so..
- // compile "some.group:artifact:version:classifier"
- // compile "some.group:artifact:version"
- // Real examples
- // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
- // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
- // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
- // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
- // These dependencies get remapped to your current MCP mappings
- // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
- // For more info...
- // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
- // http://www.gradle.org/docs/current/userguide/dependency_management.html
- }
- // Example for how to get properties into the manifest for reading by the runtime..
- jar {
- manifest {
- attributes([
- "Specification-Title": "examplemod",
- "Specification-Vendor": "examplemodsareus",
- "Specification-Version": "1", // We are version 1 of ourselves
- "Implementation-Title": project.name,
- "Implementation-Version": "${version}",
- "Implementation-Vendor" :"examplemodsareus",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
- ])
- }
- }
- // Example configuration to allow publishing using the maven-publish task
- // This is the preferred method to reobfuscate your jar file
- jar.finalizedBy('reobfJar')
- // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
- //publish.dependsOn('reobfJar')
- publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact jar
- }
- }
- repositories {
- maven {
- url "file:///${project.projectDir}/mcmodsrepo"
- }
- }
- }
- package trojan;
- import org.apache.logging.log4j.LogManager;
- import org.apache.logging.log4j.Logger;
- import net.minecraftforge.eventbus.api.IEventBus;
- import net.minecraftforge.fml.common.Mod;
- import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
- import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
- import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
- import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
- @Mod(main.MOD_ID)
- public class main
- {
- public static main instance;
- public static final String MOD_ID = "podwojnian";
- public static final Logger LOGGER = LogManager.getLogger();
- public main()
- {
- instance = this;
- final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
- modEventBus.addListener(this::setup);
- modEventBus.addListener(this::clientSetup);
- }
- private void setup(final FMLCommonSetupEvent event)
- {
- }
- private void clientSetup(final FMLClientSetupEvent event)
- {
- }
- public void onServerStarting(FMLServerStartingEvent event)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment