Create a Fabric mod for Minecraft 1.21.1 (Yarn mappings) that adds a "Feminine Transformation" system.
Core Mechanic — Player Size/Hitbox Change:
When a player has the custom "Feminine" status effect, their entity dimensions must change in real time:
Width: 0.6 → 0.4 Height: 1.8 → 1.4 Eye height: 1.62 → 1.2 Implementation: Use a Mixin on PlayerEntity to wrap/override the getDimensions(EntityPose pose) method. When the player has the effect, return a new EntityDimensions(0.4f, 1.4f, 1.2f, original.attachments(), false). When the effect is removed, return the original STANDING_DIMENSIONS (or the pose-specific dimensions from the map).
The Mixin must:
Target net.minecraft.entity.player.PlayerEntity Use @WrapMethod on getDimensions(EntityPose) Check if this (the player) has the custom effect via ((LivingEntity)(Object)this).hasStatusEffect(ModEffects.FEMININE) Only apply the size change on the logical server side (or both sides consistently) Stat Changes (while effect is active):
Max health: 20 → 12 (use AttributeModifier on LivingEntity.MAX_HEALTH) Attack damage: -2 (use AttributeModifier on LivingEntity.ATTACK_DAMAGE) Movement speed: +20% (use AttributeModifier on Entity.MOVEMENT_SPEED) Apply modifiers on effect start, remove on effect end.
Pregnancy Mechanic:
Custom "Pregnancy" status effect (no particles, no ambient sound) Only applies to players who currently have the Feminine effect Lasts 3 minutes (3600 ticks) On expiry: spawn a baby villager at the player's position, play a villager "baby" sound Visual: use a client-side Mixin on PlayerEntityRenderer to scale the body model's body part by 1.Core Mechanic — Player Size/Hitbox Change:
When a player has the custom "Feminine" status effect, their entity dimensions must change in real time:
Width: 0.6 → 0.4 Height: 1.8 → 1.4 Eye height: 1.62 → 1.2 Implementation: Use a Mixin on PlayerEntity to wrap/override the getDimensions(EntityPose pose) method. When the player has the effect, return a new EntityDimensions(0.4f, 1.4f, 1.2f, original.attachments(), false). When the effect is removed, return the original STANDING_DIMENSIONS (or the pose-specific dimensions from the map).
The Mixin must:
Target net.minecraft.entity.player.PlayerEntity Use @WrapMethod on getDimensions(EntityPose) Check if this (the player) has the custom effect via ((LivingEntity)(Object)this).hasStatusEffect(ModEffects.FEMININE) Only apply the size change on the logical server side (or both sides consistently) Stat Changes (while effect is active):
Max health: 20 → 12 (use AttributeModifier on LivingEntity.MAX_HEALTH) Attack damage: -2 (use AttributeModifier on LivingEntity.ATTACK_DAMAGE) Movement speed: +20% (use AttributeModifier on Entity.MOVEMENT_SPEED) Apply modifiers on effect start, remove on effect end.
Pregnancy Mechanic:
Custom "Pregnancy" status effect (no particles, no ambient sound) Only applies to players who currently have the Feminine effect Lasts 3 minutes (3600 ticks) On expiry: spawn a baby villager at the player's position, play a villager "baby" sound Visual: use a client-side Mixin on PlayerEntityRenderer to scale the body model's body part by 1.2x when the player has the Pregnancy effect (client-only, cosmetic) Items:
"Transformation Vial" — drinkable item, applies Feminine effect for 5 minutes (6000 ticks) "Fertility Splash" — throwable splash potion, applies Pregnancy effect for 3 minutes on hit (only works on players with Feminine effect)
Create the NeoForge 1.21.1 project scaffold and the Feminine effect with its size/stat changes.
Add gated pregnancy behavior, expiry outcome, and its client-only visual.
Add the vial and splash item, plus survival recipes and assets.
Implemented as a NeoForge 1.21.1 mod with Mojang names, rather than Fabric/Yarn.
Feminine effect: The vial grants the effect for 5 minutes. It changes player dimensions to 0.4 × 1.4 with 1.2 eye height, reduces max health to 12 and attack damage by 2, and increases movement speed by 20%. The size change uses NeoForge’s size event.
Pregnancy: The splash applies the effect for 3 minutes only to players with Feminine active. On natural expiry, it spawns a baby villager at the player and plays a pitched villager ambient sound. The client render event scales the player’s body model by 1.2×.
Survival and assets: Added custom item textures, models, names, and recipes. Craft the vial with a glass bottle, amethyst shard, pink dye, and nether wart; craft the splash from the vial and gunpowder. Both appear in the Food & Drinks tab.
missing required files for neoforge
Restore the Gradle project files and NeoForge mod metadata.
Add the missing mod entrypoint and effect registrations required by the existing item/event classes.
Verify the registration APIs against the mounted 1.21.1 source before writing Java.
Added the missing NeoForge project files: build.gradle, settings.gradle, neoforge.mods.toml, the @Mod entrypoint, and the effect registry needed by the existing items and events. The project is configured for Minecraft 1.21.1 and NeoForge 21.1.262.
package com.kodari.femininetransformation;
import com.kodari.femininetransformation.effect.ModEffects;
import com.kodari.femininetransformation.item.ModItems;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
@Mod(FeminineTransformationMod.MOD_ID)
public final class FeminineTransformationMod {
public static final String MOD_ID = "feminine_transformation";
public FeminineTransformationMod(IEventBus modEventBus) {
ModEffects.EFFECTS.register(modEventBus);
ModItems.ITEMS.register(modEventBus);
}
}