Seeking advice for 'block data' code

Hi all,

I’m trying to create an ender portal through code using the data information found below:

And I can easily use the ‘data’ block to point the ender frame block in a specified direction, but I’m not sure how to also use that blockt o specify the ‘true/false’ value for whether the block will have an eye. Any help would be super appreciated!

Here’s my current code below (where I’m able to successfully point the blocks in different directions through data):

Try ANDing the 3rd bit (0x4) to 1 or 0 to place an eye. I don’t think you can do that in blocks, so try adding 4 to your data. (So east direction with eye is 3 + 4 = 7)

I found a guy on the Minecraft Education forum that has compiled a list of block ids with data components:
https://www.completelymiller.com/IDList.html
Hopefully that can help you!