Portal block
This commit is contained in:
parent
439e96a526
commit
59a0d0df6c
18 changed files with 765 additions and 1 deletions
|
@ -12,7 +12,9 @@ public class RunedFlavolite extends BlockBase {
|
|||
public static final BooleanProperty ACTIVATED = BooleanProperty.of("active");
|
||||
|
||||
public RunedFlavolite() {
|
||||
super(FabricBlockSettings.copyOf(BlockRegistry.FLAVOLITE.polished).lightLevel(6));
|
||||
super(FabricBlockSettings.copyOf(BlockRegistry.FLAVOLITE.polished).luminance(state -> {
|
||||
return state.get(ACTIVATED) ? 8 : 0;
|
||||
}));
|
||||
this.setDefaultState(stateManager.getDefaultState().with(ACTIVATED, false));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue