I've looked up on the wiki on how to set the direction of a lever. Didn't manage to get it working, the most logical it would be for me to do: Code: redblock.setType(Material.LEVER.setFacingDirection(BlockFace.DOWN)); But it says that it can't convert Material to Lever. Anyone knows how to do this?
You've just got the chain a little inverted: Code: redblock.setType(Material.LEVER) redblock.setFacingDirection(BlockFace.DOWN); Chaining them might also work, but I'm not sure. I don't think you can face 'down', but give it a shot, heh.
Thanks, but that doesn't work. redblock is a 'Block', and it cant convert from Block to lever when I try to cast.
Oh right right... Code: Lever myLever = (Lever) redblock; Btw, the word lever has now lost all meaning for me temporarily, and I can't even figure out if that's the correct way to spell it, heh. EDIT by Moderator: merged posts, please use the edit button instead of double posting.