Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourimadeit committed Jun 16, 2024
1 parent e01f1a1 commit 6194f8b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
7 changes: 5 additions & 2 deletions changelog-1.21.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
- Update to 1.21
- Added config for
- Fix bug with guards eating food
- Fix stray white pixels in guard menu
- Removed Illusioners spawning in raids
This would be better in a seperate mod + changes in Neoforge make it completely unconfigurable
- Fixed guards not spawning in villages
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ minecraft_version=1.21
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21, 1.22)
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=21.0.0-beta
neo_version=21.0.13-beta
# The Neo version range can use any version of Neo as bounds
neo_version_range=[20.4,)
# The loader version range can only use the major version of FML as bounds
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/tallestegg/guardvillagers/GuardVillagers.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package tallestegg.guardvillagers;

import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.raid.Raid;
import net.minecraft.world.item.CreativeModeTabs;
Expand Down Expand Up @@ -65,8 +64,6 @@ private void addCreativeTabs(final BuildCreativeModeTabContentsEvent event) {

@SubscribeEvent
private void setup(final FMLCommonSetupEvent event) {
if (GuardConfig.COMMON.IllusionerRaids.get())
Raid.RaiderType.create("thebluemengroup", EntityType.ILLUSIONER, new int[]{0, 0, 0, 0, 0, 1, 1, 2});
}

@SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public static void loadConfig(ModConfigSpec config, String path) {
file.load();
config.setConfig(file);
}

public static class CommonConfig {
public final ModConfigSpec.BooleanValue RaidAnimals;
public final ModConfigSpec.BooleanValue WitchesVillager;
public final ModConfigSpec.BooleanValue IllusionerRaids;
public final ModConfigSpec.BooleanValue AttackAllMobs;
public final ModConfigSpec.BooleanValue MobsAttackGuards;
public final ModConfigSpec.BooleanValue VillagersRunFromPolarBears;
Expand All @@ -69,7 +69,6 @@ public static class CommonConfig {
public final ModConfigSpec.BooleanValue setGuardPatrolHotv;
public final ModConfigSpec.BooleanValue guardVariantRandomSpawning;
public final ModConfigSpec.BooleanValue followHero;

public final ModConfigSpec.BooleanValue golemFloat;
public final ModConfigSpec.IntValue reputationRequirement;
public final ModConfigSpec.IntValue reputationRequirementToBeAttacked;
Expand All @@ -79,7 +78,6 @@ public CommonConfig(ModConfigSpec.Builder builder) {
builder.push("raids and illagers");
RaidAnimals = builder.comment("Illagers In Raids Attack Animals?").translation(GuardVillagers.MODID + ".config.RaidAnimals").define("Illagers in raids attack animals?", true);
WitchesVillager = builder.comment("Witches Attack Villagers?").translation(GuardVillagers.MODID + ".config.WitchesVillager").define("Witches attack villagers?", true);
IllusionerRaids = builder.comment("This will make Illusioners get involved in raids").translation(GuardVillagers.MODID + ".config.IllusionerRaids").define("Have Illusioners in raids?", false);
IllagersRunFromPolarBears = builder.comment("This makes Illagers run from polar bears, as anyone with common sense would.").translation(GuardVillagers.MODID + ".config.IllagersRunFromPolarBears").define("Have Illagers have some common sense?", true);
builder.pop();
builder.push("mob ai in general");
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ description='''${mod_description}'''
side="BOTH"
[[mixins]]
config="guardvillagers.mixins.json"

# Features are specific properties of the game environment, that you may want to declare you require. This example declares
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
# stop your mod loading on the server for example.
Expand Down

0 comments on commit 6194f8b

Please sign in to comment.