90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
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.
Links
Details
Licensed MIT
Published 3 years ago
Updated 9 months ago