dpt436._99718
📎 1 file 2,465 chars
📄
pasted-code-1779638435933.txt
txt 162 lines
▶
Parasite SMP

Everyone starts normal…

But players can become infected by a living parasite that evolves over time.

The parasite gives insane abilities, but slowly takes over the player.

🦠 Main Mechanic

You can get infected by:

infected mobs
special biomes
parasite players
cursed artifacts
boss fights

Once infected:

you enter Stage 1
the parasite evolves the longer you survive
🧬 Evolution Stages
Stage 1 — Mutation

Small buffs:

faster mining
slight regen
night vision

Minor downsides:

random whispers
hunger drain
occasional screen effects
Stage 2 — Adaptation

Parasite grows stronger.

Unlocks:

wall climbing
leap ability
temporary rage mode
sensing nearby players

Downsides:

sunlight weakness
random damage spikes
mobs act weird around you
Stage 3 — Consumption

You’re becoming a monster.

Abilities:

infect players
temporary transformation
huge speed bursts
extra hearts
terrifying screeches

But:

villagers attack you
players can track you easier
you occasionally lose control
Stage 4 — Apex Form

Extremely rare.

You become basically a server boss.

Abilities:

massive mutation form
summon parasite creatures
insane combat power
regeneration

BUT:

entire server gets alerted
your location is periodically revealed
everyone hunts you
👁 Infection Gameplay

Players now have choices:

Cure Yourself

Hard and expensive.
Requires rare materials/boss drops.

OR…

Embrace the Parasite

Gain stronger powers.
Risk becoming hunted.

⚔ PvP Twist

Parasite combat is aggressive and chaotic:

leap attacks
infection spreading
mutation combos
rage states
evolving fights

Makes every PvP fight feel unique.

🏚 Infected Zones

Areas slowly become corrupted:

strange blocks spread
mutated mobs spawn
fog appears
loot improves
danger increases

Could literally spread across the map over time.

👹 Parasite Bosses

Massive creatures appear in corrupted zones.

Examples:

Flesh Titan
Hive Beast
Crawling Horror
Parasite Queen

Drops:

mutation cores
cures
legendary infected gear
🧪 Cool Features
infection scanner
parasite armor
mutation skill tree
infected structures
evolving textures/models
parasite factions
quarantine zones
government-style anti-parasite hunters
Why It’s Engaging
players constantly evolve
entire server changes over time
natural wars form
players fear infected players
creates lore automatically
survival feels dangerous
every player story becomes unique

This could genuinely feel like a mix of survival horror + SMP PvP.
Kodari AI
KodariMay 24 at 4:03 pm 40,715 (v2)

I have all the docs I need. Let me plan this out carefully before writing any code.

Plan:

  • Cardinal Components for persistent infection data (stage, timer, abilities)

  • Status effects for each stage’s buffs/debuffs

  • Event hooks for infection spread (entity damage, player proximity)

  • Commands for admin control (/parasite command)

  • Networking for client-side HUD sync

  • HUD overlay showing infection stage

  • Tick-based evolution system via ServerTickingComponent

ParasiteSMP
A survival horror SMP mod where players can become infected by a living parasite that evolves through 4 stages. Infected players gain powerful abilities (wall climbing, leap, rage mode, infection spread) but suffer escalating downsides. Includes infection spread mechanics, stage-based status effects, a HUD overlay, admin commands to manage infection, and a cure system requiring rare items.

Now I’ll create the core infection stage enum and component interface:

Now the status effects:

Now the networking payload for syncing infection data to the client HUD:

Now the core infection manager that handles evolution, ability application, and spread:

Now the mixin for infection spread on entity hit:

Now the commands:

Now the main mod initializer:

Now the client-side HUD and networking:

Now the item model JSON files:

Here’s a full breakdown of what was built:


ParasiteSMP — What’s Included

🦠 Core Infection System

  • 4 Evolution Stages (InfectionStage enum) with configurable tick thresholds (10/20/30 minutes per stage)

  • Cardinal Components (InfectionComponent) stores stage + evolution ticks persistently on each player, survives death and respawn

  • InfectionManager handles all logic: infect, cure, evolve, apply effects, broadcast alerts

🧬 Stage Abilities & Downsides

