截图
介绍
Title Scrolls
This mod is a near rewrite of TitleScrolls by repulica. Some code from the original was modified to suit the rewrite, so it remains under the original license. All textures are from the original.
Discription
Title Scrolls adds trinkets that display a title under player names. Common title scrolls can be crafted with two paper and two string and renamed in an anvil to set the title. All Titles are component-based, so adding one is as simple as customizing a give command.
Gameplay Images




Modders
As all titles are component-based, adding a title to a mod is as simple as adding a new component to the title scroll item.
public class Demo implements ModInitializer {
@Override
public void onInitialize() {
ItemStack stack = new ItemStack(Items.BASE_TITLE_SCROLL);
stack.set(ComponentTypes.TITLE_TEXT, TitleTextComponet.of(Text.literal("Early Bird")));
stack.set(ComponentTypes.SCROLL_LORE, ScrollLoreComponent.of(List.of(Text.literal("The Early Bird catches the worm"))));
stack.set(ComponentTypes.RIBBON_COLOR, RibbonColorComponent.of(0x00FF00));
stack.set(ComponentTypes.RENDER_EFFECT, RenderEffectComponent.of(Identifier.of("modid", "demo")));
}
}
Adding a new Effect is as simple as creating a class implementing titlescrolls.api.TitleEffect and registering it with the TitleEffects.INSTANCE#register(Identfier, TitleEffect).
public class Demo implements ModInitializer {
TitleEffect DEMO = new TitleEffect() {
@Override
public void render(ItemStack stack, SlotReference slot, MatrixStack matrixStack,
VertexConsumerProvider vertexConsumer, int light,
EntityModel<? extends LivingEntity> model, LivingEntity player,
float headYaw, float headPitch) {
//Render your effect here
}
};
@Override
public void onInitialize() {
TitleEffects.INSTANCE.register(new Identifier("modid", "demo"), DEMO);
}
}
常见问题
Title Scrolls 支持哪些 Minecraft 版本?
Title Scrolls 支持 Minecraft Java 版 1.21–1.21.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Title Scrolls 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
repulica 的其他作品
查看全部 →Less Greedy Piglins
remove cheesy piglin barter farms
no fun allowed
data and component driven adventure mode location protection for showcase servers
CardStock
data driven trading cards for quilt
CardStock
data driven trading cards for quilt
评论
登录后评论和评分