Thank you. What to I replace "<other element id>" with?
Wait a second. You were right to think you should test it first. I'd need to replace "elem.TYPE_POWDER" with some kind of or function, plus the bitwise operator might be too picky with neighboring elements. Unless I'm isreading the code, which is totally possible since I'm a potato. Can you show me how to actually use the code you provided?
bit.band(elem.property(, "Properties"), elem.TYPE_PART) ~= 0
Nevermind, TPT_PL and I figured it out.