Skip to content

Commit

Permalink
Update to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
UnRealDinnerbone committed Jun 8, 2023
1 parent 48a12f3 commit 82a567d
Show file tree
Hide file tree
Showing 247 changed files with 2,736 additions and 278 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* text eol=lf
*.bat text eol=crlf
*.patch text eol=lf
*.java text eol=lf
*.gradle text eol=crlf
*.png binary
*.gif binary
*.exe binary
*.dll binary
*.jar binary
*.lzma binary
*.zip binary
*.pyd binary
*.cfg text eol=lf
*.jks binary
4 changes: 0 additions & 4 deletions .github/meta.json

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/build-release.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
if: |
!contains(github.event.head_commit.message, '[ciskip]')
uses: nanite/workflows/.github/workflows/standard-arch-release.yml@v1
secrets:
nanite-token: ${{ secrets.NANITE_DEPLOY }}
curse-token: ${{ secrets.CURSE_DEPLOY }}
17 changes: 17 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build & Release

on:
push:
branches:
- "1.*"

jobs:
build:
if: |
!contains(github.event.head_commit.message, '[ciskip]')
uses: nanite/workflows/.github/workflows/base-java.yml@v1
secrets:
nanite-token: ${{ secrets.NANITE_DEPLOY }}
with:
use-snapshots: true
gradle-tasks: build publish
42 changes: 15 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
# gradle

.gradle/
build/
out/
classes/

# eclipse

bin
*.launch
.settings
.metadata
.classpath
.project

# idea

