Also of note, checking entity type is container, only works explicitly on the non-logistic containers. You have to check for container, logistic-container, infinity-container for the container class, and linked-container, which is in its own prototype group. regardless, item_main works on all of them. the gui relative part has container and linked_container as separate defines. I did submit a pull request to the repo that fixes all of that.