[Java] Let's create a mod for Minecraft 1.14.4 [99. Mod output]

(This article is one of a series of commentary articles)

First article: Introduction

Mod output

If the mod you've made with great care is getting better, let's output it to a jar file (Java Archive) so that others can play it!

D:\projects\mc_example_mod
 ├ src
 ├ build.gradle
 ├ gradlew
 ├ gradlew.bat
 └ gradle
   └ wrapper
     └ gradle-wrapper.jar
     └ gradle-wrapper.properties

If you set up in the same way in Introduction, the project file should look like this. Edit build.gradle.

build.gradle


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.0'
group = 'jp.koteko.example_mod' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'example_mod'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

//...

Rewrite the version groupʻarchivesBaseName` item on lines 16-18 to match your mod. I feel that there are many descriptions that do not require other parts, but it does not matter, so you can leave it as it is.

After rewriting, start PowerSell in the project folder (D: \ projects \ mc_example_mod in this example) (Shift + right click in Explorer, or move normally with cd). Execute the command . \ Gradlew.bat build and wait for about 10 seconds. If the message BUILD SUCCESS FUL appears, it is successful. A file of [archivesBaseName] _ [version] .jar should have been generated in the \ build \ libs folder. This is the file that will be distributed as a so-called mod.

Regarding the introduction of mods, I will omit it because it is beyond the scope of technical explanations (or rather, there are a lot of explanations in the world), but after introducing Forge, place the jar file in the mods folder and play the game. Start. Open the mods screen from the title, and if your mod is recognized, you are successful. If you are uncertain, let's actually check it in the game.

** Thank you for your long trip. ** **

Digression

About future articles There are many parts that are not fully explained and elements that have not been touched on, but I thought that I would like to set up an environment of 1.16.1 and develop again there, once separating the explanation article in Minecraft 1.14.4. am thinking. There are several mainstream versions of mod development due to major changes in specifications and official update intervals, and 1.12.2 is the previous version. There seems to be a certain number of 1.14.4, but the number is a little smaller than both the 1.12.2 residual group and the follow-up group with high development motivation, and I felt the disadvantage of proceeding with development with this version, so this I decided. It is unclear how many mods will be created in 1.16.1, but since it is the latest version as of August 2020, I will give priority to this development in terms of future potential and lack of information. ..

reference

Minecraft 1.12 modding with forge – 10 – Export Mod – suppergerrie2.com

Recommended Posts

[Java] Let's create a mod for Minecraft 1.14.4 [99. Mod output]
[Java] Let's create a mod for Minecraft 1.14.4 [Introduction]
[Java] Let's create a mod for Minecraft 1.16.1 [Introduction]
[Java] Let's create a mod for Minecraft 1.14.4 [0. Basic file]
[Java] Let's create a mod for Minecraft 1.14.4 [4. Add tools]
[Java] Let's create a mod for Minecraft 1.14.4 [5. Add armor]
[Java] Let's create a mod for Minecraft 1.14.4 [Extra edition]
[Java] Let's create a mod for Minecraft 1.14.4 [7. Add progress]
[Java] Let's create a mod for Minecraft 1.14.4 [6. Add recipe]
[Java] Let's create a mod for Minecraft 1.16.1 [Add item]
[Java] Let's create a mod for Minecraft 1.16.1 [Basic file]
[Java] Let's create a mod for Minecraft 1.14.4 [1. Add items]
[Java] Let's create a mod for Minecraft 1.14.4 [2. Add block]
[Java] Let's create a mod for Minecraft 1.16.1 [Add block]
[Java] Let's create a mod for Minecraft 1.14.4 [3. Add creative tab]
[Java] Let's create a mod for Minecraft 1.16.1 [Add and generate trees]
[Java] Let's create a mod for Minecraft 1.14.4 [9. Add and generate trees]
[Java] Let's create a mod for Minecraft 1.14.4 [8. Add and generate ore]
Let's create a Java development environment (updating)
Let's create a timed process with Java Timer! !!
[Java] Create a filter
Let's create a super-simple web framework in Java
[Java basics] Let's make a triangle with a for statement
Create a java method [Memo] [java11]
[Java] Create a temporary file
How to create a lightweight container image for Java apps
[Java twig] Create a parser combinator for recursive descent parsing 2
Create a MOB using the Minecraft Java Mythicmobs plugin | Preparation 1
How to sign a Minecraft MOD
Create a Java project using Eclipse
[Java] How to create a folder
Create a fluentd server for testing
Let's create a TODO application in Java 4 Implementation of posting function
Let's create a TODO application in Java 6 Implementation of search function
Let's create a TODO application in Java 8 Implementation of editing function
Let's create a TODO application in Java 1 Brief explanation of MVC
Let's create a TODO application in Java 5 Switch the display of TODO
[Java] Create and apply a slide master
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
[Java twig] Create a parser combinator for recursive descent parsing (also memoize)
How to create a Maven repository for 2020
Create a TODO app in Java 7 Create Header
[Rails] Let's create a super simple Rails API
[Java] Let's make a DB access library!
Let's go with Watson Assistant (formerly Conversation) ⑤ Create a chatbot with Watson + Java + Slack
Create a java web application development environment with docker for mac part2
[Azure] I tried to create a Java application for free-Web App creation- [Beginner]
I made a Diff tool for Java files
Let's write Java file input / output with NIO
A story about Java 11 support for Web services
Create a CSR with extended information in Java
Create a simple bulletin board with Java + MySQL
Let's create a REST API using WildFly Swarm.
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Create a Lambda Container Image based on Java 15
Try to create a bulletin board in Java
How to create pagination for a "kaminari" array
[Java] Create a collection with only one element
Create your own Android app for Java learning
Create Scala Seq from Java, make Scala Seq a Java List
Create a tool for name identification in Salesforce