介绍
LineageCore is a mod I made specifically to create Species that work with all kinds of things.
Whether you want to use Java or purely JSON, you can make a species with either.
Here’s some basic guides in the form of an example json file that you should put into “.minecraft/lineages/template.json” or “.minecraft/lineages/template/template.json”
NOTE: The artDirectory searches ONLY in the lineages folder, nowhere else.
- Display Name: Changes the title of your Species/Subspecies
- Species Description: Your Description
- Species ID: Your Species ID, “id” denotes a core species and “id_sub” denotes a subspecies,.
- Order [OPTIONAL]: Changes the order of where your species appears, 100 is default and will make it appear right-most.
- Has Subspecies [OPTIONAL]: True of False, should be able to be used with subspecies as well.
- Is Subspecies Of [OPTIONAL]: Denotes what species it is a subspecies of, please do not use this if your species is a core species. “human” and “normal_human” are the base core species.
- Locks on Select [OPTIONAL]: Tells the game whether it should lock a species or not.
- Art Directory [OPTIONAL, BUT RECOMMENDED]: Denotes where the art is, searches the Lineage Folder and any Subfolders.
- On Select [OPTIONAL]: In Java, it only supports Java Code, obviously. In Json, it only supports commands as shown below (For Safety Reasons).
{
"displayName": "Example Species",
"speciesDescription": "A versatile custom lineage created via JSON. Grants speed and basic survival gear upon selection.",
"speciesID": "example_species",
"order": 10,
"hasSubspecies": false,
"isSubspeciesOf": "human",
"locksOnSelect": true,
"artDirectory": "textures/example_species_art.png",
"onSelect": {
"type": "command",
"command": [
"/give @s minecraft:iron_sword 1",
"/effect give @s minecraft:speed 9999 0 true"
]
}
}
Java Code Example:
NEOFORGE BELOW
//How a Human is registered in NeoForge 1.21.1
public static final DeferredHolder<Species, Species> HUMAN = SPECIES.register(
"human",
() -> new Species(
"Human",
"All-Rounder Species, your Classic Minecraft Experience.",
"human",
true,
player -> {},
null,
Integer.MIN_VALUE
)
);
//How a Normal Human is registered in NeoForge 1.21.1
public static final DeferredHolder<Species, Species> NORMAL_HUMAN = SPECIES.register(
"normal_human",
() -> new Species(
"Normal Human",
"All-Rounder Species, your Classic Minecraft Experience.",
"normal_human_sub",
false,
player -> {},
null,
Integer.MIN_VALUE
)
);
// Brand New LOCKED Species feature, where if it gets selected it gets locked for everyone else until they are forced to choose another species
public static final DeferredHolder<Species, Species> TEMP_LINEAGE = SPECIES.register(
"temp_lineage",
() -> new Species(
"Temp Lineage",
"A temporary species designed for testing lineage selection and locking mechanics.",
"temp_lineage",
false,
player -> {
player.sendSystemMessage(Component.literal("§aYou have selected the Temp Lineage!"));
player.addEffect(new MobEffectInstance(MobEffects.NIGHT_VISION, 6000, 0, false, false));
},
null,
1,
true
)
);
FORGE BELOW
public static final RegistryObject<Species> ELF = SPECIES.register(
"elf",
() -> new Species(
"Elf",
"Agile archers attuned with nature.",
"elf",
true,
player -> {
// Example 1: Add potion effects directly
player.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 999999, 0, false, false));
// Example 2: Give an item directly
player.getInventory().add(new ItemStack(Items.BOW));
// Example 3: Send a message or play a sound
player.sendSystemMessage(Component.literal("You have attuned with nature!"));
},
null,
-1
)
);
Made by Hivemere, aka me.
[FORGE – 1.20.1 / NEOFORGE – 1.21.1]
常见问题
LineageCore 支持哪些 Minecraft 版本?
LineageCore 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
LineageCore 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
MysteryXIII 的其他作品
查看全部 →Agents of Evo | Palladium Addon
Palladium 的 Generator Rex 附属模组
Rangers Legacy | Palladium Addon
Power Rangers 与 Super Sentai 模组 | 需要 Palladium
Origins of Cybertron
A Transformers fan made project, soon to be paladium
Way of the Elemental Masters
A fan-made project about the famous Ninjago TV Show. Made by Hivemere, Sir_Stilig and MRFOX.
评论
登录后评论和评分