Stage
Buffs
Downsides
1 — Mutation
Haste I, Regen I, Night Vision
Hunger drain
2 — Adaptation
Haste II, Speed I, Regen I
Sunlight weakness, magic damage spikes
3 — Consumption
Haste III, Speed II, Strength II, +4 hearts
Infects nearby players, damage spikes
4 — Apex Form
Haste IV, Speed III, Strength III, Resistance II, +10 hearts
Location revealed every 2 min, server-wide alert

⚔️ Infection Spread

  • On hit: Stage 3+ players have a 15% chance to infect their target

  • Proximity: Stage 3+ players passively spread infection to players within 5 blocks (0.2% per tick)

  • LivingEntityMixin hooks onDamaged for combat spread

🖥️ HUD Overlay

  • Shows current stage name with color-coded text (green → red)

  • Evolution progress bar for stages 1–3

  • “⚠ APEX FORM ⚠” indicator for stage 4

  • Synced server→client via InfectionSyncPayload (CustomPayload networking)

⚙️ Admin Commands

  • /parasite infect <player> — force-infect a player

  • /parasite cure <player> — cure a player

  • /parasite status <player> — check stage and tick progress

  • /parasite setstage <player> <0-4> — set any stage directly (0 = cure)

📦 Items

  • Parasite Cure (rare, stackable 16) — for cure crafting recipes you can add

  • Mutation Core (uncommon) — drop from infected mobs/bosses

  • Infected Flesh — general infection loot

dpt436._99718

The compilation failed with this error:

code
Compilation failed with 56 error(s):

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 5: package org.ladysnake.cca.api.v3.component does not exist
import org.ladysnake.cca.api.v3.component.ComponentKey;
                                         ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 6: package org.ladysnake.cca.api.v3.component does not exist
import org.ladysnake.cca.api.v3.component.ComponentRegistryV3;
                                         ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 7: package org.ladysnake.cca.api.v3.entity does not exist
import org.ladysnake.cca.api.v3.entity.EntityComponentFactoryRegistry;
                                      ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 8: package org.ladysnake.cca.api.v3.entity does not exist
import org.ladysnake.cca.api.v3.entity.EntityComponentInitializer;
                                      ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 9: package org.ladysnake.cca.api.v3.entity does not exist
import org.ladysnake.cca.api.v3.entity.RespawnCopyStrategy;
                                      ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 11: cannot find symbol
