McLists一周年快乐
服务器已经添加了详细介绍信息板块
服主可以在管理后台来提交自己服务器介绍信息。
服务器介绍信息提交后,管理人员会进行审核
审核通过后会在服务器详细页面进行显示
提交服务器介绍信息会让新玩家更好的了解你的服务器哦~
添加图片信息,也会让百度等搜索引擎更好的收录您的服务器哦~
管理平台地址:传送门
Lanterns Belong on Walls

Lanterns Belong on Walls - Lanterns Belong on Walls(灯笼可挂墙)

允许将灯笼放置在墙上。
fabric / neoforge / quilt 作者 ThePoultryMan 支持版本 1.18 - 1.21.8
下载量
254,643
关注数
476
数据来源
Modrinth
模组详细介绍

如何使用?

对于受支持的灯笼,将灯笼放在方块的侧面,灯笼就会附着在该侧面上。

兼容性

若要让另一个模组的灯笼兼容,另一个模组必须自行添加兼容支持。

注意:如果你正在使用会更改灯笼 blockstate 文件的资源包,那么与墙面的视觉连接 可能 不会显示。

给模组开发者

为灯笼添加支持的基础方法会因模组加载器而有所不同。

以下细节适用于 Fabric/Architectury Loom。

对于 NeoForge

  • 添加 Gradle 依赖:
   repositories {
       //...
       maven {
           name = "Modrinth"
           url = "https://api.modrinth.com/maven"
       }
   }

   dependencies {
       //...
       modImplementation "maven.modrinth:lanterns-bow:${lanterns_bow_version}"
   }

请参考 versions 页面获取最新版本。

这里阅读有关 Modrinth Maven 的说明。

  • 在你的模组构造函数中,监听 mod bus 事件,然后添加灯笼:
   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"))
           );
       });
   }

对于 Fabric

  • 添加 Gradle 依赖:
    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"
   }

灯笼类型

除非另有说明,所有灯笼模型都派生自所提供灯笼的站立模型。

可用的灯笼类型有几种:

  • Standard - 使用原版站立灯笼的形状。
  • StandardCutout - 为 NeoForge 设计。遵循与 Standard 相同的规则,

但在 NeoForge 上会强制使用 cutout Render Type。

基本信息
模组名称Lanterns Belong on Walls
作者ThePoultryMan
下载量254,643
关注数476
支持版本1.18 - 1.21.8
加载器fabric / neoforge / quilt
客户端required
服务端required

友情链接: 网易我的世界 | 泰拉瑞亚 | 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