I am testing out the new snapshots and wanted to build a staircase that opens up when you have the right object in the right position in an item frame. I have done something like this before with the testfor command. However, that command has been removed with these snapshots. I have been messing with the execute and data commands trying to replicate testfor for the past 2-3 hours and cannot figure it out. I can only get it to tell me all of the item frame's data tags. I want the first command block to check if the item frame at a certain coordinate has oak stairs that have been rotated 4 times(so the corner point of the stairs are facing the bottom left corner of the frame). Then I need to chain another command block that runs if the last one returns true. The second command block needs to check if there are spruce planks at a coordinate. If that returns true then it needs to place a redstone block that replaces blocks making it look like a stairway is opening in the floor. Then I need to have the reversed effect, having another command block to run if the oak stairs are not in the correct position, thus having the stairway close. I could have easily done this with testfor, but now I can only figure out how to get all of the itemframe's data tags. It has a part that says you put a data tag name to only check that tag, but when I put ItemRotation it says that there is no such tag.
I am testing out the new snapshots and wanted to build a staircase that opens up when you have the right object in the right position in an item frame. I have done something like this before with the testfor command. However, that command has been removed with these snapshots. I have been messing with the execute and data commands trying to replicate testfor for the past 2-3 hours and cannot figure it out. I can only get it to tell me all of the item frame's data tags. I want the first command block to check if the item frame at a certain coordinate has oak stairs that have been rotated 4 times(so the corner point of the stairs are facing the bottom left corner of the frame). Then I need to chain another command block that runs if the last one returns true. The second command block needs to check if there are spruce planks at a coordinate. If that returns true then it needs to place a redstone block that replaces blocks making it look like a stairway is opening in the floor. Then I need to have the reversed effect, having another command block to run if the oak stairs are not in the correct position, thus having the stairway close. I could have easily done this with testfor, but now I can only figure out how to get all of the itemframe's data tags. It has a part that says you put a data tag name to only check that tag, but when I put ItemRotation it says that there is no such tag.