Posted December 2, 20204 yr So I've got an AI class where previously in 1.12.2, the mutex bits were set to 7 (incompatible with other vanilla AIs). I'm attempting to update this to 1.16.3, but I see that the mutex bits are replaced by an enumset of flags, which are: MOVE, JUMP, LOOK, and TARGET. If I want equivalent behavior where the AI shouldn't execute when vanilla AIs are executing, how do I set the flags?
December 4, 20204 yr Howdy It looks to me like the enums have just taken place of the bits. An EnumSet actually is functionally equivalent to the way the mutex were used before. eg if previously MOVE was bit 0 (=1), JUMP was bit 1(=2), LOOK was bit 2(=4), and TARGET was bit 3(=8) then a mutex of 7 = 1 + 2 + 4 = MOVE + JUMP + LOOK is the same as an enumset of {MOVE, JUMP, LOOK} You just need to find the 1.12.2 mutex bits which correspond to the new flags. Goal.setMutexFlags() appears to be the method you need. -TGG
April 25, 20223 yr Exact bit values for people in the future: 1 - MOVE or TARGET (in 1.12 there was no difference between two, now they are split. You will have to think which one you want to use) 2 - LOOK 4 - JUMP
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.