截图
介绍
Tenreg
A registration tool for modern Minecraft
Do registration, datagen, and manage your blocks and items from one place
WARNING – Tenreg is currently in beta, with features being added frequently. This modrinth page may not contain the latest versions. Check developer installation instructions.
Installation
For developers
Use the new Nexusrealms maven repository, hosted on our maven repository.
Find the version you want to use and click install to see instructions for your gradle / maven configuration
Important
In the install instructions, replace implementation with modImplementation
Usage
Create a Reg instance
//In your mod initializer
public class Mod implements ModInitializer {
public static final String MOD_ID = "your mod id goes here";
public static final Reg REG = Reg.create(MOD_ID);
@Override
public void onInitialize() {
//Needed to load the class with your items and blocks
ModItems.init();
ModBlocks.init();
//Register the entries
REG.register();
}
}
Create your Subregs
//In your ModBlocks.java
public class ModBlocks {
private static final BlockReg BLOCKS = Mod.REG.getBlockReg();
}
Setup your datagen
//In your data generation entrypoint
public class ModDataGenerator implements DataGeneratorEntrypoint {
@Override
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
FabricDataGenerator.Pack pack = fabricDataGenerator.createPack();
Mod.REG.genData(pack);
}
}
Create your entries – you can use builders for more advanced patterns
//In your ModBlocks.java
public class ModBlocks {
private static final BlockReg BLOCKS = Mod.REG.getBlockReg();
public static final BlockEntry<Block> AWESOME_BLOCK = BLOCKS.builder()
.constructor(Block::new)
.transform(BlockToolTransformers.pickaxeOnly())
.dropsSelf()
.simpleCubeAll()
.simpleItem()
.name("Awesome block")
.build("awesome_block");
}
常见问题
Tenreg 支持哪些 Minecraft 版本?
Tenreg 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Tenreg 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
nexusrealms 的其他作品
查看全部 →Rift Realms Utility
A utility mod for the Rift Realms server
Create: Aloft
An engineering-first Modpack built around Create Aeronautics.
Riftname
Style names on servers - Player-set nicknames, prefixes, colors, gradients and more
Era of Rails
A railway expansion mod! Adds new minecart and rail types to make rail travel more efficient and fun
评论
登录后评论和评分