I want to make a backrooms mod, and I need a food source and an entity to attack the player. I was planning on using almond water for the food and the bacteria the entity and I need models for both and animations. I want the bacteria to have the same amount of health as the warden and it to be able to one shot the player if caught up to them. and I want it to be walking around aimlessly at the speed of a zombie and then once I see's the player, it would speed up to the speed of the player running. and make the hit box of it to be 4 blocks tall and 2 blocks wide so it won't be able to fit in some places. also, give it a spawn egg so i can spawn it whenever i want to. and about the almond water, give it a model and an animation for when i want to drink it. and make it give the same amount of food that cooked chicken gives
I’ll create a Backrooms-themed mod with an animated almond water food item and a deadly bacteria entity.
I’ll create a Backrooms mod with an animated bacteria entity and almond water food item using GeckoLib.
Project Created Successfully
I’ve created a complete Backrooms mod with:
✅ Implemented Features
Bacteria Entity:
500 HP (Warden health)
20 damage (one-shot unarmored player)
4 blocks tall × 2 blocks wide hitbox
Walks at zombie speed (0.23), chases at 1.3× speed
AI goals: wanders aimlessly, targets and chases players
Spawn egg included (dark gray colors)
GeckoLib animations: idle, walk, attack
Almond Water:
6 hunger points, 7.2 saturation (same as cooked chicken)
Stacks to 16
32-tick drinking time with sound effects
GeckoLib animations: idle, drink
📦 What’s Bundled
The manifest.kod file ensures GeckoLib downloads and bundles automatically with your mod.
🎨 Next Steps: Create Your Models
The code is complete, but you need to create 3D models in Blockbench:
Install Blockbench with the GeckoLib plugin
Create the bacteria entity model (4 blocks tall, 2 wide, threatening design)
Create the almond water bottle model (small bottle with liquid)
Paint textures directly in Blockbench or use an image editor
Replace the placeholder .geo.json and .animation.json files with your Blockbench exports
Add the .png texture files (remove the .info placeholders)
The placeholder models I created show the basic structure and animation names your Blockbench exports should match. The actual visual design is up to you!
thats my model and i dont know how or where to add it so can you do it
📄
bactierea.java
java
138 lines
▶
// Made with Blockbench 5.1.4
// Exported for Minecraft version 1.17 or later with Mojang mappings
// Paste this class into your mod and generate all required imports
public class bactierea extends EntityModel {
// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "bactierea"), "main");
private final ModelPart right leg;
private final ModelPart left leg;
private final ModelPart body;
private final ModelPart head;
private final ModelPart right arm;
private final ModelPart left arm;
private final ModelPart bb_main;
public bactierea(ModelPart root) {
this.right leg = root.getChild("right leg");
this.left leg = root.getChild("left leg");
this.body = root.getChild("body");
this.head = root.getChild("head");
this.right arm = root.getChild("right arm");
this.left arm = root.getChild("left arm");
this.bb_main = root.getChild("bb_main");
}
public static LayerDefinition createBodyLayer() {
MeshDefinition meshdefinition = new MeshDefinition();
PartDefinition partdefinition = meshdefinition.getRoot();
PartDefinition right leg = partdefinition.addOrReplaceChild("right leg", CubeListBuilder.create().texOffs(0, 0).addBox(-0.5F, 0.0F, -0.5F, 1.0F, 6.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offset(-2.5F, 18.0F, -0.5F));
PartDefinition left leg = partdefinition.addOrReplaceChild("left leg", CubeListBuilder.create().texOffs(4, 0).addBox(-0.5F, 0.0F, -0.5F, 1.0F, 6.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offset(1.5F, 18.0F, -0.5F));
PartDefinition body = partdefinition.addOrReplaceChild("body", CubeListBuilder.create().texOffs(0, 9).addBox(-1.1327F, -0.0991F, -1.0F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offset(0.1327F, 11.5608F, 0.0F));
PartDefinition cube_r1 = body.addOrReplaceChild("cube_r1", CubeListBuilder.create().texOffs(8, 10).addBox(-1.137F, -2.0F, -1.0F, 1.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.1743F, -1.9406F, 0.0F, 0.0F, 0.0F, -0.0873F));
PartDefinition cube_r2 = body.addOrReplaceChild("cube_r2", CubeListBuilder.create().texOffs(4, 9).addBox(-1.137F, -2.0F, -1.0F, 1.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0873F));
PartDefinition head = partdefinition.addOrReplaceChild("head", CubeListBuilder.create().texOffs(0, 7).addBox(-2.0F, -1.0F, -1.0F, 3.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.texOffs(-2, 5).addBox(-2.5F, -5.0F, -2.0F, 4.0F, 4.0F, 3.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 8.0F, 0.0F));
PartDefinition right arm = partdefinition.addOrReplaceChild("right arm", CubeListBuilder.create(), PartPose.offset(-1.1733F, 6.7509F, -0.4662F));
PartDefinition cube_r3 = right arm.addOrReplaceChild("cube_r3", CubeListBuilder.create().texOffs(12, 0).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 5.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.5256F, 4.0781F, 0.4662F, 0.0F, 0.0F, 0.2618F));
PartDefinition cube_r4 = right arm.addOrReplaceChild("cube_r4", CubeListBuilder.create().texOffs(12, 0).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.1547F, 2.461F, 0.4662F, 0.0F, 0.0F, 0.6109F));
PartDefinition cube_r5 = right arm.addOrReplaceChild("cube_r5", CubeListBuilder.create().texOffs(12, 0).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 5.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.3445F, 8.715F, 0.541F, 0.0426F, 0.0094F, 0.0438F));
PartDefinition left arm = partdefinition.addOrReplaceChild("left arm", CubeListBuilder.create(), PartPose.offset(3.5669F, 15.5007F, 0.0796F));
PartDefinition cube_r6 = left arm.addOrReplaceChild("cube_r6", CubeListBuilder.create().texOffs(12, 3).addBox(0.0F, -2.0F, -1.0F, 1.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.4329F, -6.2687F, -0.0796F, 0.0F, 0.0F, -0.5236F));
PartDefinition cube_r7 = left arm.addOrReplaceChild("cube_r7", CubeListBuilder.create().texOffs(12, 0).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 5.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0493F, -4.8368F, -0.0796F, 0.0F, 0.0F, -0.2618F));
PartDefinition cube_r8 = left arm.addOrReplaceChild("cube_r8", CubeListBuilder.create().texOffs(12, 0).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 5.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0403F, 0.0167F, -0.1306F));
PartDefinition bb_main = partdefinition.addOrReplaceChild("bb_main", CubeListBuilder.create().texOffs(12, 15).addBox(-1.3697F, -14.6263F, -1.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F));
PartDefinition cube_r9 = bb_main.addOrReplaceChild("cube_r9", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-3.6537F, -18.3335F, -1.0F, 0.0F, 0.0F, 1.0472F));
PartDefinition cube_r10 = bb_main.addOrReplaceChild("cube_r10", CubeListBuilder.create().texOffs(11, 15).addBox(-2.0F, -0.5F, 0.0F, 3.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-3.489F, -19.1617F, -1.0F, 0.0F, 0.0F, 2.4871F));
PartDefinition cube_r11 = bb_main.addOrReplaceChild("cube_r11", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.489F, -17.0054F, -1.0F, 0.0F, 0.0F, 0.6545F));
PartDefinition cube_r12 = bb_main.addOrReplaceChild("cube_r12", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.1156F, -16.3375F, -1.0F, 0.0F, 0.0F, -0.0436F));
PartDefinition cube_r13 = bb_main.addOrReplaceChild("cube_r13", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.3506F, -15.8752F, -1.0F, 0.0F, 0.0F, 0.6545F));
PartDefinition cube_r14 = bb_main.addOrReplaceChild("cube_r14", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.2722F, -14.559F, -1.0F, 0.0F, 0.0F, 1.2654F));
PartDefinition cube_r15 = bb_main.addOrReplaceChild("cube_r15", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.3079F, -12.9192F, -1.0F, 0.0F, 0.0F, 1.8326F));
PartDefinition cube_r16 = bb_main.addOrReplaceChild("cube_r16", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.4447F, -11.5641F, -1.0F, 0.0F, 0.0F, 2.4435F));
PartDefinition cube_r17 = bb_main.addOrReplaceChild("cube_r17", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.9776F, -6.557F, -1.0F, 0.0F, 0.0F, -1.7453F));
PartDefinition cube_r18 = bb_main.addOrReplaceChild("cube_r18", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-3.0174F, -8.3811F, -1.0F, 0.0F, 0.0F, -1.4399F));
PartDefinition cube_r19 = bb_main.addOrReplaceChild("cube_r19", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.4236F, -10.0126F, -1.0F, 0.0F, 0.0F, -1.0036F));
PartDefinition cube_r20 = bb_main.addOrReplaceChild("cube_r20", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 1.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.4539F, -10.675F, -1.0F, 0.0F, 0.0F, 2.4871F));
PartDefinition cube_r21 = bb_main.addOrReplaceChild("cube_r21", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(4.0406F, -11.8925F, -1.0F, 0.0F, 0.0F, 2.4871F));
PartDefinition cube_r22 = bb_main.addOrReplaceChild("cube_r22", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(4.7937F, -14.8605F, -1.0F, 0.0F, 0.0F, 1.2654F));
PartDefinition cube_r23 = bb_main.addOrReplaceChild("cube_r23", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(4.8667F, -13.1891F, -1.0F, 0.0F, 0.0F, 1.789F));
PartDefinition cube_r24 = bb_main.addOrReplaceChild("cube_r24", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(3.8538F, -16.0316F, -1.0F, 0.0F, 0.0F, 0.5236F));
PartDefinition cube_r25 = bb_main.addOrReplaceChild("cube_r25", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.5428F, -16.0888F, -1.0F, 0.0F, 0.0F, -0.4363F));
PartDefinition cube_r26 = bb_main.addOrReplaceChild("cube_r26", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.8423F, -14.7241F, -1.0F, 0.0F, 0.0F, -0.9163F));
PartDefinition cube_r27 = bb_main.addOrReplaceChild("cube_r27", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.6295F, -13.5389F, -1.0F, 0.0F, 0.0F, -0.8727F));
PartDefinition cube_r28 = bb_main.addOrReplaceChild("cube_r28", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.9893F, -12.1963F, -1.0F, 0.0F, 0.0F, -1.7453F));
PartDefinition cube_r29 = bb_main.addOrReplaceChild("cube_r29", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.375F, -10.5086F, -1.0F, 0.0F, 0.0F, -2.0944F));
PartDefinition cube_r30 = bb_main.addOrReplaceChild("cube_r30", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-0.192F, -9.3256F, -1.0F, 0.0F, 0.0F, -2.618F));
PartDefinition cube_r31 = bb_main.addOrReplaceChild("cube_r31", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.3235F, -8.2144F, -1.0F, 0.0F, 0.0F, -2.3998F));
PartDefinition cube_r32 = bb_main.addOrReplaceChild("cube_r32", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.2224F, -6.8034F, -1.0F, 0.0F, 0.0F, -1.8762F));
PartDefinition cube_r33 = bb_main.addOrReplaceChild("cube_r33", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.4154F, -1.5602F, -1.0F, 0.0F, 0.0F, -0.9599F));
PartDefinition cube_r34 = bb_main.addOrReplaceChild("cube_r34", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.2224F, -3.1966F, -1.0F, 0.0F, 0.0F, -1.2654F));
PartDefinition cube_r35 = bb_main.addOrReplaceChild("cube_r35", CubeListBuilder.create().texOffs(12, 15).addBox(-1.0F, -0.5F, 0.0F, 2.0F, 1.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.5F, -5.0F, -1.0F, 0.0F, 0.0F, -1.5708F));
PartDefinition cube_r36 = bb_main.addOrReplaceChild("cube_r36", CubeListBuilder.create().texOffs(8, 5).addBox(-1.0F, -4.0F, -1.0F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.113F, -5.5383F, 0.0F, 0.0F, 0.0F, 0.5236F));
PartDefinition cube_r37 = bb_main.addOrReplaceChild("cube_r37", CubeListBuilder.create().texOffs(8, 0).addBox(-1.0F, -4.0F, -1.0F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.0F, -6.0F, 0.0F, 0.0F, 0.0F, -0.5236F));
return LayerDefinition.create(meshdefinition, 16, 16);
}
@Override
public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
}
@Override
public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
right leg.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
left leg.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
body.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
head.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
right arm.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
left arm.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
bb_main.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
}
}
package com.backrooms;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BackroomsEntities implements ModInitializer {
public static final String MOD_ID = "backrooms_entities";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
ModItems.initialize();
ModEntities.initialize();
LOGGER.info("Backrooms Entities initialized");
}
}