a rpg style mod but upon joining the first time u choose a class like wizzars knight archer wtc and u can upgrade ur skills and u have the option to go somewhere and like start a village u put villagers to build buildings for u walls to protect it houses and shops for more villagers and stuff and add like structures bosses new mobs and weapons and ofcourse make the game look rpg styled
Now building the complete mod. Hereโs everything:
Now the client-side files:
Now the resource files:
Hereโs the complete breakdown of what was built:
๐ฎ Class System
5 classes on first join: Wizard, Knight, Archer, Rogue, Paladin โ each with unique stats (HP, speed, attack, mana pool) applied via persistent attribute modifiers
Beautiful class selection screen opens automatically on first join
โ๏ธ Skill Trees (20 skills total)
4 skills per class across 2 tiers โ tier 2 requires a tier-1 skill first
Skill points earned every level (max level 50+)
Press K to open the skill tree screen
All active abilities on their class weapons, passives handled in event handlers
๐ฐ Village System
Craft / obtain the Village Founding Stone โ right-click ground to found a village
/villageopens the Village Management screenBuild: Houses, Barracks, Markets, Farms, Wall Segments โ each costs real inventory resources (wood, iron, emerald, stone)
๐ Custom Mobs
Orc Warrior โ 40 HP melee monster, spawns in the overworld
Shadow Wraith Boss โ 120 HP boss that fires wraith bolts every 3 seconds and is near-unkillable by knockback
๐ RPG HUD
Class badge + level (top-left)
XP progress bar
Mana bar centered above hotbar
Skill point notification when unspent points are available
๐ก๏ธ 5 Class Weapons โ each with right-click + sneak abilities using the mana system, borrow vanilla textures for display
๐
pasted-code-1782333699810.txt
txt
529 lines
โถ
Compilation failed with 134 error(s):
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponent.java at line 5: package org.ladysnake.cca.api.v3.component does not exist
import org.ladysnake.cca.api.v3.component.ComponentV3;
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponent.java at line 9: cannot find symbol
public interface PlayerRPGComponent extends ComponentV3 {
^
symbol: class ComponentV3
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponent.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/epicrealms/component/VillageWorldComponent.java at line 10: cannot find symbol
public interface VillageWorldComponent extends ComponentV3 {
^
symbol: class ComponentV3
ERROR in src/main/java/com/epicrealms/component/ModComponents.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/epicrealms/component/ModComponents.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/epicrealms/component/ModComponents.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/epicrealms/component/ModComponents.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/epicrealms/component/ModComponents.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/epicrealms/component/ModComponents.java at line 10: package org.ladysnake.cca.api.v3.world does not exist
import org.ladysnake.cca.api.v3.world.WorldComponentFactoryRegistry;
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 11: package org.ladysnake.cca.api.v3.world does not exist
import org.ladysnake.cca.api.v3.world.WorldComponentInitializer;
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 13: cannot find symbol
public class ModComponents implements EntityComponentInitializer, WorldComponentInitializer {
^
symbol: class EntityComponentInitializer
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 13: cannot find symbol
public class ModComponents implements EntityComponentInitializer, WorldComponentInitializer {
^
symbol: class WorldComponentInitializer
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 15: cannot find symbol
public static final ComponentKey PLAYER_RPG =
^
symbol: class ComponentKey
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 20: cannot find symbol
public static final ComponentKey VILLAGE_WORLD =
^
symbol: class ComponentKey
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 26: cannot find symbol
public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {
^
symbol: class EntityComponentFactoryRegistry
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 34: cannot find symbol
public void registerWorldComponentFactories(WorldComponentFactoryRegistry registry) {
^
symbol: class WorldComponentFactoryRegistry
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 13: 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/epicrealms/component/PlayerRPGComponentImpl.java at line 14: 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/epicrealms/component/PlayerRPGComponentImpl.java at line 18: cannot find symbol
public class PlayerRPGComponentImpl implements PlayerRPGComponent, ServerTickingComponent, AutoSyncedComponent {
^
symbol: class ServerTickingComponent
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 18: cannot find symbol
public class PlayerRPGComponentImpl implements PlayerRPGComponent, ServerTickingComponent, AutoSyncedComponent {
^
symbol: class AutoSyncedComponent
ERROR in src/main/java/com/epicrealms/command/RPGCommands.java at line 67: cannot find symbol
VillageWorldComponent wc = ModComponents.VILLAGE_WORLD.get(player.getServerWorld());
^
symbol: method getServerWorld()
location: variable player of type ServerPlayerEntity
ERROR in src/main/java/com/epicrealms/command/RPGCommands.java at line 80: cannot find symbol
.requires(src -> src.hasPermissionLevel(2))
^
symbol: method hasPermissionLevel(int)
location: variable src of type ServerCommandSource
ERROR in src/main/java/com/epicrealms/item/weapon/HunterBowItem.java at line 74: no suitable constructor found for SmallFireballEntity(World,PlayerEntity,Vec3d,int)
SmallFireballEntity fireball = new SmallFireballEntity(world, user,
^
ERROR in src/main/java/com/epicrealms/item/weapon/HunterBowItem.java at line 98: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 61: cannot find symbol
Box.of(user.getPos(), 6, 4, 6),
^
symbol: method getPos()
location: variable user of type PlayerEntity
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 66: cannot find symbol
net.minecraft.entity.effect.LightningEntity.create(serverWorld, target.getBlockPos(), true, user));
^
symbol: class LightningEntity
location: package net.minecraft.entity.effect
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 94: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/RoguesDaggerItem.java at line 69: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/KnightBladeItem.java at line 78: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/network/ModNetworking.java at line 64: cannot find symbol
VillageWorldComponent worldComp = ModComponents.VILLAGE_WORLD.get(player.getServerWorld());
^
symbol: method getServerWorld()
location: variable player of type ServerPlayerEntity
ERROR in src/main/java/com/epicrealms/village/VillageData.java at line 52: cannot find symbol
tag.putUuid("id", id);
^
symbol: method putUuid(String,UUID)
location: variable tag of type NbtCompound
ERROR in src/main/java/com/epicrealms/village/VillageData.java at line 53: cannot find symbol
tag.putUuid("owner", owner);
^
symbol: method putUuid(String,UUID)
location: variable tag of type NbtCompound
ERROR in src/main/java/com/epicrealms/village/VillageData.java at line 70: cannot find symbol
UUID id = tag.getUuid("id").orElse(UUID.randomUUID());
^
symbol: method getUuid(String)
location: variable tag of type NbtCompound
ERROR in src/main/java/com/epicrealms/village/VillageData.java at line 71: cannot find symbol
UUID owner = tag.getUuid("owner").orElse(UUID.randomUUID());
^
symbol: method getUuid(String)
location: variable tag of type NbtCompound
ERROR in src/main/java/com/epicrealms/entity/ShadowWraithBossEntity.java at line 58: cannot find symbol
Vec3d toTarget = target.getPos().subtract(getPos()).normalize();
^
symbol: method getPos()
location: variable target of type LivingEntity
ERROR in src/main/java/com/epicrealms/entity/ShadowWraithBossEntity.java at line 58: cannot find symbol
Vec3d toTarget = target.getPos().subtract(getPos()).normalize();
^
symbol: method getPos()
location: class ShadowWraithBossEntity
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 16: incompatible types: incompatible parameter types in lambda expression
ServerEntityCombatEvents.AFTER_KILLED_OTHER_ENTITY.register((world, entity, killed) -> {
^
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 46: cannot find symbol
if (entity instanceof EnderDragonEntity) return 300;
^
symbol: class EnderDragonEntity
location: class LevelingHandler
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 47: cannot find symbol
if (entity instanceof WitherEntity) return 200;
^
symbol: class WitherEntity
location: class LevelingHandler
ERROR in src/main/java/com/epicrealms/event/CombatHandler.java at line 70: incompatible types: incompatible parameter types in lambda expression
ServerEntityCombatEvents.AFTER_KILLED_OTHER_ENTITY.register((world, entity, killed) -> {
^
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponentImpl.java at line 43: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponentImpl.java at line 54: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 16: package ComponentRegistryV3 does not exist
ComponentRegistryV3.INSTANCE.getOrCreate(
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 21: package ComponentRegistryV3 does not exist
ComponentRegistryV3.INSTANCE.getOrCreate(
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 25: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 30: cannot find symbol
RespawnCopyStrategy.ALWAYS_COPY);
^
symbol: variable RespawnCopyStrategy
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 33: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 212: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 257: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 273: incompatible types: Optional cannot be converted to String
String skillName = skillList.getString(i);
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 281: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/client/java/com/epicrealms/client/screen/ClassSelectionScreen.java at line 64: cannot find symbol
context.drawBorder(x, y, BTN_WIDTH, BTN_HEIGHT, 0xFF000000 | c.getColor());
^
symbol: method drawBorder(int,int,int,int,int)
location: variable context of type DrawContext
ERROR in src/main/java/client/java/com/epicrealms/client/screen/VillageScreen.java at line 66: cannot find symbol
context.drawBorder(startX, y, 380, 38, 0xFF444444);
^
symbol: method drawBorder(int,int,int,int,int)
location: variable context of type DrawContext
ERROR in src/main/java/client/java/com/epicrealms/client/screen/SkillTreeScreen.java at line 99: cannot find symbol
context.drawBorder(x, y, 180, 54, borderColor);
^
symbol: method drawBorder(int,int,int,int,int)
location: variable context of type DrawContext
ERROR in src/main/java/client/java/com/epicrealms/client/screen/SkillTreeScreen.java at line 117: cannot find symbol
context.drawBorder(mouseX + 4, mouseY - 10, 276, 30, 0xFFAAAAAA);
^
symbol: method drawBorder(int,int,int,int,int)
location: variable context of type DrawContext
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 38: cannot find symbol
ModelTransform.pivot(0f, 0f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 42: cannot find symbol
ModelTransform.pivot(0f, 0f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 46: cannot find symbol
ModelTransform.pivot(-5f, 2f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 50: cannot find symbol
ModelTransform.pivot(5f, 2f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 54: cannot find symbol
ModelTransform.pivot(-2f, 12f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 58: cannot find symbol
ModelTransform.pivot(2f, 12f, 0f));
^
symbol: method pivot(float,float,float)
location: class ModelTransform
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 66: cannot find symbol
float limbAngle = state.limbAngle;
^
symbol: variable limbAngle
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 67: cannot find symbol
float limbDistance = state.limbDistance;
^
symbol: variable limbDistance
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 78: cannot find symbol
head.yaw = state.headYaw * (float) (Math.PI / 180.0);
^
symbol: variable headYaw
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/entity/ShadowWraithRenderer.java at line 9: type argument OrcWarriorModel is not within bounds of type-variable M
public class ShadowWraithRenderer extends MobEntityRenderer {
^
ERROR in src/main/java/client/java/com/epicrealms/client/hud/RPGHudRenderer.java at line 26: cannot find symbol
VanillaHudElements.STATUS_BARS,
^
symbol: variable STATUS_BARS
location: class VanillaHudElements
ERROR in src/main/java/com/epicrealms/item/weapon/HunterBowItem.java at line 74: no suitable constructor found for SmallFireballEntity(World,PlayerEntity,Vec3d,int)
SmallFireballEntity fireball = new SmallFireballEntity(world, user,
^
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 16: incompatible types: incompatible parameter types in lambda expression
ServerEntityCombatEvents.AFTER_KILLED_OTHER_ENTITY.register((world, entity, killed) -> {
^
ERROR in src/main/java/com/epicrealms/event/CombatHandler.java at line 70: incompatible types: incompatible parameter types in lambda expression
ServerEntityCombatEvents.AFTER_KILLED_OTHER_ENTITY.register((world, entity, killed) -> {
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 273: incompatible types: Optional cannot be converted to String
String skillName = skillList.getString(i);
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 15: cannot find symbol
public static final ComponentKey PLAYER_RPG =
^
symbol: class ComponentKey
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 20: cannot find symbol
public static final ComponentKey VILLAGE_WORLD =
^
symbol: class ComponentKey
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 26: cannot find symbol
public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {
^
symbol: class EntityComponentFactoryRegistry
location: class ModComponents
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 34: cannot find symbol
public void registerWorldComponentFactories(WorldComponentFactoryRegistry registry) {
^
symbol: class WorldComponentFactoryRegistry
location: class ModComponents
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 66: cannot find symbol
net.minecraft.entity.effect.LightningEntity.create(serverWorld, target.getBlockPos(), true, user));
^
symbol: class LightningEntity
location: package net.minecraft.entity.effect
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 46: cannot find symbol
if (entity instanceof EnderDragonEntity) return 300;
^
symbol: class EnderDragonEntity
location: class LevelingHandler
ERROR in src/main/java/com/epicrealms/event/LevelingHandler.java at line 47: cannot find symbol
if (entity instanceof WitherEntity) return 200;
^
symbol: class WitherEntity
location: class LevelingHandler
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 30: cannot find symbol
RespawnCopyStrategy.ALWAYS_COPY);
^
symbol: variable RespawnCopyStrategy
location: class ModComponents
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 66: cannot find symbol
float limbAngle = state.limbAngle;
^
symbol: variable limbAngle
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 67: cannot find symbol
float limbDistance = state.limbDistance;
^
symbol: variable limbDistance
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/entity/OrcWarriorModel.java at line 78: cannot find symbol
head.yaw = state.headYaw * (float) (Math.PI / 180.0);
^
symbol: variable headYaw
location: variable state of type OrcWarriorRenderState
ERROR in src/main/java/client/java/com/epicrealms/client/hud/RPGHudRenderer.java at line 26: cannot find symbol
VanillaHudElements.STATUS_BARS,
^
symbol: variable STATUS_BARS
location: class VanillaHudElements
ERROR in src/main/java/com/epicrealms/item/weapon/HunterBowItem.java at line 98: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 94: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/RoguesDaggerItem.java at line 69: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/item/weapon/KnightBladeItem.java at line 78: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponentImpl.java at line 43: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponentImpl.java at line 54: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 25: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 33: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 212: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 257: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 281: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/client/java/com/epicrealms/client/entity/ShadowWraithRenderer.java at line 9: type argument OrcWarriorModel is not within bounds of type-variable M
public class ShadowWraithRenderer extends MobEntityRenderer {
^
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponent.java at line 9: cannot find symbol
public interface PlayerRPGComponent extends ComponentV3 {
^
symbol: class ComponentV3
ERROR in src/main/java/com/epicrealms/component/VillageWorldComponent.java at line 10: cannot find symbol
public interface VillageWorldComponent extends ComponentV3 {
^
symbol: class ComponentV3
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 13: cannot find symbol
public class ModComponents implements EntityComponentInitializer, WorldComponentInitializer {
^
symbol: class EntityComponentInitializer
ERROR in src/main/java/com/epicrealms/component/ModComponents.java at line 13: cannot find symbol
public class ModComponents implements EntityComponentInitializer, WorldComponentInitializer {
^
symbol: class WorldComponentInitializer
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 18: cannot find symbol
public class PlayerRPGComponentImpl implements PlayerRPGComponent, ServerTickingComponent, AutoSyncedComponent {
^
symbol: class ServerTickingComponent
ERROR in src/main/java/com/epicrealms/component/PlayerRPGComponentImpl.java at line 18: cannot find symbol
public class PlayerRPGComponentImpl implements PlayerRPGComponent, ServerTickingComponent, AutoSyncedComponent {
^
symbol: class AutoSyncedComponent
ERROR in src/main/java/com/epicrealms/command/RPGCommands.java at line 67: cannot find symbol
VillageWorldComponent wc = ModComponents.VILLAGE_WORLD.get(player.getServerWorld());
^
symbol: method getServerWorld()
location: variable player of type ServerPlayerEntity
ERROR in src/main/java/com/epicrealms/command/RPGCommands.java at line 80: cannot find symbol
.requires(src -> src.hasPermissionLevel(2))
^
symbol: method hasPermissionLevel(int)
location: variable src of type ServerCommandSource
ERROR in src/main/java/com/epicrealms/item/weapon/PaladinMaceItem.java at line 61: cannot find symbol
Box.of(user.getPos(), 6, 4, 6),
^
symbol: method getPos()
location: variable user of type PlayerEntity
ERROR in src/main/java/com/epicrealms/network/ModNetworking.java at line 64: cannot find symbol
VillageWorldComponent worldComp = ModComponents.VILLAGE_WORLD.get(player.getServerWorld());
^
symbol: method getServerWorld()
location: variable player of type ServerPlayerEntity
package com.epicrealms;
import com.epicrealms.command.RPGCommands;
import com.epicrealms.entity.ModEntities;
import com.epicrealms.event.CombatHandler;
import com.epicrealms.event.LevelingHandler;
import com.epicrealms.event.PlayerJoinHandler;
import com.epicrealms.item.ModItems;
import com.epicrealms.network.ModNetworking;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EpicRealms implements ModInitializer {
public static final String MOD_ID = "epicrealms";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
ModItems.initialize();
ModEntities.initialize();
ModNetworking.initialize();
PlayerJoinHandler.initialize();
CombatHandler.initialize();
LevelingHandler.initialize();
RPGCommands.initialize();
LOGGER.info("Epic Realms RPG initialized.");
}
}