Minercaft optimizations

Im making a minercaft optimation for crops using the ai assistant, but i’m not sure as to weather i should make the code in the actuall app, or use intelellij comunity edition, if any of you know how to code in minercraft feel free to join!
The way how the mod works is by making crops in mineracft that require a light level to grow (normally 8 or 9 but i’ll have to it for every crop) check if there is light, and if there isn’t it stops sending random ticks, this will hopefuly create less lag. Im doing this on 1.20.1 fabric