Skip to content

Commit

Permalink
Make end rod less boring (steal props from end rod)
Browse files Browse the repository at this point in the history
  • Loading branch information
bazke authored and itsbazke committed Oct 10, 2023
1 parent 1fe9908 commit 2d8a81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/lovetropics/extras/ExtraBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ private static BlockEntry<RopeBlock> rope(String name) {
.register();

public static final BlockEntry<BoringEndRodBlock> BORING_END_ROD = REGISTRATE.block("boring_end_rod", BoringEndRodBlock::new)
.defaultBlockstate()
.initialProperties(() -> Blocks.END_ROD)
.defaultBlockstate()
.blockstate((ctx, prov) -> rodBlock(ctx, prov))
.item()
.model((ctx, prov) -> prov.withExistingParent(ctx.getName(), prov.mcLoc("block/end_rod")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ public BoringEndRodBlock(Properties properties) {
public void animateTick(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) {
//It's boring, so don't animate!
}

@Override
public int getLightEmission(BlockState state, BlockGetter level, BlockPos pos) {
return 14; //This is the same as a normal end rod
}
}

0 comments on commit 2d8a81b

Please sign in to comment.