Page 1 of 1

Expose the fluid mixing prevention check

Posted: Sun Sep 06, 2020 7:41 pm
by sparr
I would like to skip a create_entity if the player manually creating the entity would fail due to the built in fluid mixing prevention check. I know that I could reimplement the check in my mod, but that seems wasteful.

Re: Expose the fluid mixing prevention check

Posted: Sun Sep 06, 2020 9:29 pm
by Rseding91
Would it work to set build_check_type to manual?

Re: Expose the fluid mixing prevention check

Posted: Sun Sep 06, 2020 10:02 pm
by sparr
I take it from your question that can_place_entity{..., build_check_type=defines.build_check_type.manual} performs the fluid mixing prevention check? If so then yes, I can use that. TIL, thanks!