What are you searching for?

Lanterns Belong on Walls
Lanterns Belong on Walls

Lanterns Belong on Walls

Allows the placement of lanterns on walls.

download 237.3K Downloads · favorite 470 Followers · Updated 5 months ago
Decoration Fabric Neoforge Quilt Utility 1.18 1.18.1 1.18.2 1.19 1.19.1 +11 more

Versions

inventory_2
Lanterns Belong on Walls 2.5.0-fabric for 1.21.6-1.21.8

2.5.0+1.21.8-fabric · 5 months ago · 21.46 KB

Release download
Fabric Quilt 1.21.6 1.21.7 1.21.8
inventory_2
Lanterns Belong on Walls 2.5.0-neoforge for 1.21.6-1.21.8

2.5.0+1.21.8-neoforge · 5 months ago · 19.74 KB

Release download
Neoforge 1.21.6 1.21.7 1.21.8
inventory_2
2.4.0-NeoForge

2.4.0-NeoForge · 7 months ago · 22.08 KB

Release download
Neoforge 1.21.6
inventory_2
2.4.0-Fabric

2.4.0-Fabric · 7 months ago · 22.68 KB

Release download
Fabric Quilt 1.21.6
inventory_2
2.3.0 NeoForge

2.3.0-NeoForge · 8 months ago · 22.07 KB

Release download
Neoforge 1.21.5

About

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.
open_in_new View on Modrinth
Compatibility
Client: Required Server: Required
gavel MIT

Conversation

What are your thoughts?

Related projects

Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.1M
favorite 7,607
lock Cookie consent

SkinMC uses cookies to provide functionality and features.