Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Lanterns Belong on Walls

Lanterns Belong on Walls

Allows the placement of lanterns on walls.

189.6k
408
Decoration
Utility
AboutGalleryChangelogVersions

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.

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

The basics for adding support for lanterns differs between mod loaders.

The details below are for Fabric/Architectury Loom.

For NeoForge

  1. Add the Gradle dependency:
    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.
    Read about the Modrinth Maven here.
  2. In your mod constructor, listen for the mod bus event, then add the lanterns:
    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"))
            );
        });
    }
    

For Fabric

  1. Add the Gradle dependency:
    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.
    Read about the Modrinth Maven here.
  2. Create an entrypoint class:
    public class ExampleLanternModWall implements WallLanternsEntrypoint {
        @Override
        public void registerLanterns(WallLanternsRegistry registry) {
            registry.registerLantern(ResourceLocation.fromNamespaceAndPath("examplemod", "lantern"));
        }
    }
    
  3. Add the entrypoint to your fabric.mod.json:
    ...
    "entrypoints": {
        ...
        "walllanterns": "com.example.mod.examplemod.ExampleLanternModWall"
    }
    

Lantern Types

Unless otherwise specified all models for lanterns are derived from the standing model of the provided lantern.

There are a few lantern types available:

  • Standard - Uses the vanilla standing lantern shape.
  • StandardCutout - Designed for NeoForge. Follows the same rules as Standard, but forces the use of the cutout Render Type on NeoForge.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.20.4
1.20–1.20.1
1.19.x
1.18.x

Platforms

Fabric
NeoForge
Quilt

Supported environments

Client and server

Links

Report issues View source
Donate on Ko-fi

Creators

ThePoultryMan
ThePoultryMan Owner

Details

Licensed MIT
Published 3 years ago
Updated last week

Modrinth is open source.

main@c8befb6

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.