public class ParasiteComponents implements EntityComponentInitializer {
                                           ^
  symbol: class EntityComponentInitializer

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 13: cannot find symbol
    public static final ComponentKey<InfectionComponent> INFECTION =
                        ^
  symbol: class ComponentKey
  location: class ParasiteComponents

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponent.java at line 4: package org.ladysnake.cca.api.v3.component does not exist
import org.ladysnake.cca.api.v3.component.ComponentV3;
                                         ^

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponent.java at line 6: cannot find symbol
public interface InfectionComponent extends ComponentV3 {
                                            ^
  symbol: class ComponentV3

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 20: cannot find symbol
    public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {
                                                 ^
  symbol: class EntityComponentFactoryRegistry
  location: class ParasiteComponents

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 5: package org.ladysnake.cca.api.v3.component.sync does not exist
import org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent;
                                              ^

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 6: package org.ladysnake.cca.api.v3.component.tick does not exist
import org.ladysnake.cca.api.v3.component.tick.ServerTickingComponent;
                                              ^

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 8: cannot find symbol
public class InfectionComponentImpl implements InfectionComponent, AutoSyncedComponent, ServerTickingComponent {
                                                                   ^
  symbol: class AutoSyncedComponent

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 8: cannot find symbol
public class InfectionComponentImpl implements InfectionComponent, AutoSyncedComponent, ServerTickingComponent {
                                                                                        ^
  symbol: class ServerTickingComponent

ERROR in src/main/java/com/example/parasitesmp/command/ParasiteCommand.java at line 20: cannot find symbol
                .requires(src -> src.hasPermissionLevel(2))
                                    ^
  symbol: method hasPermissionLevel(int)
  location: variable src of type ServerCommandSource

ERROR in src/main/java/com/example/parasitesmp/ModEffects.java at line 16: cannot find symbol
        Registry.registerForHolder(Registries.STATUS_EFFECT,
                ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage1Effect)
  location: interface Registry

ERROR in src/main/java/com/example/parasitesmp/ModEffects.java at line 20: cannot find symbol
        Registry.registerForHolder(Registries.STATUS_EFFECT,
                ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage2Effect)
  location: interface Registry

ERROR in src/main/java/com/example/parasitesmp/ModEffects.java at line 24: cannot find symbol
        Registry.registerForHolder(Registries.STATUS_EFFECT,
                ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage3Effect)
  location: interface Registry

ERROR in src/main/java/com/example/parasitesmp/ModEffects.java at line 28: cannot find symbol
        Registry.registerForHolder(Registries.STATUS_EFFECT,
                ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage4Effect)
  location: interface Registry

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 14: package ComponentRegistryV3 does not exist
        ComponentRegistryV3.INSTANCE.getOrCreate(
                           ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 19: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 24: cannot find symbol
            RespawnCopyStrategy.ALWAYS_COPY
            ^
  symbol: variable RespawnCopyStrategy
  location: class ParasiteComponents

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 58: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 63: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 69: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/com/example/parasitesmp/infection/InfectionManager.java at line 226: cannot find symbol
        MinecraftServer server = apexPlayer.getServer();
                                           ^
  symbol: method getServer()
  location: variable apexPlayer of type ServerPlayerEntity

ERROR in src/main/java/com/example/parasitesmp/infection/InfectionManager.java at line 235: cannot find symbol
        MinecraftServer server = apexPlayer.getServer();
                                           ^
  symbol: method getServer()
  location: variable apexPlayer of type ServerPlayerEntity

ERROR in src/main/java/client/java/com/example/parasitesmp/client/InfectionHud.java at line 26: cannot find symbol
            VanillaHudElements.EXPERIENCE_BAR,
                              ^
  symbol: variable EXPERIENCE_BAR
  location: class VanillaHudElements

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 13: cannot find symbol
      public static final ComponentKey<InfectionComponent> INFECTION =
                          ^
  symbol: class ComponentKey
  location: class ParasiteComponents

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 20: cannot find symbol
      public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {
                                                   ^
  symbol: class EntityComponentFactoryRegistry
  location: class ParasiteComponents

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 24: cannot find symbol
              RespawnCopyStrategy.ALWAYS_COPY
              ^
  symbol: variable RespawnCopyStrategy
  location: class ParasiteComponents

ERROR in   src/main/java/client/java/com/example/parasitesmp/client/InfectionHud.java at line 26: cannot find symbol
              VanillaHudElements.EXPERIENCE_BAR,
                                ^
  symbol: variable EXPERIENCE_BAR
  location: class VanillaHudElements

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 19: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 58: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 63: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 69: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 11: cannot find symbol
  public class ParasiteComponents implements EntityComponentInitializer {
                                             ^
  symbol: class EntityComponentInitializer

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponent.java at line 6: cannot find symbol
  public interface InfectionComponent extends ComponentV3 {
                                              ^
  symbol: class ComponentV3

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 8: cannot find symbol
  public class InfectionComponentImpl implements InfectionComponent, AutoSyncedComponent, ServerTickingComponent {
                                                                     ^
  symbol: class AutoSyncedComponent

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 8: cannot find symbol
  public class InfectionComponentImpl implements InfectionComponent, AutoSyncedComponent, ServerTickingComponent {
                                                                                          ^
  symbol: class ServerTickingComponent

ERROR in   src/main/java/com/example/parasitesmp/command/ParasiteCommand.java at line 20: cannot find symbol
                  .requires(src -> src.hasPermissionLevel(2))
                                      ^
  symbol: method hasPermissionLevel(int)
  location: variable src of type ServerCommandSource

ERROR in   src/main/java/com/example/parasitesmp/ModEffects.java at line 16: cannot find symbol
          Registry.registerForHolder(Registries.STATUS_EFFECT,
                  ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage1Effect)
  location: interface Registry

ERROR in   src/main/java/com/example/parasitesmp/ModEffects.java at line 20: cannot find symbol
          Registry.registerForHolder(Registries.STATUS_EFFECT,
                  ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage2Effect)
  location: interface Registry

ERROR in   src/main/java/com/example/parasitesmp/ModEffects.java at line 24: cannot find symbol
          Registry.registerForHolder(Registries.STATUS_EFFECT,
                  ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage3Effect)
  location: interface Registry

ERROR in   src/main/java/com/example/parasitesmp/ModEffects.java at line 28: cannot find symbol
          Registry.registerForHolder(Registries.STATUS_EFFECT,
                  ^
  symbol: method registerForHolder(Registry<StatusEffect>,Identifier,Stage4Effect)
  location: interface Registry

ERROR in   src/main/java/com/example/parasitesmp/infection/InfectionManager.java at line 226: cannot find symbol
          MinecraftServer server = apexPlayer.getServer();
                                             ^
  symbol: method getServer()
  location: variable apexPlayer of type ServerPlayerEntity

ERROR in   src/main/java/com/example/parasitesmp/infection/InfectionManager.java at line 235: cannot find symbol
          MinecraftServer server = apexPlayer.getServer();
                                             ^
  symbol: method getServer()
  location: variable apexPlayer of type ServerPlayerEntity

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 5: package org.ladysnake.cca.api.v3.component does not exist
  import org.ladysnake.cca.api.v3.component.ComponentKey;
                                           ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 6: package org.ladysnake.cca.api.v3.component does not exist
  import org.ladysnake.cca.api.v3.component.ComponentRegistryV3;
                                           ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 7: package org.ladysnake.cca.api.v3.entity does not exist
  import org.ladysnake.cca.api.v3.entity.EntityComponentFactoryRegistry;
                                        ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 8: package org.ladysnake.cca.api.v3.entity does not exist
  import org.ladysnake.cca.api.v3.entity.EntityComponentInitializer;
                                        ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 9: package org.ladysnake.cca.api.v3.entity does not exist
  import org.ladysnake.cca.api.v3.entity.RespawnCopyStrategy;
                                        ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponent.java at line 4: package org.ladysnake.cca.api.v3.component does not exist
  import org.ladysnake.cca.api.v3.component.ComponentV3;
                                           ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 5: package org.ladysnake.cca.api.v3.component.sync does not exist
  import org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent;
                                                ^

ERROR in   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java at line 6: package org.ladysnake.cca.api.v3.component.tick does not exist
  import org.ladysnake.cca.api.v3.component.tick.ServerTickingComponent;
                                                ^

ERROR in   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java at line 14: package ComponentRegistryV3 does not exist
          ComponentRegistryV3.INSTANCE.getOrCreate(
                             ^


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - EntityComponentInitializer
  - ComponentKey
  - ComponentV3
  - EntityComponentFactoryRegistry
  - AutoSyncedComponent
  - ServerTickingComponent
ACTION: Create these classes or check imports

MISSING METHODS:
  - hasPermissionLevel(int)
  - registerForHolder(Registry<StatusEffect>,Identifier,Stage1Effect)
  - registerForHolder(Registry<StatusEffect>,Identifier,Stage2Effect)
  - registerForHolder(Registry<StatusEffect>,Identifier,Stage3Effect)
  - registerForHolder(Registry<StatusEffect>,Identifier,Stage4Effect)
  - getServer()
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/com/example/parasitesmp/component/ParasiteComponents.java
  - src/main/java/com/example/parasitesmp/component/InfectionComponent.java
  - src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java
  - src/main/java/com/example/parasitesmp/command/ParasiteCommand.java
  - src/main/java/com/example/parasitesmp/ModEffects.java
  - src/main/java/com/example/parasitesmp/infection/InfectionManager.java
  - src/main/java/client/java/com/example/parasitesmp/client/InfectionHud.java
  -   src/main/java/com/example/parasitesmp/component/ParasiteComponents.java
  -   src/main/java/client/java/com/example/parasitesmp/client/InfectionHud.java
  -   src/main/java/com/example/parasitesmp/component/InfectionComponentImpl.java
  -   src/main/java/com/example/parasitesmp/component/InfectionComponent.java
  -   src/main/java/com/example/parasitesmp/command/ParasiteCommand.java
  -   src/main/java/com/example/parasitesmp/ModEffects.java
  -   src/main/java/com/example/parasitesmp/infection/InfectionManager.java

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
Code
31 1,055
src/client/java/com/example/parasitesmp/ParasiteSMPClient.java
package com.example.parasitesmp;

import com.example.parasitesmp.client.InfectionHud;
import com.example.parasitesmp.client.InfectionState;
import com.example.parasitesmp.network.InfectionSyncPayload;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;

public class ParasiteSMPClient implements ClientModInitializer {

    @Override
    public void onInitializeClient() {
        ClientPlayNetworking.registerGlobalReceiver(InfectionSyncPayload.ID, (payload, context) -> {
            InfectionState.stage = payload.stage();
            InfectionState.evolutionTicks = payload.evolutionTicks();
        });

        InfectionHud.register();
    }
}