diff --git a/src/main/java/net/zepalesque/redux/data/gen/ReduxBlockStateGen.java b/src/main/java/net/zepalesque/redux/data/gen/ReduxBlockStateGen.java index 42353df5c..49d6cd5f8 100644 --- a/src/main/java/net/zepalesque/redux/data/gen/ReduxBlockStateGen.java +++ b/src/main/java/net/zepalesque/redux/data/gen/ReduxBlockStateGen.java @@ -46,6 +46,7 @@ protected void registerStatesAndModels() { this.invisibleBaseBrick(ReduxBlocks.BOSS_DOORWAY_SENTRY_STONE_BASE.get(), ReduxBlocks.SENTRY_STONE_BASE.get(), "dungeon/"); this.cubeActivatable(ReduxBlocks.RUNELIGHT.get(), "dungeon/"); + this.cubeActivatable(ReduxBlocks.LOCKED_RUNELIGHT.get(), ReduxBlocks.RUNELIGHT.get(), "dungeon/"); } } diff --git a/src/main/java/net/zepalesque/redux/data/prov/ReduxBlockStateProvider.java b/src/main/java/net/zepalesque/redux/data/prov/ReduxBlockStateProvider.java index 6bac1bbf7..760638cbf 100644 --- a/src/main/java/net/zepalesque/redux/data/prov/ReduxBlockStateProvider.java +++ b/src/main/java/net/zepalesque/redux/data/prov/ReduxBlockStateProvider.java @@ -160,8 +160,12 @@ public static String nameStatic(Block block) { } public void cubeActivatable(Block block, String location) { - ModelFile off = this.models().cubeAll(this.name(block), this.texture(this.name(block), location)); - ModelFile on = this.models().cubeAll(this.name(block) + "_on", this.texture(this.name(block) + "_on", location)); + this.cubeActivatable(block, block, location); + } + + public void cubeActivatable(Block block, Block other, String location) { + ModelFile off = this.models().cubeAll(this.name(other), this.texture(this.name(other), location)); + ModelFile on = this.models().cubeAll(this.name(other) + "_on", this.texture(this.name(other) + "_on", location)); this.getVariantBuilder(block) .partialState().with(BaseLitBlock.LIT, true).modelForState().modelFile(on).addModel() .partialState().with(BaseLitBlock.LIT, false).modelForState().modelFile(off).addModel();