Skip to content

Commit

Permalink
Add Forge 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
DawningW committed Dec 1, 2021
1 parent 4f52360 commit dcd98df
Show file tree
Hide file tree
Showing 31 changed files with 1,109 additions and 40 deletions.
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
*
!Vanilla
!Forge
!Fabric
!picture.png
!LICENSE
!README.md
.metadata
build
6 changes: 0 additions & 6 deletions Forge/1.13+/src/main/resources/pack.mcmeta

This file was deleted.

File renamed without changes.
File renamed without changes.
34 changes: 13 additions & 21 deletions Forge/1.13+/build.gradle → Forge/1.13-1.17/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
buildscript {
repositories {
maven {
name = 'lss233'
url = 'https://crystal.app.lss233.com/repositories/minecraft'
}
maven { url = 'https://files.minecraftforge.net/maven' }
maven {
name = 'jcenter'
url = 'https://maven.aliyun.com/repository/public'
}
maven { url = 'https://files.minecraftforge.net/maven' }
// jcenter()
// mavenCentral()
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
Expand All @@ -21,9 +17,9 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '3.2'
version = '3.3'
group = 'io.github.dawncraft.qingchenw'
archivesBaseName = 'allowcolor-forge(1.13-1.16)'
archivesBaseName = 'allowcolor-forge(1.13-1.17)'

[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
Expand All @@ -39,7 +35,7 @@ minecraft {
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
allowcolor{
allowcolor {
source sourceSets.main
}
}
Expand All @@ -50,7 +46,7 @@ minecraft {
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
allowcolor{
allowcolor {
source sourceSets.main
}
}
Expand All @@ -63,10 +59,6 @@ repositories {
name = 'jcenter'
url = 'https://maven.aliyun.com/repository/public'
}
maven {
name = 'lss233'
url = 'https://crystal.app.lss233.com/repositories/minecraft'
}
maven { url = 'https://files.minecraftforge.net/maven' }
maven {
name = "minecraft"
Expand All @@ -81,12 +73,12 @@ dependencies {
jar {
manifest {
attributes([
"Specification-Title": "Allow Color Mod",
"Specification-Vendor": "QingChenW",
"Specification-Version": "${version}",
"Implementation-Title": "io.github.dawncraft.qingchenw.allowcolor",
"Implementation-Version": "${version}",
"Implementation-Vendor" :"QingChenW",
"Specification-Title" : "AllowColor Mod",
"Specification-Vendor" : "QingChenW",
"Specification-Version" : "${version}",
"Implementation-Title" : "AllowColor Mod",
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "QingChenW",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ public void setup(FMLCommonSetupEvent event) {
LOGGER.info("Can you input format code? " + SharedConstants.isAllowedCharacter(FORMAT_CODE));
}

public void clientSetup(FMLClientSetupEvent event) {
}
public void clientSetup(FMLClientSetupEvent event) {}

@SubscribeEvent
public void onServerStarting(FMLServerStartingEvent event) {
}
public void onServerStarting(FMLServerStartingEvent event) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license="GPLv3"
showAsResourcePack=false
[[mods]]
modId="allowcolor"
version="${version}"
version="${file.jarVersion}"
displayName="AllowColor Mod"
displayURL="https://github.com/DawningW/Allow-Color-Mod"
credits="Mojang, FML and Forge"
Expand All @@ -15,7 +15,7 @@ Type color codes in Minecraft.
[[dependencies.allowcolor]]
modId="minecraft"
mandatory=true
versionRange="[1.13,)"
versionRange="[1.13,1.18)"
ordering="NONE"
side="BOTH"
[[dependencies.allowcolor]]
Expand Down
6 changes: 6 additions & 0 deletions Forge/1.13-1.17/src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"description": "AllowColor mod resources",
"pack_format": 3
}
}
5 changes: 5 additions & 0 deletions Forge/1.18+/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Disable autocrlf on generated files, they always generate with LF
# Add any extra files or paths here to make git stop saying they
# are changed when only line endings change.
src/generated/**/.cache/cache text eol=lf
src/generated/**/*.json text eol=lf
25 changes: 25 additions & 0 deletions Forge/1.18+/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# eclipse
bin
*.launch
.settings
.metadata
.classpath
.project

# idea
out
*.ipr
*.iws
*.iml
.idea

# gradle
build
.gradle

# other
eclipse
run

# Files from Forge MDK
forge*changelog.txt
Loading

0 comments on commit dcd98df

Please sign in to comment.