L’anomalie sous le surnom de « Chiot » et une entité de Forme Canine recouvert de Feuilles avec un collier de fleurs, Le pouvoir de l’entité et un sorte de réconfort Surnaturel ou le Scp peut réconforter les gens et les faire retrouver la joie en 20 minute de jeux avec lui (jouer a la balle ect…), la Taille de Scp-003-S51 fait 1,50m de haut. Avec des yeux luminescent de couleurs verte clair.
1 image attached
KodariJul 19 at 8:06 am 23
I’ll create a Fabric mod adding an SCP-themed anomalous entity — a comforting canine creature made of leaves.
SCP003S51Anomaly
Adds "Chiot", a canine-shaped anomalous entity covered in leaves with a flower collar and glowing green eyes, standing 1.5 blocks tall. Players who interact and play with it (throwing/fetching a ball) for a short time receive comfort effects: regeneration, sadness/negative effects cleared, and temporary happiness buffs. The entity wanders peacefully, follows players holding a ball item, and never attacks. Includes custom model, spawn egg, and ball item for playtime interactions.
Setting up the mod structure now.
LeafPupSCP
A Fabric 1.20.4 mod adding SCP-003-S51 "Chiot" — a 1.5m tall canine anomaly covered in leaves with a flower collar and glowing green eyes. Players can play with it (throwing a ball, petting) for 20 in-game minutes to earn its supernatural comfort: a custom Joy effect that heals and clears negative status effects. Includes custom entity AI, model, renderer, spawn egg, and status effect, all registered through standard Fabric registries.
Building the mod now — entity, AI/comfort mechanic, custom status effect, model/renderer, and registration.
Fabric mod adding SCP-003-S51 "Chiot" — a leaf-covered canine anomaly with glowing green eyes and a flower collar, standing 1.5m tall. Roams the world and can be played with (fetch/interaction) for 20 minutes to grant the player a comforting "Joy" status effect that heals and clears negative moods. Includes custom entity AI, model/renderer, spawn egg, and a bespoke beneficial status effect.
Mod created: LeafPupSCP.
LeafPupEntity — wandering canine anomaly with a play-interaction system: right-click to start playing, stays near the player and accumulates play ticks (24000 ticks ≈ 20 min), then grants the custom Joy status effect and hearts.
JoyStatusEffect — beneficial effect that clears Nausea/Blindness on apply and gently heals over time.
LeafPupEntityModel / LeafPupEntityRenderer — custom blocky quadruped model/renderer (place your leaf-dog texture at src/main/resources/assets/leafpup/textures/entity/leaf_pup.png, 64×64).
Spawn egg (leaf_pup_spawn_egg) auto-added to the vanilla Spawn Eggs creative tab.
Lang file with French-context messages translated to English keys (message.leafpup.*).
Note: art assets (texture PNG, icon) aren’t generated by this tool — add leaf_pup.png and icon.png under the paths referenced above to complete the visuals.
The compilation failed with this error:
code
Compilation failed with 6 error(s):
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 26: cannot find symbol
import net.minecraft.util.math.EnumSet;
^
symbol: class EnumSet
location: package net.minecraft.util.math
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 64: interactMob(PlayerEntity,Hand) in LeafPupEntity cannot override interactMob(PlayerEntity,Hand) in MobEntity
public TypedActionResult<net.minecraft.item.ItemStack> interactMob(PlayerEntity player, Hand hand) {
^
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 63: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 64: interactMob(PlayerEntity,Hand) in LeafPupEntity cannot override interactMob(PlayerEntity,Hand) in MobEntity
public TypedActionResult<net.minecraft.item.ItemStack> interactMob(PlayerEntity player, Hand hand) {
^
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 26: cannot find symbol
import net.minecraft.util.math.EnumSet;
^
symbol: class EnumSet
location: package net.minecraft.util.math
ERROR in src/main/java/com/leafpup/entity/LeafPupEntity.java at line 63: method does not override or implement a method from a supertype
@Override
^
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- EnumSet
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/leafpup/entity/LeafPupEntity.java
- src/main/java/com/leafpup/entity/LeafPupEntity.java
Please fix this error by creating a new artifact with the corrected code.
KodariJul 19 at 8:07 am 5
In 1.20.4, MobEntity.interactMob returns ActionResult, not TypedActionResult. Fixing the return type and the bad EnumSet import.
Fixed both issues: EnumSet import corrected (was pointing to a nonexistent net.minecraft.util.math.EnumSet — the code already correctly used java.util.EnumSet at line 134, the import was just unused/wrong), and interactMob now returns ActionResult matching MobEntity’s signature in 1.20.4 instead of TypedActionResult.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 521
src/client/java/com/leafpup/LeafPupModClient.java
package com.leafpup;
import com.leafpup.entity.ModEntities;
import com.leafpup.entity.client.LeafPupEntityModel;
import com.leafpup.entity.client.LeafPupEntityRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.render.entity.model.EntityModelLayer;
import net.minecraft.util.Identifier;
public class LeafPupModClient implements ClientModInitializer {
public static final EntityModelLayer LEAF_PUP_LAYER =
new EntityModelLayer(new Identifier(LeafPupMod.MOD_ID, "leaf_pup"), "main");
@Override
public void onInitializeClient() {
EntityModelLayerRegistry.registerModelLayer(LEAF_PUP_LAYER, LeafPupEntityModel::getTexturedModelData);
EntityRendererRegistry.register(ModEntities.LEAF_PUP, LeafPupEntityRenderer::new);
}
}