Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public InteractionResult m_6227_(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) {
- ItemStack itemStack = player.m_21120_(hand);
- Item item = itemStack.m_41720_();
- BlockEntity blockEntity = level.m_7702_(pos);
- //whatever your block does
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement