Fantastical races Minecraft mod
The idea of this Minecraft mod is to let the player choose a “Race” that allows them to change certain attributes about playing the game. to spice things up while playing minecraft or for people who like role playing to extend the reach of their role play
The race framework
Can be found more in depth in the github repository
The ‘DeathlessOneRace’
class exemplifies the versatility of the ‘Race’
base class, showcasing its extension to create specialized races. This implementation adheres to object-oriented principles, promoting modularity and code reusability within the game's character system.
The Race
class serves as a fundamental building block for characterizing races within the mod environment. This class encapsulates essential attributes and provides a structured foundation for creating diverse in-game races.
Attributes:
name
: Represents the name of the race.id
: Serves as a unique identifier for the race.customAttributes
: A list of custom attributes, each represented by anEntityAttributeModifier
.
Getter Methods:
getName()
: Retrieves the name of the race.getId()
: Fetches the unique identifier of the race.getAttributeModifiers()
: Provides access to the list of custom attributes associated with the race.
CustomBaseHealth Method:
CustomBaseHealth(float health)
: This method. It currently adjusts the player's maximum health by adding a persistent modifier.
My development plan
My current plan for this mod is to make a couple of races that change the normal player attributes like health and hunger but later i want to change things like respawn behavior etc…
I’m also changing the UI as i’m developing and plan on overhauling it later on