BOMBER sounds, cavaryn tweaks, other random bs

This commit is contained in:
craisinlord committed 2026-06-28 09:49:18 -05:00
1 parent aad8a1e1c5
commit ca77d1b480
65 files changed
+474 -173

No files matched your search

@@ -39,6 +39,11 @@ public final class AntarchyFabric implements ModInitializer {
BloodCrystalShardItem.SYNC_BLOODGLASS = BloodglassManager::syncBloodglass;
}
private static final TagKey<net.minecraft.world.level.biome.Biome> CAVARYN_BIOMES = TagKey.create(
Registries.BIOME,
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "is_cavaryn")
);
private static void registerWorldgenFeatures() {
BiomeModifications.addFeature(
BiomeSelectors.tag(SHELLSTONE_BIOMES),
@@ -389,6 +389,9 @@ public final class AntarchyFabricContent {
public static final DeferredHolder<SoundEvent, SoundEvent> MOLEVORE_HURT = registerSoundEvent("molevore_hurt");
public static final DeferredHolder<SoundEvent, SoundEvent> MOLEVORE_ATTACK = registerSoundEvent("molevore_attack");
public static final DeferredHolder<SoundEvent, SoundEvent> MOLEVORE_DIG = registerSoundEvent("molevore_dig");
public static final DeferredHolder<SoundEvent, SoundEvent> BOMBER_WALK = registerSoundEvent("bomber_walk");
public static final DeferredHolder<SoundEvent, SoundEvent> BOMBER_KNOCK = registerSoundEvent("bomber_knock");
public static final DeferredHolder<SoundEvent, SoundEvent> BOMBER_EXPLODE = registerSoundEvent("bomber_explode");
public static final DeferredHolder<SoundEvent, SoundEvent> DUCT_TAPE_USE = registerSoundEvent("duct_tape_use");
public static final DeferredHolder<SoundEvent, SoundEvent> POTENT_NYXITE_HYPNOTIC_GAS = registerSoundEvent("potent_nyxite_hypnotic_gas");
public static final DeferredHolder<SoundEvent, SoundEvent> POTENT_NYXITE_GEYSER_ERUPTION_START = registerSoundEvent("potent_nyxite_geyser_eruption_start");
@@ -602,6 +605,8 @@ public final class AntarchyFabricContent {
));
public static final DeferredBlock<Block> MYRMITE = BLOCKS.register("myrmite",
() -> new Block(nyxiteProperties()));
public static final DeferredBlock<Block> BROODSTONE = BLOCKS.register("broodstone",
() -> new Block(BlockBehaviour.Properties.ofFullCopy(Blocks.DEEPSLATE).requiresCorrectToolForDrops()));
public static final DeferredBlock<RotatedPillarBlock> CHITEN_BLOCK = BLOCKS.register("chiten_block",
() -> new RotatedPillarBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.BONE_BLOCK).requiresCorrectToolForDrops()));
public static final DeferredBlock<UmbralMossBlock> UMBRAL_MOSS_BLOCK = BLOCKS.register("umbral_moss_block",
@@ -613,7 +618,7 @@ public final class AntarchyFabricContent {
public static final DeferredBlock<UmbralMossCarpetBlock> AMBER_MOSS_CARPET = BLOCKS.register("amber_moss_carpet",
() -> new UmbralMossCarpetBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.MOSS_CARPET).noOcclusion()));
public static final DeferredBlock<GlowLichenBlock> AMBER_LICHEN = BLOCKS.register("amber_lichen",
() -> new GlowLichenBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.GLOW_LICHEN).lightLevel(state -> 1)));
() -> new GlowLichenBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.GLOW_LICHEN).lightLevel(state -> 4)));
public static final DeferredBlock<Block> BILE_VEIN = BLOCKS.register("bile_vein",
() -> new Block(BlockBehaviour.Properties.ofFullCopy(Blocks.NETHERRACK)));
public static final DeferredBlock<VineBlock> CREEPVINE = BLOCKS.register("creepvine",
@@ -1192,6 +1197,7 @@ public final class AntarchyFabricContent {
public static final DeferredItem<net.minecraft.world.item.BlockItem> INFESTED_COARSE_DIRT_ITEM = ITEMS.registerSimpleBlockItem(INFESTED_COARSE_DIRT);
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_ITEM = ITEMS.registerSimpleBlockItem(NYXITE);
public static final DeferredItem<net.minecraft.world.item.BlockItem> MYRMITE_ITEM = ITEMS.registerSimpleBlockItem(MYRMITE);
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_ITEM = ITEMS.registerSimpleBlockItem(BROODSTONE);
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(POLISHED_NYXITE);
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHISELED_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(CHISELED_NYXITE);
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_BRICKS_ITEM = ITEMS.registerSimpleBlockItem(NYXITE_BRICKS);
@@ -1686,7 +1692,7 @@ public final class AntarchyFabricContent {
public static final DeferredItem<DeferredSpawnEggItem> RAINBOW_ANT_SPAWN_EGG = ITEMS.register("rainbow_ant_spawn_egg",
() -> new DeferredSpawnEggItem(RAINBOW_ANT, 0x56D4F0, 0xF66DBB, new Item.Properties()));
public static final DeferredItem<DeferredSpawnEggItem> TERMITE_SPAWN_EGG = ITEMS.register("termite_spawn_egg",
() -> new DeferredSpawnEggItem(TERMITE, 0xE8DFC0, 0x5C3C1A, new Item.Properties()));
() -> new DeferredSpawnEggItem(TERMITE, 0xD4B96A, 0xFF6B1A, new Item.Properties()));
public static final DeferredItem<DeferredSpawnEggItem> MOLEWORM_SPAWN_EGG = ITEMS.register("moleworm_spawn_egg",
() -> new DeferredSpawnEggItem(MOLEWORM, 0x7A6150, 0xD2B8A3, new Item.Properties()));
public static final DeferredItem<DeferredSpawnEggItem> MANTIS_SPAWN_EGG = ITEMS.register("mantis_spawn_egg",
@@ -1994,7 +2000,7 @@ public final class AntarchyFabricContent {
case "blood_crystal_block", "budding_blood_crystal",
"small_blood_crystal_bud", "medium_blood_crystal_bud",
"large_blood_crystal_bud", "blood_crystal_cluster" -> 7;
case "myrmite", "chiten_block", "chiten_spike", "amber_moss_block", "amber_moss_carpet" -> 8;
case "myrmite", "broodstone", "chiten_block", "chiten_spike", "amber_moss_block", "amber_moss_carpet" -> 8;
case "uranium_ore", "deepslate_uranium_ore", "titanium_ore", "deepslate_titanium_ore",
"uranium_block", "titanium_block", "raw_uranium_block", "raw_titanium_block",
"cut_uranium", "cut_titanium", "cut_uranium_slab", "cut_titanium_slab",
@@ -2411,6 +2417,9 @@ public final class AntarchyFabricContent {
MOLEVORE_HURT,
MOLEVORE_ATTACK,
MOLEVORE_DIG,
BOMBER_WALK,
BOMBER_KNOCK,
BOMBER_EXPLODE,
DUCT_TAPE_USE
);
@@ -1,6 +1,6 @@
package com.craisinlord.antarchy.fabric.mixin.client;
import com.craisinlord.antarchy.content.block.PotentNyxiteBlock;
import com.craisinlord.antarchy.content.fluid.BileLiquidBlock;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.shaders.FogShape;
import net.minecraft.client.Camera;
@@ -16,34 +16,34 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(FogRenderer.class)
public abstract class AntiwaterFogMixin {
// @Inject(method = "setupColor", at = @At("TAIL"))
// private static void antarchy$overrideAntiwaterColor(Camera camera, float partialTick, ClientLevel level, int renderDistance, float darkenWorldAmount, CallbackInfo ci) {
// if (!antarchy$isInAntiwater(camera)) {
// return;
// }
//
// RenderSystem.clearColor(0.52F, 0.06F, 0.06F, 0.0F);
// }
//
// @Inject(method = "setupFog", at = @At("TAIL"))
// private static void antarchy$overrideAntiwaterFog(Camera camera, FogRenderer.FogMode mode, float renderDistance, boolean thickFog, float partialTick, CallbackInfo ci) {
// if (!antarchy$isInAntiwater(camera)) {
// return;
// }
//
// RenderSystem.setShaderFogStart(0.5F);
// RenderSystem.setShaderFogEnd(Math.min(renderDistance, 12.0F));
// RenderSystem.setShaderFogShape(FogShape.CYLINDER);
// }
//
// private static boolean antarchy$isInAntiwater(Camera camera) {
// Entity entity = camera.getEntity();
// if (entity == null || entity.level() == null) {
// return false;
// }
//
// BlockPos pos = BlockPos.containing(camera.getPosition());
// FluidState fluidState = entity.level().getFluidState(pos);
// return PotentNyxiteBlock.isAntiwater(fluidState);
// }
@Inject(method = "setupColor", at = @At("TAIL"))
private static void antarchy$overrideBileColor(Camera camera, float partialTick, ClientLevel level, int renderDistance, float darkenWorldAmount, CallbackInfo ci) {
if (!antarchy$isInBile(camera)) {
return;
}
RenderSystem.clearColor(0.38F, 0.42F, 0.10F, 0.0F);
}
@Inject(method = "setupFog", at = @At("TAIL"))
private static void antarchy$overrideBileFog(Camera camera, FogRenderer.FogMode mode, float renderDistance, boolean thickFog, float partialTick, CallbackInfo ci) {
if (!antarchy$isInBile(camera)) {
return;
}
RenderSystem.setShaderFogStart(0.25F);
RenderSystem.setShaderFogEnd(Math.min(renderDistance, 4.0F));
RenderSystem.setShaderFogShape(FogShape.CYLINDER);
}
private static boolean antarchy$isInBile(Camera camera) {
Entity entity = camera.getEntity();
if (entity == null || entity.level() == null) {
return false;
}
BlockPos pos = BlockPos.containing(camera.getPosition());
FluidState fluidState = entity.level().getFluidState(pos);
return BileLiquidBlock.isBile(fluidState);
}
}