change the function ids into enums,
fix lighting enum,
name trapdoor check function