Made triffid take reduced projectile damage

Fixed fallen king crown
New basilisk texture
Overhaul nightmare AI
This commit is contained in:
craisinlord committed 2026-06-22 16:47:21 -05:00
1 parent 8bb2720a11
commit bd09c6ec7f
16 files changed
+1798 -2334

No files matched your search

@@ -1,29 +1,26 @@
package com.craisinlord.antarchy.neoforge.client;
import com.craisinlord.antarchy.neoforge.registry.AntarchyNeoforgeBlocks;
import com.craisinlord.antarchy.neoforge.registry.AntarchyNeoforgeItems;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Axis;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.ItemRenderer;
import net.minecraft.client.model.PlayerModel;
import net.minecraft.client.player.AbstractClientPlayer;
import net.minecraft.client.renderer.block.BlockRenderDispatcher;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.entity.LivingEntityRenderer;
import net.minecraft.client.renderer.entity.RenderLayerParent;
import net.minecraft.client.renderer.entity.layers.RenderLayer;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.ItemDisplayContext;
import net.minecraft.world.item.ItemStack;
public final class FallenKingCrownLayer extends RenderLayer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> {
private static final ModelResourceLocation WORN_MODEL = ModelResourceLocation.inventory(
net.minecraft.resources.ResourceLocation.fromNamespaceAndPath("antarchy", "fallen_king_crown_worn")
);
private final ItemRenderer itemRenderer;
private final BlockRenderDispatcher blockRenderer;
public FallenKingCrownLayer(RenderLayerParent<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> renderer) {
super(renderer);
this.itemRenderer = Minecraft.getInstance().getItemRenderer();
this.blockRenderer = Minecraft.getInstance().getBlockRenderer();
}
@Override
@@ -46,15 +43,15 @@ public final class FallenKingCrownLayer extends RenderLayer<AbstractClientPlayer
poseStack.pushPose();
this.getParentModel().head.translateAndRotate(poseStack);
this.itemRenderer.render(
headStack,
ItemDisplayContext.HEAD,
false,
poseStack.translate(0.5D, -0.125D, -0.5D);
poseStack.mulPose(Axis.XP.rotationDegrees(180.0F));
poseStack.mulPose(Axis.YP.rotationDegrees(180.0F));
this.blockRenderer.renderSingleBlock(
AntarchyNeoforgeBlocks.FALLEN_KING_CROWN.get().defaultBlockState(),
poseStack,
buffer,
packedLight,
LivingEntityRenderer.getOverlayCoords(player, 0.0F),
Minecraft.getInstance().getModelManager().getModel(WORN_MODEL)
LivingEntityRenderer.getOverlayCoords(player, 0.0F)
);
poseStack.popPose();
}
@@ -241,6 +241,13 @@ public final class AntarchyNeoforgeBlocks {
() -> new com.craisinlord.antarchy.content.block.AntimetalScaffoldingBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.SCAFFOLDING)));
public static final DeferredBlock<CorneaStalkBlock> CORNEA_STALK = BLOCKS.register("cornea_stalk",
() -> new CorneaStalkBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.SWEET_BERRY_BUSH).randomTicks()));
public static final DeferredBlock<Block> FALLEN_KING_CROWN = BLOCKS.register("fallen_king_crown",
() -> new Block(BlockBehaviour.Properties.of()
.strength(0.2F)
.sound(SoundType.METAL)
.noOcclusion()
.isSuffocating((state, level, pos) -> false)
.isViewBlocking((state, level, pos) -> false)));
public static final DeferredBlock<AmethystClusterBlock> SMALL_BLOOD_CRYSTAL_BUD = BLOCKS.register("small_blood_crystal_bud",
() -> new AmethystClusterBlock(3.0F, 4.0F, BlockBehaviour.Properties.ofFullCopy(Blocks.SMALL_AMETHYST_BUD)));
public static final DeferredBlock<AmethystClusterBlock> MEDIUM_BLOOD_CRYSTAL_BUD = BLOCKS.register("medium_blood_crystal_bud",