Skip to content

Commit

Permalink
fix: aa
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jun 5, 2024
1 parent 818b80f commit b757e24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/");

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b757e24

Please sign in to comment.