From 528bc8de5ec277ced7492d324b4352175a2da6b1 Mon Sep 17 00:00:00 2001 From: Faboslav Date: Thu, 26 Sep 2024 08:31:28 +0200 Subject: [PATCH] Updated configs, CI --- .github/workflows/publish-branch.yml | 8 ++++---- .../common/config/FriendsAndFoesConfig.java | 6 +++--- .../tags/blocks/crab_burrow_spot_blocks.json | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-branch.yml b/.github/workflows/publish-branch.yml index c9d3a966d..a8cd03cc1 100644 --- a/.github/workflows/publish-branch.yml +++ b/.github/workflows/publish-branch.yml @@ -108,11 +108,11 @@ jobs: github-tag: mc${{ steps.gradle-properties.outputs.MINECRAFT_VERSION }}-${{ steps.gradle-properties.outputs.MOD_VERSION }} github-commitish: ${{ steps.gradle-properties.outputs.MINECRAFT_VERSION }} - #curseforge-id: ${{ matrix.curseforge_project_id }} - #curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }} + curseforge-id: ${{ matrix.curseforge_project_id }} + curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }} - #modrinth-id: ${{ matrix.modrinth_project_id }} - #modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }} + modrinth-id: ${{ matrix.modrinth_project_id }} + modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }} name: ${{ steps.gradle-properties.outputs.MOD_NAME }} ${{ steps.gradle-properties.outputs.MOD_VERSION }} version: ${{ matrix.mod_loader }}-mc${{ steps.gradle-properties.outputs.MINECRAFT_VERSION }}-${{ steps.gradle-properties.outputs.MOD_VERSION }} diff --git a/common/src/main/java/com/faboslav/friendsandfoes/common/config/FriendsAndFoesConfig.java b/common/src/main/java/com/faboslav/friendsandfoes/common/config/FriendsAndFoesConfig.java index dd920c101..9d02780c2 100644 --- a/common/src/main/java/com/faboslav/friendsandfoes/common/config/FriendsAndFoesConfig.java +++ b/common/src/main/java/com/faboslav/friendsandfoes/common/config/FriendsAndFoesConfig.java @@ -38,13 +38,13 @@ public final class FriendsAndFoesConfig implements Config public int crabSpawnWeight = 14; @Description("Minimal spawn group size") - public int crabSpawnMinGroupSize = 2; + public int crabSpawnMinGroupSize = 3; @Description("Maximal spawn group size") public int crabSpawnMaxGroupSize = 5; - @Description("Reaching status effect modifier") - public float reachingStatusEffectModifier = 1.0F; + @Description("Reach status effect modifier (range in blocks)") + public int reachingStatusEffectModifier = 1; @Category("Glare") @Description("Enable") diff --git a/common/src/main/resources/data/friendsandfoes/tags/blocks/crab_burrow_spot_blocks.json b/common/src/main/resources/data/friendsandfoes/tags/blocks/crab_burrow_spot_blocks.json index 1bc747e08..4fa999fa8 100644 --- a/common/src/main/resources/data/friendsandfoes/tags/blocks/crab_burrow_spot_blocks.json +++ b/common/src/main/resources/data/friendsandfoes/tags/blocks/crab_burrow_spot_blocks.json @@ -1,5 +1,6 @@ { "values": [ + "minecraft:grass_block", "minecraft:mud", "#minecraft:sand" ]