Skip to content
Open
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
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ subprojects {
name = "ModMaven"
url = "https://modmaven.dev"
}
// Crystal Nest repository where Soul Fire'd is hosted.
maven {
name = "Crystal Nest"
url = "https://maven.crystalnest.it"
}
// Fuzs repository where Soul Fire'd required dependency FCAP is hosted. Not needed since 1.21
maven {
name = "Fuzs Mod Resources"
url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/"
}
maven {
url "https://cursemaven.com"
content {
Expand Down Expand Up @@ -78,6 +88,7 @@ subprojects {
"mod_id" : mod_id,
"mod_license" : mod_license,
"mod_description" : project.mod_description,
"soul_fire_d_version" : soul_fire_d_version
]

filesMatching(['pack.mcmeta', 'fabric.mod.json', 'META-INF/mods.toml', '*.mixins.json']) {
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'


implementation "it.crystalnest:soul-fire-d-common:$minecraft_version-$soul_fire_d_version"
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package lilypuree.decorative_blocks.blocks;

import lilypuree.decorative_blocks.compat.SoulFired;
import lilypuree.decorative_blocks.registration.DBBlocks;
import lilypuree.decorative_blocks.platform.Services;
import net.minecraft.core.BlockPos;
Expand Down Expand Up @@ -52,10 +53,10 @@ public VoxelShape getCollisionShape(BlockState state, BlockGetter worldIn, Block

@Override
public void entityInside(BlockState state, Level worldIn, BlockPos pos, Entity entityIn) {
if (!entityIn.fireImmune() && entityIn instanceof LivingEntity && !EnchantmentHelper.hasFrostWalker((LivingEntity) entityIn)) {
if (!entityIn.fireImmune() && (!(entityIn instanceof LivingEntity) || !EnchantmentHelper.hasFrostWalker((LivingEntity) entityIn))) {
entityIn.hurt(entityIn.damageSources().inFire(), 1.0F);
if (Services.PLATFORM.isModLoaded("soulfired")) {
Services.SOULFIRED.setSecondsOnFire(entityIn, 3, state.is(DBBlocks.SOUL_BONFIRE.get()));
if (Services.PLATFORM.isModLoaded("soul_fire_d")) {
SoulFired.setSecondsOnFire(entityIn, 3, state.is(DBBlocks.SOUL_BONFIRE.get()));
} else
entityIn.setSecondsOnFire(3);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package lilypuree.decorative_blocks.compat;

import it.crystalnest.soul_fire_d.api.FireManager;
import net.minecraft.world.entity.Entity;

public class SoulFired {
public static void setSecondsOnFire(Entity entity, int seconds, boolean isSoul) {
FireManager.setOnFire(entity, seconds, isSoul ? FireManager.SOUL_FIRE_TYPE : FireManager.DEFAULT_FIRE_TYPE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import lilypuree.decorative_blocks.Constants;
import lilypuree.decorative_blocks.platform.services.IPlatformHelper;
import lilypuree.decorative_blocks.platform.services.SoulFiredHelper;

import java.util.ServiceLoader;

public class Services {
public static final IPlatformHelper PLATFORM = load(IPlatformHelper.class);
public static final SoulFiredHelper SOULFIRED = load(SoulFiredHelper.class);

public static <T> T load(Class<T> clazz) {

Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'idea'
id 'maven-publish'
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'fabric-loom' version '1.5-SNAPSHOT'
}
base {
archivesName = "${mod_name}-Fabric-${minecraft_version}"
Expand All @@ -22,7 +22,7 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"

implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
modCompileOnly "curse.maven:soulfired-662413:5029260"
modImplementation "it.crystalnest:soul-fire-d-fabric:$minecraft_version-$soul_fire_d_version"


// modCompileOnlyApi("mezz.jei:jei-${minecraft_version}-common-api:${jei_version}")
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"java": ">=17"
},
"suggests": {
"soulfired": "^3.2.1.0"
"soul_fire_d": "^${soul_fire_d_version}"
},
"custom": {
"mc-publish": {
"loaders": ["fabric"],
"dependencies": [
"soulfired@3.2.1.0(optional){modrinth:d6MhxwRo}{curseforge:662413}"
"soul-fire-d@{soul_fire_d_version}(optional){modrinth:d6MhxwRo}{curseforge:662413}"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ parchment_version=2023.12.10
# JEI
jei_version=17.1.0.39


# Soul Fire'd
soul_fire_d_version = 4.0.6
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
35 changes: 22 additions & 13 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
compileOnly "mezz.jei:jei-${minecraft_version}-neoforge-api:${jei_version}"
// at runtime, use the full JEI jar
runtimeOnly "mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}"
compileOnly "curse.maven:soulfired-662413:5029266"
implementation "it.crystalnest:soul-fire-d-neoforge:$minecraft_version-$soul_fire_d_version"
}

// NeoGradle compiles the game, but we don't want to add our common code to the game's code
Expand Down

This file was deleted.

6 changes: 3 additions & 3 deletions neoforge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ ordering = "NONE"
side = "BOTH"

[[dependencies.${mod_id}]]
modId = "soulfired"
modId = "soul_fire_d"
type="optional"
versionRange = "[3.2.1.0,)"
versionRange = "[{soul_fire_d_version},)"
ordering = "NONE"
side = "BOTH"

[mc-publish]
loaders = ['neoforge']
dependencies = [
"soulfired@3.2.1.0(optional){modrinth:d6MhxwRo}{curseforge:662413}"
"soul-fire-d@{soul_fire_d_version}(optional){modrinth:d6MhxwRo}{curseforge:662413}"
]
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pluginManagement {
}

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

rootProject.name = 'Decorative-Blocks'
Expand Down