Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
plugins {
id 'fabric-loom' version '1.10-SNAPSHOT'
id 'fabric-loom' version "${loom_version}"
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

Expand All @@ -29,14 +25,14 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"

// mod compat
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}"
modCompileOnly "maven.modrinth:jade:${project.jade_version}"
// https://maven4.bai.lol/mcp/mobius/waila/
modCompileOnly "mcp.mobius.waila:wthit-api:fabric-${project.wthit_version}"

// not yet updated
// modImplementation("mezz.jei:jei-${minecraft_version}-fabric-api:${jei_version}")
// modRuntimeOnly("mezz.jei:jei-${minecraft_version}-fabric:${jei_version}")
//modCompileOnly "mcp.mobius.waila:wthit-api:fabric-${project.wthit_version}"
//modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}"
}

processResources {
Expand Down Expand Up @@ -67,6 +63,10 @@ java {
withSourcesJar()
}

base {
archivesName = project.archives_base_name
}

jar {
from("LICENSE.md") {
rename { "${it}_${project.archivesBaseName}"}
Expand Down Expand Up @@ -94,4 +94,4 @@ publishing {
}
}
}
}
}
Binary file modified examples/revelationary_demo_datapack.zip
Binary file not shown.
11 changes: 6 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ org.gradle.jvmargs = -Xmx2G
# Fabric Properties
minecraft_version=1.21.5
yarn_mappings=1.21.5+build.1
loader_version=0.16.12
loader_version=0.17.2
loom_version=1.11-SNAPSHOT

# Mod Properties
mod_version=1.5.0+1.21.5
mod_version=1.5.1+1.21.5
maven_group=de.dafuqs
archives_base_name = revelationary

# https://fabricmc.net/develop/
fabric_api_version=0.119.9+1.21.5
fabric_api_version=0.128.2+1.21.5

jade_version=18.1.0+fabric
wthit_version=14.0.1
rei_version=18.0.796
wthit_version=15.0.2
rei_version=19.0.809
# jei_version=19.21.0.247
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*package de.dafuqs.revelationary.compat.rei;
package de.dafuqs.revelationary.compat.rei;

import de.dafuqs.revelationary.api.revelations.CloakSetChanged;
import de.dafuqs.revelationary.config.RevelationaryConfig;
Expand Down Expand Up @@ -37,4 +37,3 @@ public void registerBasicEntryFiltering(@SuppressWarnings("UnstableApiUsage") Ba
);
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
/*package de.dafuqs.revelationary.compat.wthit;
package de.dafuqs.revelationary.compat.wthit;

import de.dafuqs.revelationary.api.revelations.RevelationAware;
import mcp.mobius.waila.api.IBlockAccessor;
import mcp.mobius.waila.api.IBlockComponentProvider;
import mcp.mobius.waila.api.IPluginConfig;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import org.jetbrains.annotations.Nullable;

@Environment(EnvType.CLIENT)
public class CloakedBlockComponentProvider implements IBlockComponentProvider {
@Override
public @Nullable BlockState getOverride(IBlockAccessor accessor, IPluginConfig config) {
Expand All @@ -20,5 +23,4 @@ public class CloakedBlockComponentProvider implements IBlockComponentProvider {

return accessor.getBlockState();
}
}
*/
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/*package de.dafuqs.revelationary.compat.wthit;
package de.dafuqs.revelationary.compat.wthit;

import de.dafuqs.revelationary.api.revelations.RevelationAware;
import mcp.mobius.waila.api.IRegistrar;
import mcp.mobius.waila.api.IWailaPlugin;
import mcp.mobius.waila.api.IClientRegistrar;
import mcp.mobius.waila.api.IWailaClientPlugin;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

public class RevelationaryWthitPlugin implements IWailaPlugin {
@Environment(EnvType.CLIENT)
public class RevelationaryWthitPlugin implements IWailaClientPlugin {
@Override
public void register(IRegistrar registrar) {
registrar.addOverride(new CloakedBlockComponentProvider(), RevelationAware.class);
public void register(IClientRegistrar registrar) {
registrar.override(new CloakedBlockComponentProvider(), RevelationAware.class);
}
}
*/
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
],
"jade": [
"de.dafuqs.revelationary.compat.jade.RevelationaryJadePlugin"
],
"rei_client": [
"de.dafuqs.revelationary.compat.rei.RevelationaryREIPlugin"
]
},
"mixins": [
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/wthit_plugins.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"revelationary:plugin": {
"initializer": "de.dafuqs.revelationary.compat.wthit.RevelationaryWthitPlugin"
"entrypoints": {
"client": "de.dafuqs.revelationary.compat.wthit.RevelationaryWthitPlugin"
},
"side": "client"
}
}
Loading