Started by
notAstral
on
Topic category: Help with Minecraft modding (Java Edition)
I want to detect shift on a player so if he is shifting then the other part of the code would work
Edited by notAstral on Mon, 09/04/2023 - 15:31
Topic category: Help with Minecraft modding (Java Edition)
I want to detect shift on a player so if he is shifting then the other part of the code would work
You create a "Key binding" in mod elements, and make procedures for both on pressed and on released. Then, add this code into the on pressed procedure, and the same thing in on released except change the value to false. Then to use it, check if custom logic NBT tag "ShiftPressed" value is true, and if so do whatever it is you're wanting to use it for.