Skip to content

Commit 032cbbd

Browse files
authored
Make pipes take a small amount of time to mine in survival (#70)
We can insta break with a wrench, insta mine on left click with no tool in survival leads to more accidental breaks than the convenience is worth. This makes pipes take as long to break as leaves, so it's still quite fast without a tool. But this gives a little margin avoid unintentional breaks, which can be quite annoying if you have a lot of configuration on the pipe.
1 parent caa18fb commit 032cbbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/technici4n/moderndynamics/pipe/PipeBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class PipeBlock extends Block implements EntityBlock, SimpleWaterloggedBl
5959
private boolean transparent = true;
6060

6161
public PipeBlock(String id) {
62-
super(Properties.of(Material.METAL).noOcclusion().isRedstoneConductor((state, world, pos) -> false));
62+
super(Properties.of(Material.METAL).noOcclusion().isRedstoneConductor((state, world, pos) -> false).destroyTime(0.2f));
6363
this.id = id;
6464
this.registerDefaultState(this.defaultBlockState().setValue(WATERLOGGED, false));
6565
}

0 commit comments

Comments
 (0)