对于受支持的灯笼,将灯笼放在方块的侧面,灯笼就会附着在该侧面上。
若要让另一个模组的灯笼兼容,另一个模组必须自行添加兼容支持。
注意:如果你正在使用会更改灯笼 blockstate 文件的资源包,那么与墙面的视觉连接 可能 不会显示。
给模组开发者
为灯笼添加支持的基础方法会因模组加载器而有所不同。
以下细节适用于 Fabric/Architectury Loom。
repositories {
//...
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
dependencies {
//...
modImplementation "maven.modrinth:lanterns-bow:${lanterns_bow_version}"
}
请参考 versions 页面获取最新版本。
在这里阅读有关 Modrinth Maven 的说明。
public ExampleModContstructor(IEventBus modBus) {
modBus.addListener((WallLanternsEvent event) -> {
event.addLantern(new WallLantern(
WallLantern.Type.StandardCutout,
ResourceLocation.parse("example:example_lantern"))
);
event.addLantern(new WallLantern(
WallLantern.Type.Standard,
ResourceLocation.parse("example:example_lantern_two"))
);
});
}
repositories {
//...
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
dependencies {
//...
modImplementation "maven.modrinth:lanterns-bow:${lanterns_bow_version}"
}
请参考 versions 页面获取最新版本。
在这里阅读有关 Modrinth Maven 的说明。
public class ExampleLanternModWall implements WallLanternsEntrypoint {
@Override
public void registerLanterns(WallLanternsRegistry registry) {
registry.registerLantern(ResourceLocation.fromNamespaceAndPath("examplemod", "lantern"));
}
}
fabric.mod.json 中: ...
"entrypoints": {
...
"walllanterns": "com.example.mod.examplemod.ExampleLanternModWall"
}
除非另有说明,所有灯笼模型都派生自所提供灯笼的站立模型。
可用的灯笼类型有几种:
但在 NeoForge 上会强制使用 cutout Render Type。
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:1,318,682 | 历史访问人次:1,631,725
今日访问人数:5,793 | 今日访问人次:6,294
昨日访问人数:26,708 | 昨日访问人次:29,775
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6