Advertisement
SforzandoCF

a

Apr 3rd, 2024
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. package lx01.projects.techmodbase;
  2.  
  3. public abstract class RotationSourceBlock extends Block {
  4.     public RotationSourceBlock (BlockBehaviour$Properties settings) {
  5.         super (settings);
  6.     }
  7.    
  8.     public void neighborChanged (BlockState state, Level, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) {
  9.         if (sourceBlock != instanceof RotationTransmissionBlock)
  10.         BlockState notifier = level.getBlockState(sourcePos);
  11.         if (this.doesOutput(Util.directionTo(pos, sourcePos))) level.setBlock(sourcePos, notifier, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement