Skip to content

Commit

Permalink
sdfghm
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourimadeit committed Jun 18, 2024
1 parent 2e8c2a2 commit 8a9ecd5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 53 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,24 @@ jobs:
- name: mc-publish
uses: Kir-Antipov/[email protected]
with:
modrinth-id: iRE67WIn
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 657831
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files-primary: build/libs/!(*-@(javadoc|sources)).jar
version-type: release
loaders: neoforge
game-versions: 1.20.6
game-versions: 1.21
java: 21
name: ""
changelog-file: changelog-1.21.*
- name: mc-publish
uses: Kir-Antipov/[email protected]
with:
modrinth-id: iRE67WIn
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files-primary: build/libs/!(*-@(javadoc|sources)).jar
version-type: release
loaders: neoforge
game-versions: 1.21
java: 21
name: ""
changelog-file: changelog-1.20.6.*
changelog-file: changelog-1.21.*
44 changes: 0 additions & 44 deletions changelog-1.20.6.txt

This file was deleted.

2 changes: 2 additions & 0 deletions changelog-1.21.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Port to 1.21
- Modded piglin variants spawning config has now been transformed into a data driven data map for different chances
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static class CommonConfig {
public final ModConfigSpec.BooleanValue BangBlockDestruction;
public final ModConfigSpec.IntValue alchemistWeightInBastions;
public final ModConfigSpec.DoubleValue healingArrowChances;
public final ModConfigSpec.DoubleValue piglinVariantChances;
public final ModConfigSpec.DoubleValue zombifiedPiglinDefaultChance;
public final ModConfigSpec.DoubleValue zombifiedBruteChance;
public final ModConfigSpec.DoubleValue zombifiedAlchemistChance;
Expand All @@ -48,7 +47,6 @@ public static class CommonConfig {
public final ModConfigSpec.IntValue minBucklerChargeTime;
public final ModConfigSpec.IntValue maxBucklerChargeTime;
public final ModConfigSpec.DoubleValue turningBucklerLaunchStrength;
public final ModConfigSpec.ConfigValue<List<? extends String>> zombifiedPiglinTypeList;
public final ModConfigSpec.ConfigValue<List<? extends String>> mobsThatCanAlsoUseBuckler;
public CommonConfig(ModConfigSpec.Builder builder) {
builder.push("Vanilla Changes");
Expand All @@ -64,8 +62,6 @@ public CommonConfig(ModConfigSpec.Builder builder) {
zombifiedBruteChance = builder.defineInRange("Chance of zombified piglins spawning with brute clothing (including items)", 0.015F, 0.0F, 9000.0F);
zombifiedAlchemistChance = builder.defineInRange("Chance of zombified piglins spawning with alchemist clothing (including items)", 0.10F, 0.0F, 9000.0F);
zombifiedTravelerChance = builder.defineInRange("Chance of zombified piglins spawning with traveler clothing ", 0.10F, 0.0F, 9000.0F);
piglinVariantChances = builder.defineInRange("Chance of zombified piglin variants spawning from the list below", 0.50F, 0.0F, 9000.0F);
zombifiedPiglinTypeList = builder.comment("List of variants a zombified piglin has a 50% of turning into when spawning.", "Keep in mind they will still spawn with golden swords, this will be changed in the future.").defineList("List of piglin variants to use", ImmutableList.of(), obj -> true);
builder.pop();
builder.push("Buckler");
mobsThatCanAlsoUseBuckler = builder.define("Mobs that can also use the buckler", Lists.newArrayList("guardvillagers:guard"));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version="${mod_version}" #mandatory
# A display name for the mod
displayName="${mod_name}" #mandatory
authors="${mod_authors}"
updateJSONURL="https://raw.githubusercontent.com/seymourimadeit/Piglin-Proliferation/main/update.json" #optional
updateJSONURL="https://api.modrinth.com/updates/piglin-proliferation|iRE67WIn}/forge_updates.json" #optional
logoFile="piglinproliferation.png"
credits="Vivi for Buckler art, flowerfugue's friends Leo and Paula for translation help" #optional
description='''
Expand Down

0 comments on commit 8a9ecd5

Please sign in to comment.