.idea/
*.iml
out
*.ipr
*.iws
*.iml
.idea/*
!.idea/scopes

# vscode

.settings/
.vscode/
bin/
.classpath
.project

# macos

*.DS_Store

# fabric
# gradle
build
.gradle

run/

logs/
# other
eclipse
run
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### 2.0.0

- Port To Fabric
- Update To Minecraft 1.20
47 changes: 47 additions & 0 deletions Common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
plugins {
id 'java'
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
id 'maven-publish'
}

minecraft {
version(minecraft_version)
}

dependencies {
compileOnly group:'org.spongepowered', name:'mixin', version:'0.8.5'
implementation(("com.unrealdinnerbone:Trenzalore-Common:${trenzalore_version}+mc${minecraft_version}"))
}

processResources {

def buildProps = project.properties.clone()

filesMatching(['pack.mcmeta']) {

expand buildProps
}
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
}
}

repositories {
if (ENV.NANITE_TOKEN) {
maven {
url "https://maven.nanite.dev/${SNAPSHOT ? "snapshots" : "releases"}"
credentials {
username = "nanite"
password = "${ENV.NANITE_TOKEN}"
}
}
}
}
}
11 changes: 11 additions & 0 deletions Common/src/main/java/com/unrealdinnerbone/ibicf/IBICF.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.unrealdinnerbone.ibicf;

public class IBICF {
public static final String MOD_ID = "ibicf";

public static void init() {
//Load config on mod startup not on first render
IBICFConfig.CONFIG.get();
}

}
10 changes: 10 additions & 0 deletions Common/src/main/java/com/unrealdinnerbone/ibicf/IBICFConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.unrealdinnerbone.ibicf;

import com.google.common.base.Suppliers;
import com.unrealdinnerbone.trenzalore.api.config.ConfigManger;

import java.util.function.Supplier;

public record IBICFConfig(float cloudLevel) {
public static Supplier<IBICFConfig> CONFIG = Suppliers.memoize(() -> ConfigManger.getOrCreateConfig(IBICF.MOD_ID, IBICFConfig.class, () -> new IBICFConfig(128)));
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.unrealdinnerbone.ibicf.mixin;

import com.unrealdinnerbone.ibicf.IBICF;
import com.unrealdinnerbone.ibicf.IBICFConfig;
import net.minecraft.client.renderer.DimensionSpecialEffects;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -15,8 +15,8 @@ public class DimensionRenderInfoMixin {

@Inject(at = @At("HEAD"), method = "getCloudHeight()F", cancellable = true)
private void init(CallbackInfoReturnable<Float> info) {
if(!Float.isNaN(cloudLevel) && IBICF.cloud != null) {
info.setReturnValue(IBICF.cloud.get().floatValue());
if(!Float.isNaN(cloudLevel)) {
info.setReturnValue(IBICFConfig.CONFIG.get().cloudLevel());
}
}

Expand Down
Binary file added Common/src/main/resources/assets/ibicf/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"required": true,
"minVersion": "0.8",
"package": "com.unrealdinnerbone.ibicf.mixin",
"refmap": "ibicf.refmap.json",
"compatibilityLevel": "JAVA_17",
"mixins": [
],
"client": [
"DimensionRenderInfoMixin"
],
"injectors": {
"defaultRequire": 1
}
}
{
"required": true,
"minVersion": "0.8",
"package": "com.unrealdinnerbone.ibicf.mixin",
"compatibilityLevel": "JAVA_17",
"refmap": "ibicf.refmap.json",
"mixins": [
"DimensionRenderInfoMixin"
],
"injectors": {
"defaultRequire": 1
}
}

6 changes: 6 additions & 0 deletions Common/src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"description": "${mod_name}",
"pack_format": 8
}
}
89 changes: 89 additions & 0 deletions Fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
id 'idea'
id 'net.darkhax.curseforgegradle' version '1.0.14'
}

Project commonProject = parent == rootProject ? parent.project("Common") : parent.project("IBICF-Common")

dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
modImplementation(("com.unrealdinnerbone:Trenzalore-Fabric:${trenzalore_version}+mc${minecraft_version}"))
implementation commonProject
}

loom {
mixin {
defaultRefmapName = "${mod_id}.refmap.json"
}
runs {
client {
client()
setConfigName("Fabric Client")
ideConfigGenerated(true)
vmArg("-Dmixin.debug.export=true")
runDir("run_client")
}
server {
server()
setConfigName("Fabric Server")
ideConfigGenerated(true)
vmArg("-Dmixin.debug.export=true")
runDir("run_server")
}
}
}


processResources {
from commonProject.sourceSets.main.resources

def buildProps = project.properties.clone()
buildProps.put("version", project.version)
buildProps.put("trenzalore_version", parent.property("trenzalore_version"))
buildProps.put("minecraft_version", parent.property("minecraft_version"))
filesMatching("fabric.mod.json") {
expand buildProps
}
}

tasks.withType(JavaCompile) {
source(commonProject.sourceSets.main.allSource)
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName + "-" + project.name
version project.version
from components.java
}
}

repositories {
if (ENV.NANITE_TOKEN) {
maven {
url "https://maven.nanite.dev/${SNAPSHOT ? "snapshots" : "releases"}"
credentials {
username = "nanite"
password = "${ENV.NANITE_TOKEN}"
}
}
}
}
}

task curseforgePublish(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) {

apiToken = ENV.CURSE_TOKEN
def mainFile = upload(findProperty('curse_id'), remapJar)
mainFile.changelog = file("../CHANGELOG.md")
mainFile.releaseType = "beta"
mainFile.changelogType = "markdown"
mainFile.addJavaVersion("Java 17")
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions Fabric/run_client/config/fabric/indigo-renderer.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#Indigo properties file
#Thu Jun 08 10:15:28 CDT 2023
debug-compare-lighting=auto
fix-exterior-vertex-lighting=auto
ambient-occlusion-mode=hybrid
always-tesselate-blocks=auto
fix-smooth-lighting-offset=auto
fix-luminous-block-ambient-occlusion=auto
3 changes: 3 additions & 0 deletions Fabric/run_client/config/ibicf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cloudLevel": 128.0
}
5 changes: 5 additions & 0 deletions Fabric/run_client/config/trenzalore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"boatFix": true,
"fullBruteGoldArmor": true,
"poisonArrowsInJungleTemples": true
}
Loading

0 comments on commit 82a567d

Please sign in to comment.