How to specify the redstone emission face of my block using code

Started by Alvieris2002@g… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to specify the redstone emission face of my block using code

you want to know if a way to specify the side by which a redstone signal of my block should be emitted by means of code, as it does the vanilla repeater of minecraft, the comparator or other blocks of minecraft, that like the repeater only emits signal of redstone on the front face, if there is a way in which the getweak value can return the output face of redstone Example
public int getWeakPower (BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side) {

          return side = direction.UP? 15: 0;
       }
    }
or something like that

If anyone knows, I would greatly appreciate the information Thank you!