Allows the placement of lanterns on walls.
For supported lanterns, place the lantern on the side of the block, and the lantern will attach to that side.
For another mod's lanterns to be compatible, the other mod must add the compatibility.
Note: If you're using a resource pack that changes the lantern blockstate file, then the visual connection to the wall might not appear.
The basics for adding support for lanterns differs between mod loaders.
The details below are for Fabric/Architectury Loom.
repositories {
//...
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
dependencies {
//...
modImplementation "maven.modrinth:lanterns-bow:${lanterns_bow_version}"
}
Refer to the versions page for the most recent version.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}"
}
Refer to the versions page for the most recent version.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"
}
Unless otherwise specified all models for lanterns are derived from the standing model of the provided lantern.
There are a few lantern types available:
Conversation