Compatibility
Minecraft: Java Edition
1.20.4
1.20–1.20.1
1.19.x
1.18.x
Platforms
Fabric
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed MIT
Published 2 years ago
Updated 7 months ago
How?
For supported lanterns, place the lantern on the side of the block, and the lantern will attach to that side.
Compatibility
For another mod's lanterns to be compatible, the other mod must add the compatibility (see here).
Note: If you're using a resource pack that changes the lantern blockstate file, then the visual connection to the wall might not appear.
For mod developers
Adding support for lanterns is a straightforward process.
- Add the Gradle dependency:
Refer to the versions page for the most recent version.repositories { //... maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } dependencies { //... modImplementation "maven.modrinth:lanterns-bow:${lanterns_bow_version}" }
Read about the Modrinth Maven here. - Create an entrypoint class:
public class ExampleLanternModWall implements WallLanternsEntrypoint { @Override public void patchLanterns() { this.addLantern(new Identifier("example_mod", "example_lantern")); } }
- Add the entrypoint to your
fabric.mod.json
:... "entrypoints": { ... "walllanterns": "com.example.mod.examplemod.ExampleLanternModWall" }
- Add the proper blockstates and models to your mod. Take a look here for a general idea of what it should look like.
The only major difference is that your blockstate file will need to include variants that have the facing property and variants that lack it. This will help to ensure compatibility when Lanterns Belong on Walls is not installed.