📄
pasted-code-1794385362403.txt
txt
41 lines
▶
**Title:** Minecraft Hostile Mob Spec: "Enrico Papi" Meme Mob
**Objective:**
Create a custom hostile Minecraft mob named "Enrico Papi", based on his viral Italian TV commercial meme ("Noicompriamoauto.it - Quanto vale la tua auto?").
---
### Mob Specifications & Features
#### 1. Visual Design & Character Model
* **Base Model:** Bipedal humanoid (standard Steve/Alex layout) formatted in 3D Minecraft voxel style.
* **Physical Appearance:**
* Short, dark brown hair, slightly wavy and voluminous on top.
* Fair skin and brown eyes.
* Large rectangular dark brown/black eyeglasses.
* A short, neatly trimmed dark brown beard covering the chin, jawline, and upper lip.
* Slightly elongated face.
* **Clothing:**
* Dark navy blue elegant blazer with classic lapels.
* Plain light grey/white crew-neck T-shirt underneath (no logos or patterns).
* Smart casual appearance.
* **Expression & Personality:**
* Looking directly at the camera with a big, enthusiastic smile (mouth slightly open as if speaking).
* Friendly, confident television advertising presenter personality.
* **Key Identifiers:** Preserves the essential combination of dark rectangular glasses, short brown hair, full short beard, navy blazer, and light crew-neck T-shirt.
#### 2. Sound Effects & Audio
* **Ambient Sound:** Enthusiastic voice clips saying *"Quanto vale la tua auto?"*.
* **Attack Sound:** Loud car horn sound accompanied by his iconic shouting voice.
#### 3. AI & Attack Behavior
* **Aggro:** Hostile to players within a 16-block radius.
* **Grab Attack (Camera Lock):** Upon reaching the player, he locks the player in place (applies Slowness 255 and Jump Boost 128) and forces the player's camera to look directly at him.
* **On-Screen GUI / Overlay:** Displays large text across the screen: `"QUANTO VALE LA TUA AUTO?"`.
#### 4. Interaction & Outcome Logic
* **Emerald Trade (Pacification):**
* If the player right-clicks him with 1x **Emerald**, Enrico Papi accepts it, spawns a small car entity, gets inside, and drives away rapidly before despawning.
* **Refusal / Failure State (No Emerald):**
* **If Player owns/drives a vehicle** (compatible with custom car entities/mods): Enrico Papi instantly despawns the vehicle (simulating selling it) and vanishes.
* **If Player does NOT own a vehicle:** Enrico Papi deals 1000 True Damage (Instant Kill), eliminating the player on the spot.
Add the Fabric 26.3 project setup and survival-obtainable spawn egg.
Implement a hostile humanoid presenter with player-targeting, grab effects, camera focus, and pacification/vehicle outcomes.
Add a custom humanoid skin, spawn-egg art, and a client HUD overlay; use available vanilla sound cues where custom voice audio isn’t available.
Wire entity registration, rendering, natural spawning, and required assets.
Implemented the Fabric 26.3 mod with a custom humanoid skin, Overworld spawning, hostile targeting, the grab effects and camera lock, and the HUD message.
In survival, craft the spawn egg with 4 emeralds, 1 egg, and 1 blaze powder. The mob drops an emerald. Giving it an emerald sends it off in a minecart; without one, it removes a vehicle the player is currently riding or deals 1000 void damage.
Custom voice clips and third-party car-mod compatibility aren’t included: vanilla villager sounds and a goat-horn cue are used, the getaway uses a vanilla minecart, and vehicle detection checks only what the player is riding.
package dev.kodari.autopresenter.client;
import dev.kodari.autopresenter.ModEntities;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
public final class AutoPresenterClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
EntityRendererRegistry.register(ModEntities.PRESENTER, PresenterRenderer::new);
PresenterHud.register();
}
}